Add more log

This commit is contained in:
Edwin Cheng 2020-03-04 20:37:16 +08:00
parent 94189d0a1c
commit e76dddd610

View file

@ -181,6 +181,15 @@ pub(crate) fn parse_macro(
err,
node.value
);
let mut parent = loc.kind.file_id().call_node(db);
while let Some(node) = parent.clone() {
log::warn!(
"parent: macro_call: {:#})",
node.value
);
parent = node.file_id.call_node(db);
}
}
_ => {
log::warn!("fail on macro_parse: (reason: {})", err);