Skip to content

Commit e76dddd

Browse files
committed
Add more log
1 parent 94189d0 commit e76dddd

File tree

1 file changed

+9
-0
lines changed
  • crates/ra_hir_expand/src

1 file changed

+9
-0
lines changed

crates/ra_hir_expand/src/db.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,15 @@ pub(crate) fn parse_macro(
181181
err,
182182
node.value
183183
);
184+
185+
let mut parent = loc.kind.file_id().call_node(db);
186+
while let Some(node) = parent.clone() {
187+
log::warn!(
188+
"parent: macro_call: {:#})",
189+
node.value
190+
);
191+
parent = node.file_id.call_node(db);
192+
}
184193
}
185194
_ => {
186195
log::warn!("fail on macro_parse: (reason: {})", err);

0 commit comments

Comments
 (0)