Module parser

Module parser 

Source

Re-exportsΒ§

pub use token_type::ExpKeywordPair;
pub use token_type::ExpTokenPair;
pub use token_type::TokenType;

ModulesΒ§

asm
attr
attr_wrapper πŸ”’
cfg_select
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
LetChainsPolicy
Whether let chains are allowed on all editions, or it’s edition dependent (allowed only on 2024 and later). In case of edition dependence, specify the currently present edition.
ParseNtResult
PathStyle
Specifies how to parse a path.
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