Added test for file_structure unidentified macro definition

This commit is contained in:
Roland Ruckerbauer 2020-01-10 21:49:46 +01:00
parent db151763d4
commit c6655c67d2

View file

@ -212,6 +212,11 @@ macro_rules! mc {
() => {}
}
#[macro_export]
macro_rules! mcexp {
() => {}
}
#[deprecated]
fn obsolete() {}
@ -386,11 +391,20 @@ fn very_obsolete() {}
detail: None,
deprecated: false,
},
StructureNode {
parent: None,
label: "mcexp",
navigation_range: [334; 339),
node_range: [305; 356),
kind: MACRO_CALL,
detail: None,
deprecated: false,
},
StructureNode {
parent: None,
label: "obsolete",
navigation_range: [322; 330),
node_range: [305; 335),
navigation_range: [375; 383),
node_range: [358; 388),
kind: FN_DEF,
detail: Some(
"fn()",
@ -400,8 +414,8 @@ fn very_obsolete() {}
StructureNode {
parent: None,
label: "very_obsolete",
navigation_range: [375; 388),
node_range: [337; 393),
navigation_range: [428; 441),
node_range: [390; 446),
kind: FN_DEF,
detail: Some(
"fn()",