Trait swc_plugin::ast::VisitWith
[−]pub trait VisitWith<V> where
V: Visit + ?Sized, {
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
fn visit_with(&self, v: &mut V)
fn visit_with(&self, v: &mut V)
Calls a visitor method (v.visit_xxx) with self.
fn 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
impl<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)
impl<V> VisitWith<V> for Option<ExprOrSpread> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Option<ExprOrSpread> where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
impl<V> VisitWith<V> for Option<Box<TsType, Global>> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Option<Box<TsType, Global>> where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
impl<V> VisitWith<V> for Option<Pat> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Option<Pat> where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
impl<V> VisitWith<V> for Option<TsNamespaceBody> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Option<TsNamespaceBody> where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
impl<V> VisitWith<V> for Vec<ParamOrTsParamProp, Global> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Vec<ParamOrTsParamProp, Global> where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
impl<V> VisitWith<V> for Vec<SwitchCase, Global> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Vec<SwitchCase, Global> where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
impl<V> VisitWith<V> for Option<Box<Stmt, Global>> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Option<Box<Stmt, Global>> where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
impl<V> VisitWith<V> for Vec<ClassMember, Global> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Vec<ClassMember, Global> where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
impl<V> VisitWith<V> for [TsFnParam] where
V: Visit + ?Sized,
impl<V> VisitWith<V> for [TsFnParam] where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
impl<V> VisitWith<V> for Option<TsEntityName> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Option<TsEntityName> where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
impl<V> VisitWith<V> for Vec<Option<Pat>, Global> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Vec<Option<Pat>, Global> where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
impl<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)
impl<V> VisitWith<V> for [ClassMember] where
V: Visit + ?Sized,
impl<V> VisitWith<V> for [ClassMember] where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
impl<V> VisitWith<V> for [ParamOrTsParamProp] where
V: Visit + ?Sized,
impl<V> VisitWith<V> for [ParamOrTsParamProp] where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
impl<V> VisitWith<V> for Vec<ObjectPatProp, Global> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Vec<ObjectPatProp, Global> where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
impl<V> VisitWith<V> for [ImportSpecifier] where
V: Visit + ?Sized,
impl<V> VisitWith<V> for [ImportSpecifier] where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
impl<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)
impl<V> VisitWith<V> for Option<Span> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Option<Span> where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
impl<V> VisitWith<V> for [TplElement] where
V: Visit + ?Sized,
impl<V> VisitWith<V> for [TplElement] where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
impl<V> VisitWith<V> for Option<Accessibility> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Option<Accessibility> where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
impl<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>,
fn visit_children_with(&self, v: &mut V)
fn visit_children_with(&self, v: &mut V)
Visit children nodes of self with v