Struct rustc::hir::intravisit::IdVisitor [] [src]

pub struct IdVisitor<'a, O: 'a> {
    // some fields omitted
}
Unstable (rustc_private)

Methods

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

fn new(operation: &'a mut O) -> IdVisitor<'a, O>

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)

Visit the top-level item and (optionally) nested items. See visit_nested_item for details. Read more

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, _: Name, _: &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_nested_item(&mut self, id: ItemId)

Invoked when a nested item is encountered. By default, does nothing. If you want a deep walk, you need to override to fetch the item contents. But most of the time, it is easier (and better) to invoke Crate::visit_all_items, which visits all items in the crate in some order (but doesn't respect nesting). Read more

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

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_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)

fn visit_vis(&mut self, vis: &'v Visibility)