Module parser

Module parser 

Source
Expand description

Despite this entire module called attribute parsing and the term being a little overloaded, in this module the code lives that actually breaks up tokenstreams into semantic pieces of attributes, like lists or name-value pairs. 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§

ArgParser
MetaItemOrLitParser
Inside lists, values could be either literals, or more deeply nested meta items. This enum represents that.

Functions§

expr_to_lit 🔒