Trait VisitWith
pub trait VisitWith<V>{
// Required methods
fn visit_with(&self, visitor: &mut V);
fn visit_children_with(&self, visitor: &mut V);
}
__ecma
and __visit
only.Expand description
A trait implemented for types that can be visited using a visitor.
Required Methods§
fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls a visitor method (visitor.fold_xxx) with self.
fn visit_children_with(&self, visitor: &mut V)
fn visit_children_with(&self, visitor: &mut V)
Visit children nodes of self`` with
visitor`.
Implementations on Foreign Types§
§impl<V> VisitWith<V> for Option<Accessibility>
impl<V> VisitWith<V> for Option<Accessibility>
§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_opt_accessibility
with self
. (Extra impl)
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, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_opt_jsx_attr_value
with self
. (Extra impl)
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, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_opt_module_export_name
with self
. (Extra impl)
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, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_opt_pat
with self
. (Extra impl)
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, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_opt_true_plus_minus
with self
. (Extra impl)
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, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_opt_ts_entity_name
with self
. (Extra impl)
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, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_opt_ts_namespace_body
with self
. (Extra impl)
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, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_opt_var_decl_or_expr
with self
. (Extra impl)
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, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_opt_atom
with self
. (Extra impl)
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, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_opt_span
with self
. (Extra impl)
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, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_opt_block_stmt
with self
. (Extra impl)
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, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_opt_catch_clause
with self
. (Extra impl)
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, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_opt_expr_or_spread
with self
. (Extra impl)
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, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_opt_ident
with self
. (Extra impl)
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, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_opt_jsx_closing_element
with self
. (Extra impl)
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, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_opt_expr
with self
. (Extra impl)
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, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_opt_stmt
with self
. (Extra impl)
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, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_opt_ts_type
with self
. (Extra impl)
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, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_opt_object_lit
with self
. (Extra impl)
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, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_opt_str
with self
. (Extra impl)
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, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_opt_ts_type_ann
with self
. (Extra impl)
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, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_opt_ts_type_param_decl
with self
. (Extra impl)
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, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_opt_ts_type_param_instantiation
with self
. (Extra impl)
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, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_opt_expr_or_spreads
with self
. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
§impl<V> VisitWith<V> for [ClassMember]
impl<V> VisitWith<V> for [ClassMember]
§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_class_members
with self
. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
§impl<V> VisitWith<V> for [ExportSpecifier]
impl<V> VisitWith<V> for [ExportSpecifier]
§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_export_specifiers
with self
. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
§impl<V> VisitWith<V> for [ImportSpecifier]
impl<V> VisitWith<V> for [ImportSpecifier]
§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_import_specifiers
with self
. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
§impl<V> VisitWith<V> for [JSXAttrOrSpread]
impl<V> VisitWith<V> for [JSXAttrOrSpread]
§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_jsx_attr_or_spreads
with self
. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
§impl<V> VisitWith<V> for [JSXElementChild]
impl<V> VisitWith<V> for [JSXElementChild]
§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_jsx_element_childs
with self
. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
§impl<V> VisitWith<V> for [ModuleItem]
impl<V> VisitWith<V> for [ModuleItem]
§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_module_items
with self
. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
§impl<V> VisitWith<V> for [ObjectPatProp]
impl<V> VisitWith<V> for [ObjectPatProp]
§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_object_pat_props
with self
. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
§impl<V> VisitWith<V> for [ParamOrTsParamProp]
impl<V> VisitWith<V> for [ParamOrTsParamProp]
§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_param_or_ts_param_props
with self
. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
§impl<V> VisitWith<V> for [Pat]
impl<V> VisitWith<V> for [Pat]
§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_pats
with self
. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
§impl<V> VisitWith<V> for [PropOrSpread]
impl<V> VisitWith<V> for [PropOrSpread]
§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_prop_or_spreads
with self
. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
§impl<V> VisitWith<V> for [Stmt]
impl<V> VisitWith<V> for [Stmt]
§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_stmts
with self
. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
§impl<V> VisitWith<V> for [TsFnParam]
impl<V> VisitWith<V> for [TsFnParam]
§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_ts_fn_params
with self
. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
§impl<V> VisitWith<V> for [TsTypeElement]
impl<V> VisitWith<V> for [TsTypeElement]
§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_ts_type_elements
with self
. (Extra impl)
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, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_opt_vec_pats
with self
. (Extra impl)
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, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_opt_vec_expr_or_spreads
with self
. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
§impl<V> VisitWith<V> for [Decorator]
impl<V> VisitWith<V> for [Decorator]
§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_decorators
with self
. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
§impl<V> VisitWith<V> for [ExprOrSpread]
impl<V> VisitWith<V> for [ExprOrSpread]
§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_expr_or_spreads
with self
. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
§impl<V> VisitWith<V> for [ImportWithItem]
impl<V> VisitWith<V> for [ImportWithItem]
§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_import_with_items
with self
. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
§impl<V> VisitWith<V> for [Param]
impl<V> VisitWith<V> for [Param]
§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_params
with self
. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
§impl<V> VisitWith<V> for [SwitchCase]
impl<V> VisitWith<V> for [SwitchCase]
§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_switch_cases
with self
. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
§impl<V> VisitWith<V> for [TplElement]
impl<V> VisitWith<V> for [TplElement]
§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_tpl_elements
with self
. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
§impl<V> VisitWith<V> for [TsEnumMember]
impl<V> VisitWith<V> for [TsEnumMember]
§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_ts_enum_members
with self
. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
§impl<V> VisitWith<V> for [TsExprWithTypeArgs]
impl<V> VisitWith<V> for [TsExprWithTypeArgs]
§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_ts_expr_with_type_argss
with self
. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
§impl<V> VisitWith<V> for [TsTupleElement]
impl<V> VisitWith<V> for [TsTupleElement]
§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_ts_tuple_elements
with self
. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
§impl<V> VisitWith<V> for [TsTypeParam]
impl<V> VisitWith<V> for [TsTypeParam]
§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_ts_type_params
with self
. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
§impl<V> VisitWith<V> for [VarDeclarator]
impl<V> VisitWith<V> for [VarDeclarator]
§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_var_declarators
with self
. (Extra impl)
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, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_exprs
with self
. (Extra impl)
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, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_ts_types
with self
. (Extra impl)