diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-11-05 11:12:04 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-11-05 11:12:04 +0000 |
commit | de9bb9cfefb6d19958363f7d064aef6adbca9107 (patch) | |
tree | 7b332c6db6e662ca31aafded143476d81a60453f /crates/ra_analysis/src/lib.rs | |
parent | 6502bd2c966d57bdb8fbba7f43da9ddd004d87d3 (diff) | |
parent | 6bbcfca7aec6408cf27415ae6f965adc472d6f18 (diff) |
Merge #193
193: Inline modules r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
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) |