move index_resolve to symbol index

This commit is contained in:
Aleksey Kladov 2019-02-08 14:09:57 +03:00
parent 5173c6295b
commit e4a6343e47
4 changed files with 11 additions and 14 deletions

View file

@ -118,8 +118,7 @@ pub(crate) fn reference_definition(
}
}
// If that fails try the index based approach.
let navs = db
.index_resolve(name_ref)
let navs = crate::symbol_index::index_resolve(db, name_ref)
.into_iter()
.map(NavigationTarget::from_symbol)
.collect();