Skip to content
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

Merged
merged 8 commits into from
Sep 11, 2020

Commits on Sep 10, 2020

  1. Attach TokenStream to ast::Block

    A `Block` does not have outer attributes, so we only capture tokens when
    parsing a `macro_rules!` matcher
    Aaron1011 committed Sep 10, 2020
    Configuration menu
    Copy the full SHA
    de4bd9f View commit details
    Browse the repository at this point in the history
  2. Attach TokenStream to ast::Ty

    A `Ty` does not have outer attributes, so we only capture tokens
    when parsing a `macro_rules!` matcher
    Aaron1011 committed Sep 10, 2020
    Configuration menu
    Copy the full SHA
    1823dea View commit details
    Browse the repository at this point in the history
  3. Collect tokens when handling :literal matcher

    An `NtLiteral` just wraps an `Expr`, so we don't need to add a new `tokens`
    field to an AST struct.
    Aaron1011 committed Sep 10, 2020
    Configuration menu
    Copy the full SHA
    d5a04a9 View commit details
    Browse the repository at this point in the history
  4. Attach tokens to NtMeta (ast::AttrItem)

    An `AttrItem` does not have outer attributes, so we only capture tokens
    when parsing a `macro_rules!` matcher
    Aaron1011 committed Sep 10, 2020
    Configuration menu
    Copy the full SHA
    3815e91 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    55082ce View commit details
    Browse the repository at this point in the history
  6. Attach TokenStream to ast::Visibility

    A `Visibility` does not have outer attributes, so we only capture tokens
    when parsing a `macro_rules!` matcher
    Aaron1011 committed Sep 10, 2020
    Configuration menu
    Copy the full SHA
    c101116 View commit details
    Browse the repository at this point in the history
  7. Attach tokens to ast::Stmt

    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.
    Aaron1011 committed Sep 10, 2020
    Configuration menu
    Copy the full SHA
    156ef2b View commit details
    Browse the repository at this point in the history
  8. 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
    Aaron1011 committed Sep 10, 2020
    Configuration menu
    Copy the full SHA
    fec0479 View commit details
    Browse the repository at this point in the history