pub struct StyleXTransform<C>where
C: Comments,{
pub comments: C,
props_declaration: Option<Id>,
pub state: StateManager,
}Fields§
§comments: C§props_declaration: Option<Id>§state: StateManagerImplementations§
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn fold_computed_prop_name_impl( &mut self, computed_prop_name: ComputedPropName, ) -> ComputedPropName
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn fold_decl_impl(&mut self, decl: Decl) -> Decl
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn fold_export_decl_impl( &mut self, export_decl: ExportDecl, ) -> ExportDecl
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn fold_export_default_expr_impl( &mut self, export_default_expr: ExportDefaultExpr, ) -> ExportDefaultExpr
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn fold_expr_impl(&mut self, expr: Expr) -> Expr
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn fold_ident_impl(&mut self, ident: Ident) -> Ident
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn fold_import_decl_impl( &mut self, import_decl: ImportDecl, ) -> ImportDecl
fn fill_stylex_create_import( &mut self, source_path: &str, imported_name: String, local_name: &str, import_specifier: &ImportNamedSpecifier, )
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn fold_jsx_attr_or_spreads( &mut self, jsx_attrs: Vec<JSXAttrOrSpread>, ) -> Vec<JSXAttrOrSpread>
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn fold_jsx_opening_element_impl( &mut self, jsx_opening_element: JSXOpeningElement, ) -> JSXOpeningElement
Sourcepub(crate) fn transform_sx_in_compiled_jsx(&self, expr: &Expr) -> Option<Expr>
pub(crate) fn transform_sx_in_compiled_jsx(&self, expr: &Expr) -> Option<Expr>
Transform compiled JSX/VDOM calls with an sx prop during the Initializing cycle.
Handles:
- React:
_jsx("div", { sx: expr })/_jsxs("div", { sx: expr }) - React classic:
React.createElement("div", { sx: expr }) - Vue:
_createElementBlock("div", { sx: expr })/_createElementVNode("div", { sx: expr })
Transforms to: fn("div", { ...stylex.props(expr), ... })
Sourcepub(crate) fn transform_sx_in_solid_set_attribute(
&self,
expr: &Expr,
) -> Option<Expr>
pub(crate) fn transform_sx_in_solid_set_attribute( &self, expr: &Expr, ) -> Option<Expr>
Transform Solid.js compiled sx attribute during the Initializing cycle.
Solid.js compiles <div sx={styles.main}> to:
_$setAttribute(_el$, "sx", styles.main)
We transform it to:
_$spread(_el$, _$mergeProps(() => stylex.props(styles.main)), false, true)
Sourcefn get_stylex_ident_name(&self) -> Option<String>
fn get_stylex_ident_name(&self) -> Option<String>
Get the stylex ident name from the import paths. Returns the first stylex import name from the import paths.
Sourcefn get_props_ident_name(&self) -> Option<String>
fn get_props_ident_name(&self) -> Option<String>
Get the props ident name from the import paths. Returns the first props import name from the import paths.
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn fold_member_expr_impl( &mut self, member_expression: MemberExpr, ) -> MemberExpr
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn fold_member_prop_impl( &mut self, member_prop: MemberProp, ) -> MemberProp
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn fold_module_impl(&mut self, module: Module) -> Module
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn fold_module_items( &mut self, module_items: Vec<ModuleItem>, ) -> Vec<ModuleItem>
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn fold_named_export_impl( &mut self, named_export: NamedExport, ) -> NamedExport
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn fold_prop_name_impl(&mut self, prop_name: PropName) -> PropName
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn fold_stmt_impl(&mut self, stmt: Stmt) -> Stmt
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn fold_stmts_impl(&mut self, stmts: Vec<Stmt>) -> Vec<Stmt>
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn fold_var_declarator_impl( &mut self, var_declarator: VarDeclarator, ) -> VarDeclarator
fn retain_object_props( &self, object: &mut ObjectLit, namespace_to_keep: Vec<Atom>, var_name: &VarDeclarator, ) -> Vec<PropOrSpread>
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn fold_var_declarators_impl( &mut self, var_declarators: Vec<VarDeclarator>, ) -> Vec<VarDeclarator>
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn transform_default_marker_call( &mut self, call: &CallExpr, ) -> Option<Expr>
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn transform_define_marker_call( &mut self, call: &CallExpr, ) -> Option<Expr>
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn transform_stylex_attrs_call( &mut self, call: &mut CallExpr, ) -> Option<Expr>
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn transform_stylex_call( &mut self, call: &mut CallExpr, ) -> Option<Expr>
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn transform_stylex_fns( &mut self, call_expr: &mut CallExpr, ) -> Option<Expr>
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn transform_stylex_create( &mut self, call: &CallExpr, ) -> Option<Expr>
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn transform_stylex_create_theme_call( &mut self, call: &CallExpr, ) -> Option<Expr>
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn transform_stylex_define_consts( &mut self, call: &CallExpr, ) -> Option<Expr>
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn transform_stylex_define_vars( &mut self, call: &CallExpr, ) -> Option<Expr>
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn transform_stylex_keyframes_call( &mut self, var_decl: &VarDeclarator, ) -> Option<Expr>
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn transform_stylex_position_try_call( &mut self, var_decl: &VarDeclarator, ) -> Option<Expr>
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn transform_stylex_props_call( &mut self, call: &mut CallExpr, ) -> Option<Expr>
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub(crate) fn transform_stylex_view_transition_class_call( &mut self, var_decl: &VarDeclarator, ) -> Option<Expr>
Source§impl<C> StyleXTransform<C>where
C: Comments,
impl<C> StyleXTransform<C>where
C: Comments,
pub fn new( comments: C, plugin_pass: PluginPass, config: &mut StyleXOptionsParams, ) -> Self
pub fn new_test_force_runtime_injection( comments: C, plugin_pass: PluginPass, config: Option<&mut StyleXOptionsParams>, ) -> Self
pub fn new_test_force_runtime_injection_with_pass( comments: C, plugin_pass: PluginPass, config: Option<&mut StyleXOptionsParams>, ) -> impl Pass + use<C>
pub fn new_test( comments: C, plugin_pass: PluginPass, config: Option<&mut StyleXOptionsParams>, ) -> Self
pub fn new_test_with_pass( comments: C, plugin_pass: PluginPass, config: Option<&mut StyleXOptionsParams>, ) -> impl Pass + use<C>
fn is_stylex_import(&self, ident_sym: &str) -> bool
pub(crate) fn process_declaration( &mut self, call_expr: &mut CallExpr, ) -> Option<(Id, String)>
pub(crate) fn transform_call_expression( &mut self, expr: &mut Expr, ) -> Option<Expr>
pub(crate) fn get_call_var_name( &mut self, call: &CallExpr, ) -> (Option<String>, Option<VarDeclarator>)
Trait Implementations§
Source§impl<C> Fold for StyleXTransform<C>where
C: Comments,
impl<C> Fold for StyleXTransform<C>where
C: Comments,
Source§fn fold_accessibility(&mut self, node: Accessibility) -> Accessibility
fn fold_accessibility(&mut self, node: Accessibility) -> Accessibility
Accessibility. Read moreSource§fn fold_true_plus_minus(&mut self, node: TruePlusMinus) -> TruePlusMinus
fn fold_true_plus_minus(&mut self, node: TruePlusMinus) -> TruePlusMinus
TruePlusMinus. Read moreSource§fn fold_ts_array_type(&mut self, node: TsArrayType) -> TsArrayType
fn fold_ts_array_type(&mut self, node: TsArrayType) -> TsArrayType
TsArrayType. Read moreSource§fn fold_ts_call_signature_decl(
&mut self,
node: TsCallSignatureDecl,
) -> TsCallSignatureDecl
fn fold_ts_call_signature_decl( &mut self, node: TsCallSignatureDecl, ) -> TsCallSignatureDecl
TsCallSignatureDecl. Read moreSource§fn fold_ts_conditional_type(
&mut self,
node: TsConditionalType,
) -> TsConditionalType
fn fold_ts_conditional_type( &mut self, node: TsConditionalType, ) -> TsConditionalType
TsConditionalType. Read moreSource§fn fold_ts_construct_signature_decl(
&mut self,
node: TsConstructSignatureDecl,
) -> TsConstructSignatureDecl
fn fold_ts_construct_signature_decl( &mut self, node: TsConstructSignatureDecl, ) -> TsConstructSignatureDecl
TsConstructSignatureDecl. Read moreSource§fn fold_ts_constructor_type(
&mut self,
node: TsConstructorType,
) -> TsConstructorType
fn fold_ts_constructor_type( &mut self, node: TsConstructorType, ) -> TsConstructorType
TsConstructorType. Read moreSource§fn fold_ts_entity_name(&mut self, node: TsEntityName) -> TsEntityName
fn fold_ts_entity_name(&mut self, node: TsEntityName) -> TsEntityName
TsEntityName. Read moreSource§fn fold_ts_enum_decl(&mut self, node: TsEnumDecl) -> TsEnumDecl
fn fold_ts_enum_decl(&mut self, node: TsEnumDecl) -> TsEnumDecl
TsEnumDecl. Read moreSource§fn fold_ts_enum_member(&mut self, node: TsEnumMember) -> TsEnumMember
fn fold_ts_enum_member(&mut self, node: TsEnumMember) -> TsEnumMember
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
TsEnumMemberId. 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
TsExprWithTypeArgs. 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
TsFnOrConstructorType. Read moreSource§fn fold_ts_fn_param(&mut self, node: TsFnParam) -> TsFnParam
fn fold_ts_fn_param(&mut self, node: TsFnParam) -> TsFnParam
TsFnParam. Read moreSource§fn fold_ts_fn_type(&mut self, node: TsFnType) -> TsFnType
fn fold_ts_fn_type(&mut self, node: TsFnType) -> TsFnType
TsFnType. Read moreSource§fn fold_ts_import_equals_decl(
&mut self,
node: TsImportEqualsDecl,
) -> TsImportEqualsDecl
fn fold_ts_import_equals_decl( &mut self, node: TsImportEqualsDecl, ) -> TsImportEqualsDecl
TsImportEqualsDecl. Read moreSource§fn fold_ts_import_type(&mut self, node: TsImportType) -> TsImportType
fn fold_ts_import_type(&mut self, node: TsImportType) -> TsImportType
TsImportType. Read moreSource§fn fold_ts_index_signature(
&mut self,
node: TsIndexSignature,
) -> TsIndexSignature
fn fold_ts_index_signature( &mut self, node: TsIndexSignature, ) -> TsIndexSignature
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
TsIndexedAccessType. Read moreSource§fn fold_ts_infer_type(&mut self, node: TsInferType) -> TsInferType
fn fold_ts_infer_type(&mut self, node: TsInferType) -> TsInferType
TsInferType. Read moreSource§fn fold_ts_interface_body(&mut self, node: TsInterfaceBody) -> TsInterfaceBody
fn fold_ts_interface_body(&mut self, node: TsInterfaceBody) -> TsInterfaceBody
TsInterfaceBody. Read moreSource§fn fold_ts_interface_decl(&mut self, node: TsInterfaceDecl) -> TsInterfaceDecl
fn fold_ts_interface_decl(&mut self, node: TsInterfaceDecl) -> TsInterfaceDecl
TsInterfaceDecl. Read moreSource§fn fold_ts_intersection_type(
&mut self,
node: TsIntersectionType,
) -> TsIntersectionType
fn fold_ts_intersection_type( &mut self, node: TsIntersectionType, ) -> TsIntersectionType
TsIntersectionType. Read moreSource§fn fold_ts_keyword_type(&mut self, node: TsKeywordType) -> TsKeywordType
fn fold_ts_keyword_type(&mut self, node: TsKeywordType) -> TsKeywordType
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
TsKeywordTypeKind. Read moreSource§fn fold_ts_mapped_type(&mut self, node: TsMappedType) -> TsMappedType
fn fold_ts_mapped_type(&mut self, node: TsMappedType) -> TsMappedType
TsMappedType. Read moreSource§fn fold_ts_method_signature(
&mut self,
node: TsMethodSignature,
) -> TsMethodSignature
fn fold_ts_method_signature( &mut self, node: TsMethodSignature, ) -> TsMethodSignature
TsMethodSignature. Read moreSource§fn fold_ts_module_block(&mut self, node: TsModuleBlock) -> TsModuleBlock
fn fold_ts_module_block(&mut self, node: TsModuleBlock) -> TsModuleBlock
TsModuleBlock. Read moreSource§fn fold_ts_module_decl(&mut self, node: TsModuleDecl) -> TsModuleDecl
fn fold_ts_module_decl(&mut self, node: TsModuleDecl) -> TsModuleDecl
TsModuleDecl. Read moreSource§fn fold_ts_module_name(&mut self, node: TsModuleName) -> TsModuleName
fn fold_ts_module_name(&mut self, node: TsModuleName) -> TsModuleName
TsModuleName. Read moreSource§fn fold_ts_namespace_body(&mut self, node: TsNamespaceBody) -> TsNamespaceBody
fn fold_ts_namespace_body(&mut self, node: TsNamespaceBody) -> TsNamespaceBody
TsNamespaceBody. Read moreSource§fn fold_ts_namespace_decl(&mut self, node: TsNamespaceDecl) -> TsNamespaceDecl
fn fold_ts_namespace_decl(&mut self, node: TsNamespaceDecl) -> TsNamespaceDecl
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
TsNamespaceExportDecl. Read moreSource§fn fold_ts_optional_type(&mut self, node: TsOptionalType) -> TsOptionalType
fn fold_ts_optional_type(&mut self, node: TsOptionalType) -> TsOptionalType
TsOptionalType. Read moreSource§fn fold_ts_param_prop(&mut self, node: TsParamProp) -> TsParamProp
fn fold_ts_param_prop(&mut self, node: TsParamProp) -> TsParamProp
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
TsParamPropParam. Read moreSource§fn fold_ts_parenthesized_type(
&mut self,
node: TsParenthesizedType,
) -> TsParenthesizedType
fn fold_ts_parenthesized_type( &mut self, node: TsParenthesizedType, ) -> TsParenthesizedType
TsParenthesizedType. Read moreSource§fn fold_ts_property_signature(
&mut self,
node: TsPropertySignature,
) -> TsPropertySignature
fn fold_ts_property_signature( &mut self, node: TsPropertySignature, ) -> TsPropertySignature
TsPropertySignature. Read moreSource§fn fold_ts_qualified_name(&mut self, node: TsQualifiedName) -> TsQualifiedName
fn fold_ts_qualified_name(&mut self, node: TsQualifiedName) -> TsQualifiedName
TsQualifiedName. Read moreSource§fn fold_ts_rest_type(&mut self, node: TsRestType) -> TsRestType
fn fold_ts_rest_type(&mut self, node: TsRestType) -> TsRestType
TsRestType. Read moreSource§fn fold_ts_this_type(&mut self, node: TsThisType) -> TsThisType
fn fold_ts_this_type(&mut self, node: TsThisType) -> TsThisType
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
TsThisTypeOrIdent. Read moreSource§fn fold_ts_tuple_type(&mut self, node: TsTupleType) -> TsTupleType
fn fold_ts_tuple_type(&mut self, node: TsTupleType) -> TsTupleType
TsTupleType. Read moreSource§fn fold_ts_type(&mut self, node: TsType) -> TsType
fn fold_ts_type(&mut self, node: TsType) -> TsType
TsType. Read moreSource§fn fold_ts_type_alias_decl(&mut self, node: TsTypeAliasDecl) -> TsTypeAliasDecl
fn fold_ts_type_alias_decl(&mut self, node: TsTypeAliasDecl) -> TsTypeAliasDecl
TsTypeAliasDecl. Read moreSource§fn fold_ts_type_ann(&mut self, node: TsTypeAnn) -> TsTypeAnn
fn fold_ts_type_ann(&mut self, node: TsTypeAnn) -> TsTypeAnn
TsTypeAnn. Read moreSource§fn fold_ts_type_assertion(&mut self, node: TsTypeAssertion) -> TsTypeAssertion
fn fold_ts_type_assertion(&mut self, node: TsTypeAssertion) -> TsTypeAssertion
TsTypeAssertion. Read moreSource§fn fold_ts_type_element(&mut self, node: TsTypeElement) -> TsTypeElement
fn fold_ts_type_element(&mut self, node: TsTypeElement) -> TsTypeElement
TsTypeElement. Read moreSource§fn fold_ts_type_lit(&mut self, node: TsTypeLit) -> TsTypeLit
fn fold_ts_type_lit(&mut self, node: TsTypeLit) -> TsTypeLit
TsTypeLit. Read moreSource§fn fold_ts_type_operator(&mut self, node: TsTypeOperator) -> TsTypeOperator
fn fold_ts_type_operator(&mut self, node: TsTypeOperator) -> TsTypeOperator
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
TsTypeOperatorOp. Read moreSource§fn fold_ts_type_param(&mut self, node: TsTypeParam) -> TsTypeParam
fn fold_ts_type_param(&mut self, node: TsTypeParam) -> TsTypeParam
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
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
TsTypeParamInstantiation. Read moreSource§fn fold_ts_type_predicate(&mut self, node: TsTypePredicate) -> TsTypePredicate
fn fold_ts_type_predicate(&mut self, node: TsTypePredicate) -> TsTypePredicate
TsTypePredicate. Read moreSource§fn fold_ts_type_query(&mut self, node: TsTypeQuery) -> TsTypeQuery
fn fold_ts_type_query(&mut self, node: TsTypeQuery) -> TsTypeQuery
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
TsTypeQueryExpr. Read moreSource§fn fold_ts_type_ref(&mut self, node: TsTypeRef) -> TsTypeRef
fn fold_ts_type_ref(&mut self, node: TsTypeRef) -> TsTypeRef
TsTypeRef. 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
TsUnionOrIntersectionType. Read moreSource§fn fold_ts_union_type(&mut self, node: TsUnionType) -> TsUnionType
fn fold_ts_union_type(&mut self, node: TsUnionType) -> TsUnionType
TsUnionType. Read moreSource§fn fold_module(&mut self, module: Module) -> Module
fn fold_module(&mut self, module: Module) -> Module
Module. Read moreSource§fn fold_module_items(
&mut self,
module_items: Vec<ModuleItem>,
) -> Vec<ModuleItem>
fn fold_module_items( &mut self, module_items: Vec<ModuleItem>, ) -> Vec<ModuleItem>
Vec < ModuleItem >. Read moreSource§fn fold_import_decl(&mut self, import_decl: ImportDecl) -> ImportDecl
fn fold_import_decl(&mut self, import_decl: ImportDecl) -> ImportDecl
ImportDecl. Read moreSource§fn fold_var_declarators(
&mut self,
var_declarators: Vec<VarDeclarator>,
) -> Vec<VarDeclarator>
fn fold_var_declarators( &mut self, var_declarators: Vec<VarDeclarator>, ) -> Vec<VarDeclarator>
Vec < VarDeclarator >. Read moreSource§fn fold_var_declarator(
&mut self,
var_declarator: VarDeclarator,
) -> VarDeclarator
fn fold_var_declarator( &mut self, var_declarator: VarDeclarator, ) -> VarDeclarator
VarDeclarator. Read moreSource§fn fold_export_decl(&mut self, export_decl: ExportDecl) -> ExportDecl
fn fold_export_decl(&mut self, export_decl: ExportDecl) -> ExportDecl
ExportDecl. Read moreSource§fn fold_stmts(&mut self, stmts: Vec<Stmt>) -> Vec<Stmt>
fn fold_stmts(&mut self, stmts: Vec<Stmt>) -> Vec<Stmt>
Vec < Stmt >. Read moreSource§fn fold_prop_name(&mut self, prop_name: PropName) -> PropName
fn fold_prop_name(&mut self, prop_name: PropName) -> PropName
PropName. Read moreSource§fn fold_member_prop(&mut self, member_prop: MemberProp) -> MemberProp
fn fold_member_prop(&mut self, member_prop: MemberProp) -> MemberProp
MemberProp. Read moreSource§fn fold_member_expr(&mut self, member_expresseion: MemberExpr) -> MemberExpr
fn fold_member_expr(&mut self, member_expresseion: MemberExpr) -> MemberExpr
MemberExpr. Read moreSource§fn fold_computed_prop_name(
&mut self,
computed_prop_name: ComputedPropName,
) -> ComputedPropName
fn fold_computed_prop_name( &mut self, computed_prop_name: ComputedPropName, ) -> ComputedPropName
ComputedPropName. Read moreSource§fn fold_export_default_expr(
&mut self,
export_default_expr: ExportDefaultExpr,
) -> ExportDefaultExpr
fn fold_export_default_expr( &mut self, export_default_expr: ExportDefaultExpr, ) -> ExportDefaultExpr
ExportDefaultExpr. Read moreSource§fn fold_named_export(&mut self, named_export: NamedExport) -> NamedExport
fn fold_named_export(&mut self, named_export: NamedExport) -> NamedExport
NamedExport. Read moreSource§fn fold_ident(&mut self, ident: Ident) -> Ident
fn fold_ident(&mut self, ident: Ident) -> Ident
Ident. Read moreSource§fn fold_jsx_opening_element(
&mut self,
jsx_opening_element: JSXOpeningElement,
) -> JSXOpeningElement
fn fold_jsx_opening_element( &mut self, jsx_opening_element: JSXOpeningElement, ) -> JSXOpeningElement
JSXOpeningElement. Read moreSource§fn fold_jsx_attr_or_spreads(
&mut self,
jsx_attrs: Vec<JSXAttrOrSpread>,
) -> Vec<JSXAttrOrSpread>
fn fold_jsx_attr_or_spreads( &mut self, jsx_attrs: Vec<JSXAttrOrSpread>, ) -> Vec<JSXAttrOrSpread>
Vec < JSXAttrOrSpread >. Read more§fn fold_array_lit(&mut self, node: ArrayLit) -> ArrayLit
fn fold_array_lit(&mut self, node: ArrayLit) -> ArrayLit
ArrayLit. Read more§fn fold_array_pat(&mut self, node: ArrayPat) -> ArrayPat
fn fold_array_pat(&mut self, node: ArrayPat) -> ArrayPat
ArrayPat. Read more§fn fold_arrow_expr(&mut self, node: ArrowExpr) -> ArrowExpr
fn fold_arrow_expr(&mut self, node: ArrowExpr) -> ArrowExpr
ArrowExpr. Read more§fn fold_assign_expr(&mut self, node: AssignExpr) -> AssignExpr
fn fold_assign_expr(&mut self, node: AssignExpr) -> AssignExpr
AssignExpr. Read more§fn fold_assign_op(&mut self, node: AssignOp) -> AssignOp
fn fold_assign_op(&mut self, node: AssignOp) -> AssignOp
AssignOp. Read more§fn fold_assign_pat(&mut self, node: AssignPat) -> AssignPat
fn fold_assign_pat(&mut self, node: AssignPat) -> AssignPat
AssignPat. Read more§fn fold_assign_pat_prop(&mut self, node: AssignPatProp) -> AssignPatProp
fn fold_assign_pat_prop(&mut self, node: AssignPatProp) -> AssignPatProp
AssignPatProp. Read more§fn fold_assign_prop(&mut self, node: AssignProp) -> AssignProp
fn fold_assign_prop(&mut self, node: AssignProp) -> AssignProp
AssignProp. Read more§fn fold_assign_target(&mut self, node: AssignTarget) -> AssignTarget
fn fold_assign_target(&mut self, node: AssignTarget) -> AssignTarget
AssignTarget. Read more§fn fold_assign_target_pat(&mut self, node: AssignTargetPat) -> AssignTargetPat
fn fold_assign_target_pat(&mut self, node: AssignTargetPat) -> AssignTargetPat
AssignTargetPat. Read more§fn fold_auto_accessor(&mut self, node: AutoAccessor) -> AutoAccessor
fn fold_auto_accessor(&mut self, node: AutoAccessor) -> AutoAccessor
AutoAccessor. Read more§fn fold_await_expr(&mut self, node: AwaitExpr) -> AwaitExpr
fn fold_await_expr(&mut self, node: AwaitExpr) -> AwaitExpr
AwaitExpr. Read more§fn fold_big_int(&mut self, node: BigInt) -> BigInt
fn fold_big_int(&mut self, node: BigInt) -> BigInt
BigInt. Read more§fn fold_big_int_value(&mut self, node: BigInt) -> BigInt
fn fold_big_int_value(&mut self, node: BigInt) -> BigInt
BigIntValue. Read more§fn fold_bin_expr(&mut self, node: BinExpr) -> BinExpr
fn fold_bin_expr(&mut self, node: BinExpr) -> BinExpr
BinExpr. Read more§fn fold_binary_op(&mut self, node: BinaryOp) -> BinaryOp
fn fold_binary_op(&mut self, node: BinaryOp) -> BinaryOp
BinaryOp. Read more§fn fold_binding_ident(&mut self, node: BindingIdent) -> BindingIdent
fn fold_binding_ident(&mut self, node: BindingIdent) -> BindingIdent
BindingIdent. Read more§fn fold_block_stmt(&mut self, node: BlockStmt) -> BlockStmt
fn fold_block_stmt(&mut self, node: BlockStmt) -> BlockStmt
BlockStmt. Read more§fn fold_block_stmt_or_expr(&mut self, node: BlockStmtOrExpr) -> BlockStmtOrExpr
fn fold_block_stmt_or_expr(&mut self, node: BlockStmtOrExpr) -> BlockStmtOrExpr
BlockStmtOrExpr. Read more§fn fold_break_stmt(&mut self, node: BreakStmt) -> BreakStmt
fn fold_break_stmt(&mut self, node: BreakStmt) -> BreakStmt
BreakStmt. Read more§fn fold_call_expr(&mut self, node: CallExpr) -> CallExpr
fn fold_call_expr(&mut self, node: CallExpr) -> CallExpr
CallExpr. Read more§fn fold_callee(&mut self, node: Callee) -> Callee
fn fold_callee(&mut self, node: Callee) -> Callee
Callee. Read more§fn fold_catch_clause(&mut self, node: CatchClause) -> CatchClause
fn fold_catch_clause(&mut self, node: CatchClause) -> CatchClause
CatchClause. Read more§fn fold_class(&mut self, node: Class) -> Class
fn fold_class(&mut self, node: Class) -> Class
Class. Read more§fn fold_class_decl(&mut self, node: ClassDecl) -> ClassDecl
fn fold_class_decl(&mut self, node: ClassDecl) -> ClassDecl
ClassDecl. Read more§fn fold_class_expr(&mut self, node: ClassExpr) -> ClassExpr
fn fold_class_expr(&mut self, node: ClassExpr) -> ClassExpr
ClassExpr. Read more§fn fold_class_member(&mut self, node: ClassMember) -> ClassMember
fn fold_class_member(&mut self, node: ClassMember) -> ClassMember
ClassMember. Read more§fn fold_class_members(&mut self, node: Vec<ClassMember>) -> Vec<ClassMember>
fn fold_class_members(&mut self, node: Vec<ClassMember>) -> Vec<ClassMember>
Vec < ClassMember >. Read more§fn fold_class_method(&mut self, node: ClassMethod) -> ClassMethod
fn fold_class_method(&mut self, node: ClassMethod) -> ClassMethod
ClassMethod. Read more§fn fold_class_prop(&mut self, node: ClassProp) -> ClassProp
fn fold_class_prop(&mut self, node: ClassProp) -> ClassProp
ClassProp. Read more§fn fold_cond_expr(&mut self, node: CondExpr) -> CondExpr
fn fold_cond_expr(&mut self, node: CondExpr) -> CondExpr
CondExpr. Read more§fn fold_constructor(&mut self, node: Constructor) -> Constructor
fn fold_constructor(&mut self, node: Constructor) -> Constructor
Constructor. Read more§fn fold_continue_stmt(&mut self, node: ContinueStmt) -> ContinueStmt
fn fold_continue_stmt(&mut self, node: ContinueStmt) -> ContinueStmt
ContinueStmt. Read more§fn fold_debugger_stmt(&mut self, node: DebuggerStmt) -> DebuggerStmt
fn fold_debugger_stmt(&mut self, node: DebuggerStmt) -> DebuggerStmt
DebuggerStmt. Read more§fn fold_decorator(&mut self, node: Decorator) -> Decorator
fn fold_decorator(&mut self, node: Decorator) -> Decorator
Decorator. Read more§fn fold_decorators(&mut self, node: Vec<Decorator>) -> Vec<Decorator>
fn fold_decorators(&mut self, node: Vec<Decorator>) -> Vec<Decorator>
Vec < Decorator >. Read more§fn fold_default_decl(&mut self, node: DefaultDecl) -> DefaultDecl
fn fold_default_decl(&mut self, node: DefaultDecl) -> DefaultDecl
DefaultDecl. Read more§fn fold_do_while_stmt(&mut self, node: DoWhileStmt) -> DoWhileStmt
fn fold_do_while_stmt(&mut self, node: DoWhileStmt) -> DoWhileStmt
DoWhileStmt. Read more§fn fold_empty_stmt(&mut self, node: EmptyStmt) -> EmptyStmt
fn fold_empty_stmt(&mut self, node: EmptyStmt) -> EmptyStmt
EmptyStmt. Read more§fn fold_export_all(&mut self, node: ExportAll) -> ExportAll
fn fold_export_all(&mut self, node: ExportAll) -> ExportAll
ExportAll. Read more§fn fold_export_default_decl(
&mut self,
node: ExportDefaultDecl,
) -> ExportDefaultDecl
fn fold_export_default_decl( &mut self, node: ExportDefaultDecl, ) -> ExportDefaultDecl
ExportDefaultDecl. Read more§fn fold_export_default_specifier(
&mut self,
node: ExportDefaultSpecifier,
) -> ExportDefaultSpecifier
fn fold_export_default_specifier( &mut self, node: ExportDefaultSpecifier, ) -> ExportDefaultSpecifier
ExportDefaultSpecifier. Read more§fn fold_export_named_specifier(
&mut self,
node: ExportNamedSpecifier,
) -> ExportNamedSpecifier
fn fold_export_named_specifier( &mut self, node: ExportNamedSpecifier, ) -> ExportNamedSpecifier
ExportNamedSpecifier. Read more§fn fold_export_namespace_specifier(
&mut self,
node: ExportNamespaceSpecifier,
) -> ExportNamespaceSpecifier
fn fold_export_namespace_specifier( &mut self, node: ExportNamespaceSpecifier, ) -> ExportNamespaceSpecifier
ExportNamespaceSpecifier. Read more§fn fold_export_specifier(&mut self, node: ExportSpecifier) -> ExportSpecifier
fn fold_export_specifier(&mut self, node: ExportSpecifier) -> ExportSpecifier
ExportSpecifier. Read more§fn fold_export_specifiers(
&mut self,
node: Vec<ExportSpecifier>,
) -> Vec<ExportSpecifier>
fn fold_export_specifiers( &mut self, node: Vec<ExportSpecifier>, ) -> Vec<ExportSpecifier>
Vec < ExportSpecifier >. Read more§fn fold_expr_or_spread(&mut self, node: ExprOrSpread) -> ExprOrSpread
fn fold_expr_or_spread(&mut self, node: ExprOrSpread) -> ExprOrSpread
ExprOrSpread. Read more§fn fold_expr_or_spreads(&mut self, node: Vec<ExprOrSpread>) -> Vec<ExprOrSpread>
fn fold_expr_or_spreads(&mut self, node: Vec<ExprOrSpread>) -> Vec<ExprOrSpread>
Vec < ExprOrSpread >. Read more§fn fold_expr_stmt(&mut self, node: ExprStmt) -> ExprStmt
fn fold_expr_stmt(&mut self, node: ExprStmt) -> ExprStmt
ExprStmt. Read more§fn fold_exprs(&mut self, node: Vec<Box<Expr>>) -> Vec<Box<Expr>>
fn fold_exprs(&mut self, node: Vec<Box<Expr>>) -> Vec<Box<Expr>>
Vec < Box < Expr > >. Read more§fn fold_fn_decl(&mut self, node: FnDecl) -> FnDecl
fn fold_fn_decl(&mut self, node: FnDecl) -> FnDecl
FnDecl. Read more§fn fold_fn_expr(&mut self, node: FnExpr) -> FnExpr
fn fold_fn_expr(&mut self, node: FnExpr) -> FnExpr
FnExpr. Read more§fn fold_for_head(&mut self, node: ForHead) -> ForHead
fn fold_for_head(&mut self, node: ForHead) -> ForHead
ForHead. Read more§fn fold_for_in_stmt(&mut self, node: ForInStmt) -> ForInStmt
fn fold_for_in_stmt(&mut self, node: ForInStmt) -> ForInStmt
ForInStmt. Read more§fn fold_for_of_stmt(&mut self, node: ForOfStmt) -> ForOfStmt
fn fold_for_of_stmt(&mut self, node: ForOfStmt) -> ForOfStmt
ForOfStmt. Read more§fn fold_for_stmt(&mut self, node: ForStmt) -> ForStmt
fn fold_for_stmt(&mut self, node: ForStmt) -> ForStmt
ForStmt. Read more§fn fold_function(&mut self, node: Function) -> Function
fn fold_function(&mut self, node: Function) -> Function
Function. Read more§fn fold_getter_prop(&mut self, node: GetterProp) -> GetterProp
fn fold_getter_prop(&mut self, node: GetterProp) -> GetterProp
GetterProp. Read more§fn fold_ident_name(&mut self, node: IdentName) -> IdentName
fn fold_ident_name(&mut self, node: IdentName) -> IdentName
IdentName. Read more§fn fold_if_stmt(&mut self, node: IfStmt) -> IfStmt
fn fold_if_stmt(&mut self, node: IfStmt) -> IfStmt
IfStmt. Read more§fn fold_import(&mut self, node: Import) -> Import
fn fold_import(&mut self, node: Import) -> Import
Import. Read more§fn fold_import_default_specifier(
&mut self,
node: ImportDefaultSpecifier,
) -> ImportDefaultSpecifier
fn fold_import_default_specifier( &mut self, node: ImportDefaultSpecifier, ) -> ImportDefaultSpecifier
ImportDefaultSpecifier. Read more§fn fold_import_named_specifier(
&mut self,
node: ImportNamedSpecifier,
) -> ImportNamedSpecifier
fn fold_import_named_specifier( &mut self, node: ImportNamedSpecifier, ) -> ImportNamedSpecifier
ImportNamedSpecifier. Read more§fn fold_import_phase(&mut self, node: ImportPhase) -> ImportPhase
fn fold_import_phase(&mut self, node: ImportPhase) -> ImportPhase
ImportPhase. Read more§fn fold_import_specifier(&mut self, node: ImportSpecifier) -> ImportSpecifier
fn fold_import_specifier(&mut self, node: ImportSpecifier) -> ImportSpecifier
ImportSpecifier. Read more§fn fold_import_specifiers(
&mut self,
node: Vec<ImportSpecifier>,
) -> Vec<ImportSpecifier>
fn fold_import_specifiers( &mut self, node: Vec<ImportSpecifier>, ) -> Vec<ImportSpecifier>
Vec < ImportSpecifier >. Read more§fn fold_import_star_as_specifier(
&mut self,
node: ImportStarAsSpecifier,
) -> ImportStarAsSpecifier
fn fold_import_star_as_specifier( &mut self, node: ImportStarAsSpecifier, ) -> ImportStarAsSpecifier
ImportStarAsSpecifier. Read more§fn fold_import_with(&mut self, node: ImportWith) -> ImportWith
fn fold_import_with(&mut self, node: ImportWith) -> ImportWith
ImportWith. Read more§fn fold_import_with_item(&mut self, node: ImportWithItem) -> ImportWithItem
fn fold_import_with_item(&mut self, node: ImportWithItem) -> ImportWithItem
ImportWithItem. Read more§fn fold_import_with_items(
&mut self,
node: Vec<ImportWithItem>,
) -> Vec<ImportWithItem>
fn fold_import_with_items( &mut self, node: Vec<ImportWithItem>, ) -> Vec<ImportWithItem>
Vec < ImportWithItem >. Read more§fn fold_invalid(&mut self, node: Invalid) -> Invalid
fn fold_invalid(&mut self, node: Invalid) -> Invalid
Invalid. Read more§fn fold_jsx_attr(&mut self, node: JSXAttr) -> JSXAttr
fn fold_jsx_attr(&mut self, node: JSXAttr) -> JSXAttr
JSXAttr. Read more§fn fold_jsx_attr_name(&mut self, node: JSXAttrName) -> JSXAttrName
fn fold_jsx_attr_name(&mut self, node: JSXAttrName) -> JSXAttrName
JSXAttrName. Read more§fn fold_jsx_attr_or_spread(&mut self, node: JSXAttrOrSpread) -> JSXAttrOrSpread
fn fold_jsx_attr_or_spread(&mut self, node: JSXAttrOrSpread) -> JSXAttrOrSpread
JSXAttrOrSpread. Read more§fn fold_jsx_attr_value(&mut self, node: JSXAttrValue) -> JSXAttrValue
fn fold_jsx_attr_value(&mut self, node: JSXAttrValue) -> JSXAttrValue
JSXAttrValue. Read more§fn fold_jsx_closing_element(
&mut self,
node: JSXClosingElement,
) -> JSXClosingElement
fn fold_jsx_closing_element( &mut self, node: JSXClosingElement, ) -> JSXClosingElement
JSXClosingElement. Read more§fn fold_jsx_closing_fragment(
&mut self,
node: JSXClosingFragment,
) -> JSXClosingFragment
fn fold_jsx_closing_fragment( &mut self, node: JSXClosingFragment, ) -> JSXClosingFragment
JSXClosingFragment. Read more§fn fold_jsx_element(&mut self, node: JSXElement) -> JSXElement
fn fold_jsx_element(&mut self, node: JSXElement) -> JSXElement
JSXElement. Read more§fn fold_jsx_element_child(&mut self, node: JSXElementChild) -> JSXElementChild
fn fold_jsx_element_child(&mut self, node: JSXElementChild) -> JSXElementChild
JSXElementChild. Read more§fn fold_jsx_element_childs(
&mut self,
node: Vec<JSXElementChild>,
) -> Vec<JSXElementChild>
fn fold_jsx_element_childs( &mut self, node: Vec<JSXElementChild>, ) -> Vec<JSXElementChild>
Vec < JSXElementChild >. Read more§fn fold_jsx_element_name(&mut self, node: JSXElementName) -> JSXElementName
fn fold_jsx_element_name(&mut self, node: JSXElementName) -> JSXElementName
JSXElementName. Read more§fn fold_jsx_empty_expr(&mut self, node: JSXEmptyExpr) -> JSXEmptyExpr
fn fold_jsx_empty_expr(&mut self, node: JSXEmptyExpr) -> JSXEmptyExpr
JSXEmptyExpr. Read more§fn fold_jsx_expr(&mut self, node: JSXExpr) -> JSXExpr
fn fold_jsx_expr(&mut self, node: JSXExpr) -> JSXExpr
JSXExpr. Read more§fn fold_jsx_expr_container(
&mut self,
node: JSXExprContainer,
) -> JSXExprContainer
fn fold_jsx_expr_container( &mut self, node: JSXExprContainer, ) -> JSXExprContainer
JSXExprContainer. Read more§fn fold_jsx_fragment(&mut self, node: JSXFragment) -> JSXFragment
fn fold_jsx_fragment(&mut self, node: JSXFragment) -> JSXFragment
JSXFragment. Read more§fn fold_jsx_member_expr(&mut self, node: JSXMemberExpr) -> JSXMemberExpr
fn fold_jsx_member_expr(&mut self, node: JSXMemberExpr) -> JSXMemberExpr
JSXMemberExpr. Read more§fn fold_jsx_namespaced_name(
&mut self,
node: JSXNamespacedName,
) -> JSXNamespacedName
fn fold_jsx_namespaced_name( &mut self, node: JSXNamespacedName, ) -> JSXNamespacedName
JSXNamespacedName. Read more§fn fold_jsx_object(&mut self, node: JSXObject) -> JSXObject
fn fold_jsx_object(&mut self, node: JSXObject) -> JSXObject
JSXObject. Read more§fn fold_jsx_opening_fragment(
&mut self,
node: JSXOpeningFragment,
) -> JSXOpeningFragment
fn fold_jsx_opening_fragment( &mut self, node: JSXOpeningFragment, ) -> JSXOpeningFragment
JSXOpeningFragment. Read more§fn fold_jsx_spread_child(&mut self, node: JSXSpreadChild) -> JSXSpreadChild
fn fold_jsx_spread_child(&mut self, node: JSXSpreadChild) -> JSXSpreadChild
JSXSpreadChild. Read more§fn fold_jsx_text(&mut self, node: JSXText) -> JSXText
fn fold_jsx_text(&mut self, node: JSXText) -> JSXText
JSXText. Read more§fn fold_key_value_pat_prop(&mut self, node: KeyValuePatProp) -> KeyValuePatProp
fn fold_key_value_pat_prop(&mut self, node: KeyValuePatProp) -> KeyValuePatProp
KeyValuePatProp. Read more§fn fold_key_value_prop(&mut self, node: KeyValueProp) -> KeyValueProp
fn fold_key_value_prop(&mut self, node: KeyValueProp) -> KeyValueProp
KeyValueProp. Read more§fn fold_labeled_stmt(&mut self, node: LabeledStmt) -> LabeledStmt
fn fold_labeled_stmt(&mut self, node: LabeledStmt) -> LabeledStmt
LabeledStmt. Read more§fn fold_meta_prop_expr(&mut self, node: MetaPropExpr) -> MetaPropExpr
fn fold_meta_prop_expr(&mut self, node: MetaPropExpr) -> MetaPropExpr
MetaPropExpr. Read more§fn fold_meta_prop_kind(&mut self, node: MetaPropKind) -> MetaPropKind
fn fold_meta_prop_kind(&mut self, node: MetaPropKind) -> MetaPropKind
MetaPropKind. Read more§fn fold_method_kind(&mut self, node: MethodKind) -> MethodKind
fn fold_method_kind(&mut self, node: MethodKind) -> MethodKind
MethodKind. Read more§fn fold_method_prop(&mut self, node: MethodProp) -> MethodProp
fn fold_method_prop(&mut self, node: MethodProp) -> MethodProp
MethodProp. Read more§fn fold_module_decl(&mut self, node: ModuleDecl) -> ModuleDecl
fn fold_module_decl(&mut self, node: ModuleDecl) -> ModuleDecl
ModuleDecl. Read more§fn fold_module_export_name(
&mut self,
node: ModuleExportName,
) -> ModuleExportName
fn fold_module_export_name( &mut self, node: ModuleExportName, ) -> ModuleExportName
ModuleExportName. Read more§fn fold_module_item(&mut self, node: ModuleItem) -> ModuleItem
fn fold_module_item(&mut self, node: ModuleItem) -> ModuleItem
ModuleItem. Read more§fn fold_new_expr(&mut self, node: NewExpr) -> NewExpr
fn fold_new_expr(&mut self, node: NewExpr) -> NewExpr
NewExpr. Read more§fn fold_number(&mut self, node: Number) -> Number
fn fold_number(&mut self, node: Number) -> Number
Number. Read more§fn fold_object_lit(&mut self, node: ObjectLit) -> ObjectLit
fn fold_object_lit(&mut self, node: ObjectLit) -> ObjectLit
ObjectLit. Read more§fn fold_object_pat(&mut self, node: ObjectPat) -> ObjectPat
fn fold_object_pat(&mut self, node: ObjectPat) -> ObjectPat
ObjectPat. Read more§fn fold_object_pat_prop(&mut self, node: ObjectPatProp) -> ObjectPatProp
fn fold_object_pat_prop(&mut self, node: ObjectPatProp) -> ObjectPatProp
ObjectPatProp. Read more§fn fold_object_pat_props(
&mut self,
node: Vec<ObjectPatProp>,
) -> Vec<ObjectPatProp>
fn fold_object_pat_props( &mut self, node: Vec<ObjectPatProp>, ) -> Vec<ObjectPatProp>
Vec < ObjectPatProp >. Read more§fn fold_opt_accessibility(
&mut self,
node: Option<Accessibility>,
) -> Option<Accessibility>
fn fold_opt_accessibility( &mut self, node: Option<Accessibility>, ) -> Option<Accessibility>
Option < Accessibility >. Read more§fn fold_opt_atom(&mut self, node: Option<Atom>) -> Option<Atom>
fn fold_opt_atom(&mut self, node: Option<Atom>) -> Option<Atom>
Option < swc_atoms :: Atom >. Read more§fn fold_opt_block_stmt(&mut self, node: Option<BlockStmt>) -> Option<BlockStmt>
fn fold_opt_block_stmt(&mut self, node: Option<BlockStmt>) -> Option<BlockStmt>
Option < BlockStmt >. Read more§fn fold_opt_call(&mut self, node: OptCall) -> OptCall
fn fold_opt_call(&mut self, node: OptCall) -> OptCall
OptCall. Read more§fn fold_opt_catch_clause(
&mut self,
node: Option<CatchClause>,
) -> Option<CatchClause>
fn fold_opt_catch_clause( &mut self, node: Option<CatchClause>, ) -> Option<CatchClause>
Option < CatchClause >. Read more§fn fold_opt_chain_base(&mut self, node: OptChainBase) -> OptChainBase
fn fold_opt_chain_base(&mut self, node: OptChainBase) -> OptChainBase
OptChainBase. Read more§fn fold_opt_chain_expr(&mut self, node: OptChainExpr) -> OptChainExpr
fn fold_opt_chain_expr(&mut self, node: OptChainExpr) -> OptChainExpr
OptChainExpr. Read more§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>>
Option < Box < Expr > >. Read more§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>
Option < ExprOrSpread >. Read more§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>>
Option < Vec < ExprOrSpread > >. Read more§fn fold_opt_ident(&mut self, node: Option<Ident>) -> Option<Ident>
fn fold_opt_ident(&mut self, node: Option<Ident>) -> Option<Ident>
Option < Ident >. Read more§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>
Option < JSXAttrValue >. Read more§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>
Option < JSXClosingElement >. Read more§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>
Option < ModuleExportName >. Read more§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>>
Option < Box < ObjectLit > >. Read more§fn fold_opt_pat(&mut self, node: Option<Pat>) -> Option<Pat>
fn fold_opt_pat(&mut self, node: Option<Pat>) -> Option<Pat>
Option < Pat >. Read more§fn fold_opt_span(&mut self, node: Option<Span>) -> Option<Span>
fn fold_opt_span(&mut self, node: Option<Span>) -> Option<Span>
Option < swc_common :: Span >. Read more§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>>
Option < Box < Stmt > >. Read more§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>>
Option < Box < Str > >. Read more§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>
Option < TruePlusMinus >. Read more§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>
Option < TsEntityName >. Read more§fn fold_opt_ts_import_call_options(
&mut self,
node: Option<TsImportCallOptions>,
) -> Option<TsImportCallOptions>
fn fold_opt_ts_import_call_options( &mut self, node: Option<TsImportCallOptions>, ) -> Option<TsImportCallOptions>
Option < TsImportCallOptions >. Read more§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>
Option < TsNamespaceBody >. Read more§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>>
Option < Box < TsType > >. Read more§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>>
Option < Box < TsTypeAnn > >. Read more§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>>
Option < Box < TsTypeParamDecl > >. Read more§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>>
Option < Box < TsTypeParamInstantiation > >. Read more§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>
Option < VarDeclOrExpr >. Read more§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>>
Vec < Option < ExprOrSpread > >. Read more§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>>
Vec < Option < Pat > >. Read more§fn fold_opt_wtf_8_atom(&mut self, node: Option<Wtf8Atom>) -> Option<Wtf8Atom>
fn fold_opt_wtf_8_atom(&mut self, node: Option<Wtf8Atom>) -> Option<Wtf8Atom>
Option < swc_atoms :: Wtf8Atom >. Read more§fn fold_param(&mut self, node: Param) -> Param
fn fold_param(&mut self, node: Param) -> Param
Param. Read more§fn fold_param_or_ts_param_prop(
&mut self,
node: ParamOrTsParamProp,
) -> ParamOrTsParamProp
fn fold_param_or_ts_param_prop( &mut self, node: ParamOrTsParamProp, ) -> ParamOrTsParamProp
ParamOrTsParamProp. Read more§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>
Vec < ParamOrTsParamProp >. Read more§fn fold_params(&mut self, node: Vec<Param>) -> Vec<Param>
fn fold_params(&mut self, node: Vec<Param>) -> Vec<Param>
Vec < Param >. Read more§fn fold_paren_expr(&mut self, node: ParenExpr) -> ParenExpr
fn fold_paren_expr(&mut self, node: ParenExpr) -> ParenExpr
ParenExpr. Read more§fn fold_private_method(&mut self, node: PrivateMethod) -> PrivateMethod
fn fold_private_method(&mut self, node: PrivateMethod) -> PrivateMethod
PrivateMethod. Read more§fn fold_private_name(&mut self, node: PrivateName) -> PrivateName
fn fold_private_name(&mut self, node: PrivateName) -> PrivateName
PrivateName. Read more§fn fold_private_prop(&mut self, node: PrivateProp) -> PrivateProp
fn fold_private_prop(&mut self, node: PrivateProp) -> PrivateProp
PrivateProp. Read more§fn fold_program(&mut self, node: Program) -> Program
fn fold_program(&mut self, node: Program) -> Program
Program. Read more§fn fold_prop_or_spread(&mut self, node: PropOrSpread) -> PropOrSpread
fn fold_prop_or_spread(&mut self, node: PropOrSpread) -> PropOrSpread
PropOrSpread. Read more§fn fold_prop_or_spreads(&mut self, node: Vec<PropOrSpread>) -> Vec<PropOrSpread>
fn fold_prop_or_spreads(&mut self, node: Vec<PropOrSpread>) -> Vec<PropOrSpread>
Vec < PropOrSpread >. Read more§fn fold_regex(&mut self, node: Regex) -> Regex
fn fold_regex(&mut self, node: Regex) -> Regex
Regex. Read more§fn fold_rest_pat(&mut self, node: RestPat) -> RestPat
fn fold_rest_pat(&mut self, node: RestPat) -> RestPat
RestPat. Read more§fn fold_return_stmt(&mut self, node: ReturnStmt) -> ReturnStmt
fn fold_return_stmt(&mut self, node: ReturnStmt) -> ReturnStmt
ReturnStmt. Read more§fn fold_script(&mut self, node: Script) -> Script
fn fold_script(&mut self, node: Script) -> Script
Script. Read more§fn fold_seq_expr(&mut self, node: SeqExpr) -> SeqExpr
fn fold_seq_expr(&mut self, node: SeqExpr) -> SeqExpr
SeqExpr. Read more§fn fold_setter_prop(&mut self, node: SetterProp) -> SetterProp
fn fold_setter_prop(&mut self, node: SetterProp) -> SetterProp
SetterProp. Read more§fn fold_simple_assign_target(
&mut self,
node: SimpleAssignTarget,
) -> SimpleAssignTarget
fn fold_simple_assign_target( &mut self, node: SimpleAssignTarget, ) -> SimpleAssignTarget
SimpleAssignTarget. Read more§fn fold_spread_element(&mut self, node: SpreadElement) -> SpreadElement
fn fold_spread_element(&mut self, node: SpreadElement) -> SpreadElement
SpreadElement. Read more§fn fold_static_block(&mut self, node: StaticBlock) -> StaticBlock
fn fold_static_block(&mut self, node: StaticBlock) -> StaticBlock
StaticBlock. Read more§fn fold_super(&mut self, node: Super) -> Super
fn fold_super(&mut self, node: Super) -> Super
Super. Read more§fn fold_super_prop(&mut self, node: SuperProp) -> SuperProp
fn fold_super_prop(&mut self, node: SuperProp) -> SuperProp
SuperProp. Read more§fn fold_super_prop_expr(&mut self, node: SuperPropExpr) -> SuperPropExpr
fn fold_super_prop_expr(&mut self, node: SuperPropExpr) -> SuperPropExpr
SuperPropExpr. Read more§fn fold_switch_case(&mut self, node: SwitchCase) -> SwitchCase
fn fold_switch_case(&mut self, node: SwitchCase) -> SwitchCase
SwitchCase. Read more§fn fold_switch_cases(&mut self, node: Vec<SwitchCase>) -> Vec<SwitchCase>
fn fold_switch_cases(&mut self, node: Vec<SwitchCase>) -> Vec<SwitchCase>
Vec < SwitchCase >. Read more§fn fold_switch_stmt(&mut self, node: SwitchStmt) -> SwitchStmt
fn fold_switch_stmt(&mut self, node: SwitchStmt) -> SwitchStmt
SwitchStmt. Read more§fn fold_syntax_context(&mut self, node: SyntaxContext) -> SyntaxContext
fn fold_syntax_context(&mut self, node: SyntaxContext) -> SyntaxContext
swc_common :: SyntaxContext. Read more§fn fold_tagged_tpl(&mut self, node: TaggedTpl) -> TaggedTpl
fn fold_tagged_tpl(&mut self, node: TaggedTpl) -> TaggedTpl
TaggedTpl. Read more§fn fold_this_expr(&mut self, node: ThisExpr) -> ThisExpr
fn fold_this_expr(&mut self, node: ThisExpr) -> ThisExpr
ThisExpr. Read more§fn fold_throw_stmt(&mut self, node: ThrowStmt) -> ThrowStmt
fn fold_throw_stmt(&mut self, node: ThrowStmt) -> ThrowStmt
ThrowStmt. Read more§fn fold_tpl_element(&mut self, node: TplElement) -> TplElement
fn fold_tpl_element(&mut self, node: TplElement) -> TplElement
TplElement. Read more§fn fold_tpl_elements(&mut self, node: Vec<TplElement>) -> Vec<TplElement>
fn fold_tpl_elements(&mut self, node: Vec<TplElement>) -> Vec<TplElement>
Vec < TplElement >. Read more§fn fold_try_stmt(&mut self, node: TryStmt) -> TryStmt
fn fold_try_stmt(&mut self, node: TryStmt) -> TryStmt
TryStmt. Read more§fn fold_ts_as_expr(&mut self, node: TsAsExpr) -> TsAsExpr
fn fold_ts_as_expr(&mut self, node: TsAsExpr) -> TsAsExpr
TsAsExpr. Read more§fn fold_ts_const_assertion(
&mut self,
node: TsConstAssertion,
) -> TsConstAssertion
fn fold_ts_const_assertion( &mut self, node: TsConstAssertion, ) -> TsConstAssertion
TsConstAssertion. Read more§fn fold_ts_enum_members(&mut self, node: Vec<TsEnumMember>) -> Vec<TsEnumMember>
fn fold_ts_enum_members(&mut self, node: Vec<TsEnumMember>) -> Vec<TsEnumMember>
Vec < TsEnumMember >. Read more§fn fold_ts_export_assignment(
&mut self,
node: TsExportAssignment,
) -> TsExportAssignment
fn fold_ts_export_assignment( &mut self, node: TsExportAssignment, ) -> TsExportAssignment
TsExportAssignment. Read more§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>
Vec < TsExprWithTypeArgs >. Read more§fn fold_ts_external_module_ref(
&mut self,
node: TsExternalModuleRef,
) -> TsExternalModuleRef
fn fold_ts_external_module_ref( &mut self, node: TsExternalModuleRef, ) -> TsExternalModuleRef
TsExternalModuleRef. Read more§fn fold_ts_fn_params(&mut self, node: Vec<TsFnParam>) -> Vec<TsFnParam>
fn fold_ts_fn_params(&mut self, node: Vec<TsFnParam>) -> Vec<TsFnParam>
Vec < TsFnParam >. Read more§fn fold_ts_getter_signature(
&mut self,
node: TsGetterSignature,
) -> TsGetterSignature
fn fold_ts_getter_signature( &mut self, node: TsGetterSignature, ) -> TsGetterSignature
TsGetterSignature. Read more§fn fold_ts_import_call_options(
&mut self,
node: TsImportCallOptions,
) -> TsImportCallOptions
fn fold_ts_import_call_options( &mut self, node: TsImportCallOptions, ) -> TsImportCallOptions
TsImportCallOptions. Read more§fn fold_ts_instantiation(&mut self, node: TsInstantiation) -> TsInstantiation
fn fold_ts_instantiation(&mut self, node: TsInstantiation) -> TsInstantiation
TsInstantiation. Read more§fn fold_ts_lit(&mut self, node: TsLit) -> TsLit
fn fold_ts_lit(&mut self, node: TsLit) -> TsLit
TsLit. Read more§fn fold_ts_lit_type(&mut self, node: TsLitType) -> TsLitType
fn fold_ts_lit_type(&mut self, node: TsLitType) -> TsLitType
TsLitType. Read more§fn fold_ts_module_ref(&mut self, node: TsModuleRef) -> TsModuleRef
fn fold_ts_module_ref(&mut self, node: TsModuleRef) -> TsModuleRef
TsModuleRef. Read more§fn fold_ts_non_null_expr(&mut self, node: TsNonNullExpr) -> TsNonNullExpr
fn fold_ts_non_null_expr(&mut self, node: TsNonNullExpr) -> TsNonNullExpr
TsNonNullExpr. Read more§fn fold_ts_satisfies_expr(&mut self, node: TsSatisfiesExpr) -> TsSatisfiesExpr
fn fold_ts_satisfies_expr(&mut self, node: TsSatisfiesExpr) -> TsSatisfiesExpr
TsSatisfiesExpr. Read more§fn fold_ts_setter_signature(
&mut self,
node: TsSetterSignature,
) -> TsSetterSignature
fn fold_ts_setter_signature( &mut self, node: TsSetterSignature, ) -> TsSetterSignature
TsSetterSignature. Read more§fn fold_ts_tpl_lit_type(&mut self, node: TsTplLitType) -> TsTplLitType
fn fold_ts_tpl_lit_type(&mut self, node: TsTplLitType) -> TsTplLitType
TsTplLitType. Read more§fn fold_ts_tuple_element(&mut self, node: TsTupleElement) -> TsTupleElement
fn fold_ts_tuple_element(&mut self, node: TsTupleElement) -> TsTupleElement
TsTupleElement. Read more§fn fold_ts_tuple_elements(
&mut self,
node: Vec<TsTupleElement>,
) -> Vec<TsTupleElement>
fn fold_ts_tuple_elements( &mut self, node: Vec<TsTupleElement>, ) -> Vec<TsTupleElement>
Vec < TsTupleElement >. Read more§fn fold_ts_type_elements(
&mut self,
node: Vec<TsTypeElement>,
) -> Vec<TsTypeElement>
fn fold_ts_type_elements( &mut self, node: Vec<TsTypeElement>, ) -> Vec<TsTypeElement>
Vec < TsTypeElement >. Read more§fn fold_ts_type_params(&mut self, node: Vec<TsTypeParam>) -> Vec<TsTypeParam>
fn fold_ts_type_params(&mut self, node: Vec<TsTypeParam>) -> Vec<TsTypeParam>
Vec < TsTypeParam >. Read more§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>>
Vec < Box < TsType > >. Read more§fn fold_unary_expr(&mut self, node: UnaryExpr) -> UnaryExpr
fn fold_unary_expr(&mut self, node: UnaryExpr) -> UnaryExpr
UnaryExpr. Read more§fn fold_unary_op(&mut self, node: UnaryOp) -> UnaryOp
fn fold_unary_op(&mut self, node: UnaryOp) -> UnaryOp
UnaryOp. Read more§fn fold_update_expr(&mut self, node: UpdateExpr) -> UpdateExpr
fn fold_update_expr(&mut self, node: UpdateExpr) -> UpdateExpr
UpdateExpr. Read more§fn fold_update_op(&mut self, node: UpdateOp) -> UpdateOp
fn fold_update_op(&mut self, node: UpdateOp) -> UpdateOp
UpdateOp. Read more§fn fold_using_decl(&mut self, node: UsingDecl) -> UsingDecl
fn fold_using_decl(&mut self, node: UsingDecl) -> UsingDecl
UsingDecl. Read more§fn fold_var_decl(&mut self, node: VarDecl) -> VarDecl
fn fold_var_decl(&mut self, node: VarDecl) -> VarDecl
VarDecl. Read more§fn fold_var_decl_kind(&mut self, node: VarDeclKind) -> VarDeclKind
fn fold_var_decl_kind(&mut self, node: VarDeclKind) -> VarDeclKind
VarDeclKind. Read more§fn fold_var_decl_or_expr(&mut self, node: VarDeclOrExpr) -> VarDeclOrExpr
fn fold_var_decl_or_expr(&mut self, node: VarDeclOrExpr) -> VarDeclOrExpr
VarDeclOrExpr. Read more§fn fold_while_stmt(&mut self, node: WhileStmt) -> WhileStmt
fn fold_while_stmt(&mut self, node: WhileStmt) -> WhileStmt
WhileStmt. Read more§fn fold_with_stmt(&mut self, node: WithStmt) -> WithStmt
fn fold_with_stmt(&mut self, node: WithStmt) -> WithStmt
WithStmt. Read more§fn fold_wtf_8_atom(&mut self, node: Wtf8Atom) -> Wtf8Atom
fn fold_wtf_8_atom(&mut self, node: Wtf8Atom) -> Wtf8Atom
swc_atoms :: Wtf8Atom. Read more§fn fold_yield_expr(&mut self, node: YieldExpr) -> YieldExpr
fn fold_yield_expr(&mut self, node: YieldExpr) -> YieldExpr
YieldExpr. Read moreAuto Trait Implementations§
impl<C> Freeze for StyleXTransform<C>where
C: Freeze,
impl<C> !RefUnwindSafe for StyleXTransform<C>
impl<C> !Send for StyleXTransform<C>
impl<C> !Sync for StyleXTransform<C>
impl<C> Unpin for StyleXTransform<C>where
C: Unpin,
impl<C> UnsafeUnpin for StyleXTransform<C>where
C: UnsafeUnpin,
impl<C> !UnwindSafe for StyleXTransform<C>
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2where
T: SharedNiching<N1, N2>,
N1: Niching<T>,
N2: Niching<T>,
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2where
T: SharedNiching<N1, N2>,
N1: Niching<T>,
N2: Niching<T>,
§impl<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg] or
a color-specific method, such as [OwoColorize::green], Read more§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg] or
a color-specific method, such as [OwoColorize::on_yellow], Read more§fn fg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
§fn bg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
§fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
§fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling [Attribute] value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi [Quirk] value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the [Condition] value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.§impl<T> Pointee for T
impl<T> Pointee for T
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.