Module rustc_parse::parser::attr_wrapper
source ยท Modulesยง
- size_
asserts ๐
Structsยง
- 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.
Functionsยง
- has_
cfg_ ๐or_ cfg_ attr Returnstrueifattrscontains acfgorcfg_attrattribute - Converts a flattened iterator of tokens (including open and close delimiter tokens) into an
AttrTokenStream, creating anAttrTokenTree::Delimitedfor each matching pair of open and close delims. - needs_
tokens ๐Tokens are needed if: