aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdwin Cheng <[email protected]>2020-03-04 12:37:16 +0000
committerEdwin Cheng <[email protected]>2020-03-04 15:41:04 +0000
commite76dddd61078e1636ad8dc2ed02d53d37ae987e1 (patch)
tree4e9c5bcfb433efe61bcbc0fb6a384d6dd26cd3f7
parent94189d0a1c8cf24b155fe7bad9b159bc17e997bb (diff)
Add more log
-rw-r--r--crates/ra_hir_expand/src/db.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/crates/ra_hir_expand/src/db.rs b/crates/ra_hir_expand/src/db.rs
index 32e0d5ced..d29985d0b 100644
--- a/crates/ra_hir_expand/src/db.rs
+++ b/crates/ra_hir_expand/src/db.rs
@@ -181,6 +181,15 @@ pub(crate) fn parse_macro(
181 err, 181 err,
182 node.value 182 node.value
183 ); 183 );
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 }
184 } 193 }
185 _ => { 194 _ => {
186 log::warn!("fail on macro_parse: (reason: {})", err); 195 log::warn!("fail on macro_parse: (reason: {})", err);