Basic resolution for ADT

This commit is contained in:
kjeremy 2019-04-23 14:11:27 -04:00
parent a094d5c621
commit 7125192c1e
5 changed files with 99 additions and 2 deletions

View file

@ -19,6 +19,7 @@ mod status;
mod completion;
mod runnables;
mod goto_definition;
mod goto_type_definition;
mod extend_selection;
mod hover;
mod call_info;
@ -416,6 +417,13 @@ impl Analysis {
self.with_db(|db| impls::goto_implementation(db, position))
}
pub fn goto_type_definition(
&self,
position: FilePosition,
) -> Cancelable<Option<RangeInfo<Vec<NavigationTarget>>>> {
self.with_db(|db| goto_type_definition::goto_type_definition(db, position))
}
/// Finds all usages of the reference at point.
pub fn find_all_refs(
&self,