remove ast::*Kind from ra_ide_api

This commit is contained in:
Aleksey Kladov 2019-08-19 14:13:58 +03:00
parent 3bec812258
commit df6dce23a7
5 changed files with 19 additions and 21 deletions

View file

@ -75,7 +75,7 @@ pub(crate) fn find_all_refs(
let analyzer = hir::SourceAnalyzer::new(db, position.file_id, name_ref.syntax(), None);
let resolved = analyzer.resolve_local_name(&name_ref)?;
if let Either::A(ptr) = resolved.ptr() {
if let ast::PatKind::BindPat(binding) = ptr.to_node(source_file.syntax()).kind() {
if let ast::Pat::BindPat(binding) = ptr.to_node(source_file.syntax()) {
return Some((binding, analyzer));
}
}