From 7125192c1e46f2350707c4903a1679b2a0178ea6 Mon Sep 17 00:00:00 2001 From: kjeremy Date: Tue, 23 Apr 2019 14:11:27 -0400 Subject: Basic resolution for ADT --- crates/ra_ide_api/src/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crates/ra_ide_api/src/lib.rs') diff --git a/crates/ra_ide_api/src/lib.rs b/crates/ra_ide_api/src/lib.rs index d25795adc..d4be8bd6c 100644 --- a/crates/ra_ide_api/src/lib.rs +++ b/crates/ra_ide_api/src/lib.rs @@ -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>>> { + 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, -- cgit v1.2.3