Module rustc_expand::expand
source ยท Macrosยง
- assign_id ๐Wraps a call to
walk_*/walk_flat_map_*for an AST node that supports attributes (see theAnnotatableenum) This method assigns aNodeId, and sets thatNodeIdas our current โlint node idโ. If a macro call is found inside this AST node, we will use this AST nodeโsNodeIdto emit lints associated with that macro (allowing#[allow]/#[deny]to be applied close to the macro invocation). - ast_fragments ๐
Structsยง
- ImplItemTag ๐
- InvocationCollector ๐
- MethodReceiverTag ๐This struct is a hack to workaround unstable of
stmt_expr_attributes. It can be removed once that feature is stabilized. - OptExprTag ๐
- TraitItemTag ๐
Enumsยง
- AddSemicolon ๐
- A fragment of AST that can be produced by a single macro expansion. Can also serve as an input and intermediate result for macro expansion operations.
- โDiscriminantโ of an AST fragment.
Traitsยง
- A trait implemented for all
AstFragmentnodes and providing all pieces of functionality used byInvocationCollector.