Module rustc_parse::parser[−][src]

Modules

attr
attr_wrapper
diagnostics
expr
generics
item
nonterminal
pat
path
stmt
ty

Structs

AttrWrapper

A wrapper type to ensure that the parser handles outer attributes correctly. When we parse outer attributes, we need to ensure that we capture tokens for the attribute target. This allows us to perform cfg-expansion on a token stream before we invoke a derive proc-macro.

CaptureState
Parser
Restrictions
SeqSep

A sequence separator.

TokenCursor
TokenCursorFrame

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 a AttrAnnotatedTokenStream

FlatToken

A helper struct used when building a AttrAnnotatedTokenStream from a LazyTokenStream. Both delimiter and non-delimited tokens are stored as FlatToken::Token. A vector of FlatTokens is then ‘parsed’ to build up a AttrAnnotatedTokenStream with nested AttrAnnotatedTokenTree::Delimited tokens

FollowedByType
ForceCollect

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

PathStyle

Specifies how to parse a path.

RecoverComma

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

SemiColonMode
TokenExpectType
TokenType
TrailingToken

Functions

emit_unclosed_delims
make_unclosed_delims_error
token_descr
token_descr_opt

Type Definitions

ReplaceRange

Indicates a range of tokens that should be replaced by the tokens in the provided vector. This is used in two places during token collection: