Trait swc_core::visit::VisitAllWith
source · [−]pub trait VisitAllWith<V> where
V: VisitAll + ?Sized, {
fn visit_all_with(&self, v: &mut V);
fn visit_all_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_all_with(&self, v: &mut V)
fn visit_all_with(&self, v: &mut V)
Calls a visitor method (v.visit_xxx) with self.
sourcefn visit_all_children_with(&self, v: &mut V)
fn visit_all_children_with(&self, v: &mut V)
Visit children nodes of self with v
Implementations on Foreign Types
sourceimpl<V> VisitAllWith<V> for Option<TsTypeAnn> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Option<TsTypeAnn> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Vec<Pat, Global> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Vec<Pat, Global> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Option<CatchClause> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Option<CatchClause> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Option<TsNamespaceBody> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Option<TsNamespaceBody> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Option<Pat> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Option<Pat> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Vec<Box<Expr, Global>, Global> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Vec<Box<Expr, Global>, Global> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Option<ExprOrSpread> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Option<ExprOrSpread> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Vec<ObjectPatProp, Global> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Vec<ObjectPatProp, Global> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Vec<JSXAttrOrSpread, Global> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Vec<JSXAttrOrSpread, Global> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Vec<PropOrSpread, Global> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Vec<PropOrSpread, Global> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Option<JSXClosingElement> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Option<JSXClosingElement> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Option<TsEntityName> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Option<TsEntityName> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Option<Vec<ModuleItem, Global>> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Option<Vec<ModuleItem, Global>> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Vec<ExprOrSpread, Global> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Vec<ExprOrSpread, Global> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Vec<ExportSpecifier, Global> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Vec<ExportSpecifier, Global> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Vec<TplElement, Global> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Vec<TplElement, Global> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Option<Span> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Option<Span> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Option<TsTypeParamInstantiation> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Option<TsTypeParamInstantiation> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Vec<Option<ExprOrSpread>, Global> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Vec<Option<ExprOrSpread>, Global> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Vec<TsTypeParam, Global> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Vec<TsTypeParam, Global> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Vec<SwitchCase, Global> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Vec<SwitchCase, Global> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Option<Box<Expr, Global>> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Option<Box<Expr, Global>> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Option<Accessibility> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Option<Accessibility> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Vec<ImportSpecifier, Global> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Vec<ImportSpecifier, Global> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Vec<Box<TsType, Global>, Global> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Vec<Box<TsType, Global>, Global> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Option<Box<TsType, Global>> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Option<Box<TsType, Global>> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Vec<ClassMember, Global> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Vec<ClassMember, Global> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Vec<TsTypeElement, Global> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Vec<TsTypeElement, Global> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Vec<JSXElementChild, Global> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Vec<JSXElementChild, Global> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Vec<TsExprWithTypeArgs, Global> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Vec<TsExprWithTypeArgs, Global> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Vec<Option<Pat>, Global> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Vec<Option<Pat>, Global> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Option<Ident> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Option<Ident> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Vec<Decorator, Global> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Vec<Decorator, Global> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Option<TsTypeParamDecl> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Option<TsTypeParamDecl> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Option<Vec<ExprOrSpread, Global>> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Option<Vec<ExprOrSpread, Global>> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Option<ObjectLit> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Option<ObjectLit> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Vec<ParamOrTsParamProp, Global> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Vec<ParamOrTsParamProp, Global> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Option<ModuleExportName> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Option<ModuleExportName> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V> VisitAllWith<V> for Option<Atom> where
V: VisitAll + ?Sized,
impl<V> VisitAllWith<V> for Option<Atom> where
V: VisitAll + ?Sized,
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
sourceimpl<V, T> VisitAllWith<V> for Box<T, Global> where
V: VisitAll + ?Sized,
T: 'static + VisitAllWith<V>,
impl<V, T> VisitAllWith<V> for Box<T, Global> where
V: VisitAll + ?Sized,
T: 'static + VisitAllWith<V>,
sourcefn visit_all_children_with(&self, v: &mut V)
fn visit_all_children_with(&self, v: &mut V)
Visit children nodes of self with v