Struct syntex_syntax::ast_util::IdVisitor [] [src]

pub struct IdVisitor<'a, O: 'a> {
    pub operation: &'a mut O,
    pub visited_outermost: bool,
}

A visitor that applies its operation to all of the node IDs in a visitable thing.

Fields

operation
visited_outermost

Trait Implementations

impl<'a, 'v, O: IdVisitingOperation> Visitor<'v> for IdVisitor<'a, O>
[src]

fn visit_mod(&mut self, module: &Mod, _: Span, node_id: NodeId)

fn visit_foreign_item(&mut self, foreign_item: &ForeignItem)

fn visit_item(&mut self, item: &Item)

fn visit_local(&mut self, local: &Local)

fn visit_block(&mut self, block: &Block)

fn visit_stmt(&mut self, statement: &Stmt)

fn visit_pat(&mut self, pattern: &Pat)

fn visit_expr(&mut self, expression: &Expr)

fn visit_ty(&mut self, typ: &Ty)

fn visit_generics(&mut self, generics: &Generics)

fn visit_fn(&mut self, function_kind: FnKind<'v>, function_declaration: &'v FnDecl, block: &'v Block, span: Span, node_id: NodeId)

fn visit_struct_field(&mut self, struct_field: &StructField)

fn visit_variant_data(&mut self, struct_def: &VariantData, _: Ident, _: &Generics, _: NodeId, _: Span)

fn visit_trait_item(&mut self, ti: &TraitItem)

fn visit_impl_item(&mut self, ii: &ImplItem)

fn visit_lifetime(&mut self, lifetime: &Lifetime)

fn visit_lifetime_def(&mut self, def: &LifetimeDef)

fn visit_trait_ref(&mut self, trait_ref: &TraitRef)

fn visit_name(&mut self, _span: Span, _name: Name)

fn visit_ident(&mut self, span: Span, ident: Ident)

fn visit_arm(&mut self, a: &'v Arm)

fn visit_decl(&mut self, d: &'v Decl)

fn visit_expr_post(&mut self, _ex: &'v Expr)

fn visit_ty_param_bound(&mut self, bounds: &'v TyParamBound)

fn visit_poly_trait_ref(&mut self, t: &'v PolyTraitRef, m: &'v TraitBoundModifier)

fn visit_enum_def(&mut self, enum_definition: &'v EnumDef, generics: &'v Generics, item_id: NodeId, _: Span)

fn visit_variant(&mut self, v: &'v Variant, g: &'v Generics, item_id: NodeId)

fn visit_explicit_self(&mut self, es: &'v ExplicitSelf)

fn visit_mac(&mut self, _mac: &'v Mac)

fn visit_path(&mut self, path: &'v Path, _id: NodeId)

fn visit_path_list_item(&mut self, prefix: &'v Path, item: &'v PathListItem)

fn visit_path_segment(&mut self, path_span: Span, path_segment: &'v PathSegment)

fn visit_path_parameters(&mut self, path_span: Span, path_parameters: &'v PathParameters)

fn visit_assoc_type_binding(&mut self, type_binding: &'v TypeBinding)

fn visit_attribute(&mut self, _attr: &'v Attribute)

fn visit_macro_def(&mut self, macro_def: &'v MacroDef)