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 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 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 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 TsNamespaceDecl
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsNamespaceDecl
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 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 JSXElementChild
impl<V: ?Sized + VisitAll> VisitAllWith<V> for 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 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 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 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 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: ?Sized + VisitAll> VisitAllWith<V> for TsTypeOperator
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsTypeOperator
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 TsExportAssignment
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsExportAssignment
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 TsMappedType
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsMappedType
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 Script
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Script
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 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 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 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 TsSatisfiesExpr
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsSatisfiesExpr
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 JsWord
impl<V: ?Sized + VisitAll> VisitAllWith<V> for JsWord
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 JSXAttrName
impl<V: ?Sized + VisitAll> VisitAllWith<V> for JSXAttrName
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 Super
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Super
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 TsPropertySignature
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsPropertySignature
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 TsNonNullExpr
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsNonNullExpr
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<Param>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<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 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 Prop
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Prop
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 TsImportEqualsDecl
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsImportEqualsDecl
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 SeqExpr
impl<V: ?Sized + VisitAll> VisitAllWith<V> for SeqExpr
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<ObjectPatProp>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Vec<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 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 UpdateExpr
impl<V: ?Sized + VisitAll> VisitAllWith<V> for UpdateExpr
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 MetaPropKind
impl<V: ?Sized + VisitAll> VisitAllWith<V> for MetaPropKind
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 PrivateName
impl<V: ?Sized + VisitAll> VisitAllWith<V> for PrivateName
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 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 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 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 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 ImportDecl
impl<V: ?Sized + VisitAll> VisitAllWith<V> for ImportDecl
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 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 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 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 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 Option<Box<TsTypeParamInstantiation>>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<Box<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 TsIndexSignature
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TsIndexSignature
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 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 TryStmt
impl<V: ?Sized + VisitAll> VisitAllWith<V> for TryStmt
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 DefaultDecl
impl<V: ?Sized + VisitAll> VisitAllWith<V> for DefaultDecl
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 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 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 Option<Ident>
impl<V: ?Sized + VisitAll> VisitAllWith<V> for Option<Ident>
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 UpdateOp
impl<V: ?Sized + VisitAll> VisitAllWith<V> for UpdateOp
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 BigInt
impl<V: ?Sized + VisitAll> VisitAllWith<V> for BigInt
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 TruePlusMinus
impl<V: ?Sized + VisitAll> VisitAllWith<V> for 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 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 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 AssignExpr
impl<V: ?Sized + VisitAll> VisitAllWith<V> for AssignExpr
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 JSXText
impl<V: ?Sized + VisitAll> VisitAllWith<V> for JSXText
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