Trait swc_ecma_visit::FoldAstPath
source · pub trait FoldAstPath {
Show 283 methods
fn fold_accessibility(
&mut self,
n: Accessibility,
__ast_path: &mut AstKindPath
) -> Accessibility { ... }
fn fold_array_lit(
&mut self,
n: ArrayLit,
__ast_path: &mut AstKindPath
) -> ArrayLit { ... }
fn fold_array_pat(
&mut self,
n: ArrayPat,
__ast_path: &mut AstKindPath
) -> ArrayPat { ... }
fn fold_arrow_expr(
&mut self,
n: ArrowExpr,
__ast_path: &mut AstKindPath
) -> ArrowExpr { ... }
fn fold_assign_expr(
&mut self,
n: AssignExpr,
__ast_path: &mut AstKindPath
) -> AssignExpr { ... }
fn fold_assign_op(
&mut self,
n: AssignOp,
__ast_path: &mut AstKindPath
) -> AssignOp { ... }
fn fold_assign_pat(
&mut self,
n: AssignPat,
__ast_path: &mut AstKindPath
) -> AssignPat { ... }
fn fold_assign_pat_prop(
&mut self,
n: AssignPatProp,
__ast_path: &mut AstKindPath
) -> AssignPatProp { ... }
fn fold_assign_prop(
&mut self,
n: AssignProp,
__ast_path: &mut AstKindPath
) -> AssignProp { ... }
fn fold_atom(&mut self, n: Atom, __ast_path: &mut AstKindPath) -> Atom { ... }
fn fold_await_expr(
&mut self,
n: AwaitExpr,
__ast_path: &mut AstKindPath
) -> AwaitExpr { ... }
fn fold_big_int(&mut self, n: BigInt, __ast_path: &mut AstKindPath) -> BigInt { ... }
fn fold_big_int_value(
&mut self,
n: BigIntValue,
__ast_path: &mut AstKindPath
) -> BigIntValue { ... }
fn fold_bin_expr(
&mut self,
n: BinExpr,
__ast_path: &mut AstKindPath
) -> BinExpr { ... }
fn fold_binary_op(
&mut self,
n: BinaryOp,
__ast_path: &mut AstKindPath
) -> BinaryOp { ... }
fn fold_binding_ident(
&mut self,
n: BindingIdent,
__ast_path: &mut AstKindPath
) -> BindingIdent { ... }
fn fold_block_stmt(
&mut self,
n: BlockStmt,
__ast_path: &mut AstKindPath
) -> BlockStmt { ... }
fn fold_block_stmt_or_expr(
&mut self,
n: BlockStmtOrExpr,
__ast_path: &mut AstKindPath
) -> BlockStmtOrExpr { ... }
fn fold_bool(&mut self, n: Bool, __ast_path: &mut AstKindPath) -> Bool { ... }
fn fold_break_stmt(
&mut self,
n: BreakStmt,
__ast_path: &mut AstKindPath
) -> BreakStmt { ... }
fn fold_call_expr(
&mut self,
n: CallExpr,
__ast_path: &mut AstKindPath
) -> CallExpr { ... }
fn fold_callee(&mut self, n: Callee, __ast_path: &mut AstKindPath) -> Callee { ... }
fn fold_catch_clause(
&mut self,
n: CatchClause,
__ast_path: &mut AstKindPath
) -> CatchClause { ... }
fn fold_class(&mut self, n: Class, __ast_path: &mut AstKindPath) -> Class { ... }
fn fold_class_decl(
&mut self,
n: ClassDecl,
__ast_path: &mut AstKindPath
) -> ClassDecl { ... }
fn fold_class_expr(
&mut self,
n: ClassExpr,
__ast_path: &mut AstKindPath
) -> ClassExpr { ... }
fn fold_class_member(
&mut self,
n: ClassMember,
__ast_path: &mut AstKindPath
) -> ClassMember { ... }
fn fold_class_members(
&mut self,
n: Vec<ClassMember>,
__ast_path: &mut AstKindPath
) -> Vec<ClassMember> ⓘ { ... }
fn fold_class_method(
&mut self,
n: ClassMethod,
__ast_path: &mut AstKindPath
) -> ClassMethod { ... }
fn fold_class_prop(
&mut self,
n: ClassProp,
__ast_path: &mut AstKindPath
) -> ClassProp { ... }
fn fold_computed_prop_name(
&mut self,
n: ComputedPropName,
__ast_path: &mut AstKindPath
) -> ComputedPropName { ... }
fn fold_cond_expr(
&mut self,
n: CondExpr,
__ast_path: &mut AstKindPath
) -> CondExpr { ... }
fn fold_constructor(
&mut self,
n: Constructor,
__ast_path: &mut AstKindPath
) -> Constructor { ... }
fn fold_continue_stmt(
&mut self,
n: ContinueStmt,
__ast_path: &mut AstKindPath
) -> ContinueStmt { ... }
fn fold_debugger_stmt(
&mut self,
n: DebuggerStmt,
__ast_path: &mut AstKindPath
) -> DebuggerStmt { ... }
fn fold_decl(&mut self, n: Decl, __ast_path: &mut AstKindPath) -> Decl { ... }
fn fold_decorator(
&mut self,
n: Decorator,
__ast_path: &mut AstKindPath
) -> Decorator { ... }
fn fold_decorators(
&mut self,
n: Vec<Decorator>,
__ast_path: &mut AstKindPath
) -> Vec<Decorator> ⓘ { ... }
fn fold_default_decl(
&mut self,
n: DefaultDecl,
__ast_path: &mut AstKindPath
) -> DefaultDecl { ... }
fn fold_do_while_stmt(
&mut self,
n: DoWhileStmt,
__ast_path: &mut AstKindPath
) -> DoWhileStmt { ... }
fn fold_empty_stmt(
&mut self,
n: EmptyStmt,
__ast_path: &mut AstKindPath
) -> EmptyStmt { ... }
fn fold_export_all(
&mut self,
n: ExportAll,
__ast_path: &mut AstKindPath
) -> ExportAll { ... }
fn fold_export_decl(
&mut self,
n: ExportDecl,
__ast_path: &mut AstKindPath
) -> ExportDecl { ... }
fn fold_export_default_decl(
&mut self,
n: ExportDefaultDecl,
__ast_path: &mut AstKindPath
) -> ExportDefaultDecl { ... }
fn fold_export_default_expr(
&mut self,
n: ExportDefaultExpr,
__ast_path: &mut AstKindPath
) -> ExportDefaultExpr { ... }
fn fold_export_default_specifier(
&mut self,
n: ExportDefaultSpecifier,
__ast_path: &mut AstKindPath
) -> ExportDefaultSpecifier { ... }
fn fold_export_named_specifier(
&mut self,
n: ExportNamedSpecifier,
__ast_path: &mut AstKindPath
) -> ExportNamedSpecifier { ... }
fn fold_export_namespace_specifier(
&mut self,
n: ExportNamespaceSpecifier,
__ast_path: &mut AstKindPath
) -> ExportNamespaceSpecifier { ... }
fn fold_export_specifier(
&mut self,
n: ExportSpecifier,
__ast_path: &mut AstKindPath
) -> ExportSpecifier { ... }
fn fold_export_specifiers(
&mut self,
n: Vec<ExportSpecifier>,
__ast_path: &mut AstKindPath
) -> Vec<ExportSpecifier> ⓘ { ... }
fn fold_expr(&mut self, n: Expr, __ast_path: &mut AstKindPath) -> Expr { ... }
fn fold_expr_or_spread(
&mut self,
n: ExprOrSpread,
__ast_path: &mut AstKindPath
) -> ExprOrSpread { ... }
fn fold_expr_or_spreads(
&mut self,
n: Vec<ExprOrSpread>,
__ast_path: &mut AstKindPath
) -> Vec<ExprOrSpread> ⓘ { ... }
fn fold_expr_stmt(
&mut self,
n: ExprStmt,
__ast_path: &mut AstKindPath
) -> ExprStmt { ... }
fn fold_exprs(
&mut self,
n: Vec<Box<Expr>>,
__ast_path: &mut AstKindPath
) -> Vec<Box<Expr>> ⓘ { ... }
fn fold_fn_decl(&mut self, n: FnDecl, __ast_path: &mut AstKindPath) -> FnDecl { ... }
fn fold_fn_expr(&mut self, n: FnExpr, __ast_path: &mut AstKindPath) -> FnExpr { ... }
fn fold_for_in_stmt(
&mut self,
n: ForInStmt,
__ast_path: &mut AstKindPath
) -> ForInStmt { ... }
fn fold_for_of_stmt(
&mut self,
n: ForOfStmt,
__ast_path: &mut AstKindPath
) -> ForOfStmt { ... }
fn fold_for_stmt(
&mut self,
n: ForStmt,
__ast_path: &mut AstKindPath
) -> ForStmt { ... }
fn fold_function(
&mut self,
n: Function,
__ast_path: &mut AstKindPath
) -> Function { ... }
fn fold_getter_prop(
&mut self,
n: GetterProp,
__ast_path: &mut AstKindPath
) -> GetterProp { ... }
fn fold_ident(&mut self, n: Ident, __ast_path: &mut AstKindPath) -> Ident { ... }
fn fold_if_stmt(&mut self, n: IfStmt, __ast_path: &mut AstKindPath) -> IfStmt { ... }
fn fold_import(&mut self, n: Import, __ast_path: &mut AstKindPath) -> Import { ... }
fn fold_import_decl(
&mut self,
n: ImportDecl,
__ast_path: &mut AstKindPath
) -> ImportDecl { ... }
fn fold_import_default_specifier(
&mut self,
n: ImportDefaultSpecifier,
__ast_path: &mut AstKindPath
) -> ImportDefaultSpecifier { ... }
fn fold_import_named_specifier(
&mut self,
n: ImportNamedSpecifier,
__ast_path: &mut AstKindPath
) -> ImportNamedSpecifier { ... }
fn fold_import_specifier(
&mut self,
n: ImportSpecifier,
__ast_path: &mut AstKindPath
) -> ImportSpecifier { ... }
fn fold_import_specifiers(
&mut self,
n: Vec<ImportSpecifier>,
__ast_path: &mut AstKindPath
) -> Vec<ImportSpecifier> ⓘ { ... }
fn fold_import_star_as_specifier(
&mut self,
n: ImportStarAsSpecifier,
__ast_path: &mut AstKindPath
) -> ImportStarAsSpecifier { ... }
fn fold_invalid(
&mut self,
n: Invalid,
__ast_path: &mut AstKindPath
) -> Invalid { ... }
fn fold_js_word(&mut self, n: JsWord, __ast_path: &mut AstKindPath) -> JsWord { ... }
fn fold_jsx_attr(
&mut self,
n: JSXAttr,
__ast_path: &mut AstKindPath
) -> JSXAttr { ... }
fn fold_jsx_attr_name(
&mut self,
n: JSXAttrName,
__ast_path: &mut AstKindPath
) -> JSXAttrName { ... }
fn fold_jsx_attr_or_spread(
&mut self,
n: JSXAttrOrSpread,
__ast_path: &mut AstKindPath
) -> JSXAttrOrSpread { ... }
fn fold_jsx_attr_or_spreads(
&mut self,
n: Vec<JSXAttrOrSpread>,
__ast_path: &mut AstKindPath
) -> Vec<JSXAttrOrSpread> ⓘ { ... }
fn fold_jsx_attr_value(
&mut self,
n: JSXAttrValue,
__ast_path: &mut AstKindPath
) -> JSXAttrValue { ... }
fn fold_jsx_closing_element(
&mut self,
n: JSXClosingElement,
__ast_path: &mut AstKindPath
) -> JSXClosingElement { ... }
fn fold_jsx_closing_fragment(
&mut self,
n: JSXClosingFragment,
__ast_path: &mut AstKindPath
) -> JSXClosingFragment { ... }
fn fold_jsx_element(
&mut self,
n: JSXElement,
__ast_path: &mut AstKindPath
) -> JSXElement { ... }
fn fold_jsx_element_child(
&mut self,
n: JSXElementChild,
__ast_path: &mut AstKindPath
) -> JSXElementChild { ... }
fn fold_jsx_element_children(
&mut self,
n: Vec<JSXElementChild>,
__ast_path: &mut AstKindPath
) -> Vec<JSXElementChild> ⓘ { ... }
fn fold_jsx_element_name(
&mut self,
n: JSXElementName,
__ast_path: &mut AstKindPath
) -> JSXElementName { ... }
fn fold_jsx_empty_expr(
&mut self,
n: JSXEmptyExpr,
__ast_path: &mut AstKindPath
) -> JSXEmptyExpr { ... }
fn fold_jsx_expr(
&mut self,
n: JSXExpr,
__ast_path: &mut AstKindPath
) -> JSXExpr { ... }
fn fold_jsx_expr_container(
&mut self,
n: JSXExprContainer,
__ast_path: &mut AstKindPath
) -> JSXExprContainer { ... }
fn fold_jsx_fragment(
&mut self,
n: JSXFragment,
__ast_path: &mut AstKindPath
) -> JSXFragment { ... }
fn fold_jsx_member_expr(
&mut self,
n: JSXMemberExpr,
__ast_path: &mut AstKindPath
) -> JSXMemberExpr { ... }
fn fold_jsx_namespaced_name(
&mut self,
n: JSXNamespacedName,
__ast_path: &mut AstKindPath
) -> JSXNamespacedName { ... }
fn fold_jsx_object(
&mut self,
n: JSXObject,
__ast_path: &mut AstKindPath
) -> JSXObject { ... }
fn fold_jsx_opening_element(
&mut self,
n: JSXOpeningElement,
__ast_path: &mut AstKindPath
) -> JSXOpeningElement { ... }
fn fold_jsx_opening_fragment(
&mut self,
n: JSXOpeningFragment,
__ast_path: &mut AstKindPath
) -> JSXOpeningFragment { ... }
fn fold_jsx_spread_child(
&mut self,
n: JSXSpreadChild,
__ast_path: &mut AstKindPath
) -> JSXSpreadChild { ... }
fn fold_jsx_text(
&mut self,
n: JSXText,
__ast_path: &mut AstKindPath
) -> JSXText { ... }
fn fold_key_value_pat_prop(
&mut self,
n: KeyValuePatProp,
__ast_path: &mut AstKindPath
) -> KeyValuePatProp { ... }
fn fold_key_value_prop(
&mut self,
n: KeyValueProp,
__ast_path: &mut AstKindPath
) -> KeyValueProp { ... }
fn fold_labeled_stmt(
&mut self,
n: LabeledStmt,
__ast_path: &mut AstKindPath
) -> LabeledStmt { ... }
fn fold_lit(&mut self, n: Lit, __ast_path: &mut AstKindPath) -> Lit { ... }
fn fold_member_expr(
&mut self,
n: MemberExpr,
__ast_path: &mut AstKindPath
) -> MemberExpr { ... }
fn fold_member_prop(
&mut self,
n: MemberProp,
__ast_path: &mut AstKindPath
) -> MemberProp { ... }
fn fold_meta_prop_expr(
&mut self,
n: MetaPropExpr,
__ast_path: &mut AstKindPath
) -> MetaPropExpr { ... }
fn fold_meta_prop_kind(
&mut self,
n: MetaPropKind,
__ast_path: &mut AstKindPath
) -> MetaPropKind { ... }
fn fold_method_kind(
&mut self,
n: MethodKind,
__ast_path: &mut AstKindPath
) -> MethodKind { ... }
fn fold_method_prop(
&mut self,
n: MethodProp,
__ast_path: &mut AstKindPath
) -> MethodProp { ... }
fn fold_module(&mut self, n: Module, __ast_path: &mut AstKindPath) -> Module { ... }
fn fold_module_decl(
&mut self,
n: ModuleDecl,
__ast_path: &mut AstKindPath
) -> ModuleDecl { ... }
fn fold_module_export_name(
&mut self,
n: ModuleExportName,
__ast_path: &mut AstKindPath
) -> ModuleExportName { ... }
fn fold_module_item(
&mut self,
n: ModuleItem,
__ast_path: &mut AstKindPath
) -> ModuleItem { ... }
fn fold_module_items(
&mut self,
n: Vec<ModuleItem>,
__ast_path: &mut AstKindPath
) -> Vec<ModuleItem> ⓘ { ... }
fn fold_named_export(
&mut self,
n: NamedExport,
__ast_path: &mut AstKindPath
) -> NamedExport { ... }
fn fold_new_expr(
&mut self,
n: NewExpr,
__ast_path: &mut AstKindPath
) -> NewExpr { ... }
fn fold_null(&mut self, n: Null, __ast_path: &mut AstKindPath) -> Null { ... }
fn fold_number(&mut self, n: Number, __ast_path: &mut AstKindPath) -> Number { ... }
fn fold_object_lit(
&mut self,
n: ObjectLit,
__ast_path: &mut AstKindPath
) -> ObjectLit { ... }
fn fold_object_pat(
&mut self,
n: ObjectPat,
__ast_path: &mut AstKindPath
) -> ObjectPat { ... }
fn fold_object_pat_prop(
&mut self,
n: ObjectPatProp,
__ast_path: &mut AstKindPath
) -> ObjectPatProp { ... }
fn fold_object_pat_props(
&mut self,
n: Vec<ObjectPatProp>,
__ast_path: &mut AstKindPath
) -> Vec<ObjectPatProp> ⓘ { ... }
fn fold_opt_accessibility(
&mut self,
n: Option<Accessibility>,
__ast_path: &mut AstKindPath
) -> Option<Accessibility> { ... }
fn fold_opt_atom(
&mut self,
n: Option<Atom>,
__ast_path: &mut AstKindPath
) -> Option<Atom> { ... }
fn fold_opt_block_stmt(
&mut self,
n: Option<BlockStmt>,
__ast_path: &mut AstKindPath
) -> Option<BlockStmt> { ... }
fn fold_opt_call(
&mut self,
n: OptCall,
__ast_path: &mut AstKindPath
) -> OptCall { ... }
fn fold_opt_catch_clause(
&mut self,
n: Option<CatchClause>,
__ast_path: &mut AstKindPath
) -> Option<CatchClause> { ... }
fn fold_opt_chain_base(
&mut self,
n: OptChainBase,
__ast_path: &mut AstKindPath
) -> OptChainBase { ... }
fn fold_opt_chain_expr(
&mut self,
n: OptChainExpr,
__ast_path: &mut AstKindPath
) -> OptChainExpr { ... }
fn fold_opt_expr(
&mut self,
n: Option<Box<Expr>>,
__ast_path: &mut AstKindPath
) -> Option<Box<Expr>> { ... }
fn fold_opt_expr_or_spread(
&mut self,
n: Option<ExprOrSpread>,
__ast_path: &mut AstKindPath
) -> Option<ExprOrSpread> { ... }
fn fold_opt_expr_or_spreads(
&mut self,
n: Option<Vec<ExprOrSpread>>,
__ast_path: &mut AstKindPath
) -> Option<Vec<ExprOrSpread>> { ... }
fn fold_opt_ident(
&mut self,
n: Option<Ident>,
__ast_path: &mut AstKindPath
) -> Option<Ident> { ... }
fn fold_opt_jsx_attr_value(
&mut self,
n: Option<JSXAttrValue>,
__ast_path: &mut AstKindPath
) -> Option<JSXAttrValue> { ... }
fn fold_opt_jsx_closing_element(
&mut self,
n: Option<JSXClosingElement>,
__ast_path: &mut AstKindPath
) -> Option<JSXClosingElement> { ... }
fn fold_opt_module_export_name(
&mut self,
n: Option<ModuleExportName>,
__ast_path: &mut AstKindPath
) -> Option<ModuleExportName> { ... }
fn fold_opt_module_items(
&mut self,
n: Option<Vec<ModuleItem>>,
__ast_path: &mut AstKindPath
) -> Option<Vec<ModuleItem>> { ... }
fn fold_opt_object_lit(
&mut self,
n: Option<Box<ObjectLit>>,
__ast_path: &mut AstKindPath
) -> Option<Box<ObjectLit>> { ... }
fn fold_opt_pat(
&mut self,
n: Option<Pat>,
__ast_path: &mut AstKindPath
) -> Option<Pat> { ... }
fn fold_opt_span(
&mut self,
n: Option<Span>,
__ast_path: &mut AstKindPath
) -> Option<Span> { ... }
fn fold_opt_stmt(
&mut self,
n: Option<Box<Stmt>>,
__ast_path: &mut AstKindPath
) -> Option<Box<Stmt>> { ... }
fn fold_opt_str(
&mut self,
n: Option<Box<Str>>,
__ast_path: &mut AstKindPath
) -> Option<Box<Str>> { ... }
fn fold_opt_true_plus_minus(
&mut self,
n: Option<TruePlusMinus>,
__ast_path: &mut AstKindPath
) -> Option<TruePlusMinus> { ... }
fn fold_opt_ts_entity_name(
&mut self,
n: Option<TsEntityName>,
__ast_path: &mut AstKindPath
) -> Option<TsEntityName> { ... }
fn fold_opt_ts_namespace_body(
&mut self,
n: Option<TsNamespaceBody>,
__ast_path: &mut AstKindPath
) -> Option<TsNamespaceBody> { ... }
fn fold_opt_ts_type(
&mut self,
n: Option<Box<TsType>>,
__ast_path: &mut AstKindPath
) -> Option<Box<TsType>> { ... }
fn fold_opt_ts_type_ann(
&mut self,
n: Option<Box<TsTypeAnn>>,
__ast_path: &mut AstKindPath
) -> Option<Box<TsTypeAnn>> { ... }
fn fold_opt_ts_type_param_decl(
&mut self,
n: Option<Box<TsTypeParamDecl>>,
__ast_path: &mut AstKindPath
) -> Option<Box<TsTypeParamDecl>> { ... }
fn fold_opt_ts_type_param_instantiation(
&mut self,
n: Option<Box<TsTypeParamInstantiation>>,
__ast_path: &mut AstKindPath
) -> Option<Box<TsTypeParamInstantiation>> { ... }
fn fold_opt_var_decl_or_expr(
&mut self,
n: Option<VarDeclOrExpr>,
__ast_path: &mut AstKindPath
) -> Option<VarDeclOrExpr> { ... }
fn fold_opt_vec_expr_or_spreads(
&mut self,
n: Vec<Option<ExprOrSpread>>,
__ast_path: &mut AstKindPath
) -> Vec<Option<ExprOrSpread>> ⓘ { ... }
fn fold_opt_vec_pats(
&mut self,
n: Vec<Option<Pat>>,
__ast_path: &mut AstKindPath
) -> Vec<Option<Pat>> ⓘ { ... }
fn fold_param(&mut self, n: Param, __ast_path: &mut AstKindPath) -> Param { ... }
fn fold_param_or_ts_param_prop(
&mut self,
n: ParamOrTsParamProp,
__ast_path: &mut AstKindPath
) -> ParamOrTsParamProp { ... }
fn fold_param_or_ts_param_props(
&mut self,
n: Vec<ParamOrTsParamProp>,
__ast_path: &mut AstKindPath
) -> Vec<ParamOrTsParamProp> ⓘ { ... }
fn fold_params(
&mut self,
n: Vec<Param>,
__ast_path: &mut AstKindPath
) -> Vec<Param> ⓘ { ... }
fn fold_paren_expr(
&mut self,
n: ParenExpr,
__ast_path: &mut AstKindPath
) -> ParenExpr { ... }
fn fold_pat(&mut self, n: Pat, __ast_path: &mut AstKindPath) -> Pat { ... }
fn fold_pat_or_expr(
&mut self,
n: PatOrExpr,
__ast_path: &mut AstKindPath
) -> PatOrExpr { ... }
fn fold_pats(&mut self, n: Vec<Pat>, __ast_path: &mut AstKindPath) -> Vec<Pat> ⓘ { ... }
fn fold_private_method(
&mut self,
n: PrivateMethod,
__ast_path: &mut AstKindPath
) -> PrivateMethod { ... }
fn fold_private_name(
&mut self,
n: PrivateName,
__ast_path: &mut AstKindPath
) -> PrivateName { ... }
fn fold_private_prop(
&mut self,
n: PrivateProp,
__ast_path: &mut AstKindPath
) -> PrivateProp { ... }
fn fold_program(
&mut self,
n: Program,
__ast_path: &mut AstKindPath
) -> Program { ... }
fn fold_prop(&mut self, n: Prop, __ast_path: &mut AstKindPath) -> Prop { ... }
fn fold_prop_name(
&mut self,
n: PropName,
__ast_path: &mut AstKindPath
) -> PropName { ... }
fn fold_prop_or_spread(
&mut self,
n: PropOrSpread,
__ast_path: &mut AstKindPath
) -> PropOrSpread { ... }
fn fold_prop_or_spreads(
&mut self,
n: Vec<PropOrSpread>,
__ast_path: &mut AstKindPath
) -> Vec<PropOrSpread> ⓘ { ... }
fn fold_regex(&mut self, n: Regex, __ast_path: &mut AstKindPath) -> Regex { ... }
fn fold_reserved_unused(
&mut self,
n: ReservedUnused,
__ast_path: &mut AstKindPath
) -> ReservedUnused { ... }
fn fold_rest_pat(
&mut self,
n: RestPat,
__ast_path: &mut AstKindPath
) -> RestPat { ... }
fn fold_return_stmt(
&mut self,
n: ReturnStmt,
__ast_path: &mut AstKindPath
) -> ReturnStmt { ... }
fn fold_script(&mut self, n: Script, __ast_path: &mut AstKindPath) -> Script { ... }
fn fold_seq_expr(
&mut self,
n: SeqExpr,
__ast_path: &mut AstKindPath
) -> SeqExpr { ... }
fn fold_setter_prop(
&mut self,
n: SetterProp,
__ast_path: &mut AstKindPath
) -> SetterProp { ... }
fn fold_span(&mut self, n: Span, __ast_path: &mut AstKindPath) -> Span { ... }
fn fold_spread_element(
&mut self,
n: SpreadElement,
__ast_path: &mut AstKindPath
) -> SpreadElement { ... }
fn fold_static_block(
&mut self,
n: StaticBlock,
__ast_path: &mut AstKindPath
) -> StaticBlock { ... }
fn fold_stmt(&mut self, n: Stmt, __ast_path: &mut AstKindPath) -> Stmt { ... }
fn fold_stmts(
&mut self,
n: Vec<Stmt>,
__ast_path: &mut AstKindPath
) -> Vec<Stmt> ⓘ { ... }
fn fold_str(&mut self, n: Str, __ast_path: &mut AstKindPath) -> Str { ... }
fn fold_super(&mut self, n: Super, __ast_path: &mut AstKindPath) -> Super { ... }
fn fold_super_prop(
&mut self,
n: SuperProp,
__ast_path: &mut AstKindPath
) -> SuperProp { ... }
fn fold_super_prop_expr(
&mut self,
n: SuperPropExpr,
__ast_path: &mut AstKindPath
) -> SuperPropExpr { ... }
fn fold_switch_case(
&mut self,
n: SwitchCase,
__ast_path: &mut AstKindPath
) -> SwitchCase { ... }
fn fold_switch_cases(
&mut self,
n: Vec<SwitchCase>,
__ast_path: &mut AstKindPath
) -> Vec<SwitchCase> ⓘ { ... }
fn fold_switch_stmt(
&mut self,
n: SwitchStmt,
__ast_path: &mut AstKindPath
) -> SwitchStmt { ... }
fn fold_tagged_tpl(
&mut self,
n: TaggedTpl,
__ast_path: &mut AstKindPath
) -> TaggedTpl { ... }
fn fold_this_expr(
&mut self,
n: ThisExpr,
__ast_path: &mut AstKindPath
) -> ThisExpr { ... }
fn fold_throw_stmt(
&mut self,
n: ThrowStmt,
__ast_path: &mut AstKindPath
) -> ThrowStmt { ... }
fn fold_tpl(&mut self, n: Tpl, __ast_path: &mut AstKindPath) -> Tpl { ... }
fn fold_tpl_element(
&mut self,
n: TplElement,
__ast_path: &mut AstKindPath
) -> TplElement { ... }
fn fold_tpl_elements(
&mut self,
n: Vec<TplElement>,
__ast_path: &mut AstKindPath
) -> Vec<TplElement> ⓘ { ... }
fn fold_true_plus_minus(
&mut self,
n: TruePlusMinus,
__ast_path: &mut AstKindPath
) -> TruePlusMinus { ... }
fn fold_try_stmt(
&mut self,
n: TryStmt,
__ast_path: &mut AstKindPath
) -> TryStmt { ... }
fn fold_ts_array_type(
&mut self,
n: TsArrayType,
__ast_path: &mut AstKindPath
) -> TsArrayType { ... }
fn fold_ts_as_expr(
&mut self,
n: TsAsExpr,
__ast_path: &mut AstKindPath
) -> TsAsExpr { ... }
fn fold_ts_call_signature_decl(
&mut self,
n: TsCallSignatureDecl,
__ast_path: &mut AstKindPath
) -> TsCallSignatureDecl { ... }
fn fold_ts_conditional_type(
&mut self,
n: TsConditionalType,
__ast_path: &mut AstKindPath
) -> TsConditionalType { ... }
fn fold_ts_const_assertion(
&mut self,
n: TsConstAssertion,
__ast_path: &mut AstKindPath
) -> TsConstAssertion { ... }
fn fold_ts_construct_signature_decl(
&mut self,
n: TsConstructSignatureDecl,
__ast_path: &mut AstKindPath
) -> TsConstructSignatureDecl { ... }
fn fold_ts_constructor_type(
&mut self,
n: TsConstructorType,
__ast_path: &mut AstKindPath
) -> TsConstructorType { ... }
fn fold_ts_entity_name(
&mut self,
n: TsEntityName,
__ast_path: &mut AstKindPath
) -> TsEntityName { ... }
fn fold_ts_enum_decl(
&mut self,
n: TsEnumDecl,
__ast_path: &mut AstKindPath
) -> TsEnumDecl { ... }
fn fold_ts_enum_member(
&mut self,
n: TsEnumMember,
__ast_path: &mut AstKindPath
) -> TsEnumMember { ... }
fn fold_ts_enum_member_id(
&mut self,
n: TsEnumMemberId,
__ast_path: &mut AstKindPath
) -> TsEnumMemberId { ... }
fn fold_ts_enum_members(
&mut self,
n: Vec<TsEnumMember>,
__ast_path: &mut AstKindPath
) -> Vec<TsEnumMember> ⓘ { ... }
fn fold_ts_export_assignment(
&mut self,
n: TsExportAssignment,
__ast_path: &mut AstKindPath
) -> TsExportAssignment { ... }
fn fold_ts_expr_with_type_args(
&mut self,
n: TsExprWithTypeArgs,
__ast_path: &mut AstKindPath
) -> TsExprWithTypeArgs { ... }
fn fold_ts_expr_with_type_args_vec(
&mut self,
n: Vec<TsExprWithTypeArgs>,
__ast_path: &mut AstKindPath
) -> Vec<TsExprWithTypeArgs> ⓘ { ... }
fn fold_ts_external_module_ref(
&mut self,
n: TsExternalModuleRef,
__ast_path: &mut AstKindPath
) -> TsExternalModuleRef { ... }
fn fold_ts_fn_or_constructor_type(
&mut self,
n: TsFnOrConstructorType,
__ast_path: &mut AstKindPath
) -> TsFnOrConstructorType { ... }
fn fold_ts_fn_param(
&mut self,
n: TsFnParam,
__ast_path: &mut AstKindPath
) -> TsFnParam { ... }
fn fold_ts_fn_params(
&mut self,
n: Vec<TsFnParam>,
__ast_path: &mut AstKindPath
) -> Vec<TsFnParam> ⓘ { ... }
fn fold_ts_fn_type(
&mut self,
n: TsFnType,
__ast_path: &mut AstKindPath
) -> TsFnType { ... }
fn fold_ts_getter_signature(
&mut self,
n: TsGetterSignature,
__ast_path: &mut AstKindPath
) -> TsGetterSignature { ... }
fn fold_ts_import_equals_decl(
&mut self,
n: TsImportEqualsDecl,
__ast_path: &mut AstKindPath
) -> TsImportEqualsDecl { ... }
fn fold_ts_import_type(
&mut self,
n: TsImportType,
__ast_path: &mut AstKindPath
) -> TsImportType { ... }
fn fold_ts_index_signature(
&mut self,
n: TsIndexSignature,
__ast_path: &mut AstKindPath
) -> TsIndexSignature { ... }
fn fold_ts_indexed_access_type(
&mut self,
n: TsIndexedAccessType,
__ast_path: &mut AstKindPath
) -> TsIndexedAccessType { ... }
fn fold_ts_infer_type(
&mut self,
n: TsInferType,
__ast_path: &mut AstKindPath
) -> TsInferType { ... }
fn fold_ts_instantiation(
&mut self,
n: TsInstantiation,
__ast_path: &mut AstKindPath
) -> TsInstantiation { ... }
fn fold_ts_interface_body(
&mut self,
n: TsInterfaceBody,
__ast_path: &mut AstKindPath
) -> TsInterfaceBody { ... }
fn fold_ts_interface_decl(
&mut self,
n: TsInterfaceDecl,
__ast_path: &mut AstKindPath
) -> TsInterfaceDecl { ... }
fn fold_ts_intersection_type(
&mut self,
n: TsIntersectionType,
__ast_path: &mut AstKindPath
) -> TsIntersectionType { ... }
fn fold_ts_keyword_type(
&mut self,
n: TsKeywordType,
__ast_path: &mut AstKindPath
) -> TsKeywordType { ... }
fn fold_ts_keyword_type_kind(
&mut self,
n: TsKeywordTypeKind,
__ast_path: &mut AstKindPath
) -> TsKeywordTypeKind { ... }
fn fold_ts_lit(&mut self, n: TsLit, __ast_path: &mut AstKindPath) -> TsLit { ... }
fn fold_ts_lit_type(
&mut self,
n: TsLitType,
__ast_path: &mut AstKindPath
) -> TsLitType { ... }
fn fold_ts_mapped_type(
&mut self,
n: TsMappedType,
__ast_path: &mut AstKindPath
) -> TsMappedType { ... }
fn fold_ts_method_signature(
&mut self,
n: TsMethodSignature,
__ast_path: &mut AstKindPath
) -> TsMethodSignature { ... }
fn fold_ts_module_block(
&mut self,
n: TsModuleBlock,
__ast_path: &mut AstKindPath
) -> TsModuleBlock { ... }
fn fold_ts_module_decl(
&mut self,
n: TsModuleDecl,
__ast_path: &mut AstKindPath
) -> TsModuleDecl { ... }
fn fold_ts_module_name(
&mut self,
n: TsModuleName,
__ast_path: &mut AstKindPath
) -> TsModuleName { ... }
fn fold_ts_module_ref(
&mut self,
n: TsModuleRef,
__ast_path: &mut AstKindPath
) -> TsModuleRef { ... }
fn fold_ts_namespace_body(
&mut self,
n: TsNamespaceBody,
__ast_path: &mut AstKindPath
) -> TsNamespaceBody { ... }
fn fold_ts_namespace_decl(
&mut self,
n: TsNamespaceDecl,
__ast_path: &mut AstKindPath
) -> TsNamespaceDecl { ... }
fn fold_ts_namespace_export_decl(
&mut self,
n: TsNamespaceExportDecl,
__ast_path: &mut AstKindPath
) -> TsNamespaceExportDecl { ... }
fn fold_ts_non_null_expr(
&mut self,
n: TsNonNullExpr,
__ast_path: &mut AstKindPath
) -> TsNonNullExpr { ... }
fn fold_ts_optional_type(
&mut self,
n: TsOptionalType,
__ast_path: &mut AstKindPath
) -> TsOptionalType { ... }
fn fold_ts_param_prop(
&mut self,
n: TsParamProp,
__ast_path: &mut AstKindPath
) -> TsParamProp { ... }
fn fold_ts_param_prop_param(
&mut self,
n: TsParamPropParam,
__ast_path: &mut AstKindPath
) -> TsParamPropParam { ... }
fn fold_ts_parenthesized_type(
&mut self,
n: TsParenthesizedType,
__ast_path: &mut AstKindPath
) -> TsParenthesizedType { ... }
fn fold_ts_property_signature(
&mut self,
n: TsPropertySignature,
__ast_path: &mut AstKindPath
) -> TsPropertySignature { ... }
fn fold_ts_qualified_name(
&mut self,
n: TsQualifiedName,
__ast_path: &mut AstKindPath
) -> TsQualifiedName { ... }
fn fold_ts_rest_type(
&mut self,
n: TsRestType,
__ast_path: &mut AstKindPath
) -> TsRestType { ... }
fn fold_ts_satisfies_expr(
&mut self,
n: TsSatisfiesExpr,
__ast_path: &mut AstKindPath
) -> TsSatisfiesExpr { ... }
fn fold_ts_setter_signature(
&mut self,
n: TsSetterSignature,
__ast_path: &mut AstKindPath
) -> TsSetterSignature { ... }
fn fold_ts_this_type(
&mut self,
n: TsThisType,
__ast_path: &mut AstKindPath
) -> TsThisType { ... }
fn fold_ts_this_type_or_ident(
&mut self,
n: TsThisTypeOrIdent,
__ast_path: &mut AstKindPath
) -> TsThisTypeOrIdent { ... }
fn fold_ts_tpl_lit_type(
&mut self,
n: TsTplLitType,
__ast_path: &mut AstKindPath
) -> TsTplLitType { ... }
fn fold_ts_tuple_element(
&mut self,
n: TsTupleElement,
__ast_path: &mut AstKindPath
) -> TsTupleElement { ... }
fn fold_ts_tuple_elements(
&mut self,
n: Vec<TsTupleElement>,
__ast_path: &mut AstKindPath
) -> Vec<TsTupleElement> ⓘ { ... }
fn fold_ts_tuple_type(
&mut self,
n: TsTupleType,
__ast_path: &mut AstKindPath
) -> TsTupleType { ... }
fn fold_ts_type(&mut self, n: TsType, __ast_path: &mut AstKindPath) -> TsType { ... }
fn fold_ts_type_alias_decl(
&mut self,
n: TsTypeAliasDecl,
__ast_path: &mut AstKindPath
) -> TsTypeAliasDecl { ... }
fn fold_ts_type_ann(
&mut self,
n: TsTypeAnn,
__ast_path: &mut AstKindPath
) -> TsTypeAnn { ... }
fn fold_ts_type_assertion(
&mut self,
n: TsTypeAssertion,
__ast_path: &mut AstKindPath
) -> TsTypeAssertion { ... }
fn fold_ts_type_element(
&mut self,
n: TsTypeElement,
__ast_path: &mut AstKindPath
) -> TsTypeElement { ... }
fn fold_ts_type_elements(
&mut self,
n: Vec<TsTypeElement>,
__ast_path: &mut AstKindPath
) -> Vec<TsTypeElement> ⓘ { ... }
fn fold_ts_type_lit(
&mut self,
n: TsTypeLit,
__ast_path: &mut AstKindPath
) -> TsTypeLit { ... }
fn fold_ts_type_operator(
&mut self,
n: TsTypeOperator,
__ast_path: &mut AstKindPath
) -> TsTypeOperator { ... }
fn fold_ts_type_operator_op(
&mut self,
n: TsTypeOperatorOp,
__ast_path: &mut AstKindPath
) -> TsTypeOperatorOp { ... }
fn fold_ts_type_param(
&mut self,
n: TsTypeParam,
__ast_path: &mut AstKindPath
) -> TsTypeParam { ... }
fn fold_ts_type_param_decl(
&mut self,
n: TsTypeParamDecl,
__ast_path: &mut AstKindPath
) -> TsTypeParamDecl { ... }
fn fold_ts_type_param_instantiation(
&mut self,
n: TsTypeParamInstantiation,
__ast_path: &mut AstKindPath
) -> TsTypeParamInstantiation { ... }
fn fold_ts_type_params(
&mut self,
n: Vec<TsTypeParam>,
__ast_path: &mut AstKindPath
) -> Vec<TsTypeParam> ⓘ { ... }
fn fold_ts_type_predicate(
&mut self,
n: TsTypePredicate,
__ast_path: &mut AstKindPath
) -> TsTypePredicate { ... }
fn fold_ts_type_query(
&mut self,
n: TsTypeQuery,
__ast_path: &mut AstKindPath
) -> TsTypeQuery { ... }
fn fold_ts_type_query_expr(
&mut self,
n: TsTypeQueryExpr,
__ast_path: &mut AstKindPath
) -> TsTypeQueryExpr { ... }
fn fold_ts_type_ref(
&mut self,
n: TsTypeRef,
__ast_path: &mut AstKindPath
) -> TsTypeRef { ... }
fn fold_ts_types(
&mut self,
n: Vec<Box<TsType>>,
__ast_path: &mut AstKindPath
) -> Vec<Box<TsType>> ⓘ { ... }
fn fold_ts_union_or_intersection_type(
&mut self,
n: TsUnionOrIntersectionType,
__ast_path: &mut AstKindPath
) -> TsUnionOrIntersectionType { ... }
fn fold_ts_union_type(
&mut self,
n: TsUnionType,
__ast_path: &mut AstKindPath
) -> TsUnionType { ... }
fn fold_unary_expr(
&mut self,
n: UnaryExpr,
__ast_path: &mut AstKindPath
) -> UnaryExpr { ... }
fn fold_unary_op(
&mut self,
n: UnaryOp,
__ast_path: &mut AstKindPath
) -> UnaryOp { ... }
fn fold_update_expr(
&mut self,
n: UpdateExpr,
__ast_path: &mut AstKindPath
) -> UpdateExpr { ... }
fn fold_update_op(
&mut self,
n: UpdateOp,
__ast_path: &mut AstKindPath
) -> UpdateOp { ... }
fn fold_var_decl(
&mut self,
n: VarDecl,
__ast_path: &mut AstKindPath
) -> VarDecl { ... }
fn fold_var_decl_kind(
&mut self,
n: VarDeclKind,
__ast_path: &mut AstKindPath
) -> VarDeclKind { ... }
fn fold_var_decl_or_expr(
&mut self,
n: VarDeclOrExpr,
__ast_path: &mut AstKindPath
) -> VarDeclOrExpr { ... }
fn fold_var_decl_or_pat(
&mut self,
n: VarDeclOrPat,
__ast_path: &mut AstKindPath
) -> VarDeclOrPat { ... }
fn fold_var_declarator(
&mut self,
n: VarDeclarator,
__ast_path: &mut AstKindPath
) -> VarDeclarator { ... }
fn fold_var_declarators(
&mut self,
n: Vec<VarDeclarator>,
__ast_path: &mut AstKindPath
) -> Vec<VarDeclarator> ⓘ { ... }
fn fold_while_stmt(
&mut self,
n: WhileStmt,
__ast_path: &mut AstKindPath
) -> WhileStmt { ... }
fn fold_with_stmt(
&mut self,
n: WithStmt,
__ast_path: &mut AstKindPath
) -> WithStmt { ... }
fn fold_yield_expr(
&mut self,
n: YieldExpr,
__ast_path: &mut AstKindPath
) -> YieldExpr { ... }
}
path
only.Provided Methods§
sourcefn fold_accessibility(
&mut self,
n: Accessibility,
__ast_path: &mut AstKindPath
) -> Accessibility
fn fold_accessibility(
&mut self,
n: Accessibility,
__ast_path: &mut AstKindPath
) -> Accessibility
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_array_lit(
&mut self,
n: ArrayLit,
__ast_path: &mut AstKindPath
) -> ArrayLit
fn fold_array_lit(
&mut self,
n: ArrayLit,
__ast_path: &mut AstKindPath
) -> ArrayLit
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_array_pat(
&mut self,
n: ArrayPat,
__ast_path: &mut AstKindPath
) -> ArrayPat
fn fold_array_pat(
&mut self,
n: ArrayPat,
__ast_path: &mut AstKindPath
) -> ArrayPat
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_arrow_expr(
&mut self,
n: ArrowExpr,
__ast_path: &mut AstKindPath
) -> ArrowExpr
fn fold_arrow_expr(
&mut self,
n: ArrowExpr,
__ast_path: &mut AstKindPath
) -> ArrowExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_assign_expr(
&mut self,
n: AssignExpr,
__ast_path: &mut AstKindPath
) -> AssignExpr
fn fold_assign_expr(
&mut self,
n: AssignExpr,
__ast_path: &mut AstKindPath
) -> AssignExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_assign_op(
&mut self,
n: AssignOp,
__ast_path: &mut AstKindPath
) -> AssignOp
fn fold_assign_op(
&mut self,
n: AssignOp,
__ast_path: &mut AstKindPath
) -> AssignOp
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_assign_pat(
&mut self,
n: AssignPat,
__ast_path: &mut AstKindPath
) -> AssignPat
fn fold_assign_pat(
&mut self,
n: AssignPat,
__ast_path: &mut AstKindPath
) -> AssignPat
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_assign_pat_prop(
&mut self,
n: AssignPatProp,
__ast_path: &mut AstKindPath
) -> AssignPatProp
fn fold_assign_pat_prop(
&mut self,
n: AssignPatProp,
__ast_path: &mut AstKindPath
) -> AssignPatProp
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_assign_prop(
&mut self,
n: AssignProp,
__ast_path: &mut AstKindPath
) -> AssignProp
fn fold_assign_prop(
&mut self,
n: AssignProp,
__ast_path: &mut AstKindPath
) -> AssignProp
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_atom(&mut self, n: Atom, __ast_path: &mut AstKindPath) -> Atom
sourcefn fold_await_expr(
&mut self,
n: AwaitExpr,
__ast_path: &mut AstKindPath
) -> AwaitExpr
fn fold_await_expr(
&mut self,
n: AwaitExpr,
__ast_path: &mut AstKindPath
) -> AwaitExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_big_int(&mut self, n: BigInt, __ast_path: &mut AstKindPath) -> BigInt
fn fold_big_int(&mut self, n: BigInt, __ast_path: &mut AstKindPath) -> BigInt
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_big_int_value(
&mut self,
n: BigIntValue,
__ast_path: &mut AstKindPath
) -> BigIntValue
sourcefn fold_bin_expr(&mut self, n: BinExpr, __ast_path: &mut AstKindPath) -> BinExpr
fn fold_bin_expr(&mut self, n: BinExpr, __ast_path: &mut AstKindPath) -> BinExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_binary_op(
&mut self,
n: BinaryOp,
__ast_path: &mut AstKindPath
) -> BinaryOp
fn fold_binary_op(
&mut self,
n: BinaryOp,
__ast_path: &mut AstKindPath
) -> BinaryOp
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_binding_ident(
&mut self,
n: BindingIdent,
__ast_path: &mut AstKindPath
) -> BindingIdent
fn fold_binding_ident(
&mut self,
n: BindingIdent,
__ast_path: &mut AstKindPath
) -> BindingIdent
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_block_stmt(
&mut self,
n: BlockStmt,
__ast_path: &mut AstKindPath
) -> BlockStmt
fn fold_block_stmt(
&mut self,
n: BlockStmt,
__ast_path: &mut AstKindPath
) -> BlockStmt
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_block_stmt_or_expr(
&mut self,
n: BlockStmtOrExpr,
__ast_path: &mut AstKindPath
) -> BlockStmtOrExpr
fn fold_block_stmt_or_expr(
&mut self,
n: BlockStmtOrExpr,
__ast_path: &mut AstKindPath
) -> BlockStmtOrExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_bool(&mut self, n: Bool, __ast_path: &mut AstKindPath) -> Bool
fn fold_bool(&mut self, n: Bool, __ast_path: &mut AstKindPath) -> Bool
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_break_stmt(
&mut self,
n: BreakStmt,
__ast_path: &mut AstKindPath
) -> BreakStmt
fn fold_break_stmt(
&mut self,
n: BreakStmt,
__ast_path: &mut AstKindPath
) -> BreakStmt
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_call_expr(
&mut self,
n: CallExpr,
__ast_path: &mut AstKindPath
) -> CallExpr
fn fold_call_expr(
&mut self,
n: CallExpr,
__ast_path: &mut AstKindPath
) -> CallExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_callee(&mut self, n: Callee, __ast_path: &mut AstKindPath) -> Callee
fn fold_callee(&mut self, n: Callee, __ast_path: &mut AstKindPath) -> Callee
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_catch_clause(
&mut self,
n: CatchClause,
__ast_path: &mut AstKindPath
) -> CatchClause
fn fold_catch_clause(
&mut self,
n: CatchClause,
__ast_path: &mut AstKindPath
) -> CatchClause
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_class(&mut self, n: Class, __ast_path: &mut AstKindPath) -> Class
fn fold_class(&mut self, n: Class, __ast_path: &mut AstKindPath) -> Class
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_class_decl(
&mut self,
n: ClassDecl,
__ast_path: &mut AstKindPath
) -> ClassDecl
fn fold_class_decl(
&mut self,
n: ClassDecl,
__ast_path: &mut AstKindPath
) -> ClassDecl
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_class_expr(
&mut self,
n: ClassExpr,
__ast_path: &mut AstKindPath
) -> ClassExpr
fn fold_class_expr(
&mut self,
n: ClassExpr,
__ast_path: &mut AstKindPath
) -> ClassExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_class_member(
&mut self,
n: ClassMember,
__ast_path: &mut AstKindPath
) -> ClassMember
fn fold_class_member(
&mut self,
n: ClassMember,
__ast_path: &mut AstKindPath
) -> ClassMember
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_class_members(
&mut self,
n: Vec<ClassMember>,
__ast_path: &mut AstKindPath
) -> Vec<ClassMember> ⓘ
sourcefn fold_class_method(
&mut self,
n: ClassMethod,
__ast_path: &mut AstKindPath
) -> ClassMethod
fn fold_class_method(
&mut self,
n: ClassMethod,
__ast_path: &mut AstKindPath
) -> ClassMethod
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_class_prop(
&mut self,
n: ClassProp,
__ast_path: &mut AstKindPath
) -> ClassProp
fn fold_class_prop(
&mut self,
n: ClassProp,
__ast_path: &mut AstKindPath
) -> ClassProp
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_computed_prop_name(
&mut self,
n: ComputedPropName,
__ast_path: &mut AstKindPath
) -> ComputedPropName
fn fold_computed_prop_name(
&mut self,
n: ComputedPropName,
__ast_path: &mut AstKindPath
) -> ComputedPropName
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_cond_expr(
&mut self,
n: CondExpr,
__ast_path: &mut AstKindPath
) -> CondExpr
fn fold_cond_expr(
&mut self,
n: CondExpr,
__ast_path: &mut AstKindPath
) -> CondExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_constructor(
&mut self,
n: Constructor,
__ast_path: &mut AstKindPath
) -> Constructor
fn fold_constructor(
&mut self,
n: Constructor,
__ast_path: &mut AstKindPath
) -> Constructor
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_continue_stmt(
&mut self,
n: ContinueStmt,
__ast_path: &mut AstKindPath
) -> ContinueStmt
fn fold_continue_stmt(
&mut self,
n: ContinueStmt,
__ast_path: &mut AstKindPath
) -> ContinueStmt
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_debugger_stmt(
&mut self,
n: DebuggerStmt,
__ast_path: &mut AstKindPath
) -> DebuggerStmt
fn fold_debugger_stmt(
&mut self,
n: DebuggerStmt,
__ast_path: &mut AstKindPath
) -> DebuggerStmt
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_decl(&mut self, n: Decl, __ast_path: &mut AstKindPath) -> Decl
fn fold_decl(&mut self, n: Decl, __ast_path: &mut AstKindPath) -> Decl
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_decorator(
&mut self,
n: Decorator,
__ast_path: &mut AstKindPath
) -> Decorator
fn fold_decorator(
&mut self,
n: Decorator,
__ast_path: &mut AstKindPath
) -> Decorator
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_decorators(
&mut self,
n: Vec<Decorator>,
__ast_path: &mut AstKindPath
) -> Vec<Decorator> ⓘ
sourcefn fold_default_decl(
&mut self,
n: DefaultDecl,
__ast_path: &mut AstKindPath
) -> DefaultDecl
fn fold_default_decl(
&mut self,
n: DefaultDecl,
__ast_path: &mut AstKindPath
) -> DefaultDecl
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_do_while_stmt(
&mut self,
n: DoWhileStmt,
__ast_path: &mut AstKindPath
) -> DoWhileStmt
fn fold_do_while_stmt(
&mut self,
n: DoWhileStmt,
__ast_path: &mut AstKindPath
) -> DoWhileStmt
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_empty_stmt(
&mut self,
n: EmptyStmt,
__ast_path: &mut AstKindPath
) -> EmptyStmt
fn fold_empty_stmt(
&mut self,
n: EmptyStmt,
__ast_path: &mut AstKindPath
) -> EmptyStmt
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_export_all(
&mut self,
n: ExportAll,
__ast_path: &mut AstKindPath
) -> ExportAll
fn fold_export_all(
&mut self,
n: ExportAll,
__ast_path: &mut AstKindPath
) -> ExportAll
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_export_decl(
&mut self,
n: ExportDecl,
__ast_path: &mut AstKindPath
) -> ExportDecl
fn fold_export_decl(
&mut self,
n: ExportDecl,
__ast_path: &mut AstKindPath
) -> ExportDecl
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_export_default_decl(
&mut self,
n: ExportDefaultDecl,
__ast_path: &mut AstKindPath
) -> ExportDefaultDecl
fn fold_export_default_decl(
&mut self,
n: ExportDefaultDecl,
__ast_path: &mut AstKindPath
) -> ExportDefaultDecl
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_export_default_expr(
&mut self,
n: ExportDefaultExpr,
__ast_path: &mut AstKindPath
) -> ExportDefaultExpr
fn fold_export_default_expr(
&mut self,
n: ExportDefaultExpr,
__ast_path: &mut AstKindPath
) -> ExportDefaultExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_export_default_specifier(
&mut self,
n: ExportDefaultSpecifier,
__ast_path: &mut AstKindPath
) -> ExportDefaultSpecifier
fn fold_export_default_specifier(
&mut self,
n: ExportDefaultSpecifier,
__ast_path: &mut AstKindPath
) -> ExportDefaultSpecifier
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_export_named_specifier(
&mut self,
n: ExportNamedSpecifier,
__ast_path: &mut AstKindPath
) -> ExportNamedSpecifier
fn fold_export_named_specifier(
&mut self,
n: ExportNamedSpecifier,
__ast_path: &mut AstKindPath
) -> ExportNamedSpecifier
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_export_namespace_specifier(
&mut self,
n: ExportNamespaceSpecifier,
__ast_path: &mut AstKindPath
) -> ExportNamespaceSpecifier
fn fold_export_namespace_specifier(
&mut self,
n: ExportNamespaceSpecifier,
__ast_path: &mut AstKindPath
) -> ExportNamespaceSpecifier
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_export_specifier(
&mut self,
n: ExportSpecifier,
__ast_path: &mut AstKindPath
) -> ExportSpecifier
fn fold_export_specifier(
&mut self,
n: ExportSpecifier,
__ast_path: &mut AstKindPath
) -> ExportSpecifier
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_export_specifiers(
&mut self,
n: Vec<ExportSpecifier>,
__ast_path: &mut AstKindPath
) -> Vec<ExportSpecifier> ⓘ
sourcefn fold_expr(&mut self, n: Expr, __ast_path: &mut AstKindPath) -> Expr
fn fold_expr(&mut self, n: Expr, __ast_path: &mut AstKindPath) -> Expr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_expr_or_spread(
&mut self,
n: ExprOrSpread,
__ast_path: &mut AstKindPath
) -> ExprOrSpread
fn fold_expr_or_spread(
&mut self,
n: ExprOrSpread,
__ast_path: &mut AstKindPath
) -> ExprOrSpread
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_expr_or_spreads(
&mut self,
n: Vec<ExprOrSpread>,
__ast_path: &mut AstKindPath
) -> Vec<ExprOrSpread> ⓘ
sourcefn fold_expr_stmt(
&mut self,
n: ExprStmt,
__ast_path: &mut AstKindPath
) -> ExprStmt
fn fold_expr_stmt(
&mut self,
n: ExprStmt,
__ast_path: &mut AstKindPath
) -> ExprStmt
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_exprs(
&mut self,
n: Vec<Box<Expr>>,
__ast_path: &mut AstKindPath
) -> Vec<Box<Expr>> ⓘ
sourcefn fold_fn_decl(&mut self, n: FnDecl, __ast_path: &mut AstKindPath) -> FnDecl
fn fold_fn_decl(&mut self, n: FnDecl, __ast_path: &mut AstKindPath) -> FnDecl
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_fn_expr(&mut self, n: FnExpr, __ast_path: &mut AstKindPath) -> FnExpr
fn fold_fn_expr(&mut self, n: FnExpr, __ast_path: &mut AstKindPath) -> FnExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_for_in_stmt(
&mut self,
n: ForInStmt,
__ast_path: &mut AstKindPath
) -> ForInStmt
fn fold_for_in_stmt(
&mut self,
n: ForInStmt,
__ast_path: &mut AstKindPath
) -> ForInStmt
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_for_of_stmt(
&mut self,
n: ForOfStmt,
__ast_path: &mut AstKindPath
) -> ForOfStmt
fn fold_for_of_stmt(
&mut self,
n: ForOfStmt,
__ast_path: &mut AstKindPath
) -> ForOfStmt
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_for_stmt(&mut self, n: ForStmt, __ast_path: &mut AstKindPath) -> ForStmt
fn fold_for_stmt(&mut self, n: ForStmt, __ast_path: &mut AstKindPath) -> ForStmt
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_function(&mut self, n: Function, __ast_path: &mut AstKindPath) -> Function
fn fold_function(&mut self, n: Function, __ast_path: &mut AstKindPath) -> Function
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_getter_prop(
&mut self,
n: GetterProp,
__ast_path: &mut AstKindPath
) -> GetterProp
fn fold_getter_prop(
&mut self,
n: GetterProp,
__ast_path: &mut AstKindPath
) -> GetterProp
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ident(&mut self, n: Ident, __ast_path: &mut AstKindPath) -> Ident
fn fold_ident(&mut self, n: Ident, __ast_path: &mut AstKindPath) -> Ident
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_if_stmt(&mut self, n: IfStmt, __ast_path: &mut AstKindPath) -> IfStmt
fn fold_if_stmt(&mut self, n: IfStmt, __ast_path: &mut AstKindPath) -> IfStmt
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_import(&mut self, n: Import, __ast_path: &mut AstKindPath) -> Import
fn fold_import(&mut self, n: Import, __ast_path: &mut AstKindPath) -> Import
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_import_decl(
&mut self,
n: ImportDecl,
__ast_path: &mut AstKindPath
) -> ImportDecl
fn fold_import_decl(
&mut self,
n: ImportDecl,
__ast_path: &mut AstKindPath
) -> ImportDecl
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_import_default_specifier(
&mut self,
n: ImportDefaultSpecifier,
__ast_path: &mut AstKindPath
) -> ImportDefaultSpecifier
fn fold_import_default_specifier(
&mut self,
n: ImportDefaultSpecifier,
__ast_path: &mut AstKindPath
) -> ImportDefaultSpecifier
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_import_named_specifier(
&mut self,
n: ImportNamedSpecifier,
__ast_path: &mut AstKindPath
) -> ImportNamedSpecifier
fn fold_import_named_specifier(
&mut self,
n: ImportNamedSpecifier,
__ast_path: &mut AstKindPath
) -> ImportNamedSpecifier
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_import_specifier(
&mut self,
n: ImportSpecifier,
__ast_path: &mut AstKindPath
) -> ImportSpecifier
fn fold_import_specifier(
&mut self,
n: ImportSpecifier,
__ast_path: &mut AstKindPath
) -> ImportSpecifier
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_import_specifiers(
&mut self,
n: Vec<ImportSpecifier>,
__ast_path: &mut AstKindPath
) -> Vec<ImportSpecifier> ⓘ
sourcefn fold_import_star_as_specifier(
&mut self,
n: ImportStarAsSpecifier,
__ast_path: &mut AstKindPath
) -> ImportStarAsSpecifier
fn fold_import_star_as_specifier(
&mut self,
n: ImportStarAsSpecifier,
__ast_path: &mut AstKindPath
) -> ImportStarAsSpecifier
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_invalid(&mut self, n: Invalid, __ast_path: &mut AstKindPath) -> Invalid
fn fold_invalid(&mut self, n: Invalid, __ast_path: &mut AstKindPath) -> Invalid
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_js_word(&mut self, n: JsWord, __ast_path: &mut AstKindPath) -> JsWord
sourcefn fold_jsx_attr(&mut self, n: JSXAttr, __ast_path: &mut AstKindPath) -> JSXAttr
fn fold_jsx_attr(&mut self, n: JSXAttr, __ast_path: &mut AstKindPath) -> JSXAttr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_jsx_attr_name(
&mut self,
n: JSXAttrName,
__ast_path: &mut AstKindPath
) -> JSXAttrName
fn fold_jsx_attr_name(
&mut self,
n: JSXAttrName,
__ast_path: &mut AstKindPath
) -> JSXAttrName
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_jsx_attr_or_spread(
&mut self,
n: JSXAttrOrSpread,
__ast_path: &mut AstKindPath
) -> JSXAttrOrSpread
fn fold_jsx_attr_or_spread(
&mut self,
n: JSXAttrOrSpread,
__ast_path: &mut AstKindPath
) -> JSXAttrOrSpread
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_jsx_attr_or_spreads(
&mut self,
n: Vec<JSXAttrOrSpread>,
__ast_path: &mut AstKindPath
) -> Vec<JSXAttrOrSpread> ⓘ
sourcefn fold_jsx_attr_value(
&mut self,
n: JSXAttrValue,
__ast_path: &mut AstKindPath
) -> JSXAttrValue
fn fold_jsx_attr_value(
&mut self,
n: JSXAttrValue,
__ast_path: &mut AstKindPath
) -> JSXAttrValue
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_jsx_closing_element(
&mut self,
n: JSXClosingElement,
__ast_path: &mut AstKindPath
) -> JSXClosingElement
fn fold_jsx_closing_element(
&mut self,
n: JSXClosingElement,
__ast_path: &mut AstKindPath
) -> JSXClosingElement
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_jsx_closing_fragment(
&mut self,
n: JSXClosingFragment,
__ast_path: &mut AstKindPath
) -> JSXClosingFragment
fn fold_jsx_closing_fragment(
&mut self,
n: JSXClosingFragment,
__ast_path: &mut AstKindPath
) -> JSXClosingFragment
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_jsx_element(
&mut self,
n: JSXElement,
__ast_path: &mut AstKindPath
) -> JSXElement
fn fold_jsx_element(
&mut self,
n: JSXElement,
__ast_path: &mut AstKindPath
) -> JSXElement
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_jsx_element_child(
&mut self,
n: JSXElementChild,
__ast_path: &mut AstKindPath
) -> JSXElementChild
fn fold_jsx_element_child(
&mut self,
n: JSXElementChild,
__ast_path: &mut AstKindPath
) -> JSXElementChild
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_jsx_element_children(
&mut self,
n: Vec<JSXElementChild>,
__ast_path: &mut AstKindPath
) -> Vec<JSXElementChild> ⓘ
sourcefn fold_jsx_element_name(
&mut self,
n: JSXElementName,
__ast_path: &mut AstKindPath
) -> JSXElementName
fn fold_jsx_element_name(
&mut self,
n: JSXElementName,
__ast_path: &mut AstKindPath
) -> JSXElementName
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_jsx_empty_expr(
&mut self,
n: JSXEmptyExpr,
__ast_path: &mut AstKindPath
) -> JSXEmptyExpr
fn fold_jsx_empty_expr(
&mut self,
n: JSXEmptyExpr,
__ast_path: &mut AstKindPath
) -> JSXEmptyExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_jsx_expr(&mut self, n: JSXExpr, __ast_path: &mut AstKindPath) -> JSXExpr
fn fold_jsx_expr(&mut self, n: JSXExpr, __ast_path: &mut AstKindPath) -> JSXExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_jsx_expr_container(
&mut self,
n: JSXExprContainer,
__ast_path: &mut AstKindPath
) -> JSXExprContainer
fn fold_jsx_expr_container(
&mut self,
n: JSXExprContainer,
__ast_path: &mut AstKindPath
) -> JSXExprContainer
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_jsx_fragment(
&mut self,
n: JSXFragment,
__ast_path: &mut AstKindPath
) -> JSXFragment
fn fold_jsx_fragment(
&mut self,
n: JSXFragment,
__ast_path: &mut AstKindPath
) -> JSXFragment
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_jsx_member_expr(
&mut self,
n: JSXMemberExpr,
__ast_path: &mut AstKindPath
) -> JSXMemberExpr
fn fold_jsx_member_expr(
&mut self,
n: JSXMemberExpr,
__ast_path: &mut AstKindPath
) -> JSXMemberExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_jsx_namespaced_name(
&mut self,
n: JSXNamespacedName,
__ast_path: &mut AstKindPath
) -> JSXNamespacedName
fn fold_jsx_namespaced_name(
&mut self,
n: JSXNamespacedName,
__ast_path: &mut AstKindPath
) -> JSXNamespacedName
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_jsx_object(
&mut self,
n: JSXObject,
__ast_path: &mut AstKindPath
) -> JSXObject
fn fold_jsx_object(
&mut self,
n: JSXObject,
__ast_path: &mut AstKindPath
) -> JSXObject
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_jsx_opening_element(
&mut self,
n: JSXOpeningElement,
__ast_path: &mut AstKindPath
) -> JSXOpeningElement
fn fold_jsx_opening_element(
&mut self,
n: JSXOpeningElement,
__ast_path: &mut AstKindPath
) -> JSXOpeningElement
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_jsx_opening_fragment(
&mut self,
n: JSXOpeningFragment,
__ast_path: &mut AstKindPath
) -> JSXOpeningFragment
fn fold_jsx_opening_fragment(
&mut self,
n: JSXOpeningFragment,
__ast_path: &mut AstKindPath
) -> JSXOpeningFragment
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_jsx_spread_child(
&mut self,
n: JSXSpreadChild,
__ast_path: &mut AstKindPath
) -> JSXSpreadChild
fn fold_jsx_spread_child(
&mut self,
n: JSXSpreadChild,
__ast_path: &mut AstKindPath
) -> JSXSpreadChild
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_jsx_text(&mut self, n: JSXText, __ast_path: &mut AstKindPath) -> JSXText
fn fold_jsx_text(&mut self, n: JSXText, __ast_path: &mut AstKindPath) -> JSXText
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_key_value_pat_prop(
&mut self,
n: KeyValuePatProp,
__ast_path: &mut AstKindPath
) -> KeyValuePatProp
fn fold_key_value_pat_prop(
&mut self,
n: KeyValuePatProp,
__ast_path: &mut AstKindPath
) -> KeyValuePatProp
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_key_value_prop(
&mut self,
n: KeyValueProp,
__ast_path: &mut AstKindPath
) -> KeyValueProp
fn fold_key_value_prop(
&mut self,
n: KeyValueProp,
__ast_path: &mut AstKindPath
) -> KeyValueProp
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_labeled_stmt(
&mut self,
n: LabeledStmt,
__ast_path: &mut AstKindPath
) -> LabeledStmt
fn fold_labeled_stmt(
&mut self,
n: LabeledStmt,
__ast_path: &mut AstKindPath
) -> LabeledStmt
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_lit(&mut self, n: Lit, __ast_path: &mut AstKindPath) -> Lit
fn fold_lit(&mut self, n: Lit, __ast_path: &mut AstKindPath) -> Lit
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_member_expr(
&mut self,
n: MemberExpr,
__ast_path: &mut AstKindPath
) -> MemberExpr
fn fold_member_expr(
&mut self,
n: MemberExpr,
__ast_path: &mut AstKindPath
) -> MemberExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_member_prop(
&mut self,
n: MemberProp,
__ast_path: &mut AstKindPath
) -> MemberProp
fn fold_member_prop(
&mut self,
n: MemberProp,
__ast_path: &mut AstKindPath
) -> MemberProp
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_meta_prop_expr(
&mut self,
n: MetaPropExpr,
__ast_path: &mut AstKindPath
) -> MetaPropExpr
fn fold_meta_prop_expr(
&mut self,
n: MetaPropExpr,
__ast_path: &mut AstKindPath
) -> MetaPropExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_meta_prop_kind(
&mut self,
n: MetaPropKind,
__ast_path: &mut AstKindPath
) -> MetaPropKind
fn fold_meta_prop_kind(
&mut self,
n: MetaPropKind,
__ast_path: &mut AstKindPath
) -> MetaPropKind
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_method_kind(
&mut self,
n: MethodKind,
__ast_path: &mut AstKindPath
) -> MethodKind
fn fold_method_kind(
&mut self,
n: MethodKind,
__ast_path: &mut AstKindPath
) -> MethodKind
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_method_prop(
&mut self,
n: MethodProp,
__ast_path: &mut AstKindPath
) -> MethodProp
fn fold_method_prop(
&mut self,
n: MethodProp,
__ast_path: &mut AstKindPath
) -> MethodProp
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_module(&mut self, n: Module, __ast_path: &mut AstKindPath) -> Module
fn fold_module(&mut self, n: Module, __ast_path: &mut AstKindPath) -> Module
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_module_decl(
&mut self,
n: ModuleDecl,
__ast_path: &mut AstKindPath
) -> ModuleDecl
fn fold_module_decl(
&mut self,
n: ModuleDecl,
__ast_path: &mut AstKindPath
) -> ModuleDecl
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_module_export_name(
&mut self,
n: ModuleExportName,
__ast_path: &mut AstKindPath
) -> ModuleExportName
fn fold_module_export_name(
&mut self,
n: ModuleExportName,
__ast_path: &mut AstKindPath
) -> ModuleExportName
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_module_item(
&mut self,
n: ModuleItem,
__ast_path: &mut AstKindPath
) -> ModuleItem
fn fold_module_item(
&mut self,
n: ModuleItem,
__ast_path: &mut AstKindPath
) -> ModuleItem
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_module_items(
&mut self,
n: Vec<ModuleItem>,
__ast_path: &mut AstKindPath
) -> Vec<ModuleItem> ⓘ
sourcefn fold_named_export(
&mut self,
n: NamedExport,
__ast_path: &mut AstKindPath
) -> NamedExport
fn fold_named_export(
&mut self,
n: NamedExport,
__ast_path: &mut AstKindPath
) -> NamedExport
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_new_expr(&mut self, n: NewExpr, __ast_path: &mut AstKindPath) -> NewExpr
fn fold_new_expr(&mut self, n: NewExpr, __ast_path: &mut AstKindPath) -> NewExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_null(&mut self, n: Null, __ast_path: &mut AstKindPath) -> Null
fn fold_null(&mut self, n: Null, __ast_path: &mut AstKindPath) -> Null
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_number(&mut self, n: Number, __ast_path: &mut AstKindPath) -> Number
fn fold_number(&mut self, n: Number, __ast_path: &mut AstKindPath) -> Number
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_object_lit(
&mut self,
n: ObjectLit,
__ast_path: &mut AstKindPath
) -> ObjectLit
fn fold_object_lit(
&mut self,
n: ObjectLit,
__ast_path: &mut AstKindPath
) -> ObjectLit
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_object_pat(
&mut self,
n: ObjectPat,
__ast_path: &mut AstKindPath
) -> ObjectPat
fn fold_object_pat(
&mut self,
n: ObjectPat,
__ast_path: &mut AstKindPath
) -> ObjectPat
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_object_pat_prop(
&mut self,
n: ObjectPatProp,
__ast_path: &mut AstKindPath
) -> ObjectPatProp
fn fold_object_pat_prop(
&mut self,
n: ObjectPatProp,
__ast_path: &mut AstKindPath
) -> ObjectPatProp
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_object_pat_props(
&mut self,
n: Vec<ObjectPatProp>,
__ast_path: &mut AstKindPath
) -> Vec<ObjectPatProp> ⓘ
fn fold_opt_accessibility(
&mut self,
n: Option<Accessibility>,
__ast_path: &mut AstKindPath
) -> Option<Accessibility>
fn fold_opt_atom(
&mut self,
n: Option<Atom>,
__ast_path: &mut AstKindPath
) -> Option<Atom>
fn fold_opt_block_stmt(
&mut self,
n: Option<BlockStmt>,
__ast_path: &mut AstKindPath
) -> Option<BlockStmt>
sourcefn fold_opt_call(&mut self, n: OptCall, __ast_path: &mut AstKindPath) -> OptCall
fn fold_opt_call(&mut self, n: OptCall, __ast_path: &mut AstKindPath) -> OptCall
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_opt_catch_clause(
&mut self,
n: Option<CatchClause>,
__ast_path: &mut AstKindPath
) -> Option<CatchClause>
sourcefn fold_opt_chain_base(
&mut self,
n: OptChainBase,
__ast_path: &mut AstKindPath
) -> OptChainBase
fn fold_opt_chain_base(
&mut self,
n: OptChainBase,
__ast_path: &mut AstKindPath
) -> OptChainBase
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_opt_chain_expr(
&mut self,
n: OptChainExpr,
__ast_path: &mut AstKindPath
) -> OptChainExpr
fn fold_opt_chain_expr(
&mut self,
n: OptChainExpr,
__ast_path: &mut AstKindPath
) -> OptChainExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_opt_expr(
&mut self,
n: Option<Box<Expr>>,
__ast_path: &mut AstKindPath
) -> Option<Box<Expr>>
fn fold_opt_expr_or_spread(
&mut self,
n: Option<ExprOrSpread>,
__ast_path: &mut AstKindPath
) -> Option<ExprOrSpread>
fn fold_opt_expr_or_spreads(
&mut self,
n: Option<Vec<ExprOrSpread>>,
__ast_path: &mut AstKindPath
) -> Option<Vec<ExprOrSpread>>
fn fold_opt_ident(
&mut self,
n: Option<Ident>,
__ast_path: &mut AstKindPath
) -> Option<Ident>
fn fold_opt_jsx_attr_value(
&mut self,
n: Option<JSXAttrValue>,
__ast_path: &mut AstKindPath
) -> Option<JSXAttrValue>
fn fold_opt_jsx_closing_element(
&mut self,
n: Option<JSXClosingElement>,
__ast_path: &mut AstKindPath
) -> Option<JSXClosingElement>
fn fold_opt_module_export_name(
&mut self,
n: Option<ModuleExportName>,
__ast_path: &mut AstKindPath
) -> Option<ModuleExportName>
fn fold_opt_module_items(
&mut self,
n: Option<Vec<ModuleItem>>,
__ast_path: &mut AstKindPath
) -> Option<Vec<ModuleItem>>
fn fold_opt_object_lit(
&mut self,
n: Option<Box<ObjectLit>>,
__ast_path: &mut AstKindPath
) -> Option<Box<ObjectLit>>
fn fold_opt_pat(
&mut self,
n: Option<Pat>,
__ast_path: &mut AstKindPath
) -> Option<Pat>
fn fold_opt_span(
&mut self,
n: Option<Span>,
__ast_path: &mut AstKindPath
) -> Option<Span>
fn fold_opt_stmt(
&mut self,
n: Option<Box<Stmt>>,
__ast_path: &mut AstKindPath
) -> Option<Box<Stmt>>
fn fold_opt_str(
&mut self,
n: Option<Box<Str>>,
__ast_path: &mut AstKindPath
) -> Option<Box<Str>>
fn fold_opt_true_plus_minus(
&mut self,
n: Option<TruePlusMinus>,
__ast_path: &mut AstKindPath
) -> Option<TruePlusMinus>
fn fold_opt_ts_entity_name(
&mut self,
n: Option<TsEntityName>,
__ast_path: &mut AstKindPath
) -> Option<TsEntityName>
fn fold_opt_ts_namespace_body(
&mut self,
n: Option<TsNamespaceBody>,
__ast_path: &mut AstKindPath
) -> Option<TsNamespaceBody>
fn fold_opt_ts_type(
&mut self,
n: Option<Box<TsType>>,
__ast_path: &mut AstKindPath
) -> Option<Box<TsType>>
fn fold_opt_ts_type_ann(
&mut self,
n: Option<Box<TsTypeAnn>>,
__ast_path: &mut AstKindPath
) -> Option<Box<TsTypeAnn>>
fn fold_opt_ts_type_param_decl(
&mut self,
n: Option<Box<TsTypeParamDecl>>,
__ast_path: &mut AstKindPath
) -> Option<Box<TsTypeParamDecl>>
fn fold_opt_ts_type_param_instantiation(
&mut self,
n: Option<Box<TsTypeParamInstantiation>>,
__ast_path: &mut AstKindPath
) -> Option<Box<TsTypeParamInstantiation>>
fn fold_opt_var_decl_or_expr(
&mut self,
n: Option<VarDeclOrExpr>,
__ast_path: &mut AstKindPath
) -> Option<VarDeclOrExpr>
fn fold_opt_vec_expr_or_spreads(
&mut self,
n: Vec<Option<ExprOrSpread>>,
__ast_path: &mut AstKindPath
) -> Vec<Option<ExprOrSpread>> ⓘ
fn fold_opt_vec_pats(
&mut self,
n: Vec<Option<Pat>>,
__ast_path: &mut AstKindPath
) -> Vec<Option<Pat>> ⓘ
sourcefn fold_param(&mut self, n: Param, __ast_path: &mut AstKindPath) -> Param
fn fold_param(&mut self, n: Param, __ast_path: &mut AstKindPath) -> Param
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_param_or_ts_param_prop(
&mut self,
n: ParamOrTsParamProp,
__ast_path: &mut AstKindPath
) -> ParamOrTsParamProp
fn fold_param_or_ts_param_prop(
&mut self,
n: ParamOrTsParamProp,
__ast_path: &mut AstKindPath
) -> ParamOrTsParamProp
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_param_or_ts_param_props(
&mut self,
n: Vec<ParamOrTsParamProp>,
__ast_path: &mut AstKindPath
) -> Vec<ParamOrTsParamProp> ⓘ
fn fold_params(
&mut self,
n: Vec<Param>,
__ast_path: &mut AstKindPath
) -> Vec<Param> ⓘ
sourcefn fold_paren_expr(
&mut self,
n: ParenExpr,
__ast_path: &mut AstKindPath
) -> ParenExpr
fn fold_paren_expr(
&mut self,
n: ParenExpr,
__ast_path: &mut AstKindPath
) -> ParenExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_pat(&mut self, n: Pat, __ast_path: &mut AstKindPath) -> Pat
fn fold_pat(&mut self, n: Pat, __ast_path: &mut AstKindPath) -> Pat
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_pat_or_expr(
&mut self,
n: PatOrExpr,
__ast_path: &mut AstKindPath
) -> PatOrExpr
fn fold_pat_or_expr(
&mut self,
n: PatOrExpr,
__ast_path: &mut AstKindPath
) -> PatOrExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_pats(&mut self, n: Vec<Pat>, __ast_path: &mut AstKindPath) -> Vec<Pat> ⓘ
sourcefn fold_private_method(
&mut self,
n: PrivateMethod,
__ast_path: &mut AstKindPath
) -> PrivateMethod
fn fold_private_method(
&mut self,
n: PrivateMethod,
__ast_path: &mut AstKindPath
) -> PrivateMethod
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_private_name(
&mut self,
n: PrivateName,
__ast_path: &mut AstKindPath
) -> PrivateName
fn fold_private_name(
&mut self,
n: PrivateName,
__ast_path: &mut AstKindPath
) -> PrivateName
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_private_prop(
&mut self,
n: PrivateProp,
__ast_path: &mut AstKindPath
) -> PrivateProp
fn fold_private_prop(
&mut self,
n: PrivateProp,
__ast_path: &mut AstKindPath
) -> PrivateProp
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_program(&mut self, n: Program, __ast_path: &mut AstKindPath) -> Program
fn fold_program(&mut self, n: Program, __ast_path: &mut AstKindPath) -> Program
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_prop(&mut self, n: Prop, __ast_path: &mut AstKindPath) -> Prop
fn fold_prop(&mut self, n: Prop, __ast_path: &mut AstKindPath) -> Prop
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_prop_name(
&mut self,
n: PropName,
__ast_path: &mut AstKindPath
) -> PropName
fn fold_prop_name(
&mut self,
n: PropName,
__ast_path: &mut AstKindPath
) -> PropName
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_prop_or_spread(
&mut self,
n: PropOrSpread,
__ast_path: &mut AstKindPath
) -> PropOrSpread
fn fold_prop_or_spread(
&mut self,
n: PropOrSpread,
__ast_path: &mut AstKindPath
) -> PropOrSpread
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_prop_or_spreads(
&mut self,
n: Vec<PropOrSpread>,
__ast_path: &mut AstKindPath
) -> Vec<PropOrSpread> ⓘ
sourcefn fold_regex(&mut self, n: Regex, __ast_path: &mut AstKindPath) -> Regex
fn fold_regex(&mut self, n: Regex, __ast_path: &mut AstKindPath) -> Regex
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_reserved_unused(
&mut self,
n: ReservedUnused,
__ast_path: &mut AstKindPath
) -> ReservedUnused
fn fold_reserved_unused(
&mut self,
n: ReservedUnused,
__ast_path: &mut AstKindPath
) -> ReservedUnused
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_rest_pat(&mut self, n: RestPat, __ast_path: &mut AstKindPath) -> RestPat
fn fold_rest_pat(&mut self, n: RestPat, __ast_path: &mut AstKindPath) -> RestPat
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_return_stmt(
&mut self,
n: ReturnStmt,
__ast_path: &mut AstKindPath
) -> ReturnStmt
fn fold_return_stmt(
&mut self,
n: ReturnStmt,
__ast_path: &mut AstKindPath
) -> ReturnStmt
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_script(&mut self, n: Script, __ast_path: &mut AstKindPath) -> Script
fn fold_script(&mut self, n: Script, __ast_path: &mut AstKindPath) -> Script
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_seq_expr(&mut self, n: SeqExpr, __ast_path: &mut AstKindPath) -> SeqExpr
fn fold_seq_expr(&mut self, n: SeqExpr, __ast_path: &mut AstKindPath) -> SeqExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_setter_prop(
&mut self,
n: SetterProp,
__ast_path: &mut AstKindPath
) -> SetterProp
fn fold_setter_prop(
&mut self,
n: SetterProp,
__ast_path: &mut AstKindPath
) -> SetterProp
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_span(&mut self, n: Span, __ast_path: &mut AstKindPath) -> Span
sourcefn fold_spread_element(
&mut self,
n: SpreadElement,
__ast_path: &mut AstKindPath
) -> SpreadElement
fn fold_spread_element(
&mut self,
n: SpreadElement,
__ast_path: &mut AstKindPath
) -> SpreadElement
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_static_block(
&mut self,
n: StaticBlock,
__ast_path: &mut AstKindPath
) -> StaticBlock
fn fold_static_block(
&mut self,
n: StaticBlock,
__ast_path: &mut AstKindPath
) -> StaticBlock
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_stmt(&mut self, n: Stmt, __ast_path: &mut AstKindPath) -> Stmt
fn fold_stmt(&mut self, n: Stmt, __ast_path: &mut AstKindPath) -> Stmt
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_stmts(&mut self, n: Vec<Stmt>, __ast_path: &mut AstKindPath) -> Vec<Stmt> ⓘ
sourcefn fold_str(&mut self, n: Str, __ast_path: &mut AstKindPath) -> Str
fn fold_str(&mut self, n: Str, __ast_path: &mut AstKindPath) -> Str
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_super(&mut self, n: Super, __ast_path: &mut AstKindPath) -> Super
fn fold_super(&mut self, n: Super, __ast_path: &mut AstKindPath) -> Super
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_super_prop(
&mut self,
n: SuperProp,
__ast_path: &mut AstKindPath
) -> SuperProp
fn fold_super_prop(
&mut self,
n: SuperProp,
__ast_path: &mut AstKindPath
) -> SuperProp
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_super_prop_expr(
&mut self,
n: SuperPropExpr,
__ast_path: &mut AstKindPath
) -> SuperPropExpr
fn fold_super_prop_expr(
&mut self,
n: SuperPropExpr,
__ast_path: &mut AstKindPath
) -> SuperPropExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_switch_case(
&mut self,
n: SwitchCase,
__ast_path: &mut AstKindPath
) -> SwitchCase
fn fold_switch_case(
&mut self,
n: SwitchCase,
__ast_path: &mut AstKindPath
) -> SwitchCase
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_switch_cases(
&mut self,
n: Vec<SwitchCase>,
__ast_path: &mut AstKindPath
) -> Vec<SwitchCase> ⓘ
sourcefn fold_switch_stmt(
&mut self,
n: SwitchStmt,
__ast_path: &mut AstKindPath
) -> SwitchStmt
fn fold_switch_stmt(
&mut self,
n: SwitchStmt,
__ast_path: &mut AstKindPath
) -> SwitchStmt
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_tagged_tpl(
&mut self,
n: TaggedTpl,
__ast_path: &mut AstKindPath
) -> TaggedTpl
fn fold_tagged_tpl(
&mut self,
n: TaggedTpl,
__ast_path: &mut AstKindPath
) -> TaggedTpl
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_this_expr(
&mut self,
n: ThisExpr,
__ast_path: &mut AstKindPath
) -> ThisExpr
fn fold_this_expr(
&mut self,
n: ThisExpr,
__ast_path: &mut AstKindPath
) -> ThisExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_throw_stmt(
&mut self,
n: ThrowStmt,
__ast_path: &mut AstKindPath
) -> ThrowStmt
fn fold_throw_stmt(
&mut self,
n: ThrowStmt,
__ast_path: &mut AstKindPath
) -> ThrowStmt
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_tpl(&mut self, n: Tpl, __ast_path: &mut AstKindPath) -> Tpl
fn fold_tpl(&mut self, n: Tpl, __ast_path: &mut AstKindPath) -> Tpl
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_tpl_element(
&mut self,
n: TplElement,
__ast_path: &mut AstKindPath
) -> TplElement
fn fold_tpl_element(
&mut self,
n: TplElement,
__ast_path: &mut AstKindPath
) -> TplElement
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_tpl_elements(
&mut self,
n: Vec<TplElement>,
__ast_path: &mut AstKindPath
) -> Vec<TplElement> ⓘ
sourcefn fold_true_plus_minus(
&mut self,
n: TruePlusMinus,
__ast_path: &mut AstKindPath
) -> TruePlusMinus
fn fold_true_plus_minus(
&mut self,
n: TruePlusMinus,
__ast_path: &mut AstKindPath
) -> TruePlusMinus
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_try_stmt(&mut self, n: TryStmt, __ast_path: &mut AstKindPath) -> TryStmt
fn fold_try_stmt(&mut self, n: TryStmt, __ast_path: &mut AstKindPath) -> TryStmt
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_array_type(
&mut self,
n: TsArrayType,
__ast_path: &mut AstKindPath
) -> TsArrayType
fn fold_ts_array_type(
&mut self,
n: TsArrayType,
__ast_path: &mut AstKindPath
) -> TsArrayType
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_as_expr(
&mut self,
n: TsAsExpr,
__ast_path: &mut AstKindPath
) -> TsAsExpr
fn fold_ts_as_expr(
&mut self,
n: TsAsExpr,
__ast_path: &mut AstKindPath
) -> TsAsExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_call_signature_decl(
&mut self,
n: TsCallSignatureDecl,
__ast_path: &mut AstKindPath
) -> TsCallSignatureDecl
fn fold_ts_call_signature_decl(
&mut self,
n: TsCallSignatureDecl,
__ast_path: &mut AstKindPath
) -> TsCallSignatureDecl
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_conditional_type(
&mut self,
n: TsConditionalType,
__ast_path: &mut AstKindPath
) -> TsConditionalType
fn fold_ts_conditional_type(
&mut self,
n: TsConditionalType,
__ast_path: &mut AstKindPath
) -> TsConditionalType
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_const_assertion(
&mut self,
n: TsConstAssertion,
__ast_path: &mut AstKindPath
) -> TsConstAssertion
fn fold_ts_const_assertion(
&mut self,
n: TsConstAssertion,
__ast_path: &mut AstKindPath
) -> TsConstAssertion
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_construct_signature_decl(
&mut self,
n: TsConstructSignatureDecl,
__ast_path: &mut AstKindPath
) -> TsConstructSignatureDecl
fn fold_ts_construct_signature_decl(
&mut self,
n: TsConstructSignatureDecl,
__ast_path: &mut AstKindPath
) -> TsConstructSignatureDecl
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_constructor_type(
&mut self,
n: TsConstructorType,
__ast_path: &mut AstKindPath
) -> TsConstructorType
fn fold_ts_constructor_type(
&mut self,
n: TsConstructorType,
__ast_path: &mut AstKindPath
) -> TsConstructorType
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_entity_name(
&mut self,
n: TsEntityName,
__ast_path: &mut AstKindPath
) -> TsEntityName
fn fold_ts_entity_name(
&mut self,
n: TsEntityName,
__ast_path: &mut AstKindPath
) -> TsEntityName
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_enum_decl(
&mut self,
n: TsEnumDecl,
__ast_path: &mut AstKindPath
) -> TsEnumDecl
fn fold_ts_enum_decl(
&mut self,
n: TsEnumDecl,
__ast_path: &mut AstKindPath
) -> TsEnumDecl
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_enum_member(
&mut self,
n: TsEnumMember,
__ast_path: &mut AstKindPath
) -> TsEnumMember
fn fold_ts_enum_member(
&mut self,
n: TsEnumMember,
__ast_path: &mut AstKindPath
) -> TsEnumMember
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_enum_member_id(
&mut self,
n: TsEnumMemberId,
__ast_path: &mut AstKindPath
) -> TsEnumMemberId
fn fold_ts_enum_member_id(
&mut self,
n: TsEnumMemberId,
__ast_path: &mut AstKindPath
) -> TsEnumMemberId
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_ts_enum_members(
&mut self,
n: Vec<TsEnumMember>,
__ast_path: &mut AstKindPath
) -> Vec<TsEnumMember> ⓘ
sourcefn fold_ts_export_assignment(
&mut self,
n: TsExportAssignment,
__ast_path: &mut AstKindPath
) -> TsExportAssignment
fn fold_ts_export_assignment(
&mut self,
n: TsExportAssignment,
__ast_path: &mut AstKindPath
) -> TsExportAssignment
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_expr_with_type_args(
&mut self,
n: TsExprWithTypeArgs,
__ast_path: &mut AstKindPath
) -> TsExprWithTypeArgs
fn fold_ts_expr_with_type_args(
&mut self,
n: TsExprWithTypeArgs,
__ast_path: &mut AstKindPath
) -> TsExprWithTypeArgs
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_ts_expr_with_type_args_vec(
&mut self,
n: Vec<TsExprWithTypeArgs>,
__ast_path: &mut AstKindPath
) -> Vec<TsExprWithTypeArgs> ⓘ
sourcefn fold_ts_external_module_ref(
&mut self,
n: TsExternalModuleRef,
__ast_path: &mut AstKindPath
) -> TsExternalModuleRef
fn fold_ts_external_module_ref(
&mut self,
n: TsExternalModuleRef,
__ast_path: &mut AstKindPath
) -> TsExternalModuleRef
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_fn_or_constructor_type(
&mut self,
n: TsFnOrConstructorType,
__ast_path: &mut AstKindPath
) -> TsFnOrConstructorType
fn fold_ts_fn_or_constructor_type(
&mut self,
n: TsFnOrConstructorType,
__ast_path: &mut AstKindPath
) -> TsFnOrConstructorType
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_fn_param(
&mut self,
n: TsFnParam,
__ast_path: &mut AstKindPath
) -> TsFnParam
fn fold_ts_fn_param(
&mut self,
n: TsFnParam,
__ast_path: &mut AstKindPath
) -> TsFnParam
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_ts_fn_params(
&mut self,
n: Vec<TsFnParam>,
__ast_path: &mut AstKindPath
) -> Vec<TsFnParam> ⓘ
sourcefn fold_ts_fn_type(
&mut self,
n: TsFnType,
__ast_path: &mut AstKindPath
) -> TsFnType
fn fold_ts_fn_type(
&mut self,
n: TsFnType,
__ast_path: &mut AstKindPath
) -> TsFnType
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_getter_signature(
&mut self,
n: TsGetterSignature,
__ast_path: &mut AstKindPath
) -> TsGetterSignature
fn fold_ts_getter_signature(
&mut self,
n: TsGetterSignature,
__ast_path: &mut AstKindPath
) -> TsGetterSignature
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_import_equals_decl(
&mut self,
n: TsImportEqualsDecl,
__ast_path: &mut AstKindPath
) -> TsImportEqualsDecl
fn fold_ts_import_equals_decl(
&mut self,
n: TsImportEqualsDecl,
__ast_path: &mut AstKindPath
) -> TsImportEqualsDecl
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_import_type(
&mut self,
n: TsImportType,
__ast_path: &mut AstKindPath
) -> TsImportType
fn fold_ts_import_type(
&mut self,
n: TsImportType,
__ast_path: &mut AstKindPath
) -> TsImportType
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_index_signature(
&mut self,
n: TsIndexSignature,
__ast_path: &mut AstKindPath
) -> TsIndexSignature
fn fold_ts_index_signature(
&mut self,
n: TsIndexSignature,
__ast_path: &mut AstKindPath
) -> TsIndexSignature
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_indexed_access_type(
&mut self,
n: TsIndexedAccessType,
__ast_path: &mut AstKindPath
) -> TsIndexedAccessType
fn fold_ts_indexed_access_type(
&mut self,
n: TsIndexedAccessType,
__ast_path: &mut AstKindPath
) -> TsIndexedAccessType
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_infer_type(
&mut self,
n: TsInferType,
__ast_path: &mut AstKindPath
) -> TsInferType
fn fold_ts_infer_type(
&mut self,
n: TsInferType,
__ast_path: &mut AstKindPath
) -> TsInferType
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_instantiation(
&mut self,
n: TsInstantiation,
__ast_path: &mut AstKindPath
) -> TsInstantiation
fn fold_ts_instantiation(
&mut self,
n: TsInstantiation,
__ast_path: &mut AstKindPath
) -> TsInstantiation
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_interface_body(
&mut self,
n: TsInterfaceBody,
__ast_path: &mut AstKindPath
) -> TsInterfaceBody
fn fold_ts_interface_body(
&mut self,
n: TsInterfaceBody,
__ast_path: &mut AstKindPath
) -> TsInterfaceBody
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_interface_decl(
&mut self,
n: TsInterfaceDecl,
__ast_path: &mut AstKindPath
) -> TsInterfaceDecl
fn fold_ts_interface_decl(
&mut self,
n: TsInterfaceDecl,
__ast_path: &mut AstKindPath
) -> TsInterfaceDecl
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_intersection_type(
&mut self,
n: TsIntersectionType,
__ast_path: &mut AstKindPath
) -> TsIntersectionType
fn fold_ts_intersection_type(
&mut self,
n: TsIntersectionType,
__ast_path: &mut AstKindPath
) -> TsIntersectionType
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_keyword_type(
&mut self,
n: TsKeywordType,
__ast_path: &mut AstKindPath
) -> TsKeywordType
fn fold_ts_keyword_type(
&mut self,
n: TsKeywordType,
__ast_path: &mut AstKindPath
) -> TsKeywordType
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_keyword_type_kind(
&mut self,
n: TsKeywordTypeKind,
__ast_path: &mut AstKindPath
) -> TsKeywordTypeKind
fn fold_ts_keyword_type_kind(
&mut self,
n: TsKeywordTypeKind,
__ast_path: &mut AstKindPath
) -> TsKeywordTypeKind
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_lit(&mut self, n: TsLit, __ast_path: &mut AstKindPath) -> TsLit
fn fold_ts_lit(&mut self, n: TsLit, __ast_path: &mut AstKindPath) -> TsLit
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_lit_type(
&mut self,
n: TsLitType,
__ast_path: &mut AstKindPath
) -> TsLitType
fn fold_ts_lit_type(
&mut self,
n: TsLitType,
__ast_path: &mut AstKindPath
) -> TsLitType
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_mapped_type(
&mut self,
n: TsMappedType,
__ast_path: &mut AstKindPath
) -> TsMappedType
fn fold_ts_mapped_type(
&mut self,
n: TsMappedType,
__ast_path: &mut AstKindPath
) -> TsMappedType
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_method_signature(
&mut self,
n: TsMethodSignature,
__ast_path: &mut AstKindPath
) -> TsMethodSignature
fn fold_ts_method_signature(
&mut self,
n: TsMethodSignature,
__ast_path: &mut AstKindPath
) -> TsMethodSignature
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_module_block(
&mut self,
n: TsModuleBlock,
__ast_path: &mut AstKindPath
) -> TsModuleBlock
fn fold_ts_module_block(
&mut self,
n: TsModuleBlock,
__ast_path: &mut AstKindPath
) -> TsModuleBlock
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_module_decl(
&mut self,
n: TsModuleDecl,
__ast_path: &mut AstKindPath
) -> TsModuleDecl
fn fold_ts_module_decl(
&mut self,
n: TsModuleDecl,
__ast_path: &mut AstKindPath
) -> TsModuleDecl
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_module_name(
&mut self,
n: TsModuleName,
__ast_path: &mut AstKindPath
) -> TsModuleName
fn fold_ts_module_name(
&mut self,
n: TsModuleName,
__ast_path: &mut AstKindPath
) -> TsModuleName
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_module_ref(
&mut self,
n: TsModuleRef,
__ast_path: &mut AstKindPath
) -> TsModuleRef
fn fold_ts_module_ref(
&mut self,
n: TsModuleRef,
__ast_path: &mut AstKindPath
) -> TsModuleRef
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_namespace_body(
&mut self,
n: TsNamespaceBody,
__ast_path: &mut AstKindPath
) -> TsNamespaceBody
fn fold_ts_namespace_body(
&mut self,
n: TsNamespaceBody,
__ast_path: &mut AstKindPath
) -> TsNamespaceBody
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_namespace_decl(
&mut self,
n: TsNamespaceDecl,
__ast_path: &mut AstKindPath
) -> TsNamespaceDecl
fn fold_ts_namespace_decl(
&mut self,
n: TsNamespaceDecl,
__ast_path: &mut AstKindPath
) -> TsNamespaceDecl
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_namespace_export_decl(
&mut self,
n: TsNamespaceExportDecl,
__ast_path: &mut AstKindPath
) -> TsNamespaceExportDecl
fn fold_ts_namespace_export_decl(
&mut self,
n: TsNamespaceExportDecl,
__ast_path: &mut AstKindPath
) -> TsNamespaceExportDecl
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_non_null_expr(
&mut self,
n: TsNonNullExpr,
__ast_path: &mut AstKindPath
) -> TsNonNullExpr
fn fold_ts_non_null_expr(
&mut self,
n: TsNonNullExpr,
__ast_path: &mut AstKindPath
) -> TsNonNullExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_optional_type(
&mut self,
n: TsOptionalType,
__ast_path: &mut AstKindPath
) -> TsOptionalType
fn fold_ts_optional_type(
&mut self,
n: TsOptionalType,
__ast_path: &mut AstKindPath
) -> TsOptionalType
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_param_prop(
&mut self,
n: TsParamProp,
__ast_path: &mut AstKindPath
) -> TsParamProp
fn fold_ts_param_prop(
&mut self,
n: TsParamProp,
__ast_path: &mut AstKindPath
) -> TsParamProp
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_param_prop_param(
&mut self,
n: TsParamPropParam,
__ast_path: &mut AstKindPath
) -> TsParamPropParam
fn fold_ts_param_prop_param(
&mut self,
n: TsParamPropParam,
__ast_path: &mut AstKindPath
) -> TsParamPropParam
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_parenthesized_type(
&mut self,
n: TsParenthesizedType,
__ast_path: &mut AstKindPath
) -> TsParenthesizedType
fn fold_ts_parenthesized_type(
&mut self,
n: TsParenthesizedType,
__ast_path: &mut AstKindPath
) -> TsParenthesizedType
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_property_signature(
&mut self,
n: TsPropertySignature,
__ast_path: &mut AstKindPath
) -> TsPropertySignature
fn fold_ts_property_signature(
&mut self,
n: TsPropertySignature,
__ast_path: &mut AstKindPath
) -> TsPropertySignature
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_qualified_name(
&mut self,
n: TsQualifiedName,
__ast_path: &mut AstKindPath
) -> TsQualifiedName
fn fold_ts_qualified_name(
&mut self,
n: TsQualifiedName,
__ast_path: &mut AstKindPath
) -> TsQualifiedName
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_rest_type(
&mut self,
n: TsRestType,
__ast_path: &mut AstKindPath
) -> TsRestType
fn fold_ts_rest_type(
&mut self,
n: TsRestType,
__ast_path: &mut AstKindPath
) -> TsRestType
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_satisfies_expr(
&mut self,
n: TsSatisfiesExpr,
__ast_path: &mut AstKindPath
) -> TsSatisfiesExpr
fn fold_ts_satisfies_expr(
&mut self,
n: TsSatisfiesExpr,
__ast_path: &mut AstKindPath
) -> TsSatisfiesExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_setter_signature(
&mut self,
n: TsSetterSignature,
__ast_path: &mut AstKindPath
) -> TsSetterSignature
fn fold_ts_setter_signature(
&mut self,
n: TsSetterSignature,
__ast_path: &mut AstKindPath
) -> TsSetterSignature
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_this_type(
&mut self,
n: TsThisType,
__ast_path: &mut AstKindPath
) -> TsThisType
fn fold_ts_this_type(
&mut self,
n: TsThisType,
__ast_path: &mut AstKindPath
) -> TsThisType
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_this_type_or_ident(
&mut self,
n: TsThisTypeOrIdent,
__ast_path: &mut AstKindPath
) -> TsThisTypeOrIdent
fn fold_ts_this_type_or_ident(
&mut self,
n: TsThisTypeOrIdent,
__ast_path: &mut AstKindPath
) -> TsThisTypeOrIdent
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_tpl_lit_type(
&mut self,
n: TsTplLitType,
__ast_path: &mut AstKindPath
) -> TsTplLitType
fn fold_ts_tpl_lit_type(
&mut self,
n: TsTplLitType,
__ast_path: &mut AstKindPath
) -> TsTplLitType
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_tuple_element(
&mut self,
n: TsTupleElement,
__ast_path: &mut AstKindPath
) -> TsTupleElement
fn fold_ts_tuple_element(
&mut self,
n: TsTupleElement,
__ast_path: &mut AstKindPath
) -> TsTupleElement
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_ts_tuple_elements(
&mut self,
n: Vec<TsTupleElement>,
__ast_path: &mut AstKindPath
) -> Vec<TsTupleElement> ⓘ
sourcefn fold_ts_tuple_type(
&mut self,
n: TsTupleType,
__ast_path: &mut AstKindPath
) -> TsTupleType
fn fold_ts_tuple_type(
&mut self,
n: TsTupleType,
__ast_path: &mut AstKindPath
) -> TsTupleType
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_type(&mut self, n: TsType, __ast_path: &mut AstKindPath) -> TsType
fn fold_ts_type(&mut self, n: TsType, __ast_path: &mut AstKindPath) -> TsType
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_type_alias_decl(
&mut self,
n: TsTypeAliasDecl,
__ast_path: &mut AstKindPath
) -> TsTypeAliasDecl
fn fold_ts_type_alias_decl(
&mut self,
n: TsTypeAliasDecl,
__ast_path: &mut AstKindPath
) -> TsTypeAliasDecl
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_type_ann(
&mut self,
n: TsTypeAnn,
__ast_path: &mut AstKindPath
) -> TsTypeAnn
fn fold_ts_type_ann(
&mut self,
n: TsTypeAnn,
__ast_path: &mut AstKindPath
) -> TsTypeAnn
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_type_assertion(
&mut self,
n: TsTypeAssertion,
__ast_path: &mut AstKindPath
) -> TsTypeAssertion
fn fold_ts_type_assertion(
&mut self,
n: TsTypeAssertion,
__ast_path: &mut AstKindPath
) -> TsTypeAssertion
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_type_element(
&mut self,
n: TsTypeElement,
__ast_path: &mut AstKindPath
) -> TsTypeElement
fn fold_ts_type_element(
&mut self,
n: TsTypeElement,
__ast_path: &mut AstKindPath
) -> TsTypeElement
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_ts_type_elements(
&mut self,
n: Vec<TsTypeElement>,
__ast_path: &mut AstKindPath
) -> Vec<TsTypeElement> ⓘ
sourcefn fold_ts_type_lit(
&mut self,
n: TsTypeLit,
__ast_path: &mut AstKindPath
) -> TsTypeLit
fn fold_ts_type_lit(
&mut self,
n: TsTypeLit,
__ast_path: &mut AstKindPath
) -> TsTypeLit
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_type_operator(
&mut self,
n: TsTypeOperator,
__ast_path: &mut AstKindPath
) -> TsTypeOperator
fn fold_ts_type_operator(
&mut self,
n: TsTypeOperator,
__ast_path: &mut AstKindPath
) -> TsTypeOperator
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_type_operator_op(
&mut self,
n: TsTypeOperatorOp,
__ast_path: &mut AstKindPath
) -> TsTypeOperatorOp
fn fold_ts_type_operator_op(
&mut self,
n: TsTypeOperatorOp,
__ast_path: &mut AstKindPath
) -> TsTypeOperatorOp
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_type_param(
&mut self,
n: TsTypeParam,
__ast_path: &mut AstKindPath
) -> TsTypeParam
fn fold_ts_type_param(
&mut self,
n: TsTypeParam,
__ast_path: &mut AstKindPath
) -> TsTypeParam
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_type_param_decl(
&mut self,
n: TsTypeParamDecl,
__ast_path: &mut AstKindPath
) -> TsTypeParamDecl
fn fold_ts_type_param_decl(
&mut self,
n: TsTypeParamDecl,
__ast_path: &mut AstKindPath
) -> TsTypeParamDecl
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_type_param_instantiation(
&mut self,
n: TsTypeParamInstantiation,
__ast_path: &mut AstKindPath
) -> TsTypeParamInstantiation
fn fold_ts_type_param_instantiation(
&mut self,
n: TsTypeParamInstantiation,
__ast_path: &mut AstKindPath
) -> TsTypeParamInstantiation
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_ts_type_params(
&mut self,
n: Vec<TsTypeParam>,
__ast_path: &mut AstKindPath
) -> Vec<TsTypeParam> ⓘ
sourcefn fold_ts_type_predicate(
&mut self,
n: TsTypePredicate,
__ast_path: &mut AstKindPath
) -> TsTypePredicate
fn fold_ts_type_predicate(
&mut self,
n: TsTypePredicate,
__ast_path: &mut AstKindPath
) -> TsTypePredicate
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_type_query(
&mut self,
n: TsTypeQuery,
__ast_path: &mut AstKindPath
) -> TsTypeQuery
fn fold_ts_type_query(
&mut self,
n: TsTypeQuery,
__ast_path: &mut AstKindPath
) -> TsTypeQuery
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_type_query_expr(
&mut self,
n: TsTypeQueryExpr,
__ast_path: &mut AstKindPath
) -> TsTypeQueryExpr
fn fold_ts_type_query_expr(
&mut self,
n: TsTypeQueryExpr,
__ast_path: &mut AstKindPath
) -> TsTypeQueryExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_type_ref(
&mut self,
n: TsTypeRef,
__ast_path: &mut AstKindPath
) -> TsTypeRef
fn fold_ts_type_ref(
&mut self,
n: TsTypeRef,
__ast_path: &mut AstKindPath
) -> TsTypeRef
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_ts_types(
&mut self,
n: Vec<Box<TsType>>,
__ast_path: &mut AstKindPath
) -> Vec<Box<TsType>> ⓘ
sourcefn fold_ts_union_or_intersection_type(
&mut self,
n: TsUnionOrIntersectionType,
__ast_path: &mut AstKindPath
) -> TsUnionOrIntersectionType
fn fold_ts_union_or_intersection_type(
&mut self,
n: TsUnionOrIntersectionType,
__ast_path: &mut AstKindPath
) -> TsUnionOrIntersectionType
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_ts_union_type(
&mut self,
n: TsUnionType,
__ast_path: &mut AstKindPath
) -> TsUnionType
fn fold_ts_union_type(
&mut self,
n: TsUnionType,
__ast_path: &mut AstKindPath
) -> TsUnionType
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_unary_expr(
&mut self,
n: UnaryExpr,
__ast_path: &mut AstKindPath
) -> UnaryExpr
fn fold_unary_expr(
&mut self,
n: UnaryExpr,
__ast_path: &mut AstKindPath
) -> UnaryExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_unary_op(&mut self, n: UnaryOp, __ast_path: &mut AstKindPath) -> UnaryOp
fn fold_unary_op(&mut self, n: UnaryOp, __ast_path: &mut AstKindPath) -> UnaryOp
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_update_expr(
&mut self,
n: UpdateExpr,
__ast_path: &mut AstKindPath
) -> UpdateExpr
fn fold_update_expr(
&mut self,
n: UpdateExpr,
__ast_path: &mut AstKindPath
) -> UpdateExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_update_op(
&mut self,
n: UpdateOp,
__ast_path: &mut AstKindPath
) -> UpdateOp
fn fold_update_op(
&mut self,
n: UpdateOp,
__ast_path: &mut AstKindPath
) -> UpdateOp
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_var_decl(&mut self, n: VarDecl, __ast_path: &mut AstKindPath) -> VarDecl
fn fold_var_decl(&mut self, n: VarDecl, __ast_path: &mut AstKindPath) -> VarDecl
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_var_decl_kind(
&mut self,
n: VarDeclKind,
__ast_path: &mut AstKindPath
) -> VarDeclKind
fn fold_var_decl_kind(
&mut self,
n: VarDeclKind,
__ast_path: &mut AstKindPath
) -> VarDeclKind
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_var_decl_or_expr(
&mut self,
n: VarDeclOrExpr,
__ast_path: &mut AstKindPath
) -> VarDeclOrExpr
fn fold_var_decl_or_expr(
&mut self,
n: VarDeclOrExpr,
__ast_path: &mut AstKindPath
) -> VarDeclOrExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_var_decl_or_pat(
&mut self,
n: VarDeclOrPat,
__ast_path: &mut AstKindPath
) -> VarDeclOrPat
fn fold_var_decl_or_pat(
&mut self,
n: VarDeclOrPat,
__ast_path: &mut AstKindPath
) -> VarDeclOrPat
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_var_declarator(
&mut self,
n: VarDeclarator,
__ast_path: &mut AstKindPath
) -> VarDeclarator
fn fold_var_declarator(
&mut self,
n: VarDeclarator,
__ast_path: &mut AstKindPath
) -> VarDeclarator
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
fn fold_var_declarators(
&mut self,
n: Vec<VarDeclarator>,
__ast_path: &mut AstKindPath
) -> Vec<VarDeclarator> ⓘ
sourcefn fold_while_stmt(
&mut self,
n: WhileStmt,
__ast_path: &mut AstKindPath
) -> WhileStmt
fn fold_while_stmt(
&mut self,
n: WhileStmt,
__ast_path: &mut AstKindPath
) -> WhileStmt
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_with_stmt(
&mut self,
n: WithStmt,
__ast_path: &mut AstKindPath
) -> WithStmt
fn fold_with_stmt(
&mut self,
n: WithStmt,
__ast_path: &mut AstKindPath
) -> WithStmt
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.
sourcefn fold_yield_expr(
&mut self,
n: YieldExpr,
__ast_path: &mut AstKindPath
) -> YieldExpr
fn fold_yield_expr(
&mut self,
n: YieldExpr,
__ast_path: &mut AstKindPath
) -> YieldExpr
This method can be overriden to customize the visitor behavior.
This calls FoldWithPath::fold_children_with_path
on n
by default. The default method visit children nodes with self
.