diff options
author | Aleksey Kladov <[email protected]> | 2019-09-10 20:12:37 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-09-10 20:22:57 +0100 |
commit | 9eb14e11706ebf9a60b0afbe9bc82a99a816bc02 (patch) | |
tree | 8b4a9d1ef764d82ccfdafdb2231a7813be09b01d /crates/ra_hir/src/nameres | |
parent | b9d9db83d1ac85e83e018333f7aa4c5c5616e82b (diff) |
cleanup expansion to item list
Diffstat (limited to 'crates/ra_hir/src/nameres')
-rw-r--r-- | crates/ra_hir/src/nameres/raw.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/ra_hir/src/nameres/raw.rs b/crates/ra_hir/src/nameres/raw.rs index c646d3d00..04b97cb90 100644 --- a/crates/ra_hir/src/nameres/raw.rs +++ b/crates/ra_hir/src/nameres/raw.rs | |||
@@ -76,8 +76,10 @@ impl RawItems { | |||
76 | source_map: ImportSourceMap::default(), | 76 | source_map: ImportSourceMap::default(), |
77 | }; | 77 | }; |
78 | if let Some(node) = db.parse_or_expand(file_id) { | 78 | if let Some(node) = db.parse_or_expand(file_id) { |
79 | if let Some(source_file) = ast::SourceFile::cast(node) { | 79 | if let Some(source_file) = ast::SourceFile::cast(node.clone()) { |
80 | collector.process_module(None, source_file); | 80 | collector.process_module(None, source_file); |
81 | } else if let Some(item_list) = ast::MacroItems::cast(node) { | ||
82 | collector.process_module(None, item_list); | ||
81 | } | 83 | } |
82 | } | 84 | } |
83 | (Arc::new(collector.raw_items), Arc::new(collector.source_map)) | 85 | (Arc::new(collector.raw_items), Arc::new(collector.source_map)) |