rustc_parse::parser - Rust (original) (raw)

rustc_parse

Module parser

Source

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§

attr

attr_wrapper 🔒

diagnostics 🔒

expr 🔒

generics 🔒

item 🔒

nonterminal 🔒

pat 🔒

path 🔒

stmt 🔒

token_type

ty 🔒

Structs§

CaptureState 🔒

ClosureSpans 🔒

Stores span information about a closure.

Parser

Restrictions 🔒

Restrictions applied while parsing.

SeqSep 🔒

A sequence separator.

Enums§

AttemptLocalParseRecovery

BlockMode 🔒

Capturing 🔒

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.

CommaRecoveryMode

Whether or not to recover a a, b when parsing patterns as (a, b) or that and a | b.

FollowedByType

ForceCollect

Whether or not we should force collection of tokens for an AST node, regardless of whether or not it has attributes

ParseNtResult

RecoverColon

Whether or not to recover a : when parsing patterns that were meant to be paths.

RecoverComma

Whether or not to recover a , when parsing or-patterns.

Recovery

SemiColonMode 🔒

TokenDescription 🔒

Trailing 🔒

Functions§

token_descr