diff options
Diffstat (limited to 'crates/ra_analysis/src/lib.rs')
-rw-r--r-- | crates/ra_analysis/src/lib.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/crates/ra_analysis/src/lib.rs b/crates/ra_analysis/src/lib.rs index 4e4c65f08..fee382151 100644 --- a/crates/ra_analysis/src/lib.rs +++ b/crates/ra_analysis/src/lib.rs | |||
@@ -263,8 +263,12 @@ impl Analysis { | |||
263 | ) -> Cancelable<Vec<(FileId, TextRange)>> { | 263 | ) -> Cancelable<Vec<(FileId, TextRange)>> { |
264 | Ok(self.imp.find_all_refs(file_id, offset)) | 264 | Ok(self.imp.find_all_refs(file_id, offset)) |
265 | } | 265 | } |
266 | pub fn parent_module(&self, file_id: FileId) -> Cancelable<Vec<(FileId, FileSymbol)>> { | 266 | pub fn parent_module( |
267 | self.imp.parent_module(file_id) | 267 | &self, |
268 | file_id: FileId, | ||
269 | offset: TextUnit, | ||
270 | ) -> Cancelable<Vec<(FileId, FileSymbol)>> { | ||
271 | self.imp.parent_module(file_id, offset) | ||
268 | } | 272 | } |
269 | pub fn crate_for(&self, file_id: FileId) -> Cancelable<Vec<CrateId>> { | 273 | pub fn crate_for(&self, file_id: FileId) -> Cancelable<Vec<CrateId>> { |
270 | self.imp.crate_for(file_id) | 274 | self.imp.crate_for(file_id) |