diff options
author | Roland Ruckerbauer <[email protected]> | 2020-01-10 20:49:46 +0000 |
---|---|---|
committer | Roland Ruckerbauer <[email protected]> | 2020-01-12 16:34:57 +0000 |
commit | c6655c67d2091b49a10512bfeab631d5f8a09d4b (patch) | |
tree | 8d42816c97d3b2e42799476c5042e8c74506393b /crates/ra_ide | |
parent | db151763d42c725685bb9e86a16fa2b6cb7a64c7 (diff) |
Added test for file_structure unidentified macro definition
Diffstat (limited to 'crates/ra_ide')
-rw-r--r-- | crates/ra_ide/src/display/structure.rs | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/crates/ra_ide/src/display/structure.rs b/crates/ra_ide/src/display/structure.rs index be21fa913..8bdb971fe 100644 --- a/crates/ra_ide/src/display/structure.rs +++ b/crates/ra_ide/src/display/structure.rs | |||
@@ -212,6 +212,11 @@ macro_rules! mc { | |||
212 | () => {} | 212 | () => {} |
213 | } | 213 | } |
214 | 214 | ||
215 | #[macro_export] | ||
216 | macro_rules! mcexp { | ||
217 | () => {} | ||
218 | } | ||
219 | |||
215 | #[deprecated] | 220 | #[deprecated] |
216 | fn obsolete() {} | 221 | fn obsolete() {} |
217 | 222 | ||
@@ -388,9 +393,18 @@ fn very_obsolete() {} | |||
388 | }, | 393 | }, |
389 | StructureNode { | 394 | StructureNode { |
390 | parent: None, | 395 | parent: None, |
396 | label: "mcexp", | ||
397 | navigation_range: [334; 339), | ||
398 | node_range: [305; 356), | ||
399 | kind: MACRO_CALL, | ||
400 | detail: None, | ||
401 | deprecated: false, | ||
402 | }, | ||
403 | StructureNode { | ||
404 | parent: None, | ||
391 | label: "obsolete", | 405 | label: "obsolete", |
392 | navigation_range: [322; 330), | 406 | navigation_range: [375; 383), |
393 | node_range: [305; 335), | 407 | node_range: [358; 388), |
394 | kind: FN_DEF, | 408 | kind: FN_DEF, |
395 | detail: Some( | 409 | detail: Some( |
396 | "fn()", | 410 | "fn()", |
@@ -400,8 +414,8 @@ fn very_obsolete() {} | |||
400 | StructureNode { | 414 | StructureNode { |
401 | parent: None, | 415 | parent: None, |
402 | label: "very_obsolete", | 416 | label: "very_obsolete", |
403 | navigation_range: [375; 388), | 417 | navigation_range: [428; 441), |
404 | node_range: [337; 393), | 418 | node_range: [390; 446), |
405 | kind: FN_DEF, | 419 | kind: FN_DEF, |
406 | detail: Some( | 420 | detail: Some( |
407 | "fn()", | 421 | "fn()", |