pub struct FoldPass<V> { /* private fields */ }
Trait Implementations§
Source§impl<V> CompilerPass for FoldPass<V>where
V: Fold + CompilerPass,
impl<V> CompilerPass for FoldPass<V>where
V: Fold + CompilerPass,
Source§impl<V> Fold for FoldPass<V>where
V: Fold,
impl<V> Fold for FoldPass<V>where
V: Fold,
Source§fn fold_module_item(&mut self, item: ModuleItem) -> ModuleItem
fn fold_module_item(&mut self, item: ModuleItem) -> ModuleItem
Visit a node of type
ModuleItem
. Read moreSource§fn fold_assign_target(&mut self, target: AssignTarget) -> AssignTarget
fn fold_assign_target(&mut self, target: AssignTarget) -> AssignTarget
Visit a node of type
AssignTarget
. Read moreSource§fn fold_accessibility(&mut self, node: Accessibility) -> Accessibility
fn fold_accessibility(&mut self, node: Accessibility) -> Accessibility
Visit a node of type
Accessibility
. Read moreSource§fn fold_array_lit(&mut self, node: ArrayLit) -> ArrayLit
fn fold_array_lit(&mut self, node: ArrayLit) -> ArrayLit
Visit a node of type
ArrayLit
. Read moreSource§fn fold_array_pat(&mut self, node: ArrayPat) -> ArrayPat
fn fold_array_pat(&mut self, node: ArrayPat) -> ArrayPat
Visit a node of type
ArrayPat
. Read moreSource§fn fold_arrow_expr(&mut self, node: ArrowExpr) -> ArrowExpr
fn fold_arrow_expr(&mut self, node: ArrowExpr) -> ArrowExpr
Visit a node of type
ArrowExpr
. Read moreSource§fn fold_assign_expr(&mut self, node: AssignExpr) -> AssignExpr
fn fold_assign_expr(&mut self, node: AssignExpr) -> AssignExpr
Visit a node of type
AssignExpr
. Read moreSource§fn fold_assign_op(&mut self, node: AssignOp) -> AssignOp
fn fold_assign_op(&mut self, node: AssignOp) -> AssignOp
Visit a node of type
AssignOp
. Read moreSource§fn fold_assign_pat(&mut self, node: AssignPat) -> AssignPat
fn fold_assign_pat(&mut self, node: AssignPat) -> AssignPat
Visit a node of type
AssignPat
. Read moreSource§fn fold_assign_pat_prop(&mut self, node: AssignPatProp) -> AssignPatProp
fn fold_assign_pat_prop(&mut self, node: AssignPatProp) -> AssignPatProp
Visit a node of type
AssignPatProp
. Read moreSource§fn fold_assign_prop(&mut self, node: AssignProp) -> AssignProp
fn fold_assign_prop(&mut self, node: AssignProp) -> AssignProp
Visit a node of type
AssignProp
. Read moreSource§fn fold_assign_target_pat(&mut self, node: AssignTargetPat) -> AssignTargetPat
fn fold_assign_target_pat(&mut self, node: AssignTargetPat) -> AssignTargetPat
Visit a node of type
AssignTargetPat
. Read moreSource§fn fold_auto_accessor(&mut self, node: AutoAccessor) -> AutoAccessor
fn fold_auto_accessor(&mut self, node: AutoAccessor) -> AutoAccessor
Visit a node of type
AutoAccessor
. Read moreSource§fn fold_await_expr(&mut self, node: AwaitExpr) -> AwaitExpr
fn fold_await_expr(&mut self, node: AwaitExpr) -> AwaitExpr
Visit a node of type
AwaitExpr
. Read moreSource§fn fold_big_int_value(&mut self, node: BigIntValue) -> BigIntValue
fn fold_big_int_value(&mut self, node: BigIntValue) -> BigIntValue
Visit a node of type
BigIntValue
. Read moreSource§fn fold_binary_op(&mut self, node: BinaryOp) -> BinaryOp
fn fold_binary_op(&mut self, node: BinaryOp) -> BinaryOp
Visit a node of type
BinaryOp
. Read moreSource§fn fold_binding_ident(&mut self, node: BindingIdent) -> BindingIdent
fn fold_binding_ident(&mut self, node: BindingIdent) -> BindingIdent
Visit a node of type
BindingIdent
. Read moreSource§fn fold_block_stmt(&mut self, node: BlockStmt) -> BlockStmt
fn fold_block_stmt(&mut self, node: BlockStmt) -> BlockStmt
Visit a node of type
BlockStmt
. Read moreSource§fn fold_block_stmt_or_expr(&mut self, node: BlockStmtOrExpr) -> BlockStmtOrExpr
fn fold_block_stmt_or_expr(&mut self, node: BlockStmtOrExpr) -> BlockStmtOrExpr
Visit a node of type
BlockStmtOrExpr
. Read moreSource§fn fold_break_stmt(&mut self, node: BreakStmt) -> BreakStmt
fn fold_break_stmt(&mut self, node: BreakStmt) -> BreakStmt
Visit a node of type
BreakStmt
. Read moreSource§fn fold_call_expr(&mut self, node: CallExpr) -> CallExpr
fn fold_call_expr(&mut self, node: CallExpr) -> CallExpr
Visit a node of type
CallExpr
. Read moreSource§fn fold_catch_clause(&mut self, node: CatchClause) -> CatchClause
fn fold_catch_clause(&mut self, node: CatchClause) -> CatchClause
Visit a node of type
CatchClause
. Read moreSource§fn fold_class_decl(&mut self, node: ClassDecl) -> ClassDecl
fn fold_class_decl(&mut self, node: ClassDecl) -> ClassDecl
Visit a node of type
ClassDecl
. Read moreSource§fn fold_class_expr(&mut self, node: ClassExpr) -> ClassExpr
fn fold_class_expr(&mut self, node: ClassExpr) -> ClassExpr
Visit a node of type
ClassExpr
. Read moreSource§fn fold_class_member(&mut self, node: ClassMember) -> ClassMember
fn fold_class_member(&mut self, node: ClassMember) -> ClassMember
Visit a node of type
ClassMember
. Read moreSource§fn fold_class_members(&mut self, node: Vec<ClassMember>) -> Vec<ClassMember>
fn fold_class_members(&mut self, node: Vec<ClassMember>) -> Vec<ClassMember>
Visit a node of type
Vec < ClassMember >
. Read moreSource§fn fold_class_method(&mut self, node: ClassMethod) -> ClassMethod
fn fold_class_method(&mut self, node: ClassMethod) -> ClassMethod
Visit a node of type
ClassMethod
. Read moreSource§fn fold_class_prop(&mut self, node: ClassProp) -> ClassProp
fn fold_class_prop(&mut self, node: ClassProp) -> ClassProp
Visit a node of type
ClassProp
. Read moreSource§fn fold_computed_prop_name(
&mut self,
node: ComputedPropName,
) -> ComputedPropName
fn fold_computed_prop_name( &mut self, node: ComputedPropName, ) -> ComputedPropName
Visit a node of type
ComputedPropName
. Read moreSource§fn fold_cond_expr(&mut self, node: CondExpr) -> CondExpr
fn fold_cond_expr(&mut self, node: CondExpr) -> CondExpr
Visit a node of type
CondExpr
. Read moreSource§fn fold_constructor(&mut self, node: Constructor) -> Constructor
fn fold_constructor(&mut self, node: Constructor) -> Constructor
Visit a node of type
Constructor
. Read moreSource§fn fold_continue_stmt(&mut self, node: ContinueStmt) -> ContinueStmt
fn fold_continue_stmt(&mut self, node: ContinueStmt) -> ContinueStmt
Visit a node of type
ContinueStmt
. Read moreSource§fn fold_debugger_stmt(&mut self, node: DebuggerStmt) -> DebuggerStmt
fn fold_debugger_stmt(&mut self, node: DebuggerStmt) -> DebuggerStmt
Visit a node of type
DebuggerStmt
. Read moreSource§fn fold_decorator(&mut self, node: Decorator) -> Decorator
fn fold_decorator(&mut self, node: Decorator) -> Decorator
Visit a node of type
Decorator
. Read moreSource§fn fold_decorators(&mut self, node: Vec<Decorator>) -> Vec<Decorator>
fn fold_decorators(&mut self, node: Vec<Decorator>) -> Vec<Decorator>
Visit a node of type
Vec < Decorator >
. Read moreSource§fn fold_default_decl(&mut self, node: DefaultDecl) -> DefaultDecl
fn fold_default_decl(&mut self, node: DefaultDecl) -> DefaultDecl
Visit a node of type
DefaultDecl
. Read moreSource§fn fold_do_while_stmt(&mut self, node: DoWhileStmt) -> DoWhileStmt
fn fold_do_while_stmt(&mut self, node: DoWhileStmt) -> DoWhileStmt
Visit a node of type
DoWhileStmt
. Read moreSource§fn fold_empty_stmt(&mut self, node: EmptyStmt) -> EmptyStmt
fn fold_empty_stmt(&mut self, node: EmptyStmt) -> EmptyStmt
Visit a node of type
EmptyStmt
. Read moreSource§fn fold_export_all(&mut self, node: ExportAll) -> ExportAll
fn fold_export_all(&mut self, node: ExportAll) -> ExportAll
Visit a node of type
ExportAll
. Read moreSource§fn fold_export_decl(&mut self, node: ExportDecl) -> ExportDecl
fn fold_export_decl(&mut self, node: ExportDecl) -> ExportDecl
Visit a node of type
ExportDecl
. Read moreSource§fn fold_export_default_decl(
&mut self,
node: ExportDefaultDecl,
) -> ExportDefaultDecl
fn fold_export_default_decl( &mut self, node: ExportDefaultDecl, ) -> ExportDefaultDecl
Visit a node of type
ExportDefaultDecl
. Read moreSource§fn fold_export_default_expr(
&mut self,
node: ExportDefaultExpr,
) -> ExportDefaultExpr
fn fold_export_default_expr( &mut self, node: ExportDefaultExpr, ) -> ExportDefaultExpr
Visit a node of type
ExportDefaultExpr
. Read moreSource§fn fold_export_default_specifier(
&mut self,
node: ExportDefaultSpecifier,
) -> ExportDefaultSpecifier
fn fold_export_default_specifier( &mut self, node: ExportDefaultSpecifier, ) -> ExportDefaultSpecifier
Visit a node of type
ExportDefaultSpecifier
. Read moreSource§fn fold_export_named_specifier(
&mut self,
node: ExportNamedSpecifier,
) -> ExportNamedSpecifier
fn fold_export_named_specifier( &mut self, node: ExportNamedSpecifier, ) -> ExportNamedSpecifier
Visit a node of type
ExportNamedSpecifier
. Read moreSource§fn fold_export_namespace_specifier(
&mut self,
node: ExportNamespaceSpecifier,
) -> ExportNamespaceSpecifier
fn fold_export_namespace_specifier( &mut self, node: ExportNamespaceSpecifier, ) -> ExportNamespaceSpecifier
Visit a node of type
ExportNamespaceSpecifier
. Read moreSource§fn fold_export_specifier(&mut self, node: ExportSpecifier) -> ExportSpecifier
fn fold_export_specifier(&mut self, node: ExportSpecifier) -> ExportSpecifier
Visit a node of type
ExportSpecifier
. Read moreSource§fn fold_export_specifiers(
&mut self,
node: Vec<ExportSpecifier>,
) -> Vec<ExportSpecifier>
fn fold_export_specifiers( &mut self, node: Vec<ExportSpecifier>, ) -> Vec<ExportSpecifier>
Visit a node of type
Vec < ExportSpecifier >
. Read moreSource§fn fold_expr_or_spread(&mut self, node: ExprOrSpread) -> ExprOrSpread
fn fold_expr_or_spread(&mut self, node: ExprOrSpread) -> ExprOrSpread
Visit a node of type
ExprOrSpread
. Read moreSource§fn fold_expr_or_spreads(&mut self, node: Vec<ExprOrSpread>) -> Vec<ExprOrSpread>
fn fold_expr_or_spreads(&mut self, node: Vec<ExprOrSpread>) -> Vec<ExprOrSpread>
Visit a node of type
Vec < ExprOrSpread >
. Read moreSource§fn fold_expr_stmt(&mut self, node: ExprStmt) -> ExprStmt
fn fold_expr_stmt(&mut self, node: ExprStmt) -> ExprStmt
Visit a node of type
ExprStmt
. Read moreSource§fn fold_exprs(&mut self, node: Vec<Box<Expr>>) -> Vec<Box<Expr>>
fn fold_exprs(&mut self, node: Vec<Box<Expr>>) -> Vec<Box<Expr>>
Visit a node of type
Vec < Box < Expr > >
. Read moreSource§fn fold_for_in_stmt(&mut self, node: ForInStmt) -> ForInStmt
fn fold_for_in_stmt(&mut self, node: ForInStmt) -> ForInStmt
Visit a node of type
ForInStmt
. Read moreSource§fn fold_for_of_stmt(&mut self, node: ForOfStmt) -> ForOfStmt
fn fold_for_of_stmt(&mut self, node: ForOfStmt) -> ForOfStmt
Visit a node of type
ForOfStmt
. Read moreSource§fn fold_function(&mut self, node: Function) -> Function
fn fold_function(&mut self, node: Function) -> Function
Visit a node of type
Function
. Read moreSource§fn fold_getter_prop(&mut self, node: GetterProp) -> GetterProp
fn fold_getter_prop(&mut self, node: GetterProp) -> GetterProp
Visit a node of type
GetterProp
. Read moreSource§fn fold_ident_name(&mut self, node: IdentName) -> IdentName
fn fold_ident_name(&mut self, node: IdentName) -> IdentName
Visit a node of type
IdentName
. Read moreSource§fn fold_import_decl(&mut self, node: ImportDecl) -> ImportDecl
fn fold_import_decl(&mut self, node: ImportDecl) -> ImportDecl
Visit a node of type
ImportDecl
. Read moreSource§fn fold_import_default_specifier(
&mut self,
node: ImportDefaultSpecifier,
) -> ImportDefaultSpecifier
fn fold_import_default_specifier( &mut self, node: ImportDefaultSpecifier, ) -> ImportDefaultSpecifier
Visit a node of type
ImportDefaultSpecifier
. Read moreSource§fn fold_import_named_specifier(
&mut self,
node: ImportNamedSpecifier,
) -> ImportNamedSpecifier
fn fold_import_named_specifier( &mut self, node: ImportNamedSpecifier, ) -> ImportNamedSpecifier
Visit a node of type
ImportNamedSpecifier
. Read moreSource§fn fold_import_phase(&mut self, node: ImportPhase) -> ImportPhase
fn fold_import_phase(&mut self, node: ImportPhase) -> ImportPhase
Visit a node of type
ImportPhase
. Read moreSource§fn fold_import_specifier(&mut self, node: ImportSpecifier) -> ImportSpecifier
fn fold_import_specifier(&mut self, node: ImportSpecifier) -> ImportSpecifier
Visit a node of type
ImportSpecifier
. Read moreSource§fn fold_import_specifiers(
&mut self,
node: Vec<ImportSpecifier>,
) -> Vec<ImportSpecifier>
fn fold_import_specifiers( &mut self, node: Vec<ImportSpecifier>, ) -> Vec<ImportSpecifier>
Visit a node of type
Vec < ImportSpecifier >
. Read moreSource§fn fold_import_star_as_specifier(
&mut self,
node: ImportStarAsSpecifier,
) -> ImportStarAsSpecifier
fn fold_import_star_as_specifier( &mut self, node: ImportStarAsSpecifier, ) -> ImportStarAsSpecifier
Visit a node of type
ImportStarAsSpecifier
. Read moreSource§fn fold_import_with(&mut self, node: ImportWith) -> ImportWith
fn fold_import_with(&mut self, node: ImportWith) -> ImportWith
Visit a node of type
ImportWith
. Read moreSource§fn fold_import_with_item(&mut self, node: ImportWithItem) -> ImportWithItem
fn fold_import_with_item(&mut self, node: ImportWithItem) -> ImportWithItem
Visit a node of type
ImportWithItem
. Read moreSource§fn fold_import_with_items(
&mut self,
node: Vec<ImportWithItem>,
) -> Vec<ImportWithItem>
fn fold_import_with_items( &mut self, node: Vec<ImportWithItem>, ) -> Vec<ImportWithItem>
Visit a node of type
Vec < ImportWithItem >
. Read moreSource§fn fold_jsx_attr_name(&mut self, node: JSXAttrName) -> JSXAttrName
fn fold_jsx_attr_name(&mut self, node: JSXAttrName) -> JSXAttrName
Visit a node of type
JSXAttrName
. Read moreSource§fn fold_jsx_attr_or_spread(&mut self, node: JSXAttrOrSpread) -> JSXAttrOrSpread
fn fold_jsx_attr_or_spread(&mut self, node: JSXAttrOrSpread) -> JSXAttrOrSpread
Visit a node of type
JSXAttrOrSpread
. Read moreSource§fn fold_jsx_attr_or_spreads(
&mut self,
node: Vec<JSXAttrOrSpread>,
) -> Vec<JSXAttrOrSpread>
fn fold_jsx_attr_or_spreads( &mut self, node: Vec<JSXAttrOrSpread>, ) -> Vec<JSXAttrOrSpread>
Visit a node of type
Vec < JSXAttrOrSpread >
. Read moreSource§fn fold_jsx_attr_value(&mut self, node: JSXAttrValue) -> JSXAttrValue
fn fold_jsx_attr_value(&mut self, node: JSXAttrValue) -> JSXAttrValue
Visit a node of type
JSXAttrValue
. Read moreSource§fn fold_jsx_closing_element(
&mut self,
node: JSXClosingElement,
) -> JSXClosingElement
fn fold_jsx_closing_element( &mut self, node: JSXClosingElement, ) -> JSXClosingElement
Visit a node of type
JSXClosingElement
. Read moreSource§fn fold_jsx_closing_fragment(
&mut self,
node: JSXClosingFragment,
) -> JSXClosingFragment
fn fold_jsx_closing_fragment( &mut self, node: JSXClosingFragment, ) -> JSXClosingFragment
Visit a node of type
JSXClosingFragment
. Read moreSource§fn fold_jsx_element(&mut self, node: JSXElement) -> JSXElement
fn fold_jsx_element(&mut self, node: JSXElement) -> JSXElement
Visit a node of type
JSXElement
. Read moreSource§fn fold_jsx_element_child(&mut self, node: JSXElementChild) -> JSXElementChild
fn fold_jsx_element_child(&mut self, node: JSXElementChild) -> JSXElementChild
Visit a node of type
JSXElementChild
. Read moreSource§fn fold_jsx_element_childs(
&mut self,
node: Vec<JSXElementChild>,
) -> Vec<JSXElementChild>
fn fold_jsx_element_childs( &mut self, node: Vec<JSXElementChild>, ) -> Vec<JSXElementChild>
Visit a node of type
Vec < JSXElementChild >
. Read moreSource§fn fold_jsx_element_name(&mut self, node: JSXElementName) -> JSXElementName
fn fold_jsx_element_name(&mut self, node: JSXElementName) -> JSXElementName
Visit a node of type
JSXElementName
. Read moreSource§fn fold_jsx_empty_expr(&mut self, node: JSXEmptyExpr) -> JSXEmptyExpr
fn fold_jsx_empty_expr(&mut self, node: JSXEmptyExpr) -> JSXEmptyExpr
Visit a node of type
JSXEmptyExpr
. Read moreSource§fn fold_jsx_expr_container(
&mut self,
node: JSXExprContainer,
) -> JSXExprContainer
fn fold_jsx_expr_container( &mut self, node: JSXExprContainer, ) -> JSXExprContainer
Visit a node of type
JSXExprContainer
. Read moreSource§fn fold_jsx_fragment(&mut self, node: JSXFragment) -> JSXFragment
fn fold_jsx_fragment(&mut self, node: JSXFragment) -> JSXFragment
Visit a node of type
JSXFragment
. Read moreSource§fn fold_jsx_member_expr(&mut self, node: JSXMemberExpr) -> JSXMemberExpr
fn fold_jsx_member_expr(&mut self, node: JSXMemberExpr) -> JSXMemberExpr
Visit a node of type
JSXMemberExpr
. Read moreSource§fn fold_jsx_namespaced_name(
&mut self,
node: JSXNamespacedName,
) -> JSXNamespacedName
fn fold_jsx_namespaced_name( &mut self, node: JSXNamespacedName, ) -> JSXNamespacedName
Visit a node of type
JSXNamespacedName
. Read moreSource§fn fold_jsx_object(&mut self, node: JSXObject) -> JSXObject
fn fold_jsx_object(&mut self, node: JSXObject) -> JSXObject
Visit a node of type
JSXObject
. Read moreSource§fn fold_jsx_opening_element(
&mut self,
node: JSXOpeningElement,
) -> JSXOpeningElement
fn fold_jsx_opening_element( &mut self, node: JSXOpeningElement, ) -> JSXOpeningElement
Visit a node of type
JSXOpeningElement
. Read moreSource§fn fold_jsx_opening_fragment(
&mut self,
node: JSXOpeningFragment,
) -> JSXOpeningFragment
fn fold_jsx_opening_fragment( &mut self, node: JSXOpeningFragment, ) -> JSXOpeningFragment
Visit a node of type
JSXOpeningFragment
. Read moreSource§fn fold_jsx_spread_child(&mut self, node: JSXSpreadChild) -> JSXSpreadChild
fn fold_jsx_spread_child(&mut self, node: JSXSpreadChild) -> JSXSpreadChild
Visit a node of type
JSXSpreadChild
. Read moreSource§fn fold_key_value_pat_prop(&mut self, node: KeyValuePatProp) -> KeyValuePatProp
fn fold_key_value_pat_prop(&mut self, node: KeyValuePatProp) -> KeyValuePatProp
Visit a node of type
KeyValuePatProp
. Read moreSource§fn fold_key_value_prop(&mut self, node: KeyValueProp) -> KeyValueProp
fn fold_key_value_prop(&mut self, node: KeyValueProp) -> KeyValueProp
Visit a node of type
KeyValueProp
. Read moreSource§fn fold_labeled_stmt(&mut self, node: LabeledStmt) -> LabeledStmt
fn fold_labeled_stmt(&mut self, node: LabeledStmt) -> LabeledStmt
Visit a node of type
LabeledStmt
. Read moreSource§fn fold_member_expr(&mut self, node: MemberExpr) -> MemberExpr
fn fold_member_expr(&mut self, node: MemberExpr) -> MemberExpr
Visit a node of type
MemberExpr
. Read moreSource§fn fold_member_prop(&mut self, node: MemberProp) -> MemberProp
fn fold_member_prop(&mut self, node: MemberProp) -> MemberProp
Visit a node of type
MemberProp
. Read moreSource§fn fold_meta_prop_expr(&mut self, node: MetaPropExpr) -> MetaPropExpr
fn fold_meta_prop_expr(&mut self, node: MetaPropExpr) -> MetaPropExpr
Visit a node of type
MetaPropExpr
. Read moreSource§fn fold_meta_prop_kind(&mut self, node: MetaPropKind) -> MetaPropKind
fn fold_meta_prop_kind(&mut self, node: MetaPropKind) -> MetaPropKind
Visit a node of type
MetaPropKind
. Read moreSource§fn fold_method_kind(&mut self, node: MethodKind) -> MethodKind
fn fold_method_kind(&mut self, node: MethodKind) -> MethodKind
Visit a node of type
MethodKind
. Read moreSource§fn fold_method_prop(&mut self, node: MethodProp) -> MethodProp
fn fold_method_prop(&mut self, node: MethodProp) -> MethodProp
Visit a node of type
MethodProp
. Read moreSource§fn fold_module_decl(&mut self, node: ModuleDecl) -> ModuleDecl
fn fold_module_decl(&mut self, node: ModuleDecl) -> ModuleDecl
Visit a node of type
ModuleDecl
. Read moreSource§fn fold_module_export_name(
&mut self,
node: ModuleExportName,
) -> ModuleExportName
fn fold_module_export_name( &mut self, node: ModuleExportName, ) -> ModuleExportName
Visit a node of type
ModuleExportName
. Read moreSource§fn fold_module_items(&mut self, node: Vec<ModuleItem>) -> Vec<ModuleItem>
fn fold_module_items(&mut self, node: Vec<ModuleItem>) -> Vec<ModuleItem>
Visit a node of type
Vec < ModuleItem >
. Read moreSource§fn fold_named_export(&mut self, node: NamedExport) -> NamedExport
fn fold_named_export(&mut self, node: NamedExport) -> NamedExport
Visit a node of type
NamedExport
. Read moreSource§fn fold_object_lit(&mut self, node: ObjectLit) -> ObjectLit
fn fold_object_lit(&mut self, node: ObjectLit) -> ObjectLit
Visit a node of type
ObjectLit
. Read moreSource§fn fold_object_pat(&mut self, node: ObjectPat) -> ObjectPat
fn fold_object_pat(&mut self, node: ObjectPat) -> ObjectPat
Visit a node of type
ObjectPat
. Read moreSource§fn fold_object_pat_prop(&mut self, node: ObjectPatProp) -> ObjectPatProp
fn fold_object_pat_prop(&mut self, node: ObjectPatProp) -> ObjectPatProp
Visit a node of type
ObjectPatProp
. Read moreSource§fn fold_object_pat_props(
&mut self,
node: Vec<ObjectPatProp>,
) -> Vec<ObjectPatProp>
fn fold_object_pat_props( &mut self, node: Vec<ObjectPatProp>, ) -> Vec<ObjectPatProp>
Visit a node of type
Vec < ObjectPatProp >
. Read moreSource§fn fold_opt_accessibility(
&mut self,
node: Option<Accessibility>,
) -> Option<Accessibility>
fn fold_opt_accessibility( &mut self, node: Option<Accessibility>, ) -> Option<Accessibility>
Visit a node of type
Option < Accessibility >
. Read moreSource§fn fold_opt_atom(&mut self, node: Option<Atom>) -> Option<Atom>
fn fold_opt_atom(&mut self, node: Option<Atom>) -> Option<Atom>
Visit a node of type
Option < swc_atoms :: Atom >
. Read moreSource§fn fold_opt_block_stmt(&mut self, node: Option<BlockStmt>) -> Option<BlockStmt>
fn fold_opt_block_stmt(&mut self, node: Option<BlockStmt>) -> Option<BlockStmt>
Visit a node of type
Option < BlockStmt >
. Read moreSource§fn fold_opt_catch_clause(
&mut self,
node: Option<CatchClause>,
) -> Option<CatchClause>
fn fold_opt_catch_clause( &mut self, node: Option<CatchClause>, ) -> Option<CatchClause>
Visit a node of type
Option < CatchClause >
. Read moreSource§fn fold_opt_chain_base(&mut self, node: OptChainBase) -> OptChainBase
fn fold_opt_chain_base(&mut self, node: OptChainBase) -> OptChainBase
Visit a node of type
OptChainBase
. Read moreSource§fn fold_opt_chain_expr(&mut self, node: OptChainExpr) -> OptChainExpr
fn fold_opt_chain_expr(&mut self, node: OptChainExpr) -> OptChainExpr
Visit a node of type
OptChainExpr
. Read moreSource§fn fold_opt_expr(&mut self, node: Option<Box<Expr>>) -> Option<Box<Expr>>
fn fold_opt_expr(&mut self, node: Option<Box<Expr>>) -> Option<Box<Expr>>
Visit a node of type
Option < Box < Expr > >
. Read moreSource§fn fold_opt_expr_or_spread(
&mut self,
node: Option<ExprOrSpread>,
) -> Option<ExprOrSpread>
fn fold_opt_expr_or_spread( &mut self, node: Option<ExprOrSpread>, ) -> Option<ExprOrSpread>
Visit a node of type
Option < ExprOrSpread >
. Read moreSource§fn fold_opt_expr_or_spreads(
&mut self,
node: Option<Vec<ExprOrSpread>>,
) -> Option<Vec<ExprOrSpread>>
fn fold_opt_expr_or_spreads( &mut self, node: Option<Vec<ExprOrSpread>>, ) -> Option<Vec<ExprOrSpread>>
Visit a node of type
Option < Vec < ExprOrSpread > >
. Read moreSource§fn fold_opt_ident(&mut self, node: Option<Ident>) -> Option<Ident>
fn fold_opt_ident(&mut self, node: Option<Ident>) -> Option<Ident>
Visit a node of type
Option < Ident >
. Read moreSource§fn fold_opt_jsx_attr_value(
&mut self,
node: Option<JSXAttrValue>,
) -> Option<JSXAttrValue>
fn fold_opt_jsx_attr_value( &mut self, node: Option<JSXAttrValue>, ) -> Option<JSXAttrValue>
Visit a node of type
Option < JSXAttrValue >
. Read moreSource§fn fold_opt_jsx_closing_element(
&mut self,
node: Option<JSXClosingElement>,
) -> Option<JSXClosingElement>
fn fold_opt_jsx_closing_element( &mut self, node: Option<JSXClosingElement>, ) -> Option<JSXClosingElement>
Visit a node of type
Option < JSXClosingElement >
. Read moreSource§fn fold_opt_module_export_name(
&mut self,
node: Option<ModuleExportName>,
) -> Option<ModuleExportName>
fn fold_opt_module_export_name( &mut self, node: Option<ModuleExportName>, ) -> Option<ModuleExportName>
Visit a node of type
Option < ModuleExportName >
. Read moreSource§fn fold_opt_object_lit(
&mut self,
node: Option<Box<ObjectLit>>,
) -> Option<Box<ObjectLit>>
fn fold_opt_object_lit( &mut self, node: Option<Box<ObjectLit>>, ) -> Option<Box<ObjectLit>>
Visit a node of type
Option < Box < ObjectLit > >
. Read moreSource§fn fold_opt_pat(&mut self, node: Option<Pat>) -> Option<Pat>
fn fold_opt_pat(&mut self, node: Option<Pat>) -> Option<Pat>
Visit a node of type
Option < Pat >
. Read moreSource§fn fold_opt_span(&mut self, node: Option<Span>) -> Option<Span>
fn fold_opt_span(&mut self, node: Option<Span>) -> Option<Span>
Visit a node of type
Option < swc_common :: Span >
. Read moreSource§fn fold_opt_stmt(&mut self, node: Option<Box<Stmt>>) -> Option<Box<Stmt>>
fn fold_opt_stmt(&mut self, node: Option<Box<Stmt>>) -> Option<Box<Stmt>>
Visit a node of type
Option < Box < Stmt > >
. Read moreSource§fn fold_opt_str(&mut self, node: Option<Box<Str>>) -> Option<Box<Str>>
fn fold_opt_str(&mut self, node: Option<Box<Str>>) -> Option<Box<Str>>
Visit a node of type
Option < Box < Str > >
. Read moreSource§fn fold_opt_true_plus_minus(
&mut self,
node: Option<TruePlusMinus>,
) -> Option<TruePlusMinus>
fn fold_opt_true_plus_minus( &mut self, node: Option<TruePlusMinus>, ) -> Option<TruePlusMinus>
Visit a node of type
Option < TruePlusMinus >
. Read moreSource§fn fold_opt_ts_entity_name(
&mut self,
node: Option<TsEntityName>,
) -> Option<TsEntityName>
fn fold_opt_ts_entity_name( &mut self, node: Option<TsEntityName>, ) -> Option<TsEntityName>
Visit a node of type
Option < TsEntityName >
. Read moreSource§fn fold_opt_ts_namespace_body(
&mut self,
node: Option<TsNamespaceBody>,
) -> Option<TsNamespaceBody>
fn fold_opt_ts_namespace_body( &mut self, node: Option<TsNamespaceBody>, ) -> Option<TsNamespaceBody>
Visit a node of type
Option < TsNamespaceBody >
. Read moreSource§fn fold_opt_ts_type(&mut self, node: Option<Box<TsType>>) -> Option<Box<TsType>>
fn fold_opt_ts_type(&mut self, node: Option<Box<TsType>>) -> Option<Box<TsType>>
Visit a node of type
Option < Box < TsType > >
. Read moreSource§fn fold_opt_ts_type_ann(
&mut self,
node: Option<Box<TsTypeAnn>>,
) -> Option<Box<TsTypeAnn>>
fn fold_opt_ts_type_ann( &mut self, node: Option<Box<TsTypeAnn>>, ) -> Option<Box<TsTypeAnn>>
Visit a node of type
Option < Box < TsTypeAnn > >
. Read moreSource§fn fold_opt_ts_type_param_decl(
&mut self,
node: Option<Box<TsTypeParamDecl>>,
) -> Option<Box<TsTypeParamDecl>>
fn fold_opt_ts_type_param_decl( &mut self, node: Option<Box<TsTypeParamDecl>>, ) -> Option<Box<TsTypeParamDecl>>
Visit a node of type
Option < Box < TsTypeParamDecl > >
. Read moreSource§fn fold_opt_ts_type_param_instantiation(
&mut self,
node: Option<Box<TsTypeParamInstantiation>>,
) -> Option<Box<TsTypeParamInstantiation>>
fn fold_opt_ts_type_param_instantiation( &mut self, node: Option<Box<TsTypeParamInstantiation>>, ) -> Option<Box<TsTypeParamInstantiation>>
Visit a node of type
Option < Box < TsTypeParamInstantiation > >
. Read moreSource§fn fold_opt_var_decl_or_expr(
&mut self,
node: Option<VarDeclOrExpr>,
) -> Option<VarDeclOrExpr>
fn fold_opt_var_decl_or_expr( &mut self, node: Option<VarDeclOrExpr>, ) -> Option<VarDeclOrExpr>
Visit a node of type
Option < VarDeclOrExpr >
. Read moreSource§fn fold_opt_vec_expr_or_spreads(
&mut self,
node: Vec<Option<ExprOrSpread>>,
) -> Vec<Option<ExprOrSpread>>
fn fold_opt_vec_expr_or_spreads( &mut self, node: Vec<Option<ExprOrSpread>>, ) -> Vec<Option<ExprOrSpread>>
Visit a node of type
Vec < Option < ExprOrSpread > >
. Read moreSource§fn fold_opt_vec_pats(&mut self, node: Vec<Option<Pat>>) -> Vec<Option<Pat>>
fn fold_opt_vec_pats(&mut self, node: Vec<Option<Pat>>) -> Vec<Option<Pat>>
Visit a node of type
Vec < Option < Pat > >
. Read moreSource§fn fold_param_or_ts_param_prop(
&mut self,
node: ParamOrTsParamProp,
) -> ParamOrTsParamProp
fn fold_param_or_ts_param_prop( &mut self, node: ParamOrTsParamProp, ) -> ParamOrTsParamProp
Visit a node of type
ParamOrTsParamProp
. Read moreSource§fn fold_param_or_ts_param_props(
&mut self,
node: Vec<ParamOrTsParamProp>,
) -> Vec<ParamOrTsParamProp>
fn fold_param_or_ts_param_props( &mut self, node: Vec<ParamOrTsParamProp>, ) -> Vec<ParamOrTsParamProp>
Visit a node of type
Vec < ParamOrTsParamProp >
. Read moreSource§fn fold_params(&mut self, node: Vec<Param>) -> Vec<Param>
fn fold_params(&mut self, node: Vec<Param>) -> Vec<Param>
Visit a node of type
Vec < Param >
. Read moreSource§fn fold_paren_expr(&mut self, node: ParenExpr) -> ParenExpr
fn fold_paren_expr(&mut self, node: ParenExpr) -> ParenExpr
Visit a node of type
ParenExpr
. Read moreSource§fn fold_pats(&mut self, node: Vec<Pat>) -> Vec<Pat>
fn fold_pats(&mut self, node: Vec<Pat>) -> Vec<Pat>
Visit a node of type
Vec < Pat >
. Read moreSource§fn fold_private_method(&mut self, node: PrivateMethod) -> PrivateMethod
fn fold_private_method(&mut self, node: PrivateMethod) -> PrivateMethod
Visit a node of type
PrivateMethod
. Read moreSource§fn fold_private_name(&mut self, node: PrivateName) -> PrivateName
fn fold_private_name(&mut self, node: PrivateName) -> PrivateName
Visit a node of type
PrivateName
. Read moreSource§fn fold_private_prop(&mut self, node: PrivateProp) -> PrivateProp
fn fold_private_prop(&mut self, node: PrivateProp) -> PrivateProp
Visit a node of type
PrivateProp
. Read moreSource§fn fold_prop_name(&mut self, node: PropName) -> PropName
fn fold_prop_name(&mut self, node: PropName) -> PropName
Visit a node of type
PropName
. Read moreSource§fn fold_prop_or_spread(&mut self, node: PropOrSpread) -> PropOrSpread
fn fold_prop_or_spread(&mut self, node: PropOrSpread) -> PropOrSpread
Visit a node of type
PropOrSpread
. Read moreSource§fn fold_prop_or_spreads(&mut self, node: Vec<PropOrSpread>) -> Vec<PropOrSpread>
fn fold_prop_or_spreads(&mut self, node: Vec<PropOrSpread>) -> Vec<PropOrSpread>
Visit a node of type
Vec < PropOrSpread >
. Read moreSource§fn fold_return_stmt(&mut self, node: ReturnStmt) -> ReturnStmt
fn fold_return_stmt(&mut self, node: ReturnStmt) -> ReturnStmt
Visit a node of type
ReturnStmt
. Read moreSource§fn fold_setter_prop(&mut self, node: SetterProp) -> SetterProp
fn fold_setter_prop(&mut self, node: SetterProp) -> SetterProp
Visit a node of type
SetterProp
. Read moreSource§fn fold_simple_assign_target(
&mut self,
node: SimpleAssignTarget,
) -> SimpleAssignTarget
fn fold_simple_assign_target( &mut self, node: SimpleAssignTarget, ) -> SimpleAssignTarget
Visit a node of type
SimpleAssignTarget
. Read moreSource§fn fold_span(&mut self, node: Span) -> Span
fn fold_span(&mut self, node: Span) -> Span
Visit a node of type
swc_common :: Span
. Read moreSource§fn fold_spread_element(&mut self, node: SpreadElement) -> SpreadElement
fn fold_spread_element(&mut self, node: SpreadElement) -> SpreadElement
Visit a node of type
SpreadElement
. Read moreSource§fn fold_static_block(&mut self, node: StaticBlock) -> StaticBlock
fn fold_static_block(&mut self, node: StaticBlock) -> StaticBlock
Visit a node of type
StaticBlock
. Read moreSource§fn fold_stmts(&mut self, node: Vec<Stmt>) -> Vec<Stmt>
fn fold_stmts(&mut self, node: Vec<Stmt>) -> Vec<Stmt>
Visit a node of type
Vec < Stmt >
. Read moreSource§fn fold_super_prop(&mut self, node: SuperProp) -> SuperProp
fn fold_super_prop(&mut self, node: SuperProp) -> SuperProp
Visit a node of type
SuperProp
. Read moreSource§fn fold_super_prop_expr(&mut self, node: SuperPropExpr) -> SuperPropExpr
fn fold_super_prop_expr(&mut self, node: SuperPropExpr) -> SuperPropExpr
Visit a node of type
SuperPropExpr
. Read moreSource§fn fold_switch_case(&mut self, node: SwitchCase) -> SwitchCase
fn fold_switch_case(&mut self, node: SwitchCase) -> SwitchCase
Visit a node of type
SwitchCase
. Read moreSource§fn fold_switch_cases(&mut self, node: Vec<SwitchCase>) -> Vec<SwitchCase>
fn fold_switch_cases(&mut self, node: Vec<SwitchCase>) -> Vec<SwitchCase>
Visit a node of type
Vec < SwitchCase >
. Read moreSource§fn fold_switch_stmt(&mut self, node: SwitchStmt) -> SwitchStmt
fn fold_switch_stmt(&mut self, node: SwitchStmt) -> SwitchStmt
Visit a node of type
SwitchStmt
. Read moreSource§fn fold_syntax_context(&mut self, node: SyntaxContext) -> SyntaxContext
fn fold_syntax_context(&mut self, node: SyntaxContext) -> SyntaxContext
Visit a node of type
swc_common :: SyntaxContext
. Read moreSource§fn fold_tagged_tpl(&mut self, node: TaggedTpl) -> TaggedTpl
fn fold_tagged_tpl(&mut self, node: TaggedTpl) -> TaggedTpl
Visit a node of type
TaggedTpl
. Read moreSource§fn fold_this_expr(&mut self, node: ThisExpr) -> ThisExpr
fn fold_this_expr(&mut self, node: ThisExpr) -> ThisExpr
Visit a node of type
ThisExpr
. Read moreSource§fn fold_throw_stmt(&mut self, node: ThrowStmt) -> ThrowStmt
fn fold_throw_stmt(&mut self, node: ThrowStmt) -> ThrowStmt
Visit a node of type
ThrowStmt
. Read moreSource§fn fold_tpl_element(&mut self, node: TplElement) -> TplElement
fn fold_tpl_element(&mut self, node: TplElement) -> TplElement
Visit a node of type
TplElement
. Read moreSource§fn fold_tpl_elements(&mut self, node: Vec<TplElement>) -> Vec<TplElement>
fn fold_tpl_elements(&mut self, node: Vec<TplElement>) -> Vec<TplElement>
Visit a node of type
Vec < TplElement >
. Read moreSource§fn fold_true_plus_minus(&mut self, node: TruePlusMinus) -> TruePlusMinus
fn fold_true_plus_minus(&mut self, node: TruePlusMinus) -> TruePlusMinus
Visit a node of type
TruePlusMinus
. Read moreSource§fn fold_ts_array_type(&mut self, node: TsArrayType) -> TsArrayType
fn fold_ts_array_type(&mut self, node: TsArrayType) -> TsArrayType
Visit a node of type
TsArrayType
. Read moreSource§fn fold_ts_as_expr(&mut self, node: TsAsExpr) -> TsAsExpr
fn fold_ts_as_expr(&mut self, node: TsAsExpr) -> TsAsExpr
Visit a node of type
TsAsExpr
. Read moreSource§fn fold_ts_call_signature_decl(
&mut self,
node: TsCallSignatureDecl,
) -> TsCallSignatureDecl
fn fold_ts_call_signature_decl( &mut self, node: TsCallSignatureDecl, ) -> TsCallSignatureDecl
Visit a node of type
TsCallSignatureDecl
. Read moreSource§fn fold_ts_conditional_type(
&mut self,
node: TsConditionalType,
) -> TsConditionalType
fn fold_ts_conditional_type( &mut self, node: TsConditionalType, ) -> TsConditionalType
Visit a node of type
TsConditionalType
. Read moreSource§fn fold_ts_const_assertion(
&mut self,
node: TsConstAssertion,
) -> TsConstAssertion
fn fold_ts_const_assertion( &mut self, node: TsConstAssertion, ) -> TsConstAssertion
Visit a node of type
TsConstAssertion
. Read moreSource§fn fold_ts_construct_signature_decl(
&mut self,
node: TsConstructSignatureDecl,
) -> TsConstructSignatureDecl
fn fold_ts_construct_signature_decl( &mut self, node: TsConstructSignatureDecl, ) -> TsConstructSignatureDecl
Visit a node of type
TsConstructSignatureDecl
. Read moreSource§fn fold_ts_constructor_type(
&mut self,
node: TsConstructorType,
) -> TsConstructorType
fn fold_ts_constructor_type( &mut self, node: TsConstructorType, ) -> TsConstructorType
Visit a node of type
TsConstructorType
. Read moreSource§fn fold_ts_entity_name(&mut self, node: TsEntityName) -> TsEntityName
fn fold_ts_entity_name(&mut self, node: TsEntityName) -> TsEntityName
Visit a node of type
TsEntityName
. Read moreSource§fn fold_ts_enum_decl(&mut self, node: TsEnumDecl) -> TsEnumDecl
fn fold_ts_enum_decl(&mut self, node: TsEnumDecl) -> TsEnumDecl
Visit a node of type
TsEnumDecl
. Read moreSource§fn fold_ts_enum_member(&mut self, node: TsEnumMember) -> TsEnumMember
fn fold_ts_enum_member(&mut self, node: TsEnumMember) -> TsEnumMember
Visit a node of type
TsEnumMember
. Read moreSource§fn fold_ts_enum_member_id(&mut self, node: TsEnumMemberId) -> TsEnumMemberId
fn fold_ts_enum_member_id(&mut self, node: TsEnumMemberId) -> TsEnumMemberId
Visit a node of type
TsEnumMemberId
. Read moreSource§fn fold_ts_enum_members(&mut self, node: Vec<TsEnumMember>) -> Vec<TsEnumMember>
fn fold_ts_enum_members(&mut self, node: Vec<TsEnumMember>) -> Vec<TsEnumMember>
Visit a node of type
Vec < TsEnumMember >
. Read moreSource§fn fold_ts_export_assignment(
&mut self,
node: TsExportAssignment,
) -> TsExportAssignment
fn fold_ts_export_assignment( &mut self, node: TsExportAssignment, ) -> TsExportAssignment
Visit a node of type
TsExportAssignment
. Read moreSource§fn fold_ts_expr_with_type_args(
&mut self,
node: TsExprWithTypeArgs,
) -> TsExprWithTypeArgs
fn fold_ts_expr_with_type_args( &mut self, node: TsExprWithTypeArgs, ) -> TsExprWithTypeArgs
Visit a node of type
TsExprWithTypeArgs
. Read moreSource§fn fold_ts_expr_with_type_argss(
&mut self,
node: Vec<TsExprWithTypeArgs>,
) -> Vec<TsExprWithTypeArgs>
fn fold_ts_expr_with_type_argss( &mut self, node: Vec<TsExprWithTypeArgs>, ) -> Vec<TsExprWithTypeArgs>
Visit a node of type
Vec < TsExprWithTypeArgs >
. Read moreSource§fn fold_ts_external_module_ref(
&mut self,
node: TsExternalModuleRef,
) -> TsExternalModuleRef
fn fold_ts_external_module_ref( &mut self, node: TsExternalModuleRef, ) -> TsExternalModuleRef
Visit a node of type
TsExternalModuleRef
. Read moreSource§fn fold_ts_fn_or_constructor_type(
&mut self,
node: TsFnOrConstructorType,
) -> TsFnOrConstructorType
fn fold_ts_fn_or_constructor_type( &mut self, node: TsFnOrConstructorType, ) -> TsFnOrConstructorType
Visit a node of type
TsFnOrConstructorType
. Read moreSource§fn fold_ts_fn_param(&mut self, node: TsFnParam) -> TsFnParam
fn fold_ts_fn_param(&mut self, node: TsFnParam) -> TsFnParam
Visit a node of type
TsFnParam
. Read moreSource§fn fold_ts_fn_params(&mut self, node: Vec<TsFnParam>) -> Vec<TsFnParam>
fn fold_ts_fn_params(&mut self, node: Vec<TsFnParam>) -> Vec<TsFnParam>
Visit a node of type
Vec < TsFnParam >
. Read moreSource§fn fold_ts_fn_type(&mut self, node: TsFnType) -> TsFnType
fn fold_ts_fn_type(&mut self, node: TsFnType) -> TsFnType
Visit a node of type
TsFnType
. Read moreSource§fn fold_ts_getter_signature(
&mut self,
node: TsGetterSignature,
) -> TsGetterSignature
fn fold_ts_getter_signature( &mut self, node: TsGetterSignature, ) -> TsGetterSignature
Visit a node of type
TsGetterSignature
. Read moreSource§fn fold_ts_import_equals_decl(
&mut self,
node: TsImportEqualsDecl,
) -> TsImportEqualsDecl
fn fold_ts_import_equals_decl( &mut self, node: TsImportEqualsDecl, ) -> TsImportEqualsDecl
Visit a node of type
TsImportEqualsDecl
. Read moreSource§fn fold_ts_import_type(&mut self, node: TsImportType) -> TsImportType
fn fold_ts_import_type(&mut self, node: TsImportType) -> TsImportType
Visit a node of type
TsImportType
. Read moreSource§fn fold_ts_index_signature(
&mut self,
node: TsIndexSignature,
) -> TsIndexSignature
fn fold_ts_index_signature( &mut self, node: TsIndexSignature, ) -> TsIndexSignature
Visit a node of type
TsIndexSignature
. Read moreSource§fn fold_ts_indexed_access_type(
&mut self,
node: TsIndexedAccessType,
) -> TsIndexedAccessType
fn fold_ts_indexed_access_type( &mut self, node: TsIndexedAccessType, ) -> TsIndexedAccessType
Visit a node of type
TsIndexedAccessType
. Read moreSource§fn fold_ts_infer_type(&mut self, node: TsInferType) -> TsInferType
fn fold_ts_infer_type(&mut self, node: TsInferType) -> TsInferType
Visit a node of type
TsInferType
. Read moreSource§fn fold_ts_instantiation(&mut self, node: TsInstantiation) -> TsInstantiation
fn fold_ts_instantiation(&mut self, node: TsInstantiation) -> TsInstantiation
Visit a node of type
TsInstantiation
. Read moreSource§fn fold_ts_interface_body(&mut self, node: TsInterfaceBody) -> TsInterfaceBody
fn fold_ts_interface_body(&mut self, node: TsInterfaceBody) -> TsInterfaceBody
Visit a node of type
TsInterfaceBody
. Read moreSource§fn fold_ts_interface_decl(&mut self, node: TsInterfaceDecl) -> TsInterfaceDecl
fn fold_ts_interface_decl(&mut self, node: TsInterfaceDecl) -> TsInterfaceDecl
Visit a node of type
TsInterfaceDecl
. Read moreSource§fn fold_ts_intersection_type(
&mut self,
node: TsIntersectionType,
) -> TsIntersectionType
fn fold_ts_intersection_type( &mut self, node: TsIntersectionType, ) -> TsIntersectionType
Visit a node of type
TsIntersectionType
. Read moreSource§fn fold_ts_keyword_type(&mut self, node: TsKeywordType) -> TsKeywordType
fn fold_ts_keyword_type(&mut self, node: TsKeywordType) -> TsKeywordType
Visit a node of type
TsKeywordType
. Read moreSource§fn fold_ts_keyword_type_kind(
&mut self,
node: TsKeywordTypeKind,
) -> TsKeywordTypeKind
fn fold_ts_keyword_type_kind( &mut self, node: TsKeywordTypeKind, ) -> TsKeywordTypeKind
Visit a node of type
TsKeywordTypeKind
. Read moreSource§fn fold_ts_lit_type(&mut self, node: TsLitType) -> TsLitType
fn fold_ts_lit_type(&mut self, node: TsLitType) -> TsLitType
Visit a node of type
TsLitType
. Read moreSource§fn fold_ts_mapped_type(&mut self, node: TsMappedType) -> TsMappedType
fn fold_ts_mapped_type(&mut self, node: TsMappedType) -> TsMappedType
Visit a node of type
TsMappedType
. Read moreSource§fn fold_ts_method_signature(
&mut self,
node: TsMethodSignature,
) -> TsMethodSignature
fn fold_ts_method_signature( &mut self, node: TsMethodSignature, ) -> TsMethodSignature
Visit a node of type
TsMethodSignature
. Read moreSource§fn fold_ts_module_block(&mut self, node: TsModuleBlock) -> TsModuleBlock
fn fold_ts_module_block(&mut self, node: TsModuleBlock) -> TsModuleBlock
Visit a node of type
TsModuleBlock
. Read moreSource§fn fold_ts_module_decl(&mut self, node: TsModuleDecl) -> TsModuleDecl
fn fold_ts_module_decl(&mut self, node: TsModuleDecl) -> TsModuleDecl
Visit a node of type
TsModuleDecl
. Read moreSource§fn fold_ts_module_name(&mut self, node: TsModuleName) -> TsModuleName
fn fold_ts_module_name(&mut self, node: TsModuleName) -> TsModuleName
Visit a node of type
TsModuleName
. Read moreSource§fn fold_ts_module_ref(&mut self, node: TsModuleRef) -> TsModuleRef
fn fold_ts_module_ref(&mut self, node: TsModuleRef) -> TsModuleRef
Visit a node of type
TsModuleRef
. Read moreSource§fn fold_ts_namespace_body(&mut self, node: TsNamespaceBody) -> TsNamespaceBody
fn fold_ts_namespace_body(&mut self, node: TsNamespaceBody) -> TsNamespaceBody
Visit a node of type
TsNamespaceBody
. Read moreSource§fn fold_ts_namespace_decl(&mut self, node: TsNamespaceDecl) -> TsNamespaceDecl
fn fold_ts_namespace_decl(&mut self, node: TsNamespaceDecl) -> TsNamespaceDecl
Visit a node of type
TsNamespaceDecl
. Read moreSource§fn fold_ts_namespace_export_decl(
&mut self,
node: TsNamespaceExportDecl,
) -> TsNamespaceExportDecl
fn fold_ts_namespace_export_decl( &mut self, node: TsNamespaceExportDecl, ) -> TsNamespaceExportDecl
Visit a node of type
TsNamespaceExportDecl
. Read moreSource§fn fold_ts_non_null_expr(&mut self, node: TsNonNullExpr) -> TsNonNullExpr
fn fold_ts_non_null_expr(&mut self, node: TsNonNullExpr) -> TsNonNullExpr
Visit a node of type
TsNonNullExpr
. Read moreSource§fn fold_ts_optional_type(&mut self, node: TsOptionalType) -> TsOptionalType
fn fold_ts_optional_type(&mut self, node: TsOptionalType) -> TsOptionalType
Visit a node of type
TsOptionalType
. Read moreSource§fn fold_ts_param_prop(&mut self, node: TsParamProp) -> TsParamProp
fn fold_ts_param_prop(&mut self, node: TsParamProp) -> TsParamProp
Visit a node of type
TsParamProp
. Read moreSource§fn fold_ts_param_prop_param(
&mut self,
node: TsParamPropParam,
) -> TsParamPropParam
fn fold_ts_param_prop_param( &mut self, node: TsParamPropParam, ) -> TsParamPropParam
Visit a node of type
TsParamPropParam
. Read moreSource§fn fold_ts_parenthesized_type(
&mut self,
node: TsParenthesizedType,
) -> TsParenthesizedType
fn fold_ts_parenthesized_type( &mut self, node: TsParenthesizedType, ) -> TsParenthesizedType
Visit a node of type
TsParenthesizedType
. Read moreSource§fn fold_ts_property_signature(
&mut self,
node: TsPropertySignature,
) -> TsPropertySignature
fn fold_ts_property_signature( &mut self, node: TsPropertySignature, ) -> TsPropertySignature
Visit a node of type
TsPropertySignature
. Read moreSource§fn fold_ts_qualified_name(&mut self, node: TsQualifiedName) -> TsQualifiedName
fn fold_ts_qualified_name(&mut self, node: TsQualifiedName) -> TsQualifiedName
Visit a node of type
TsQualifiedName
. Read moreSource§fn fold_ts_rest_type(&mut self, node: TsRestType) -> TsRestType
fn fold_ts_rest_type(&mut self, node: TsRestType) -> TsRestType
Visit a node of type
TsRestType
. Read moreSource§fn fold_ts_satisfies_expr(&mut self, node: TsSatisfiesExpr) -> TsSatisfiesExpr
fn fold_ts_satisfies_expr(&mut self, node: TsSatisfiesExpr) -> TsSatisfiesExpr
Visit a node of type
TsSatisfiesExpr
. Read moreSource§fn fold_ts_setter_signature(
&mut self,
node: TsSetterSignature,
) -> TsSetterSignature
fn fold_ts_setter_signature( &mut self, node: TsSetterSignature, ) -> TsSetterSignature
Visit a node of type
TsSetterSignature
. Read moreSource§fn fold_ts_this_type(&mut self, node: TsThisType) -> TsThisType
fn fold_ts_this_type(&mut self, node: TsThisType) -> TsThisType
Visit a node of type
TsThisType
. Read moreSource§fn fold_ts_this_type_or_ident(
&mut self,
node: TsThisTypeOrIdent,
) -> TsThisTypeOrIdent
fn fold_ts_this_type_or_ident( &mut self, node: TsThisTypeOrIdent, ) -> TsThisTypeOrIdent
Visit a node of type
TsThisTypeOrIdent
. Read moreSource§fn fold_ts_tpl_lit_type(&mut self, node: TsTplLitType) -> TsTplLitType
fn fold_ts_tpl_lit_type(&mut self, node: TsTplLitType) -> TsTplLitType
Visit a node of type
TsTplLitType
. Read moreSource§fn fold_ts_tuple_element(&mut self, node: TsTupleElement) -> TsTupleElement
fn fold_ts_tuple_element(&mut self, node: TsTupleElement) -> TsTupleElement
Visit a node of type
TsTupleElement
. Read moreSource§fn fold_ts_tuple_elements(
&mut self,
node: Vec<TsTupleElement>,
) -> Vec<TsTupleElement>
fn fold_ts_tuple_elements( &mut self, node: Vec<TsTupleElement>, ) -> Vec<TsTupleElement>
Visit a node of type
Vec < TsTupleElement >
. Read moreSource§fn fold_ts_tuple_type(&mut self, node: TsTupleType) -> TsTupleType
fn fold_ts_tuple_type(&mut self, node: TsTupleType) -> TsTupleType
Visit a node of type
TsTupleType
. Read moreSource§fn fold_ts_type_alias_decl(&mut self, node: TsTypeAliasDecl) -> TsTypeAliasDecl
fn fold_ts_type_alias_decl(&mut self, node: TsTypeAliasDecl) -> TsTypeAliasDecl
Visit a node of type
TsTypeAliasDecl
. Read moreSource§fn fold_ts_type_ann(&mut self, node: TsTypeAnn) -> TsTypeAnn
fn fold_ts_type_ann(&mut self, node: TsTypeAnn) -> TsTypeAnn
Visit a node of type
TsTypeAnn
. Read moreSource§fn fold_ts_type_assertion(&mut self, node: TsTypeAssertion) -> TsTypeAssertion
fn fold_ts_type_assertion(&mut self, node: TsTypeAssertion) -> TsTypeAssertion
Visit a node of type
TsTypeAssertion
. Read moreSource§fn fold_ts_type_element(&mut self, node: TsTypeElement) -> TsTypeElement
fn fold_ts_type_element(&mut self, node: TsTypeElement) -> TsTypeElement
Visit a node of type
TsTypeElement
. Read moreSource§fn fold_ts_type_elements(
&mut self,
node: Vec<TsTypeElement>,
) -> Vec<TsTypeElement>
fn fold_ts_type_elements( &mut self, node: Vec<TsTypeElement>, ) -> Vec<TsTypeElement>
Visit a node of type
Vec < TsTypeElement >
. Read moreSource§fn fold_ts_type_lit(&mut self, node: TsTypeLit) -> TsTypeLit
fn fold_ts_type_lit(&mut self, node: TsTypeLit) -> TsTypeLit
Visit a node of type
TsTypeLit
. Read moreSource§fn fold_ts_type_operator(&mut self, node: TsTypeOperator) -> TsTypeOperator
fn fold_ts_type_operator(&mut self, node: TsTypeOperator) -> TsTypeOperator
Visit a node of type
TsTypeOperator
. Read moreSource§fn fold_ts_type_operator_op(
&mut self,
node: TsTypeOperatorOp,
) -> TsTypeOperatorOp
fn fold_ts_type_operator_op( &mut self, node: TsTypeOperatorOp, ) -> TsTypeOperatorOp
Visit a node of type
TsTypeOperatorOp
. Read moreSource§fn fold_ts_type_param(&mut self, node: TsTypeParam) -> TsTypeParam
fn fold_ts_type_param(&mut self, node: TsTypeParam) -> TsTypeParam
Visit a node of type
TsTypeParam
. Read moreSource§fn fold_ts_type_param_decl(&mut self, node: TsTypeParamDecl) -> TsTypeParamDecl
fn fold_ts_type_param_decl(&mut self, node: TsTypeParamDecl) -> TsTypeParamDecl
Visit a node of type
TsTypeParamDecl
. Read moreSource§fn fold_ts_type_param_instantiation(
&mut self,
node: TsTypeParamInstantiation,
) -> TsTypeParamInstantiation
fn fold_ts_type_param_instantiation( &mut self, node: TsTypeParamInstantiation, ) -> TsTypeParamInstantiation
Visit a node of type
TsTypeParamInstantiation
. Read moreSource§fn fold_ts_type_params(&mut self, node: Vec<TsTypeParam>) -> Vec<TsTypeParam>
fn fold_ts_type_params(&mut self, node: Vec<TsTypeParam>) -> Vec<TsTypeParam>
Visit a node of type
Vec < TsTypeParam >
. Read moreSource§fn fold_ts_type_predicate(&mut self, node: TsTypePredicate) -> TsTypePredicate
fn fold_ts_type_predicate(&mut self, node: TsTypePredicate) -> TsTypePredicate
Visit a node of type
TsTypePredicate
. Read moreSource§fn fold_ts_type_query(&mut self, node: TsTypeQuery) -> TsTypeQuery
fn fold_ts_type_query(&mut self, node: TsTypeQuery) -> TsTypeQuery
Visit a node of type
TsTypeQuery
. Read moreSource§fn fold_ts_type_query_expr(&mut self, node: TsTypeQueryExpr) -> TsTypeQueryExpr
fn fold_ts_type_query_expr(&mut self, node: TsTypeQueryExpr) -> TsTypeQueryExpr
Visit a node of type
TsTypeQueryExpr
. Read moreSource§fn fold_ts_type_ref(&mut self, node: TsTypeRef) -> TsTypeRef
fn fold_ts_type_ref(&mut self, node: TsTypeRef) -> TsTypeRef
Visit a node of type
TsTypeRef
. Read moreSource§fn fold_ts_types(&mut self, node: Vec<Box<TsType>>) -> Vec<Box<TsType>>
fn fold_ts_types(&mut self, node: Vec<Box<TsType>>) -> Vec<Box<TsType>>
Visit a node of type
Vec < Box < TsType > >
. Read moreSource§fn fold_ts_union_or_intersection_type(
&mut self,
node: TsUnionOrIntersectionType,
) -> TsUnionOrIntersectionType
fn fold_ts_union_or_intersection_type( &mut self, node: TsUnionOrIntersectionType, ) -> TsUnionOrIntersectionType
Visit a node of type
TsUnionOrIntersectionType
. Read moreSource§fn fold_ts_union_type(&mut self, node: TsUnionType) -> TsUnionType
fn fold_ts_union_type(&mut self, node: TsUnionType) -> TsUnionType
Visit a node of type
TsUnionType
. Read moreSource§fn fold_unary_expr(&mut self, node: UnaryExpr) -> UnaryExpr
fn fold_unary_expr(&mut self, node: UnaryExpr) -> UnaryExpr
Visit a node of type
UnaryExpr
. Read moreSource§fn fold_update_expr(&mut self, node: UpdateExpr) -> UpdateExpr
fn fold_update_expr(&mut self, node: UpdateExpr) -> UpdateExpr
Visit a node of type
UpdateExpr
. Read moreSource§fn fold_update_op(&mut self, node: UpdateOp) -> UpdateOp
fn fold_update_op(&mut self, node: UpdateOp) -> UpdateOp
Visit a node of type
UpdateOp
. Read moreSource§fn fold_using_decl(&mut self, node: UsingDecl) -> UsingDecl
fn fold_using_decl(&mut self, node: UsingDecl) -> UsingDecl
Visit a node of type
UsingDecl
. Read moreSource§fn fold_var_decl_kind(&mut self, node: VarDeclKind) -> VarDeclKind
fn fold_var_decl_kind(&mut self, node: VarDeclKind) -> VarDeclKind
Visit a node of type
VarDeclKind
. Read moreSource§fn fold_var_decl_or_expr(&mut self, node: VarDeclOrExpr) -> VarDeclOrExpr
fn fold_var_decl_or_expr(&mut self, node: VarDeclOrExpr) -> VarDeclOrExpr
Visit a node of type
VarDeclOrExpr
. Read moreSource§fn fold_var_declarator(&mut self, node: VarDeclarator) -> VarDeclarator
fn fold_var_declarator(&mut self, node: VarDeclarator) -> VarDeclarator
Visit a node of type
VarDeclarator
. Read moreSource§fn fold_var_declarators(
&mut self,
node: Vec<VarDeclarator>,
) -> Vec<VarDeclarator>
fn fold_var_declarators( &mut self, node: Vec<VarDeclarator>, ) -> Vec<VarDeclarator>
Visit a node of type
Vec < VarDeclarator >
. Read moreSource§fn fold_while_stmt(&mut self, node: WhileStmt) -> WhileStmt
fn fold_while_stmt(&mut self, node: WhileStmt) -> WhileStmt
Visit a node of type
WhileStmt
. Read moreSource§impl<V> InjectVars for FoldPass<V>where
V: Fold + InjectVars,
impl<V> InjectVars for FoldPass<V>where
V: Fold + InjectVars,
fn take_vars(&mut self) -> Vec<VarDeclarator>
Auto Trait Implementations§
impl<V> Freeze for FoldPass<V>where
V: Freeze,
impl<V> RefUnwindSafe for FoldPass<V>where
V: RefUnwindSafe,
impl<V> Send for FoldPass<V>where
V: Send,
impl<V> Sync for FoldPass<V>where
V: Sync,
impl<V> Unpin for FoldPass<V>where
V: Unpin,
impl<V> UnwindSafe for FoldPass<V>where
V: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more