mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
fold ScopeWithSyntax into SourceAnalyzer
This commit is contained in:
parent
30481808fb
commit
f4a94e74bc
7 changed files with 159 additions and 193 deletions
|
@ -65,7 +65,7 @@ pub(crate) fn find_all_refs(
|
|||
let declaration = NavigationTarget::from_bind_pat(position.file_id, binding);
|
||||
|
||||
let references = analyzer
|
||||
.find_all_refs(binding)?
|
||||
.find_all_refs(binding)
|
||||
.into_iter()
|
||||
.map(move |ref_desc| FileRange { file_id: position.file_id, range: ref_desc.range })
|
||||
.collect::<Vec<_>>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue