aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/references/search_scope.rs
diff options
context:
space:
mode:
authorice1000 <[email protected]>2019-12-04 18:35:24 +0000
committerice1000 <[email protected]>2019-12-04 23:30:42 +0000
commit088f50c0ab351d5ac072547a47c1ce7eeae029f3 (patch)
treebb1debb530510bea0aa5333bbc3a6d2d0a1a3ac8 /crates/ra_ide/src/references/search_scope.rs
parent032eb3d68e07f087ac531d48f956a79948baa4b9 (diff)
No block at the moment
Diffstat (limited to 'crates/ra_ide/src/references/search_scope.rs')
-rw-r--r--crates/ra_ide/src/references/search_scope.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/crates/ra_ide/src/references/search_scope.rs b/crates/ra_ide/src/references/search_scope.rs
index 92eb2015b..f5c9589f4 100644
--- a/crates/ra_ide/src/references/search_scope.rs
+++ b/crates/ra_ide/src/references/search_scope.rs
@@ -96,10 +96,6 @@ impl NameDefinition {
96 let range = Some(m.syntax().text_range()); 96 let range = Some(m.syntax().text_range());
97 res.insert(file_id, range); 97 res.insert(file_id, range);
98 } 98 }
99 ModuleSource::Block(b) => {
100 let range = Some(b.syntax().text_range());
101 res.insert(file_id, range);
102 }
103 ModuleSource::SourceFile(_) => { 99 ModuleSource::SourceFile(_) => {
104 res.insert(file_id, None); 100 res.insert(file_id, None);
105 res.extend(parent_module.children(db).map(|m| { 101 res.extend(parent_module.children(db).map(|m| {
@@ -141,7 +137,6 @@ impl NameDefinition {
141 let mut res = FxHashMap::default(); 137 let mut res = FxHashMap::default();
142 let range = match module_src.value { 138 let range = match module_src.value {
143 ModuleSource::Module(m) => Some(m.syntax().text_range()), 139 ModuleSource::Module(m) => Some(m.syntax().text_range()),
144 ModuleSource::Block(b) => Some(b.syntax().text_range()),
145 ModuleSource::SourceFile(_) => None, 140 ModuleSource::SourceFile(_) => None,
146 }; 141 };
147 res.insert(file_id, range); 142 res.insert(file_id, range);