aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/display/structure.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide_api/src/display/structure.rs')
-rw-r--r--crates/ra_ide_api/src/display/structure.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/crates/ra_ide_api/src/display/structure.rs b/crates/ra_ide_api/src/display/structure.rs
index 24ab7b59c..e5057e833 100644
--- a/crates/ra_ide_api/src/display/structure.rs
+++ b/crates/ra_ide_api/src/display/structure.rs
@@ -142,6 +142,13 @@ fn structure_node(node: &SyntaxNode) -> Option<StructureNode> {
142 }; 142 };
143 Some(node) 143 Some(node)
144 }) 144 })
145 .visit(|mc: &ast::MacroCall| {
146 let first_token = mc.syntax().first_token().unwrap();
147 if first_token.text().as_str() != "macro_rules" {
148 return None;
149 }
150 decl(mc)
151 })
145 .accept(node)? 152 .accept(node)?
146} 153}
147 154
@@ -177,6 +184,10 @@ impl E {}
177 184
178impl fmt::Debug for E {} 185impl fmt::Debug for E {}
179 186
187macro_rules! mc {
188 () => {}
189}
190
180#[deprecated] 191#[deprecated]
181fn obsolete() {} 192fn obsolete() {}
182 193