Fix expand macro

This commit is contained in:
Edwin Cheng 2019-11-20 12:21:31 +08:00
parent b568bcfe6d
commit 0a9c80053f
3 changed files with 16 additions and 9 deletions

View file

@ -55,7 +55,7 @@ pub(crate) fn descend_into_macros(
}
let source_analyzer =
hir::SourceAnalyzer::new(db, token.with_value(token.value.parent()).as_ref(), None);
let exp = source_analyzer.expand(db, &macro_call)?;
let exp = source_analyzer.expand(db, token.with_value(&macro_call))?;
exp.map_token_down(db, token.as_ref())
})
.last()