mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 23:25:03 +00:00
Move symbol_index
This commit is contained in:
parent
ec95152a4e
commit
ad247aa670
7 changed files with 16 additions and 12 deletions
|
@ -12,6 +12,7 @@ use crate::{
|
|||
db::RootDatabase,
|
||||
display::{ShortLabel, ToNav},
|
||||
expand::descend_into_macros,
|
||||
ide_db::symbol_index,
|
||||
references::{classify_name_ref, NameKind::*},
|
||||
FilePosition, NavigationTarget, RangeInfo,
|
||||
};
|
||||
|
@ -94,7 +95,7 @@ pub(crate) fn reference_definition(
|
|||
};
|
||||
|
||||
// Fallback index based approach:
|
||||
let navs = crate::symbol_index::index_resolve(sb.db, name_ref.value)
|
||||
let navs = symbol_index::index_resolve(sb.db, name_ref.value)
|
||||
.into_iter()
|
||||
.map(|s| s.to_nav(sb.db))
|
||||
.collect();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue