aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis/src/imp.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_analysis/src/imp.rs')
-rw-r--r--crates/ra_analysis/src/imp.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_analysis/src/imp.rs b/crates/ra_analysis/src/imp.rs
index 340f7c78c..b01382808 100644
--- a/crates/ra_analysis/src/imp.rs
+++ b/crates/ra_analysis/src/imp.rs
@@ -235,7 +235,7 @@ impl AnalysisImpl {
235 position.file_id, 235 position.file_id,
236 name_ref.syntax(), 236 name_ref.syntax(),
237 )? { 237 )? {
238 let scope = fn_descr.scope(&*self.db); 238 let scope = fn_descr.scopes(&*self.db);
239 // First try to resolve the symbol locally 239 // First try to resolve the symbol locally
240 if let Some(entry) = scope.resolve_local_name(name_ref) { 240 if let Some(entry) = scope.resolve_local_name(name_ref) {
241 rr.add_resolution( 241 rr.add_resolution(
@@ -294,7 +294,7 @@ impl AnalysisImpl {
294 let mut ret = vec![(position.file_id, binding.syntax().range())]; 294 let mut ret = vec![(position.file_id, binding.syntax().range())];
295 ret.extend( 295 ret.extend(
296 descr 296 descr
297 .scope(&*self.db) 297 .scopes(&*self.db)
298 .find_all_refs(binding) 298 .find_all_refs(binding)
299 .into_iter() 299 .into_iter()
300 .map(|ref_desc| (position.file_id, ref_desc.range)), 300 .map(|ref_desc| (position.file_id, ref_desc.range)),
@@ -322,7 +322,7 @@ impl AnalysisImpl {
322 position.file_id, 322 position.file_id,
323 name_ref.syntax(), 323 name_ref.syntax(),
324 )?); 324 )?);
325 let scope = descr.scope(db); 325 let scope = descr.scopes(db);
326 let resolved = ctry!(scope.resolve_local_name(name_ref)); 326 let resolved = ctry!(scope.resolve_local_name(name_ref));
327 let resolved = resolved.ptr().resolve(source_file); 327 let resolved = resolved.ptr().resolve(source_file);
328 let binding = ctry!(find_node_at_offset::<ast::BindPat>( 328 let binding = ctry!(find_node_at_offset::<ast::BindPat>(