Trait swc_ecma_visit::VisitAllWith
source · pub trait VisitAllWith<V: ?Sized + VisitAll> {
// Required methods
fn visit_all_with(&self, v: &mut V);
fn visit_all_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§
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§
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for OptChainBase
impl<V: ?Sized + VisitAll> VisitAllWith<V> for OptChainBase
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for BinaryOp
impl<V: ?Sized + VisitAll> VisitAllWith<V> for BinaryOp
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsConstructSignatureDecl
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsConstructSignatureDecl
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsMethodSignature
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsMethodSignature
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for OptCall
impl<V: ?Sized + VisitAll> VisitAllWith<V> for OptCall
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for ExprStmt
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ExprStmt
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for EmptyStmt
impl<V: ?Sized + VisitAll> VisitAllWith<V> for EmptyStmt
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for ReservedUnused
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ReservedUnused
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for DebuggerStmt
impl<V: ?Sized + VisitAll> VisitAllWith<V> for DebuggerStmt
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Class
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Class
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsTypeParamInstantiation
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsTypeParamInstantiation
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for OptChainExpr
impl<V: ?Sized + VisitAll> VisitAllWith<V> for OptChainExpr
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for SpreadElement
impl<V: ?Sized + VisitAll> VisitAllWith<V> for SpreadElement
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for ModuleExportName
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ModuleExportName
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<VarDeclOrExpr>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<VarDeclOrExpr>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsUnionOrIntersectionType
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsUnionOrIntersectionType
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for ModuleItem
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ModuleItem
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for PropOrSpread
impl<V: ?Sized + VisitAll> VisitAllWith<V> for PropOrSpread
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsFnOrConstructorType
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsFnOrConstructorType
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<ExprOrSpread>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<ExprOrSpread>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<Option<ExprOrSpread>>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<Option<ExprOrSpread>>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for ClassExpr
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ClassExpr
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Accessibility
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Accessibility
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for VarDeclOrPat
impl<V: ?Sized + VisitAll> VisitAllWith<V> for VarDeclOrPat
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsParenthesizedType
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsParenthesizedType
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for JSXMemberExpr
impl<V: ?Sized + VisitAll> VisitAllWith<V> for JSXMemberExpr
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<TruePlusMinus>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<TruePlusMinus>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for ModuleDecl
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ModuleDecl
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsTypeAliasDecl
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsTypeAliasDecl
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsConstAssertion
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsConstAssertion
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Number
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Number
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for ImportSpecifier
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ImportSpecifier
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for AwaitExpr
impl<V: ?Sized + VisitAll> VisitAllWith<V> for AwaitExpr
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for WhileStmt
impl<V: ?Sized + VisitAll> VisitAllWith<V> for WhileStmt
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<Box<ObjectLit>>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<Box<ObjectLit>>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for ArrayPat
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ArrayPat
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Stmt
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Stmt
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for MemberExpr
impl<V: ?Sized + VisitAll> VisitAllWith<V> for MemberExpr
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsModuleRef
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsModuleRef
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Str
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Str
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for ParamOrTsParamProp
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ParamOrTsParamProp
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsInterfaceBody
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsInterfaceBody
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsInferType
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsInferType
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for StaticBlock
impl<V: ?Sized + VisitAll> VisitAllWith<V> for StaticBlock
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for ExprOrSpread
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ExprOrSpread
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for PrivateMethod
impl<V: ?Sized + VisitAll> VisitAllWith<V> for PrivateMethod
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for ExportDefaultSpecifier
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ExportDefaultSpecifier
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for UnaryOp
impl<V: ?Sized + VisitAll> VisitAllWith<V> for UnaryOp
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsTypeQuery
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsTypeQuery
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsConstructorType
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsConstructorType
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for TplElement
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TplElement
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for CatchClause
impl<V: ?Sized + VisitAll> VisitAllWith<V> for CatchClause
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsTypeAnn
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsTypeAnn
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Null
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Null
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Span
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Span
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<TsTupleElement>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<TsTupleElement>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<BlockStmt>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<BlockStmt>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for CondExpr
impl<V: ?Sized + VisitAll> VisitAllWith<V> for CondExpr
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for JSXFragment
impl<V: ?Sized + VisitAll> VisitAllWith<V> for JSXFragment
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<Box<TsType>>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<Box<TsType>>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsTypeParamDecl
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsTypeParamDecl
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for PropName
impl<V: ?Sized + VisitAll> VisitAllWith<V> for PropName
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for BindingIdent
impl<V: ?Sized + VisitAll> VisitAllWith<V> for BindingIdent
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<VarDeclarator>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<VarDeclarator>
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsExternalModuleRef
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsExternalModuleRef
fn visit_all_with(&self, v: &mut V)
fn visit_all_children_with(&self, _visitor: &mut V)
source§impl<V, T> VisitAllWith<V> for Box<T>where
V: ?Sized + VisitAll,
T: 'static + VisitAllWith<V>,
impl<V, T> VisitAllWith<V> for Box<T>where V: ?Sized + VisitAll, T: 'static + VisitAllWith<V>,
source§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