Trait swc_core::ecma::visit::VisitAllWith
pub trait VisitAllWith<V>{
// Required methods
fn visit_all_with(&self, v: &mut V);
fn visit_all_children_with(&self, v: &mut V);
}
Available on crate features
__ecma
and __visit
only.Expand description
A utility trait implemented for ast nodes, and allow to visit them with a visitor.
Required Methods§
fn visit_all_with(&self, v: &mut V)
fn visit_all_with(&self, v: &mut V)
Calls a visitor method (v.visit_xxx) with self.
fn 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§
§impl<V> VisitAllWith<V> for Option<Accessibility>
impl<V> VisitAllWith<V> for Option<Accessibility>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Option<JSXAttrValue>
impl<V> VisitAllWith<V> for Option<JSXAttrValue>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Option<ModuleExportName>
impl<V> VisitAllWith<V> for Option<ModuleExportName>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Option<Pat>
impl<V> VisitAllWith<V> for Option<Pat>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Option<TruePlusMinus>
impl<V> VisitAllWith<V> for Option<TruePlusMinus>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Option<TsEntityName>
impl<V> VisitAllWith<V> for Option<TsEntityName>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Option<TsNamespaceBody>
impl<V> VisitAllWith<V> for Option<TsNamespaceBody>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Option<VarDeclOrExpr>
impl<V> VisitAllWith<V> for Option<VarDeclOrExpr>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Option<Atom>
impl<V> VisitAllWith<V> for Option<Atom>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Option<Span>
impl<V> VisitAllWith<V> for Option<Span>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Option<BlockStmt>
impl<V> VisitAllWith<V> for Option<BlockStmt>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Option<CatchClause>
impl<V> VisitAllWith<V> for Option<CatchClause>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Option<ExprOrSpread>
impl<V> VisitAllWith<V> for Option<ExprOrSpread>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Option<Ident>
impl<V> VisitAllWith<V> for Option<Ident>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Option<JSXClosingElement>
impl<V> VisitAllWith<V> for Option<JSXClosingElement>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Option<Box<Expr>>
impl<V> VisitAllWith<V> for Option<Box<Expr>>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Option<Box<Stmt>>
impl<V> VisitAllWith<V> for Option<Box<Stmt>>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Option<Box<TsType>>
impl<V> VisitAllWith<V> for Option<Box<TsType>>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Option<Box<ObjectLit>>
impl<V> VisitAllWith<V> for Option<Box<ObjectLit>>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Option<Box<Str>>
impl<V> VisitAllWith<V> for Option<Box<Str>>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Option<Box<TsTypeAnn>>
impl<V> VisitAllWith<V> for Option<Box<TsTypeAnn>>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Option<Box<TsTypeParamDecl>>
impl<V> VisitAllWith<V> for Option<Box<TsTypeParamDecl>>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Option<Box<TsTypeParamInstantiation>>
impl<V> VisitAllWith<V> for Option<Box<TsTypeParamInstantiation>>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Option<Vec<ModuleItem>>
impl<V> VisitAllWith<V> for Option<Vec<ModuleItem>>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Option<Vec<ExprOrSpread>>
impl<V> VisitAllWith<V> for Option<Vec<ExprOrSpread>>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Vec<ClassMember>
impl<V> VisitAllWith<V> for Vec<ClassMember>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Vec<ExportSpecifier>
impl<V> VisitAllWith<V> for Vec<ExportSpecifier>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Vec<ImportSpecifier>
impl<V> VisitAllWith<V> for Vec<ImportSpecifier>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Vec<JSXAttrOrSpread>
impl<V> VisitAllWith<V> for Vec<JSXAttrOrSpread>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Vec<JSXElementChild>
impl<V> VisitAllWith<V> for Vec<JSXElementChild>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Vec<ModuleItem>
impl<V> VisitAllWith<V> for Vec<ModuleItem>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Vec<ObjectPatProp>
impl<V> VisitAllWith<V> for Vec<ObjectPatProp>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Vec<ParamOrTsParamProp>
impl<V> VisitAllWith<V> for Vec<ParamOrTsParamProp>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Vec<Pat>
impl<V> VisitAllWith<V> for Vec<Pat>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Vec<PropOrSpread>
impl<V> VisitAllWith<V> for Vec<PropOrSpread>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Vec<Stmt>
impl<V> VisitAllWith<V> for Vec<Stmt>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Vec<TsFnParam>
impl<V> VisitAllWith<V> for Vec<TsFnParam>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Vec<TsTypeElement>
impl<V> VisitAllWith<V> for Vec<TsTypeElement>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Vec<Option<Pat>>
impl<V> VisitAllWith<V> for Vec<Option<Pat>>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Vec<Option<ExprOrSpread>>
impl<V> VisitAllWith<V> for Vec<Option<ExprOrSpread>>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Vec<Decorator>
impl<V> VisitAllWith<V> for Vec<Decorator>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Vec<ExprOrSpread>
impl<V> VisitAllWith<V> for Vec<ExprOrSpread>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Vec<Param>
impl<V> VisitAllWith<V> for Vec<Param>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Vec<SwitchCase>
impl<V> VisitAllWith<V> for Vec<SwitchCase>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Vec<TplElement>
impl<V> VisitAllWith<V> for Vec<TplElement>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Vec<TsEnumMember>
impl<V> VisitAllWith<V> for Vec<TsEnumMember>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Vec<TsExprWithTypeArgs>
impl<V> VisitAllWith<V> for Vec<TsExprWithTypeArgs>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Vec<TsTupleElement>
impl<V> VisitAllWith<V> for Vec<TsTupleElement>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Vec<TsTypeParam>
impl<V> VisitAllWith<V> for Vec<TsTypeParam>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Vec<VarDeclarator>
impl<V> VisitAllWith<V> for Vec<VarDeclarator>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Vec<Box<Expr>>
impl<V> VisitAllWith<V> for Vec<Box<Expr>>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for Vec<Box<TsType>>
impl<V> VisitAllWith<V> for Vec<Box<TsType>>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V> VisitAllWith<V> for BigInt
impl<V> VisitAllWith<V> for BigInt
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
§impl<V, T> VisitAllWith<V> for Box<T>
impl<V, T> VisitAllWith<V> for Box<T>
§fn visit_all_children_with(&self, v: &mut V)
fn visit_all_children_with(&self, v: &mut V)
Visit children nodes of self with v