Add to macro testing infra to emit token map ids

This commit is contained in:
Lukas Wirth 2021-11-22 15:59:41 +01:00
parent 77f08d0fc3
commit 64cb09ddea
5 changed files with 151 additions and 17 deletions

View file

@ -370,8 +370,9 @@ impl MacroCallId {
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct ExpansionInfo {
expanded: InFile<SyntaxNode>,
/// The argument TokenTree or item for attributes
arg: InFile<SyntaxNode>,
/// The `macro_rules!` arguments or attribute input.
/// The `macro_rules!` or attribute input.
attr_input_or_mac_def: Option<InFile<ast::TokenTree>>,
macro_def: Arc<TokenExpander>,