Trait gluon_base::ast::MutVisitor [] [src]

pub trait MutVisitor {
    type Ident;
    fn visit_expr(&mut self, e: &mut SpannedExpr<Self::Ident>) { ... }
    fn visit_pattern(&mut self, e: &mut SpannedPattern<Self::Ident>) { ... }
    fn visit_typ(&mut self, _: &mut ArcType<Self::Ident>) { ... }
}

Visitor trait which walks over expressions calling visit_* on all encountered elements. By default the visit_* functions just walk the tree. If they are overriden the user will need to call walk_mut_* to continue traversing the tree.

Associated Types

Provided Methods

Implementors