- Wraps a call to
noop_flat_map_*for an AST node that supports attributes (see the
Annotatableenum) This method assigns a
NodeId, and sets that
NodeIdas our current ‘lint node id’. If a macro call is found inside this AST node, we will use this AST node’s
NodeIdto emit lints associated with that macro (allowing
#[deny]to be applied close to the macro invocation).
- This struct is a hack to workaround unstable of
stmt_expr_attributes. It can be removed once that feature is stabilized.
- 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.
- A trait implemented for all
AstFragmentnodes and providing all pieces of functionality used by