diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2017-07-10 17:44:46 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2017-07-28 07:58:20 -0700 |
| commit | 9b2f7624ecb743e9db8e135113f396a7956623e7 (patch) | |
| tree | 06cb1cc402cf15207cfbf4be2ae620164e254963 /src/libsyntax_ext | |
| parent | 6f815ca771b59fe652a5f88f198810b5dc37a4c9 (diff) | |
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.
Diffstat (limited to 'src/libsyntax_ext')
| -rw-r--r-- | src/libsyntax_ext/global_asm.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax_ext/global_asm.rs b/src/libsyntax_ext/global_asm.rs index dc67e1c45f6..8b0bb8cb891 100644 --- a/src/libsyntax_ext/global_asm.rs +++ b/src/libsyntax_ext/global_asm.rs @@ -61,5 +61,6 @@ pub fn expand_global_asm<'cx>(cx: &'cx mut ExtCtxt, })), vis: ast::Visibility::Inherited, span: sp, + tokens: None, }))) } |
