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 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 Param
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Param
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 Vec<Box<Expr>>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<Box<Expr>>
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 TsKeywordTypeKind
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsKeywordTypeKind
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 Option<JSXClosingElement>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<JSXClosingElement>
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<Vec<ExprOrSpread>>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<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 TsFnParam
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsFnParam
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 ImportStarAsSpecifier
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ImportStarAsSpecifier
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 BinExpr
impl<V: ?Sized + VisitAll> VisitAllWith<V> for BinExpr
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 TsModuleDecl
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsModuleDecl
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 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 TsArrayType
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsArrayType
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 Invalid
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Invalid
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 Option<Span>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<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 JSXAttrOrSpread
impl<V: ?Sized + VisitAll> VisitAllWith<V> for JSXAttrOrSpread
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 ParenExpr
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ParenExpr
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<TsEnumMember>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<TsEnumMember>
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 SwitchCase
impl<V: ?Sized + VisitAll> VisitAllWith<V> for SwitchCase
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 AssignPatProp
impl<V: ?Sized + VisitAll> VisitAllWith<V> for AssignPatProp
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 MethodProp
impl<V: ?Sized + VisitAll> VisitAllWith<V> for MethodProp
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 VarDeclarator
impl<V: ?Sized + VisitAll> VisitAllWith<V> for 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 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 FnExpr
impl<V: ?Sized + VisitAll> VisitAllWith<V> for FnExpr
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 TsParamPropParam
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsParamPropParam
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 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 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 KeyValueProp
impl<V: ?Sized + VisitAll> VisitAllWith<V> for KeyValueProp
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 TsEnumMember
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsEnumMember
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 NamedExport
impl<V: ?Sized + VisitAll> VisitAllWith<V> for NamedExport
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 TsFnType
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsFnType
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 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 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 KeyValuePatProp
impl<V: ?Sized + VisitAll> VisitAllWith<V> for KeyValuePatProp
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 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 SwitchStmt
impl<V: ?Sized + VisitAll> VisitAllWith<V> for SwitchStmt
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<TsFnParam>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<TsFnParam>
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 IfStmt
impl<V: ?Sized + VisitAll> VisitAllWith<V> for IfStmt
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 ExportDefaultExpr
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ExportDefaultExpr
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 ExportSpecifier
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ExportSpecifier
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 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 Vec<PropOrSpread>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<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 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 Vec<TplElement>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<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 Option<Box<TsTypeAnn>>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<Box<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 JSXNamespacedName
impl<V: ?Sized + VisitAll> VisitAllWith<V> for JSXNamespacedName
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 ImportNamedSpecifier
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ImportNamedSpecifier
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 PrivateProp
impl<V: ?Sized + VisitAll> VisitAllWith<V> for PrivateProp
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 TsTypeParam
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsTypeParam
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<JSXElementChild>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<JSXElementChild>
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<Pat>>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<Option<Pat>>
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 RestPat
impl<V: ?Sized + VisitAll> VisitAllWith<V> for RestPat
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 ObjectLit
impl<V: ?Sized + VisitAll> VisitAllWith<V> for 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 SuperProp
impl<V: ?Sized + VisitAll> VisitAllWith<V> for SuperProp
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<TsTypeParam>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<TsTypeParam>
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 AutoAccessor
impl<V: ?Sized + VisitAll> VisitAllWith<V> for AutoAccessor
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 ExportAll
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ExportAll
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 Regex
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Regex
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 MetaPropExpr
impl<V: ?Sized + VisitAll> VisitAllWith<V> for MetaPropExpr
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 JSXAttr
impl<V: ?Sized + VisitAll> VisitAllWith<V> for JSXAttr
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 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 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 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 Decorator
impl<V: ?Sized + VisitAll> VisitAllWith<V> for 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 Option<CatchClause>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<CatchClause>
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