syntax: Add tokens: Option<TokenStream>
to Item
This commit adds a new field to the `Item` AST node in libsyntax to optionally contain the original token stream that the item itself was parsed from. This is currently `None` everywhere but is intended for use later with procedural macros.
This commit is contained in:
parent
6f815ca771
commit
9b2f7624ec
11 changed files with 35 additions and 9 deletions
|
@ -236,6 +236,7 @@ pub fn expand_build_diagnostic_array<'cx>(ecx: &'cx mut ExtCtxt,
|
|||
),
|
||||
vis: ast::Visibility::Public,
|
||||
span: span,
|
||||
tokens: None,
|
||||
})
|
||||
]))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue