pub trait VisitWith<V>{
// Required methods
fn visit_with(&self, v: &mut V);
fn visit_children_with(&self, v: &mut V);
}
Available on crate features
__ecma
and __visit
only.Expand description
A utility trait implemented for ast nodes, and allow to visit them with a visitor.
Required Methods§
fn visit_with(&self, v: &mut V)
fn visit_with(&self, v: &mut V)
Calls a visitor method (v.visit_xxx) with self.
fn 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§
§impl<V> VisitWith<V> for Option<Accessibility>
impl<V> VisitWith<V> for Option<Accessibility>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Option<JSXAttrValue>
impl<V> VisitWith<V> for Option<JSXAttrValue>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Option<ModuleExportName>
impl<V> VisitWith<V> for Option<ModuleExportName>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Option<Pat>
impl<V> VisitWith<V> for Option<Pat>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Option<TruePlusMinus>
impl<V> VisitWith<V> for Option<TruePlusMinus>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Option<TsEntityName>
impl<V> VisitWith<V> for Option<TsEntityName>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Option<TsNamespaceBody>
impl<V> VisitWith<V> for Option<TsNamespaceBody>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Option<VarDeclOrExpr>
impl<V> VisitWith<V> for Option<VarDeclOrExpr>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Option<Atom>
impl<V> VisitWith<V> for Option<Atom>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Option<Span>
impl<V> VisitWith<V> for Option<Span>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Option<BlockStmt>
impl<V> VisitWith<V> for Option<BlockStmt>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Option<CatchClause>
impl<V> VisitWith<V> for Option<CatchClause>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Option<ExprOrSpread>
impl<V> VisitWith<V> for Option<ExprOrSpread>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Option<Ident>
impl<V> VisitWith<V> for Option<Ident>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Option<JSXClosingElement>
impl<V> VisitWith<V> for Option<JSXClosingElement>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Option<Box<Expr>>
impl<V> VisitWith<V> for Option<Box<Expr>>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Option<Box<Stmt>>
impl<V> VisitWith<V> for Option<Box<Stmt>>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Option<Box<TsType>>
impl<V> VisitWith<V> for Option<Box<TsType>>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Option<Box<ObjectLit>>
impl<V> VisitWith<V> for Option<Box<ObjectLit>>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Option<Box<Str>>
impl<V> VisitWith<V> for Option<Box<Str>>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Option<Box<TsTypeAnn>>
impl<V> VisitWith<V> for Option<Box<TsTypeAnn>>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Option<Box<TsTypeParamDecl>>
impl<V> VisitWith<V> for Option<Box<TsTypeParamDecl>>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Option<Box<TsTypeParamInstantiation>>
impl<V> VisitWith<V> for Option<Box<TsTypeParamInstantiation>>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Option<Vec<ModuleItem>>
impl<V> VisitWith<V> for Option<Vec<ModuleItem>>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Option<Vec<ExprOrSpread>>
impl<V> VisitWith<V> for Option<Vec<ExprOrSpread>>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Vec<ClassMember>
impl<V> VisitWith<V> for Vec<ClassMember>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Vec<ExportSpecifier>
impl<V> VisitWith<V> for Vec<ExportSpecifier>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Vec<ImportSpecifier>
impl<V> VisitWith<V> for Vec<ImportSpecifier>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Vec<JSXAttrOrSpread>
impl<V> VisitWith<V> for Vec<JSXAttrOrSpread>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Vec<JSXElementChild>
impl<V> VisitWith<V> for Vec<JSXElementChild>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Vec<ModuleItem>
impl<V> VisitWith<V> for Vec<ModuleItem>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Vec<ObjectPatProp>
impl<V> VisitWith<V> for Vec<ObjectPatProp>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Vec<ParamOrTsParamProp>
impl<V> VisitWith<V> for Vec<ParamOrTsParamProp>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Vec<Pat>
impl<V> VisitWith<V> for Vec<Pat>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Vec<PropOrSpread>
impl<V> VisitWith<V> for Vec<PropOrSpread>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Vec<Stmt>
impl<V> VisitWith<V> for Vec<Stmt>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Vec<TsFnParam>
impl<V> VisitWith<V> for Vec<TsFnParam>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Vec<TsTypeElement>
impl<V> VisitWith<V> for Vec<TsTypeElement>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Vec<Option<Pat>>
impl<V> VisitWith<V> for Vec<Option<Pat>>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Vec<Option<ExprOrSpread>>
impl<V> VisitWith<V> for Vec<Option<ExprOrSpread>>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Vec<Decorator>
impl<V> VisitWith<V> for Vec<Decorator>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Vec<ExprOrSpread>
impl<V> VisitWith<V> for Vec<ExprOrSpread>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Vec<Param>
impl<V> VisitWith<V> for Vec<Param>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Vec<SwitchCase>
impl<V> VisitWith<V> for Vec<SwitchCase>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Vec<TplElement>
impl<V> VisitWith<V> for Vec<TplElement>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Vec<TsEnumMember>
impl<V> VisitWith<V> for Vec<TsEnumMember>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Vec<TsExprWithTypeArgs>
impl<V> VisitWith<V> for Vec<TsExprWithTypeArgs>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Vec<TsTupleElement>
impl<V> VisitWith<V> for Vec<TsTupleElement>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Vec<TsTypeParam>
impl<V> VisitWith<V> for Vec<TsTypeParam>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Vec<VarDeclarator>
impl<V> VisitWith<V> for Vec<VarDeclarator>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Vec<Box<Expr>>
impl<V> VisitWith<V> for Vec<Box<Expr>>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for Vec<Box<TsType>>
impl<V> VisitWith<V> for Vec<Box<TsType>>
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for BigInt
impl<V> VisitWith<V> for BigInt
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for [ClassMember]
impl<V> VisitWith<V> for [ClassMember]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for [ExportSpecifier]
impl<V> VisitWith<V> for [ExportSpecifier]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for [ImportSpecifier]
impl<V> VisitWith<V> for [ImportSpecifier]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for [JSXAttrOrSpread]
impl<V> VisitWith<V> for [JSXAttrOrSpread]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for [JSXElementChild]
impl<V> VisitWith<V> for [JSXElementChild]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for [ModuleItem]
impl<V> VisitWith<V> for [ModuleItem]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for [ObjectPatProp]
impl<V> VisitWith<V> for [ObjectPatProp]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for [ParamOrTsParamProp]
impl<V> VisitWith<V> for [ParamOrTsParamProp]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for [Pat]
impl<V> VisitWith<V> for [Pat]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for [PropOrSpread]
impl<V> VisitWith<V> for [PropOrSpread]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for [Stmt]
impl<V> VisitWith<V> for [Stmt]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for [TsFnParam]
impl<V> VisitWith<V> for [TsFnParam]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for [TsTypeElement]
impl<V> VisitWith<V> for [TsTypeElement]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for [Option<Pat>]
impl<V> VisitWith<V> for [Option<Pat>]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for [Option<ExprOrSpread>]
impl<V> VisitWith<V> for [Option<ExprOrSpread>]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for [Decorator]
impl<V> VisitWith<V> for [Decorator]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for [ExprOrSpread]
impl<V> VisitWith<V> for [ExprOrSpread]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for [Param]
impl<V> VisitWith<V> for [Param]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for [SwitchCase]
impl<V> VisitWith<V> for [SwitchCase]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for [TplElement]
impl<V> VisitWith<V> for [TplElement]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for [TsEnumMember]
impl<V> VisitWith<V> for [TsEnumMember]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for [TsExprWithTypeArgs]
impl<V> VisitWith<V> for [TsExprWithTypeArgs]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for [TsTupleElement]
impl<V> VisitWith<V> for [TsTupleElement]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for [TsTypeParam]
impl<V> VisitWith<V> for [TsTypeParam]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for [VarDeclarator]
impl<V> VisitWith<V> for [VarDeclarator]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for [Box<Expr>]
impl<V> VisitWith<V> for [Box<Expr>]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V> VisitWith<V> for [Box<TsType>]
impl<V> VisitWith<V> for [Box<TsType>]
fn visit_with(&self, v: &mut V)
fn visit_children_with(&self, _visitor: &mut V)
§impl<V, T> VisitWith<V> for Box<T>
impl<V, T> VisitWith<V> for Box<T>
§fn visit_children_with(&self, v: &mut V)
fn visit_children_with(&self, v: &mut V)
Visit children nodes of self with v