aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/module/nameres.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-12-18 22:48:46 +0000
committerAleksey Kladov <[email protected]>2018-12-18 22:51:05 +0000
commit1c5ce7a8682c9e14ce726388b88897644721b19b (patch)
treebba7163aa81ceba1dfb26f481b8fd974421aaa8b /crates/ra_hir/src/module/nameres.rs
parent9664fbcac5e53d725c6e438ffba2194921321b76 (diff)
File module source does not depend on syntax
Diffstat (limited to 'crates/ra_hir/src/module/nameres.rs')
-rw-r--r--crates/ra_hir/src/module/nameres.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/module/nameres.rs b/crates/ra_hir/src/module/nameres.rs
index 9afeade9e..5540b827f 100644
--- a/crates/ra_hir/src/module/nameres.rs
+++ b/crates/ra_hir/src/module/nameres.rs
@@ -98,7 +98,7 @@ impl NamedImport {
98 pub fn range(&self, db: &impl HirDatabase, file_id: FileId) -> TextRange { 98 pub fn range(&self, db: &impl HirDatabase, file_id: FileId) -> TextRange {
99 let source_item_id = SourceItemId { 99 let source_item_id = SourceItemId {
100 file_id, 100 file_id,
101 item_id: self.file_item_id, 101 item_id: Some(self.file_item_id),
102 }; 102 };
103 let syntax = db.file_item(source_item_id); 103 let syntax = db.file_item(source_item_id);
104 let offset = syntax.borrowed().range().start(); 104 let offset = syntax.borrowed().range().start();
@@ -281,7 +281,7 @@ where
281 module_id, 281 module_id,
282 source_item_id: SourceItemId { 282 source_item_id: SourceItemId {
283 file_id, 283 file_id,
284 item_id: item.id, 284 item_id: Some(item.id),
285 }, 285 },
286 }; 286 };
287 let def_id = def_loc.id(self.db); 287 let def_id = def_loc.id(self.db);