diff options
author | Edwin Cheng <[email protected]> | 2021-03-13 12:14:21 +0000 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2021-03-13 12:14:21 +0000 |
commit | f1350dd93c92fa5e71b6c5d7f703fe19c2511e06 (patch) | |
tree | 02e42adb3ab3856008452834f7c70777ddbd93d1 /crates/hir_expand/src | |
parent | f0b7c02f16f717744e7edc79a405db14110393cf (diff) |
add expand log
Diffstat (limited to 'crates/hir_expand/src')
-rw-r--r-- | crates/hir_expand/src/db.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/hir_expand/src/db.rs b/crates/hir_expand/src/db.rs index cb6e23320..9086e6c17 100644 --- a/crates/hir_expand/src/db.rs +++ b/crates/hir_expand/src/db.rs | |||
@@ -340,6 +340,8 @@ fn parse_macro_with_arg( | |||
340 | None => return ExpandResult { value: None, err: result.err }, | 340 | None => return ExpandResult { value: None, err: result.err }, |
341 | }; | 341 | }; |
342 | 342 | ||
343 | log::debug!("expanded = {}", tt.as_debug_string()); | ||
344 | |||
343 | let fragment_kind = to_fragment_kind(db, macro_call_id); | 345 | let fragment_kind = to_fragment_kind(db, macro_call_id); |
344 | 346 | ||
345 | let (parse, rev_token_map) = match mbe::token_tree_to_syntax_node(&tt, fragment_kind) { | 347 | let (parse, rev_token_map) = match mbe::token_tree_to_syntax_node(&tt, fragment_kind) { |