Skip to main content

Module parser

Module parser 

Source
Expand description

Parsing of attribute arguments.

Depending on the attribute parser, an ArgParser can be used to parse the arguments given to an attribute. See its documentation for more information.

This is in essence an (improved) duplicate of rustc_ast/attr/mod.rs. That module is intended to be deleted in its entirety.

FIXME(jdonszelmann): delete rustc_ast/attr/mod.rs

Structs§

MetaItemListParser
MetaItemListParserContext 🔒
MetaItemParser
Utility that deconstructs a MetaItem into usable parts.
NameValueParser
PathParser

Enums§

AllowExprMetavar
Whether expansions of expr metavariables from decrarative macros are permitted. Used when parsing meta items; currently, only cfg predicates enable this option
ArgParser
Used for parsing attribute arguments.
MetaItemOrLitParser
Inside lists, values could be either literals, or more deeply nested meta items. This enum represents that.

Functions§

expr_to_lit 🔒

Type Aliases§

OwnedPathParser
RefPathParser