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 Vec<TsTypeElement, Global> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Vec<TsTypeElement, 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 [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<ObjectLit> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Option<ObjectLit> 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 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 Option<CatchClause> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Option<CatchClause> where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
impl<V> VisitWith<V> for [SwitchCase] where
V: Visit + ?Sized,
impl<V> VisitWith<V> for [SwitchCase] where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
impl<V> VisitWith<V> for Atom<JsWordStaticSet> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Atom<JsWordStaticSet> 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 Option<TsTypeAnn> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Option<TsTypeAnn> 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<JSXClosingElement> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Option<JSXClosingElement> 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<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> VisitWith<V> for Option<Ident> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Option<Ident> 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<TsTypeParamInstantiation> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Option<TsTypeParamInstantiation> where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
impl<V> VisitWith<V> for [TsTupleElement] where
V: Visit + ?Sized,
impl<V> VisitWith<V> for [TsTupleElement] 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 [ModuleItem] where
V: Visit + ?Sized,
impl<V> VisitWith<V> for [ModuleItem] 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 [TsEnumMember] where
V: Visit + ?Sized,
impl<V> VisitWith<V> for [TsEnumMember] 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<Box<TsType, Global>, Global> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Vec<Box<TsType, Global>, 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<TruePlusMinus> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Option<TruePlusMinus> where
V: Visit + ?Sized,
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
impl<V> VisitWith<V> for BigInt where
V: Visit + ?Sized,
impl<V> VisitWith<V> for BigInt 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<Atom<JsWordStaticSet>> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Option<Atom<JsWordStaticSet>> 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<Expr, Global>> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Option<Box<Expr, 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<Vec<ExprOrSpread, Global>> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Option<Vec<ExprOrSpread, 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 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 Vec<ExprOrSpread, Global> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Vec<ExprOrSpread, 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 [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)
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<ImportSpecifier, Global> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Vec<ImportSpecifier, 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<TsFnParam, Global> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Vec<TsFnParam, 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<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)
impl<V> VisitWith<V> for [Param] where
V: Visit + ?Sized,
impl<V> VisitWith<V> for [Param] 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<ModuleItem, Global> where
V: Visit + ?Sized,
impl<V> VisitWith<V> for Vec<ModuleItem, Global> 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