rustc_parse::parser - Rust (original) (raw)
Module parser
Re-exports§
pub use token_type::[ExpKeywordPair](token%5Ftype/struct.ExpKeywordPair.html "struct rustc_parse::parser::token_type::ExpKeywordPair");
pub use token_type::[ExpTokenPair](token%5Ftype/struct.ExpTokenPair.html "struct rustc_parse::parser::token_type::ExpTokenPair");
pub use token_type::[TokenType](token%5Ftype/enum.TokenType.html "enum rustc_parse::parser::token_type::TokenType");
Modules§
expr 🔒
generics 🔒
item 🔒
pat 🔒
path 🔒
stmt 🔒
ty 🔒
Structs§
Stores span information about a closure.
Restrictions applied while parsing.
SeqSep 🔒
A sequence separator.
Enums§
Controls how we capture tokens. Capturing can be expensive, so we try to avoid performing capturing in cases where we will never need an AttrTokenStream
.
Whether or not to recover a a, b
when parsing patterns as (a, b)
or that and a | b
.
Whether or not we should force collection of tokens for an AST node, regardless of whether or not it has attributes
Whether or not to recover a :
when parsing patterns that were meant to be paths.
Whether or not to recover a ,
when parsing or-patterns.
Trailing 🔒