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 TaggedTpl
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TaggedTpl
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 TsEnumDecl
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsEnumDecl
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 BlockStmtOrExpr
impl<V: ?Sized + VisitAll> VisitAllWith<V> for BlockStmtOrExpr
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 TsTypeOperatorOp
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsTypeOperatorOp
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 AssignOp
impl<V: ?Sized + VisitAll> VisitAllWith<V> for AssignOp
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<ParamOrTsParamProp>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<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 FnDecl
impl<V: ?Sized + VisitAll> VisitAllWith<V> for FnDecl
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 TsIntersectionType
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsIntersectionType
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 Constructor
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Constructor
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 ThisExpr
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ThisExpr
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 Atom
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Atom
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 TsLit
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsLit
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 TsTplLitType
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsTplLitType
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 ClassProp
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ClassProp
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 ComputedPropName
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ComputedPropName
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 JSXClosingFragment
impl<V: ?Sized + VisitAll> VisitAllWith<V> for JSXClosingFragment
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 GetterProp
impl<V: ?Sized + VisitAll> VisitAllWith<V> for GetterProp
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 TsOptionalType
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsOptionalType
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 SetterProp
impl<V: ?Sized + VisitAll> VisitAllWith<V> for SetterProp
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<ImportSpecifier>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<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 TsKeywordType
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsKeywordType
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 ArrayLit
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ArrayLit
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 TsImportType
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsImportType
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 Vec<Stmt>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<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 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 Bool
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Bool
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 TsThisType
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsThisType
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 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 Vec<Decorator>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<Decorator>
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 Module
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Module
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 BigIntValue
impl<V: ?Sized + VisitAll> VisitAllWith<V> for BigIntValue
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<ClassMember>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<ClassMember>
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 ExportDecl
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ExportDecl
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 DoWhileStmt
impl<V: ?Sized + VisitAll> VisitAllWith<V> for DoWhileStmt
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 TsLitType
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsLitType
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 VarDeclOrExpr
impl<V: ?Sized + VisitAll> VisitAllWith<V> for 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 ClassDecl
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ClassDecl
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 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 TsQualifiedName
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsQualifiedName
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 TsTupleElement
impl<V: ?Sized + VisitAll> VisitAllWith<V> for 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 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 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<ModuleExportName>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<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 JSXAttrValue
impl<V: ?Sized + VisitAll> VisitAllWith<V> for JSXAttrValue
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 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 MethodKind
impl<V: ?Sized + VisitAll> VisitAllWith<V> for MethodKind
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 ForOfStmt
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ForOfStmt
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 ContinueStmt
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ContinueStmt
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 ObjectPatProp
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ObjectPatProp
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 TsParamProp
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsParamProp
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 TsCallSignatureDecl
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsCallSignatureDecl
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 Option<Box<TsTypeParamDecl>>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<Box<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 TsTypePredicate
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsTypePredicate
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 ClassMethod
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ClassMethod
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, 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