mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Basic resolution for ADT
This commit is contained in:
parent
a094d5c621
commit
7125192c1e
5 changed files with 99 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue