Trait rustc_ap_rustc_ast::ast_like::AstLike [−][src]
An AstLike
represents an AST node (or some wrapper around
and AST node) which stores some combination of attributes
and tokens.
Required methods
fn attrs(&self) -> &[Attribute]
[src]
fn visit_attrs(&mut self, f: impl FnOnce(&mut Vec<Attribute>))
[src]
Provided methods
fn finalize_tokens(&mut self, _tokens: LazyTokenStream)
[src]
Called by Parser::collect_tokens
to store the collected
tokens inside an AST node