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/parse | |
| parent | 6f815ca771b59fe652a5f88f198810b5dc37a4c9 (diff) | |
| download | rust-9b2f7624ecb743e9db8e135113f396a7956623e7.tar.gz rust-9b2f7624ecb743e9db8e135113f396a7956623e7.zip | |
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/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index d1591a219b3..4f8d85a8da4 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -4653,6 +4653,7 @@ impl<'a> Parser<'a> { node: node, vis: vis, span: span, + tokens: None, // TODO: fill this in }) } |
