aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide_api/src/lib.rs')
-rw-r--r--crates/ra_ide_api/src/lib.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/crates/ra_ide_api/src/lib.rs b/crates/ra_ide_api/src/lib.rs
index 51947e4cc..9ec4fdd95 100644
--- a/crates/ra_ide_api/src/lib.rs
+++ b/crates/ra_ide_api/src/lib.rs
@@ -25,6 +25,7 @@ mod call_info;
25mod syntax_highlighting; 25mod syntax_highlighting;
26mod parent_module; 26mod parent_module;
27mod rename; 27mod rename;
28mod impls;
28 29
29#[cfg(test)] 30#[cfg(test)]
30mod marks; 31mod marks;
@@ -415,6 +416,13 @@ impl Analysis {
415 self.with_db(|db| goto_definition::goto_definition(db, position)) 416 self.with_db(|db| goto_definition::goto_definition(db, position))
416 } 417 }
417 418
419 pub fn goto_implementation(
420 &self,
421 position: FilePosition,
422 ) -> Cancelable<Option<RangeInfo<Vec<NavigationTarget>>>> {
423 self.with_db(|db| impls::goto_implementation(db, position))
424 }
425
418 /// Finds all usages of the reference at point. 426 /// Finds all usages of the reference at point.
419 pub fn find_all_refs(&self, position: FilePosition) -> Cancelable<Vec<(FileId, TextRange)>> { 427 pub fn find_all_refs(&self, position: FilePosition) -> Cancelable<Vec<(FileId, TextRange)>> {
420 self.with_db(|db| db.find_all_refs(position)) 428 self.with_db(|db| db.find_all_refs(position))