mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
fix: multi-token mapping aware find references
This commit is contained in:
parent
81ab52c6ca
commit
bdba35cc93
7 changed files with 155 additions and 86 deletions
|
@ -46,7 +46,7 @@ pub(crate) fn incoming_calls(db: &RootDatabase, position: FilePosition) -> Optio
|
|||
|
||||
let mut calls = CallLocations::default();
|
||||
|
||||
for (file_id, references) in refs.references {
|
||||
for (file_id, references) in refs.into_iter().flat_map(|refs| refs.references) {
|
||||
let file = sema.parse(file_id);
|
||||
let file = file.syntax();
|
||||
for (relative_range, token) in references
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue