pub trait VisitWith<V> where
V: Visit + ?Sized, {
fn visit_with(&self, v: &mut V);
fn visit_children_with(&self, v: &mut V);
}
Available on crate feature
visit
only.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> VisitWith<V> for Option<ModuleExportName> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Option<ModuleExportName> where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitWith<V> for [JSXElementChild] where
V: Visit + ?Sized,
impl<V> VisitWith<V> for [JSXElementChild] where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitWith<V> for Option<VarDeclOrExpr> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Option<VarDeclOrExpr> where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitWith<V> for Vec<TsTypeParam, Global> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Vec<TsTypeParam, Global> where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitWith<V> for Vec<Param, Global> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Vec<Param, Global> where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitWith<V> for Vec<TsTupleElement, Global> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Vec<TsTupleElement, Global> where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitWith<V> for Vec<TsExprWithTypeArgs, Global> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Vec<TsExprWithTypeArgs, Global> where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitWith<V> for Vec<Box<Expr, Global>, Global> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Vec<Box<Expr, Global>, Global> where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitWith<V> for [PropOrSpread] where
V: Visit + ?Sized,
impl<V> VisitWith<V> for [PropOrSpread] where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitWith<V> for Vec<Stmt, Global> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Vec<Stmt, Global> where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitWith<V> for [Decorator] where
V: Visit + ?Sized,
impl<V> VisitWith<V> for [Decorator] where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitWith<V> for Option<Vec<ModuleItem, Global>> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Option<Vec<ModuleItem, Global>> where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
sourceimpl<V, T> VisitWith<V> for Box<T, Global> where
V: Visit + ?Sized,
T: 'static + VisitWith<V>,
impl<V, T> VisitWith<V> for Box<T, Global> where
V: Visit + ?Sized,
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