Add LazyMacroId

This commit is contained in:
Edwin Cheng 2020-02-17 19:32:13 +08:00
parent cebb995d21
commit 0d55454073
5 changed files with 56 additions and 16 deletions

View file

@ -248,7 +248,7 @@ mod tests {
kind: MacroCallKind::Attr(AstId::new(file_id.into(), ast_id_map.ast_id(&items[0]))),
};
let id = db.intern_macro(loc);
let id: MacroCallId = db.intern_macro(loc).into();
let parsed = db.parse_or_expand(id.as_file()).unwrap();
// FIXME text() for syntax nodes parsed from token tree looks weird