Trait swc_ecma_visit::VisitWith
source · [−]pub trait VisitWith<V: ?Sized + Visit> {
fn visit_with(&self, v: &mut V);
fn visit_children_with(&self, v: &mut V);
}
Expand description
A utility trait implemented for ast nodes, and allow to visit them with a visitor.
Required Methods
sourcefn visit_with(&self, v: &mut V)
fn visit_with(&self, v: &mut V)
Calls a visitor method (v.visit_xxx) with self.
sourcefn visit_children_with(&self, v: &mut V)
fn visit_children_with(&self, v: &mut V)
Visit children nodes of self with v
Implementations on Foreign Types
sourceimpl<V, T> VisitWith<V> for Box<T>where
V: ?Sized + Visit,
T: 'static + VisitWith<V>,
impl<V, T> VisitWith<V> for Box<T>where
V: ?Sized + Visit,
T: 'static + VisitWith<V>,
sourcefn visit_children_with(&self, v: &mut V)
fn visit_children_with(&self, v: &mut V)
Visit children nodes of self with v