mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +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
|
@ -226,7 +226,7 @@ fn find_related_tests(
|
|||
tests: &mut FxHashSet<Runnable>,
|
||||
) {
|
||||
if let Some(refs) = references::find_all_refs(sema, position, search_scope) {
|
||||
for (file_id, refs) in refs.references {
|
||||
for (file_id, refs) in refs.into_iter().flat_map(|refs| refs.references) {
|
||||
let file = sema.parse(file_id);
|
||||
let file = file.syntax();
|
||||
let functions = refs.iter().filter_map(|(range, _)| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue