-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attach tokens to all AST types used in Nonterminal
#75800
Commits on Sep 10, 2020
-
Attach
TokenStream
toast::Block
A `Block` does not have outer attributes, so we only capture tokens when parsing a `macro_rules!` matcher
Configuration menu - View commit details
-
Copy full SHA for de4bd9f - Browse repository at this point
Copy the full SHA de4bd9fView commit details -
A `Ty` does not have outer attributes, so we only capture tokens when parsing a `macro_rules!` matcher
Configuration menu - View commit details
-
Copy full SHA for 1823dea - Browse repository at this point
Copy the full SHA 1823deaView commit details -
Collect tokens when handling
:literal
matcherAn `NtLiteral` just wraps an `Expr`, so we don't need to add a new `tokens` field to an AST struct.
Configuration menu - View commit details
-
Copy full SHA for d5a04a9 - Browse repository at this point
Copy the full SHA d5a04a9View commit details -
Attach tokens to
NtMeta
(ast::AttrItem
)An `AttrItem` does not have outer attributes, so we only capture tokens when parsing a `macro_rules!` matcher
Configuration menu - View commit details
-
Copy full SHA for 3815e91 - Browse repository at this point
Copy the full SHA 3815e91View commit details -
Configuration menu - View commit details
-
Copy full SHA for 55082ce - Browse repository at this point
Copy the full SHA 55082ceView commit details -
Attach
TokenStream
toast::Visibility
A `Visibility` does not have outer attributes, so we only capture tokens when parsing a `macro_rules!` matcher
Configuration menu - View commit details
-
Copy full SHA for c101116 - Browse repository at this point
Copy the full SHA c101116View commit details -
We currently only attach tokens when parsing a `:stmt` matcher for a `macro_rules!` macro. Proc-macro attributes on statements are still unstable, and need additional work.
Configuration menu - View commit details
-
Copy full SHA for 156ef2b - Browse repository at this point
Copy the full SHA 156ef2bView commit details -
Fully integrate token collection for additional AST structs
This commit contains miscellaneous changes that don't fit into any of the other commits in this PR
Configuration menu - View commit details
-
Copy full SHA for fec0479 - Browse repository at this point
Copy the full SHA fec0479View commit details