Trait swc_ecma_visit::VisitWith
source · pub trait VisitWith<V: ?Sized + Visit> {
// Required methods
fn visit_with(&self, v: &mut V);
fn visit_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_with(&self, v: &mut V)
fn visit_with(&self, v: &mut V)
Calls a visitor method (v.visit_xxx) with self.
sourcefn visit_children_with(&self, v: &mut V)
fn visit_children_with(&self, v: &mut V)
Visit children nodes of self with v
Implementations on Foreign Types§
source§impl<V: ?Sized + Visit> VisitWith<V> for [TsEnumMember]
impl<V: ?Sized + Visit> VisitWith<V> for [TsEnumMember]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for IfStmt
impl<V: ?Sized + Visit> VisitWith<V> for IfStmt
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for ClassMethod
impl<V: ?Sized + Visit> VisitWith<V> for ClassMethod
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for [ParamOrTsParamProp]
impl<V: ?Sized + Visit> VisitWith<V> for [ParamOrTsParamProp]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Prop
impl<V: ?Sized + Visit> VisitWith<V> for Prop
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for UnaryOp
impl<V: ?Sized + Visit> VisitWith<V> for UnaryOp
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for ThrowStmt
impl<V: ?Sized + Visit> VisitWith<V> for ThrowStmt
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for [Box<TsType>]
impl<V: ?Sized + Visit> VisitWith<V> for [Box<TsType>]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Option<JSXAttrValue>
impl<V: ?Sized + Visit> VisitWith<V> for Option<JSXAttrValue>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Vec<TsTypeParam>
impl<V: ?Sized + Visit> VisitWith<V> for Vec<TsTypeParam>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Vec<Box<Expr>>
impl<V: ?Sized + Visit> VisitWith<V> for Vec<Box<Expr>>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Vec<Option<ExprOrSpread>>
impl<V: ?Sized + Visit> VisitWith<V> for Vec<Option<ExprOrSpread>>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for UpdateOp
impl<V: ?Sized + Visit> VisitWith<V> for UpdateOp
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for TsNamespaceExportDecl
impl<V: ?Sized + Visit> VisitWith<V> for TsNamespaceExportDecl
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for BinaryOp
impl<V: ?Sized + Visit> VisitWith<V> for BinaryOp
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for PrivateProp
impl<V: ?Sized + Visit> VisitWith<V> for PrivateProp
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for TsInferType
impl<V: ?Sized + Visit> VisitWith<V> for TsInferType
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Option<ExprOrSpread>
impl<V: ?Sized + Visit> VisitWith<V> for Option<ExprOrSpread>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Option<Box<Str>>
impl<V: ?Sized + Visit> VisitWith<V> for Option<Box<Str>>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for DoWhileStmt
impl<V: ?Sized + Visit> VisitWith<V> for DoWhileStmt
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Vec<ImportSpecifier>
impl<V: ?Sized + Visit> VisitWith<V> for Vec<ImportSpecifier>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for TsTplLitType
impl<V: ?Sized + Visit> VisitWith<V> for TsTplLitType
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for TsRestType
impl<V: ?Sized + Visit> VisitWith<V> for TsRestType
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for EmptyStmt
impl<V: ?Sized + Visit> VisitWith<V> for EmptyStmt
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for UnaryExpr
impl<V: ?Sized + Visit> VisitWith<V> for UnaryExpr
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for [SwitchCase]
impl<V: ?Sized + Visit> VisitWith<V> for [SwitchCase]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for TsCallSignatureDecl
impl<V: ?Sized + Visit> VisitWith<V> for TsCallSignatureDecl
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for JSXAttr
impl<V: ?Sized + Visit> VisitWith<V> for JSXAttr
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Vec<Decorator>
impl<V: ?Sized + Visit> VisitWith<V> for Vec<Decorator>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for AssignProp
impl<V: ?Sized + Visit> VisitWith<V> for AssignProp
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for OptCall
impl<V: ?Sized + Visit> VisitWith<V> for OptCall
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for [TplElement]
impl<V: ?Sized + Visit> VisitWith<V> for [TplElement]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for ImportSpecifier
impl<V: ?Sized + Visit> VisitWith<V> for ImportSpecifier
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Pat
impl<V: ?Sized + Visit> VisitWith<V> for Pat
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for TsModuleRef
impl<V: ?Sized + Visit> VisitWith<V> for TsModuleRef
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for TsInterfaceDecl
impl<V: ?Sized + Visit> VisitWith<V> for TsInterfaceDecl
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for BigInt
impl<V: ?Sized + Visit> VisitWith<V> for BigInt
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for BindingIdent
impl<V: ?Sized + Visit> VisitWith<V> for BindingIdent
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for JSXAttrName
impl<V: ?Sized + Visit> VisitWith<V> for JSXAttrName
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for ExportNamespaceSpecifier
impl<V: ?Sized + Visit> VisitWith<V> for ExportNamespaceSpecifier
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for ExportNamedSpecifier
impl<V: ?Sized + Visit> VisitWith<V> for ExportNamedSpecifier
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for TsSetterSignature
impl<V: ?Sized + Visit> VisitWith<V> for TsSetterSignature
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for ExportSpecifier
impl<V: ?Sized + Visit> VisitWith<V> for ExportSpecifier
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for MetaPropExpr
impl<V: ?Sized + Visit> VisitWith<V> for MetaPropExpr
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for TsTypeQuery
impl<V: ?Sized + Visit> VisitWith<V> for TsTypeQuery
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for TsFnOrConstructorType
impl<V: ?Sized + Visit> VisitWith<V> for TsFnOrConstructorType
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Decorator
impl<V: ?Sized + Visit> VisitWith<V> for Decorator
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for ExportDefaultDecl
impl<V: ?Sized + Visit> VisitWith<V> for ExportDefaultDecl
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for TsPropertySignature
impl<V: ?Sized + Visit> VisitWith<V> for TsPropertySignature
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for Import
impl<V: ?Sized + Visit> VisitWith<V> for Import
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V: ?Sized + Visit> VisitWith<V> for JSXAttrValue
impl<V: ?Sized + Visit> VisitWith<V> for JSXAttrValue
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
source§impl<V, T> VisitWith<V> for Box<T>where
V: ?Sized + Visit,
T: 'static + VisitWith<V>,
impl<V, T> VisitWith<V> for Box<T>where V: ?Sized + Visit, T: 'static + VisitWith<V>,
source§fn visit_children_with(&self, v: &mut V)
fn visit_children_with(&self, v: &mut V)
Visit children nodes of self with v