pub trait Fold {
Show 230 methods
// Provided methods
fn fold_absolute_color_base(
&mut self,
node: AbsoluteColorBase,
) -> AbsoluteColorBase { ... }
fn fold_alpha_value(&mut self, node: AlphaValue) -> AlphaValue { ... }
fn fold_an_plus_b(&mut self, node: AnPlusB) -> AnPlusB { ... }
fn fold_an_plus_b_notation(
&mut self,
node: AnPlusBNotation,
) -> AnPlusBNotation { ... }
fn fold_angle(&mut self, node: Angle) -> Angle { ... }
fn fold_angle_percentage(
&mut self,
node: AnglePercentage,
) -> AnglePercentage { ... }
fn fold_any_namespace(&mut self, node: AnyNamespace) -> AnyNamespace { ... }
fn fold_at_rule(&mut self, node: AtRule) -> AtRule { ... }
fn fold_at_rule_name(&mut self, node: AtRuleName) -> AtRuleName { ... }
fn fold_at_rule_prelude(&mut self, node: AtRulePrelude) -> AtRulePrelude { ... }
fn fold_atom(&mut self, node: Atom) -> Atom { ... }
fn fold_attribute_selector(
&mut self,
node: AttributeSelector,
) -> AttributeSelector { ... }
fn fold_attribute_selector_matcher(
&mut self,
node: AttributeSelectorMatcher,
) -> AttributeSelectorMatcher { ... }
fn fold_attribute_selector_matcher_value(
&mut self,
node: AttributeSelectorMatcherValue,
) -> AttributeSelectorMatcherValue { ... }
fn fold_attribute_selector_modifier(
&mut self,
node: AttributeSelectorModifier,
) -> AttributeSelectorModifier { ... }
fn fold_attribute_selector_value(
&mut self,
node: AttributeSelectorValue,
) -> AttributeSelectorValue { ... }
fn fold_bin_op(&mut self, node: BinOp) -> BinOp { ... }
fn fold_calc_operator(&mut self, node: CalcOperator) -> CalcOperator { ... }
fn fold_calc_operator_type(
&mut self,
node: CalcOperatorType,
) -> CalcOperatorType { ... }
fn fold_calc_product(&mut self, node: CalcProduct) -> CalcProduct { ... }
fn fold_calc_product_or_operator(
&mut self,
node: CalcProductOrOperator,
) -> CalcProductOrOperator { ... }
fn fold_calc_product_or_operators(
&mut self,
node: Vec<CalcProductOrOperator>,
) -> Vec<CalcProductOrOperator> { ... }
fn fold_calc_sum(&mut self, node: CalcSum) -> CalcSum { ... }
fn fold_calc_value(&mut self, node: CalcValue) -> CalcValue { ... }
fn fold_calc_value_or_operator(
&mut self,
node: CalcValueOrOperator,
) -> CalcValueOrOperator { ... }
fn fold_calc_value_or_operators(
&mut self,
node: Vec<CalcValueOrOperator>,
) -> Vec<CalcValueOrOperator> { ... }
fn fold_class_selector(&mut self, node: ClassSelector) -> ClassSelector { ... }
fn fold_cmyk_component(&mut self, node: CmykComponent) -> CmykComponent { ... }
fn fold_color(&mut self, node: Color) -> Color { ... }
fn fold_color_profile_name(
&mut self,
node: ColorProfileName,
) -> ColorProfileName { ... }
fn fold_combinator(&mut self, node: Combinator) -> Combinator { ... }
fn fold_combinator_value(
&mut self,
node: CombinatorValue,
) -> CombinatorValue { ... }
fn fold_complex_selector(
&mut self,
node: ComplexSelector,
) -> ComplexSelector { ... }
fn fold_complex_selector_children(
&mut self,
node: ComplexSelectorChildren,
) -> ComplexSelectorChildren { ... }
fn fold_complex_selector_childrens(
&mut self,
node: Vec<ComplexSelectorChildren>,
) -> Vec<ComplexSelectorChildren> { ... }
fn fold_complex_selectors(
&mut self,
node: Vec<ComplexSelector>,
) -> Vec<ComplexSelector> { ... }
fn fold_component_value(&mut self, node: ComponentValue) -> ComponentValue { ... }
fn fold_component_values(
&mut self,
node: Vec<ComponentValue>,
) -> Vec<ComponentValue> { ... }
fn fold_compound_selector(
&mut self,
node: CompoundSelector,
) -> CompoundSelector { ... }
fn fold_compound_selector_list(
&mut self,
node: CompoundSelectorList,
) -> CompoundSelectorList { ... }
fn fold_compound_selectors(
&mut self,
node: Vec<CompoundSelector>,
) -> Vec<CompoundSelector> { ... }
fn fold_container_condition(
&mut self,
node: ContainerCondition,
) -> ContainerCondition { ... }
fn fold_container_name(&mut self, node: ContainerName) -> ContainerName { ... }
fn fold_container_query(&mut self, node: ContainerQuery) -> ContainerQuery { ... }
fn fold_container_query_and(
&mut self,
node: ContainerQueryAnd,
) -> ContainerQueryAnd { ... }
fn fold_container_query_not(
&mut self,
node: ContainerQueryNot,
) -> ContainerQueryNot { ... }
fn fold_container_query_or(
&mut self,
node: ContainerQueryOr,
) -> ContainerQueryOr { ... }
fn fold_container_query_type(
&mut self,
node: ContainerQueryType,
) -> ContainerQueryType { ... }
fn fold_container_query_types(
&mut self,
node: Vec<ContainerQueryType>,
) -> Vec<ContainerQueryType> { ... }
fn fold_custom_highlight_name(
&mut self,
node: CustomHighlightName,
) -> CustomHighlightName { ... }
fn fold_custom_ident(&mut self, node: CustomIdent) -> CustomIdent { ... }
fn fold_custom_idents(&mut self, node: Vec<CustomIdent>) -> Vec<CustomIdent> { ... }
fn fold_custom_media_query(
&mut self,
node: CustomMediaQuery,
) -> CustomMediaQuery { ... }
fn fold_custom_media_query_media_type(
&mut self,
node: CustomMediaQueryMediaType,
) -> CustomMediaQueryMediaType { ... }
fn fold_custom_property_name(
&mut self,
node: CustomPropertyName,
) -> CustomPropertyName { ... }
fn fold_dashed_ident(&mut self, node: DashedIdent) -> DashedIdent { ... }
fn fold_declaration(&mut self, node: Declaration) -> Declaration { ... }
fn fold_declaration_name(
&mut self,
node: DeclarationName,
) -> DeclarationName { ... }
fn fold_declaration_or_at_rule(
&mut self,
node: DeclarationOrAtRule,
) -> DeclarationOrAtRule { ... }
fn fold_delimiter(&mut self, node: Delimiter) -> Delimiter { ... }
fn fold_delimiter_value(&mut self, node: DelimiterValue) -> DelimiterValue { ... }
fn fold_dimension(&mut self, node: Dimension) -> Dimension { ... }
fn fold_dimension_token(&mut self, node: DimensionToken) -> DimensionToken { ... }
fn fold_document_prelude(
&mut self,
node: DocumentPrelude,
) -> DocumentPrelude { ... }
fn fold_document_prelude_matching_function(
&mut self,
node: DocumentPreludeMatchingFunction,
) -> DocumentPreludeMatchingFunction { ... }
fn fold_document_prelude_matching_functions(
&mut self,
node: Vec<DocumentPreludeMatchingFunction>,
) -> Vec<DocumentPreludeMatchingFunction> { ... }
fn fold_extension_name(&mut self, node: ExtensionName) -> ExtensionName { ... }
fn fold_family_name(&mut self, node: FamilyName) -> FamilyName { ... }
fn fold_family_names(&mut self, node: Vec<FamilyName>) -> Vec<FamilyName> { ... }
fn fold_flex(&mut self, node: Flex) -> Flex { ... }
fn fold_font_feature_values_prelude(
&mut self,
node: FontFeatureValuesPrelude,
) -> FontFeatureValuesPrelude { ... }
fn fold_forgiving_complex_selector(
&mut self,
node: ForgivingComplexSelector,
) -> ForgivingComplexSelector { ... }
fn fold_forgiving_complex_selectors(
&mut self,
node: Vec<ForgivingComplexSelector>,
) -> Vec<ForgivingComplexSelector> { ... }
fn fold_forgiving_relative_selector(
&mut self,
node: ForgivingRelativeSelector,
) -> ForgivingRelativeSelector { ... }
fn fold_forgiving_relative_selector_list(
&mut self,
node: ForgivingRelativeSelectorList,
) -> ForgivingRelativeSelectorList { ... }
fn fold_forgiving_relative_selectors(
&mut self,
node: Vec<ForgivingRelativeSelector>,
) -> Vec<ForgivingRelativeSelector> { ... }
fn fold_forgiving_selector_list(
&mut self,
node: ForgivingSelectorList,
) -> ForgivingSelectorList { ... }
fn fold_frequency(&mut self, node: Frequency) -> Frequency { ... }
fn fold_frequency_percentage(
&mut self,
node: FrequencyPercentage,
) -> FrequencyPercentage { ... }
fn fold_function(&mut self, node: Function) -> Function { ... }
fn fold_function_name(&mut self, node: FunctionName) -> FunctionName { ... }
fn fold_general_enclosed(
&mut self,
node: GeneralEnclosed,
) -> GeneralEnclosed { ... }
fn fold_hex_color(&mut self, node: HexColor) -> HexColor { ... }
fn fold_hue(&mut self, node: Hue) -> Hue { ... }
fn fold_id_selector(&mut self, node: IdSelector) -> IdSelector { ... }
fn fold_ident(&mut self, node: Ident) -> Ident { ... }
fn fold_idents(&mut self, node: Vec<Ident>) -> Vec<Ident> { ... }
fn fold_import_conditions(
&mut self,
node: ImportConditions,
) -> ImportConditions { ... }
fn fold_import_href(&mut self, node: ImportHref) -> ImportHref { ... }
fn fold_import_layer_name(
&mut self,
node: ImportLayerName,
) -> ImportLayerName { ... }
fn fold_import_prelude(&mut self, node: ImportPrelude) -> ImportPrelude { ... }
fn fold_important_flag(&mut self, node: ImportantFlag) -> ImportantFlag { ... }
fn fold_integer(&mut self, node: Integer) -> Integer { ... }
fn fold_keyframe_block(&mut self, node: KeyframeBlock) -> KeyframeBlock { ... }
fn fold_keyframe_selector(
&mut self,
node: KeyframeSelector,
) -> KeyframeSelector { ... }
fn fold_keyframe_selectors(
&mut self,
node: Vec<KeyframeSelector>,
) -> Vec<KeyframeSelector> { ... }
fn fold_keyframes_name(&mut self, node: KeyframesName) -> KeyframesName { ... }
fn fold_keyframes_pseudo_function(
&mut self,
node: KeyframesPseudoFunction,
) -> KeyframesPseudoFunction { ... }
fn fold_keyframes_pseudo_prefix(
&mut self,
node: KeyframesPseudoPrefix,
) -> KeyframesPseudoPrefix { ... }
fn fold_layer_name(&mut self, node: LayerName) -> LayerName { ... }
fn fold_layer_name_list(&mut self, node: LayerNameList) -> LayerNameList { ... }
fn fold_layer_names(&mut self, node: Vec<LayerName>) -> Vec<LayerName> { ... }
fn fold_layer_prelude(&mut self, node: LayerPrelude) -> LayerPrelude { ... }
fn fold_length(&mut self, node: Length) -> Length { ... }
fn fold_length_percentage(
&mut self,
node: LengthPercentage,
) -> LengthPercentage { ... }
fn fold_list_of_component_values(
&mut self,
node: ListOfComponentValues,
) -> ListOfComponentValues { ... }
fn fold_media_and(&mut self, node: MediaAnd) -> MediaAnd { ... }
fn fold_media_condition(&mut self, node: MediaCondition) -> MediaCondition { ... }
fn fold_media_condition_all_type(
&mut self,
node: MediaConditionAllType,
) -> MediaConditionAllType { ... }
fn fold_media_condition_all_types(
&mut self,
node: Vec<MediaConditionAllType>,
) -> Vec<MediaConditionAllType> { ... }
fn fold_media_condition_type(
&mut self,
node: MediaConditionType,
) -> MediaConditionType { ... }
fn fold_media_condition_without_or(
&mut self,
node: MediaConditionWithoutOr,
) -> MediaConditionWithoutOr { ... }
fn fold_media_condition_without_or_type(
&mut self,
node: MediaConditionWithoutOrType,
) -> MediaConditionWithoutOrType { ... }
fn fold_media_condition_without_or_types(
&mut self,
node: Vec<MediaConditionWithoutOrType>,
) -> Vec<MediaConditionWithoutOrType> { ... }
fn fold_media_feature(&mut self, node: MediaFeature) -> MediaFeature { ... }
fn fold_media_feature_boolean(
&mut self,
node: MediaFeatureBoolean,
) -> MediaFeatureBoolean { ... }
fn fold_media_feature_name(
&mut self,
node: MediaFeatureName,
) -> MediaFeatureName { ... }
fn fold_media_feature_plain(
&mut self,
node: MediaFeaturePlain,
) -> MediaFeaturePlain { ... }
fn fold_media_feature_range(
&mut self,
node: MediaFeatureRange,
) -> MediaFeatureRange { ... }
fn fold_media_feature_range_comparison(
&mut self,
node: MediaFeatureRangeComparison,
) -> MediaFeatureRangeComparison { ... }
fn fold_media_feature_range_interval(
&mut self,
node: MediaFeatureRangeInterval,
) -> MediaFeatureRangeInterval { ... }
fn fold_media_feature_value(
&mut self,
node: MediaFeatureValue,
) -> MediaFeatureValue { ... }
fn fold_media_in_parens(&mut self, node: MediaInParens) -> MediaInParens { ... }
fn fold_media_not(&mut self, node: MediaNot) -> MediaNot { ... }
fn fold_media_or(&mut self, node: MediaOr) -> MediaOr { ... }
fn fold_media_query(&mut self, node: MediaQuery) -> MediaQuery { ... }
fn fold_media_query_list(&mut self, node: MediaQueryList) -> MediaQueryList { ... }
fn fold_media_querys(&mut self, node: Vec<MediaQuery>) -> Vec<MediaQuery> { ... }
fn fold_media_type(&mut self, node: MediaType) -> MediaType { ... }
fn fold_named_namespace(&mut self, node: NamedNamespace) -> NamedNamespace { ... }
fn fold_namespace(&mut self, node: Namespace) -> Namespace { ... }
fn fold_namespace_prefix(
&mut self,
node: NamespacePrefix,
) -> NamespacePrefix { ... }
fn fold_namespace_prelude(
&mut self,
node: NamespacePrelude,
) -> NamespacePrelude { ... }
fn fold_namespace_prelude_uri(
&mut self,
node: NamespacePreludeUri,
) -> NamespacePreludeUri { ... }
fn fold_nesting_selector(
&mut self,
node: NestingSelector,
) -> NestingSelector { ... }
fn fold_number(&mut self, node: Number) -> Number { ... }
fn fold_number_type(&mut self, node: NumberType) -> NumberType { ... }
fn fold_opt_at_rule_prelude(
&mut self,
node: Option<Box<AtRulePrelude>>,
) -> Option<Box<AtRulePrelude>> { ... }
fn fold_opt_atom(&mut self, node: Option<Atom>) -> Option<Atom> { ... }
fn fold_opt_attribute_selector_matcher(
&mut self,
node: Option<AttributeSelectorMatcher>,
) -> Option<AttributeSelectorMatcher> { ... }
fn fold_opt_attribute_selector_modifier(
&mut self,
node: Option<AttributeSelectorModifier>,
) -> Option<AttributeSelectorModifier> { ... }
fn fold_opt_attribute_selector_value(
&mut self,
node: Option<AttributeSelectorValue>,
) -> Option<AttributeSelectorValue> { ... }
fn fold_opt_combinator(
&mut self,
node: Option<Combinator>,
) -> Option<Combinator> { ... }
fn fold_opt_container_name(
&mut self,
node: Option<ContainerName>,
) -> Option<ContainerName> { ... }
fn fold_opt_forgiving_selector_list(
&mut self,
node: Option<ForgivingSelectorList>,
) -> Option<ForgivingSelectorList> { ... }
fn fold_opt_function(
&mut self,
node: Option<Box<Function>>,
) -> Option<Box<Function>> { ... }
fn fold_opt_ident(&mut self, node: Option<Ident>) -> Option<Ident> { ... }
fn fold_opt_import_conditions(
&mut self,
node: Option<Box<ImportConditions>>,
) -> Option<Box<ImportConditions>> { ... }
fn fold_opt_import_layer_name(
&mut self,
node: Option<Box<ImportLayerName>>,
) -> Option<Box<ImportLayerName>> { ... }
fn fold_opt_important_flag(
&mut self,
node: Option<ImportantFlag>,
) -> Option<ImportantFlag> { ... }
fn fold_opt_media_condition_type(
&mut self,
node: Option<Box<MediaConditionType>>,
) -> Option<Box<MediaConditionType>> { ... }
fn fold_opt_media_query_list(
&mut self,
node: Option<Box<MediaQueryList>>,
) -> Option<Box<MediaQueryList>> { ... }
fn fold_opt_media_type(
&mut self,
node: Option<MediaType>,
) -> Option<MediaType> { ... }
fn fold_opt_namespace(
&mut self,
node: Option<Namespace>,
) -> Option<Namespace> { ... }
fn fold_opt_namespace_prefix(
&mut self,
node: Option<NamespacePrefix>,
) -> Option<NamespacePrefix> { ... }
fn fold_opt_nesting_selector(
&mut self,
node: Option<NestingSelector>,
) -> Option<NestingSelector> { ... }
fn fold_opt_number(&mut self, node: Option<Number>) -> Option<Number> { ... }
fn fold_opt_page_selector_pseudos(
&mut self,
node: Option<Vec<PageSelectorPseudo>>,
) -> Option<Vec<PageSelectorPseudo>> { ... }
fn fold_opt_page_selector_type(
&mut self,
node: Option<PageSelectorType>,
) -> Option<PageSelectorType> { ... }
fn fold_opt_pseudo_class_selector_childrens(
&mut self,
node: Option<Vec<PseudoClassSelectorChildren>>,
) -> Option<Vec<PseudoClassSelectorChildren>> { ... }
fn fold_opt_pseudo_element_selector_childrens(
&mut self,
node: Option<Vec<PseudoElementSelectorChildren>>,
) -> Option<Vec<PseudoElementSelectorChildren>> { ... }
fn fold_opt_simple_block(
&mut self,
node: Option<SimpleBlock>,
) -> Option<SimpleBlock> { ... }
fn fold_opt_type_selector(
&mut self,
node: Option<Box<TypeSelector>>,
) -> Option<Box<TypeSelector>> { ... }
fn fold_opt_url_modifiers(
&mut self,
node: Option<Vec<UrlModifier>>,
) -> Option<Vec<UrlModifier>> { ... }
fn fold_opt_url_value(
&mut self,
node: Option<Box<UrlValue>>,
) -> Option<Box<UrlValue>> { ... }
fn fold_page_selector(&mut self, node: PageSelector) -> PageSelector { ... }
fn fold_page_selector_list(
&mut self,
node: PageSelectorList,
) -> PageSelectorList { ... }
fn fold_page_selector_pseudo(
&mut self,
node: PageSelectorPseudo,
) -> PageSelectorPseudo { ... }
fn fold_page_selector_pseudos(
&mut self,
node: Vec<PageSelectorPseudo>,
) -> Vec<PageSelectorPseudo> { ... }
fn fold_page_selector_type(
&mut self,
node: PageSelectorType,
) -> PageSelectorType { ... }
fn fold_page_selectors(
&mut self,
node: Vec<PageSelector>,
) -> Vec<PageSelector> { ... }
fn fold_percentage(&mut self, node: Percentage) -> Percentage { ... }
fn fold_pseudo_class_selector(
&mut self,
node: PseudoClassSelector,
) -> PseudoClassSelector { ... }
fn fold_pseudo_class_selector_children(
&mut self,
node: PseudoClassSelectorChildren,
) -> PseudoClassSelectorChildren { ... }
fn fold_pseudo_class_selector_childrens(
&mut self,
node: Vec<PseudoClassSelectorChildren>,
) -> Vec<PseudoClassSelectorChildren> { ... }
fn fold_pseudo_element_selector(
&mut self,
node: PseudoElementSelector,
) -> PseudoElementSelector { ... }
fn fold_pseudo_element_selector_children(
&mut self,
node: PseudoElementSelectorChildren,
) -> PseudoElementSelectorChildren { ... }
fn fold_pseudo_element_selector_childrens(
&mut self,
node: Vec<PseudoElementSelectorChildren>,
) -> Vec<PseudoElementSelectorChildren> { ... }
fn fold_qualified_rule(&mut self, node: QualifiedRule) -> QualifiedRule { ... }
fn fold_qualified_rule_prelude(
&mut self,
node: QualifiedRulePrelude,
) -> QualifiedRulePrelude { ... }
fn fold_query_in_parens(&mut self, node: QueryInParens) -> QueryInParens { ... }
fn fold_ratio(&mut self, node: Ratio) -> Ratio { ... }
fn fold_relative_selector(
&mut self,
node: RelativeSelector,
) -> RelativeSelector { ... }
fn fold_relative_selector_list(
&mut self,
node: RelativeSelectorList,
) -> RelativeSelectorList { ... }
fn fold_relative_selectors(
&mut self,
node: Vec<RelativeSelector>,
) -> Vec<RelativeSelector> { ... }
fn fold_resolution(&mut self, node: Resolution) -> Resolution { ... }
fn fold_rule(&mut self, node: Rule) -> Rule { ... }
fn fold_rules(&mut self, node: Vec<Rule>) -> Vec<Rule> { ... }
fn fold_scope_range(&mut self, node: ScopeRange) -> ScopeRange { ... }
fn fold_selector_list(&mut self, node: SelectorList) -> SelectorList { ... }
fn fold_sequence_of_custom_idents(
&mut self,
node: SequenceOfCustomIdents,
) -> SequenceOfCustomIdents { ... }
fn fold_simple_block(&mut self, node: SimpleBlock) -> SimpleBlock { ... }
fn fold_size_feature(&mut self, node: SizeFeature) -> SizeFeature { ... }
fn fold_size_feature_boolean(
&mut self,
node: SizeFeatureBoolean,
) -> SizeFeatureBoolean { ... }
fn fold_size_feature_name(
&mut self,
node: SizeFeatureName,
) -> SizeFeatureName { ... }
fn fold_size_feature_plain(
&mut self,
node: SizeFeaturePlain,
) -> SizeFeaturePlain { ... }
fn fold_size_feature_range(
&mut self,
node: SizeFeatureRange,
) -> SizeFeatureRange { ... }
fn fold_size_feature_range_comparison(
&mut self,
node: SizeFeatureRangeComparison,
) -> SizeFeatureRangeComparison { ... }
fn fold_size_feature_range_interval(
&mut self,
node: SizeFeatureRangeInterval,
) -> SizeFeatureRangeInterval { ... }
fn fold_size_feature_value(
&mut self,
node: SizeFeatureValue,
) -> SizeFeatureValue { ... }
fn fold_span(&mut self, node: Span) -> Span { ... }
fn fold_str(&mut self, node: Str) -> Str { ... }
fn fold_style_block(&mut self, node: StyleBlock) -> StyleBlock { ... }
fn fold_stylesheet(&mut self, node: Stylesheet) -> Stylesheet { ... }
fn fold_subclass_selector(
&mut self,
node: SubclassSelector,
) -> SubclassSelector { ... }
fn fold_subclass_selectors(
&mut self,
node: Vec<SubclassSelector>,
) -> Vec<SubclassSelector> { ... }
fn fold_supports_and(&mut self, node: SupportsAnd) -> SupportsAnd { ... }
fn fold_supports_condition(
&mut self,
node: SupportsCondition,
) -> SupportsCondition { ... }
fn fold_supports_condition_type(
&mut self,
node: SupportsConditionType,
) -> SupportsConditionType { ... }
fn fold_supports_condition_types(
&mut self,
node: Vec<SupportsConditionType>,
) -> Vec<SupportsConditionType> { ... }
fn fold_supports_feature(
&mut self,
node: SupportsFeature,
) -> SupportsFeature { ... }
fn fold_supports_in_parens(
&mut self,
node: SupportsInParens,
) -> SupportsInParens { ... }
fn fold_supports_not(&mut self, node: SupportsNot) -> SupportsNot { ... }
fn fold_supports_or(&mut self, node: SupportsOr) -> SupportsOr { ... }
fn fold_tag_name_selector(
&mut self,
node: TagNameSelector,
) -> TagNameSelector { ... }
fn fold_time(&mut self, node: Time) -> Time { ... }
fn fold_time_percentage(&mut self, node: TimePercentage) -> TimePercentage { ... }
fn fold_token(&mut self, node: Token) -> Token { ... }
fn fold_token_and_span(&mut self, node: TokenAndSpan) -> TokenAndSpan { ... }
fn fold_type_selector(&mut self, node: TypeSelector) -> TypeSelector { ... }
fn fold_unicode_range(&mut self, node: UnicodeRange) -> UnicodeRange { ... }
fn fold_universal_selector(
&mut self,
node: UniversalSelector,
) -> UniversalSelector { ... }
fn fold_unknown_dimension(
&mut self,
node: UnknownDimension,
) -> UnknownDimension { ... }
fn fold_url(&mut self, node: Url) -> Url { ... }
fn fold_url_key_value(&mut self, node: UrlKeyValue) -> UrlKeyValue { ... }
fn fold_url_modifier(&mut self, node: UrlModifier) -> UrlModifier { ... }
fn fold_url_modifiers(&mut self, node: Vec<UrlModifier>) -> Vec<UrlModifier> { ... }
fn fold_url_value(&mut self, node: UrlValue) -> UrlValue { ... }
fn fold_url_value_raw(&mut self, node: UrlValueRaw) -> UrlValueRaw { ... }
fn fold_wq_name(&mut self, node: WqName) -> WqName { ... }
}
Expand description
A visitor trait for traversing the AST.
Provided Methods§
sourcefn fold_absolute_color_base(
&mut self,
node: AbsoluteColorBase,
) -> AbsoluteColorBase
fn fold_absolute_color_base( &mut self, node: AbsoluteColorBase, ) -> AbsoluteColorBase
Visit a node of type AbsoluteColorBase
.
By default, this method calls [AbsoluteColorBase::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_alpha_value(&mut self, node: AlphaValue) -> AlphaValue
fn fold_alpha_value(&mut self, node: AlphaValue) -> AlphaValue
Visit a node of type AlphaValue
.
By default, this method calls [AlphaValue::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_an_plus_b(&mut self, node: AnPlusB) -> AnPlusB
fn fold_an_plus_b(&mut self, node: AnPlusB) -> AnPlusB
Visit a node of type AnPlusB
.
By default, this method calls [AnPlusB::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_an_plus_b_notation(&mut self, node: AnPlusBNotation) -> AnPlusBNotation
fn fold_an_plus_b_notation(&mut self, node: AnPlusBNotation) -> AnPlusBNotation
Visit a node of type AnPlusBNotation
.
By default, this method calls [AnPlusBNotation::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_angle(&mut self, node: Angle) -> Angle
fn fold_angle(&mut self, node: Angle) -> Angle
Visit a node of type Angle
.
By default, this method calls [Angle::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_angle_percentage(&mut self, node: AnglePercentage) -> AnglePercentage
fn fold_angle_percentage(&mut self, node: AnglePercentage) -> AnglePercentage
Visit a node of type AnglePercentage
.
By default, this method calls [AnglePercentage::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_any_namespace(&mut self, node: AnyNamespace) -> AnyNamespace
fn fold_any_namespace(&mut self, node: AnyNamespace) -> AnyNamespace
Visit a node of type AnyNamespace
.
By default, this method calls [AnyNamespace::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_at_rule(&mut self, node: AtRule) -> AtRule
fn fold_at_rule(&mut self, node: AtRule) -> AtRule
Visit a node of type AtRule
.
By default, this method calls [AtRule::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_at_rule_name(&mut self, node: AtRuleName) -> AtRuleName
fn fold_at_rule_name(&mut self, node: AtRuleName) -> AtRuleName
Visit a node of type AtRuleName
.
By default, this method calls [AtRuleName::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_at_rule_prelude(&mut self, node: AtRulePrelude) -> AtRulePrelude
fn fold_at_rule_prelude(&mut self, node: AtRulePrelude) -> AtRulePrelude
Visit a node of type AtRulePrelude
.
By default, this method calls [AtRulePrelude::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_atom(&mut self, node: Atom) -> Atom
fn fold_atom(&mut self, node: Atom) -> Atom
Visit a node of type swc_atoms :: Atom
.
By default, this method calls [swc_atoms :: Atom::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_attribute_selector(
&mut self,
node: AttributeSelector,
) -> AttributeSelector
fn fold_attribute_selector( &mut self, node: AttributeSelector, ) -> AttributeSelector
Visit a node of type AttributeSelector
.
By default, this method calls [AttributeSelector::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_attribute_selector_matcher(
&mut self,
node: AttributeSelectorMatcher,
) -> AttributeSelectorMatcher
fn fold_attribute_selector_matcher( &mut self, node: AttributeSelectorMatcher, ) -> AttributeSelectorMatcher
Visit a node of type AttributeSelectorMatcher
.
By default, this method calls [AttributeSelectorMatcher::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_attribute_selector_matcher_value(
&mut self,
node: AttributeSelectorMatcherValue,
) -> AttributeSelectorMatcherValue
fn fold_attribute_selector_matcher_value( &mut self, node: AttributeSelectorMatcherValue, ) -> AttributeSelectorMatcherValue
Visit a node of type AttributeSelectorMatcherValue
.
By default, this method calls [AttributeSelectorMatcherValue::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_attribute_selector_modifier(
&mut self,
node: AttributeSelectorModifier,
) -> AttributeSelectorModifier
fn fold_attribute_selector_modifier( &mut self, node: AttributeSelectorModifier, ) -> AttributeSelectorModifier
Visit a node of type AttributeSelectorModifier
.
By default, this method calls [AttributeSelectorModifier::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_attribute_selector_value(
&mut self,
node: AttributeSelectorValue,
) -> AttributeSelectorValue
fn fold_attribute_selector_value( &mut self, node: AttributeSelectorValue, ) -> AttributeSelectorValue
Visit a node of type AttributeSelectorValue
.
By default, this method calls [AttributeSelectorValue::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_bin_op(&mut self, node: BinOp) -> BinOp
fn fold_bin_op(&mut self, node: BinOp) -> BinOp
Visit a node of type BinOp
.
By default, this method calls [BinOp::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_calc_operator(&mut self, node: CalcOperator) -> CalcOperator
fn fold_calc_operator(&mut self, node: CalcOperator) -> CalcOperator
Visit a node of type CalcOperator
.
By default, this method calls [CalcOperator::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_calc_operator_type(
&mut self,
node: CalcOperatorType,
) -> CalcOperatorType
fn fold_calc_operator_type( &mut self, node: CalcOperatorType, ) -> CalcOperatorType
Visit a node of type CalcOperatorType
.
By default, this method calls [CalcOperatorType::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_calc_product(&mut self, node: CalcProduct) -> CalcProduct
fn fold_calc_product(&mut self, node: CalcProduct) -> CalcProduct
Visit a node of type CalcProduct
.
By default, this method calls [CalcProduct::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_calc_product_or_operator(
&mut self,
node: CalcProductOrOperator,
) -> CalcProductOrOperator
fn fold_calc_product_or_operator( &mut self, node: CalcProductOrOperator, ) -> CalcProductOrOperator
Visit a node of type CalcProductOrOperator
.
By default, this method calls [CalcProductOrOperator::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_calc_product_or_operators(
&mut self,
node: Vec<CalcProductOrOperator>,
) -> Vec<CalcProductOrOperator>
fn fold_calc_product_or_operators( &mut self, node: Vec<CalcProductOrOperator>, ) -> Vec<CalcProductOrOperator>
Visit a node of type Vec < CalcProductOrOperator >
.
By default, this method calls [Vec < CalcProductOrOperator >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_calc_sum(&mut self, node: CalcSum) -> CalcSum
fn fold_calc_sum(&mut self, node: CalcSum) -> CalcSum
Visit a node of type CalcSum
.
By default, this method calls [CalcSum::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_calc_value(&mut self, node: CalcValue) -> CalcValue
fn fold_calc_value(&mut self, node: CalcValue) -> CalcValue
Visit a node of type CalcValue
.
By default, this method calls [CalcValue::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_calc_value_or_operator(
&mut self,
node: CalcValueOrOperator,
) -> CalcValueOrOperator
fn fold_calc_value_or_operator( &mut self, node: CalcValueOrOperator, ) -> CalcValueOrOperator
Visit a node of type CalcValueOrOperator
.
By default, this method calls [CalcValueOrOperator::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_calc_value_or_operators(
&mut self,
node: Vec<CalcValueOrOperator>,
) -> Vec<CalcValueOrOperator>
fn fold_calc_value_or_operators( &mut self, node: Vec<CalcValueOrOperator>, ) -> Vec<CalcValueOrOperator>
Visit a node of type Vec < CalcValueOrOperator >
.
By default, this method calls [Vec < CalcValueOrOperator >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_class_selector(&mut self, node: ClassSelector) -> ClassSelector
fn fold_class_selector(&mut self, node: ClassSelector) -> ClassSelector
Visit a node of type ClassSelector
.
By default, this method calls [ClassSelector::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_cmyk_component(&mut self, node: CmykComponent) -> CmykComponent
fn fold_cmyk_component(&mut self, node: CmykComponent) -> CmykComponent
Visit a node of type CmykComponent
.
By default, this method calls [CmykComponent::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_color(&mut self, node: Color) -> Color
fn fold_color(&mut self, node: Color) -> Color
Visit a node of type Color
.
By default, this method calls [Color::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_color_profile_name(
&mut self,
node: ColorProfileName,
) -> ColorProfileName
fn fold_color_profile_name( &mut self, node: ColorProfileName, ) -> ColorProfileName
Visit a node of type ColorProfileName
.
By default, this method calls [ColorProfileName::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_combinator(&mut self, node: Combinator) -> Combinator
fn fold_combinator(&mut self, node: Combinator) -> Combinator
Visit a node of type Combinator
.
By default, this method calls [Combinator::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_combinator_value(&mut self, node: CombinatorValue) -> CombinatorValue
fn fold_combinator_value(&mut self, node: CombinatorValue) -> CombinatorValue
Visit a node of type CombinatorValue
.
By default, this method calls [CombinatorValue::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_complex_selector(&mut self, node: ComplexSelector) -> ComplexSelector
fn fold_complex_selector(&mut self, node: ComplexSelector) -> ComplexSelector
Visit a node of type ComplexSelector
.
By default, this method calls [ComplexSelector::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_complex_selector_children(
&mut self,
node: ComplexSelectorChildren,
) -> ComplexSelectorChildren
fn fold_complex_selector_children( &mut self, node: ComplexSelectorChildren, ) -> ComplexSelectorChildren
Visit a node of type ComplexSelectorChildren
.
By default, this method calls [ComplexSelectorChildren::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_complex_selector_childrens(
&mut self,
node: Vec<ComplexSelectorChildren>,
) -> Vec<ComplexSelectorChildren>
fn fold_complex_selector_childrens( &mut self, node: Vec<ComplexSelectorChildren>, ) -> Vec<ComplexSelectorChildren>
Visit a node of type Vec < ComplexSelectorChildren >
.
By default, this method calls [Vec < ComplexSelectorChildren >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_complex_selectors(
&mut self,
node: Vec<ComplexSelector>,
) -> Vec<ComplexSelector>
fn fold_complex_selectors( &mut self, node: Vec<ComplexSelector>, ) -> Vec<ComplexSelector>
Visit a node of type Vec < ComplexSelector >
.
By default, this method calls [Vec < ComplexSelector >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_component_value(&mut self, node: ComponentValue) -> ComponentValue
fn fold_component_value(&mut self, node: ComponentValue) -> ComponentValue
Visit a node of type ComponentValue
.
By default, this method calls [ComponentValue::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_component_values(
&mut self,
node: Vec<ComponentValue>,
) -> Vec<ComponentValue>
fn fold_component_values( &mut self, node: Vec<ComponentValue>, ) -> Vec<ComponentValue>
Visit a node of type Vec < ComponentValue >
.
By default, this method calls [Vec < ComponentValue >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_compound_selector(&mut self, node: CompoundSelector) -> CompoundSelector
fn fold_compound_selector(&mut self, node: CompoundSelector) -> CompoundSelector
Visit a node of type CompoundSelector
.
By default, this method calls [CompoundSelector::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_compound_selector_list(
&mut self,
node: CompoundSelectorList,
) -> CompoundSelectorList
fn fold_compound_selector_list( &mut self, node: CompoundSelectorList, ) -> CompoundSelectorList
Visit a node of type CompoundSelectorList
.
By default, this method calls [CompoundSelectorList::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_compound_selectors(
&mut self,
node: Vec<CompoundSelector>,
) -> Vec<CompoundSelector>
fn fold_compound_selectors( &mut self, node: Vec<CompoundSelector>, ) -> Vec<CompoundSelector>
Visit a node of type Vec < CompoundSelector >
.
By default, this method calls [Vec < CompoundSelector >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_container_condition(
&mut self,
node: ContainerCondition,
) -> ContainerCondition
fn fold_container_condition( &mut self, node: ContainerCondition, ) -> ContainerCondition
Visit a node of type ContainerCondition
.
By default, this method calls [ContainerCondition::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_container_name(&mut self, node: ContainerName) -> ContainerName
fn fold_container_name(&mut self, node: ContainerName) -> ContainerName
Visit a node of type ContainerName
.
By default, this method calls [ContainerName::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_container_query(&mut self, node: ContainerQuery) -> ContainerQuery
fn fold_container_query(&mut self, node: ContainerQuery) -> ContainerQuery
Visit a node of type ContainerQuery
.
By default, this method calls [ContainerQuery::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_container_query_and(
&mut self,
node: ContainerQueryAnd,
) -> ContainerQueryAnd
fn fold_container_query_and( &mut self, node: ContainerQueryAnd, ) -> ContainerQueryAnd
Visit a node of type ContainerQueryAnd
.
By default, this method calls [ContainerQueryAnd::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_container_query_not(
&mut self,
node: ContainerQueryNot,
) -> ContainerQueryNot
fn fold_container_query_not( &mut self, node: ContainerQueryNot, ) -> ContainerQueryNot
Visit a node of type ContainerQueryNot
.
By default, this method calls [ContainerQueryNot::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_container_query_or(
&mut self,
node: ContainerQueryOr,
) -> ContainerQueryOr
fn fold_container_query_or( &mut self, node: ContainerQueryOr, ) -> ContainerQueryOr
Visit a node of type ContainerQueryOr
.
By default, this method calls [ContainerQueryOr::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_container_query_type(
&mut self,
node: ContainerQueryType,
) -> ContainerQueryType
fn fold_container_query_type( &mut self, node: ContainerQueryType, ) -> ContainerQueryType
Visit a node of type ContainerQueryType
.
By default, this method calls [ContainerQueryType::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_container_query_types(
&mut self,
node: Vec<ContainerQueryType>,
) -> Vec<ContainerQueryType>
fn fold_container_query_types( &mut self, node: Vec<ContainerQueryType>, ) -> Vec<ContainerQueryType>
Visit a node of type Vec < ContainerQueryType >
.
By default, this method calls [Vec < ContainerQueryType >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_custom_highlight_name(
&mut self,
node: CustomHighlightName,
) -> CustomHighlightName
fn fold_custom_highlight_name( &mut self, node: CustomHighlightName, ) -> CustomHighlightName
Visit a node of type CustomHighlightName
.
By default, this method calls [CustomHighlightName::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_custom_ident(&mut self, node: CustomIdent) -> CustomIdent
fn fold_custom_ident(&mut self, node: CustomIdent) -> CustomIdent
Visit a node of type CustomIdent
.
By default, this method calls [CustomIdent::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_custom_idents(&mut self, node: Vec<CustomIdent>) -> Vec<CustomIdent>
fn fold_custom_idents(&mut self, node: Vec<CustomIdent>) -> Vec<CustomIdent>
Visit a node of type Vec < CustomIdent >
.
By default, this method calls [Vec < CustomIdent >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_custom_media_query(
&mut self,
node: CustomMediaQuery,
) -> CustomMediaQuery
fn fold_custom_media_query( &mut self, node: CustomMediaQuery, ) -> CustomMediaQuery
Visit a node of type CustomMediaQuery
.
By default, this method calls [CustomMediaQuery::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_custom_media_query_media_type(
&mut self,
node: CustomMediaQueryMediaType,
) -> CustomMediaQueryMediaType
fn fold_custom_media_query_media_type( &mut self, node: CustomMediaQueryMediaType, ) -> CustomMediaQueryMediaType
Visit a node of type CustomMediaQueryMediaType
.
By default, this method calls [CustomMediaQueryMediaType::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_custom_property_name(
&mut self,
node: CustomPropertyName,
) -> CustomPropertyName
fn fold_custom_property_name( &mut self, node: CustomPropertyName, ) -> CustomPropertyName
Visit a node of type CustomPropertyName
.
By default, this method calls [CustomPropertyName::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_dashed_ident(&mut self, node: DashedIdent) -> DashedIdent
fn fold_dashed_ident(&mut self, node: DashedIdent) -> DashedIdent
Visit a node of type DashedIdent
.
By default, this method calls [DashedIdent::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_declaration(&mut self, node: Declaration) -> Declaration
fn fold_declaration(&mut self, node: Declaration) -> Declaration
Visit a node of type Declaration
.
By default, this method calls [Declaration::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_declaration_name(&mut self, node: DeclarationName) -> DeclarationName
fn fold_declaration_name(&mut self, node: DeclarationName) -> DeclarationName
Visit a node of type DeclarationName
.
By default, this method calls [DeclarationName::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_declaration_or_at_rule(
&mut self,
node: DeclarationOrAtRule,
) -> DeclarationOrAtRule
fn fold_declaration_or_at_rule( &mut self, node: DeclarationOrAtRule, ) -> DeclarationOrAtRule
Visit a node of type DeclarationOrAtRule
.
By default, this method calls [DeclarationOrAtRule::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_delimiter(&mut self, node: Delimiter) -> Delimiter
fn fold_delimiter(&mut self, node: Delimiter) -> Delimiter
Visit a node of type Delimiter
.
By default, this method calls [Delimiter::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_delimiter_value(&mut self, node: DelimiterValue) -> DelimiterValue
fn fold_delimiter_value(&mut self, node: DelimiterValue) -> DelimiterValue
Visit a node of type DelimiterValue
.
By default, this method calls [DelimiterValue::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_dimension(&mut self, node: Dimension) -> Dimension
fn fold_dimension(&mut self, node: Dimension) -> Dimension
Visit a node of type Dimension
.
By default, this method calls [Dimension::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_dimension_token(&mut self, node: DimensionToken) -> DimensionToken
fn fold_dimension_token(&mut self, node: DimensionToken) -> DimensionToken
Visit a node of type DimensionToken
.
By default, this method calls [DimensionToken::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_document_prelude(&mut self, node: DocumentPrelude) -> DocumentPrelude
fn fold_document_prelude(&mut self, node: DocumentPrelude) -> DocumentPrelude
Visit a node of type DocumentPrelude
.
By default, this method calls [DocumentPrelude::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_document_prelude_matching_function(
&mut self,
node: DocumentPreludeMatchingFunction,
) -> DocumentPreludeMatchingFunction
fn fold_document_prelude_matching_function( &mut self, node: DocumentPreludeMatchingFunction, ) -> DocumentPreludeMatchingFunction
Visit a node of type DocumentPreludeMatchingFunction
.
By default, this method calls [DocumentPreludeMatchingFunction::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_document_prelude_matching_functions(
&mut self,
node: Vec<DocumentPreludeMatchingFunction>,
) -> Vec<DocumentPreludeMatchingFunction>
fn fold_document_prelude_matching_functions( &mut self, node: Vec<DocumentPreludeMatchingFunction>, ) -> Vec<DocumentPreludeMatchingFunction>
Visit a node of type Vec < DocumentPreludeMatchingFunction >
.
By default, this method calls [Vec < DocumentPreludeMatchingFunction >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_extension_name(&mut self, node: ExtensionName) -> ExtensionName
fn fold_extension_name(&mut self, node: ExtensionName) -> ExtensionName
Visit a node of type ExtensionName
.
By default, this method calls [ExtensionName::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_family_name(&mut self, node: FamilyName) -> FamilyName
fn fold_family_name(&mut self, node: FamilyName) -> FamilyName
Visit a node of type FamilyName
.
By default, this method calls [FamilyName::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_family_names(&mut self, node: Vec<FamilyName>) -> Vec<FamilyName>
fn fold_family_names(&mut self, node: Vec<FamilyName>) -> Vec<FamilyName>
Visit a node of type Vec < FamilyName >
.
By default, this method calls [Vec < FamilyName >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_flex(&mut self, node: Flex) -> Flex
fn fold_flex(&mut self, node: Flex) -> Flex
Visit a node of type Flex
.
By default, this method calls [Flex::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_font_feature_values_prelude(
&mut self,
node: FontFeatureValuesPrelude,
) -> FontFeatureValuesPrelude
fn fold_font_feature_values_prelude( &mut self, node: FontFeatureValuesPrelude, ) -> FontFeatureValuesPrelude
Visit a node of type FontFeatureValuesPrelude
.
By default, this method calls [FontFeatureValuesPrelude::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_forgiving_complex_selector(
&mut self,
node: ForgivingComplexSelector,
) -> ForgivingComplexSelector
fn fold_forgiving_complex_selector( &mut self, node: ForgivingComplexSelector, ) -> ForgivingComplexSelector
Visit a node of type ForgivingComplexSelector
.
By default, this method calls [ForgivingComplexSelector::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_forgiving_complex_selectors(
&mut self,
node: Vec<ForgivingComplexSelector>,
) -> Vec<ForgivingComplexSelector>
fn fold_forgiving_complex_selectors( &mut self, node: Vec<ForgivingComplexSelector>, ) -> Vec<ForgivingComplexSelector>
Visit a node of type Vec < ForgivingComplexSelector >
.
By default, this method calls [Vec < ForgivingComplexSelector >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_forgiving_relative_selector(
&mut self,
node: ForgivingRelativeSelector,
) -> ForgivingRelativeSelector
fn fold_forgiving_relative_selector( &mut self, node: ForgivingRelativeSelector, ) -> ForgivingRelativeSelector
Visit a node of type ForgivingRelativeSelector
.
By default, this method calls [ForgivingRelativeSelector::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_forgiving_relative_selector_list(
&mut self,
node: ForgivingRelativeSelectorList,
) -> ForgivingRelativeSelectorList
fn fold_forgiving_relative_selector_list( &mut self, node: ForgivingRelativeSelectorList, ) -> ForgivingRelativeSelectorList
Visit a node of type ForgivingRelativeSelectorList
.
By default, this method calls [ForgivingRelativeSelectorList::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_forgiving_relative_selectors(
&mut self,
node: Vec<ForgivingRelativeSelector>,
) -> Vec<ForgivingRelativeSelector>
fn fold_forgiving_relative_selectors( &mut self, node: Vec<ForgivingRelativeSelector>, ) -> Vec<ForgivingRelativeSelector>
Visit a node of type Vec < ForgivingRelativeSelector >
.
By default, this method calls [Vec < ForgivingRelativeSelector >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_forgiving_selector_list(
&mut self,
node: ForgivingSelectorList,
) -> ForgivingSelectorList
fn fold_forgiving_selector_list( &mut self, node: ForgivingSelectorList, ) -> ForgivingSelectorList
Visit a node of type ForgivingSelectorList
.
By default, this method calls [ForgivingSelectorList::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_frequency(&mut self, node: Frequency) -> Frequency
fn fold_frequency(&mut self, node: Frequency) -> Frequency
Visit a node of type Frequency
.
By default, this method calls [Frequency::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_frequency_percentage(
&mut self,
node: FrequencyPercentage,
) -> FrequencyPercentage
fn fold_frequency_percentage( &mut self, node: FrequencyPercentage, ) -> FrequencyPercentage
Visit a node of type FrequencyPercentage
.
By default, this method calls [FrequencyPercentage::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_function(&mut self, node: Function) -> Function
fn fold_function(&mut self, node: Function) -> Function
Visit a node of type Function
.
By default, this method calls [Function::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_function_name(&mut self, node: FunctionName) -> FunctionName
fn fold_function_name(&mut self, node: FunctionName) -> FunctionName
Visit a node of type FunctionName
.
By default, this method calls [FunctionName::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_general_enclosed(&mut self, node: GeneralEnclosed) -> GeneralEnclosed
fn fold_general_enclosed(&mut self, node: GeneralEnclosed) -> GeneralEnclosed
Visit a node of type GeneralEnclosed
.
By default, this method calls [GeneralEnclosed::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_hex_color(&mut self, node: HexColor) -> HexColor
fn fold_hex_color(&mut self, node: HexColor) -> HexColor
Visit a node of type HexColor
.
By default, this method calls [HexColor::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_hue(&mut self, node: Hue) -> Hue
fn fold_hue(&mut self, node: Hue) -> Hue
Visit a node of type Hue
.
By default, this method calls [Hue::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_id_selector(&mut self, node: IdSelector) -> IdSelector
fn fold_id_selector(&mut self, node: IdSelector) -> IdSelector
Visit a node of type IdSelector
.
By default, this method calls [IdSelector::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_ident(&mut self, node: Ident) -> Ident
fn fold_ident(&mut self, node: Ident) -> Ident
Visit a node of type Ident
.
By default, this method calls [Ident::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_idents(&mut self, node: Vec<Ident>) -> Vec<Ident>
fn fold_idents(&mut self, node: Vec<Ident>) -> Vec<Ident>
Visit a node of type Vec < Ident >
.
By default, this method calls [Vec < Ident >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_import_conditions(&mut self, node: ImportConditions) -> ImportConditions
fn fold_import_conditions(&mut self, node: ImportConditions) -> ImportConditions
Visit a node of type ImportConditions
.
By default, this method calls [ImportConditions::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_import_href(&mut self, node: ImportHref) -> ImportHref
fn fold_import_href(&mut self, node: ImportHref) -> ImportHref
Visit a node of type ImportHref
.
By default, this method calls [ImportHref::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_import_layer_name(&mut self, node: ImportLayerName) -> ImportLayerName
fn fold_import_layer_name(&mut self, node: ImportLayerName) -> ImportLayerName
Visit a node of type ImportLayerName
.
By default, this method calls [ImportLayerName::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_import_prelude(&mut self, node: ImportPrelude) -> ImportPrelude
fn fold_import_prelude(&mut self, node: ImportPrelude) -> ImportPrelude
Visit a node of type ImportPrelude
.
By default, this method calls [ImportPrelude::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_important_flag(&mut self, node: ImportantFlag) -> ImportantFlag
fn fold_important_flag(&mut self, node: ImportantFlag) -> ImportantFlag
Visit a node of type ImportantFlag
.
By default, this method calls [ImportantFlag::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_integer(&mut self, node: Integer) -> Integer
fn fold_integer(&mut self, node: Integer) -> Integer
Visit a node of type Integer
.
By default, this method calls [Integer::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_keyframe_block(&mut self, node: KeyframeBlock) -> KeyframeBlock
fn fold_keyframe_block(&mut self, node: KeyframeBlock) -> KeyframeBlock
Visit a node of type KeyframeBlock
.
By default, this method calls [KeyframeBlock::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_keyframe_selector(&mut self, node: KeyframeSelector) -> KeyframeSelector
fn fold_keyframe_selector(&mut self, node: KeyframeSelector) -> KeyframeSelector
Visit a node of type KeyframeSelector
.
By default, this method calls [KeyframeSelector::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_keyframe_selectors(
&mut self,
node: Vec<KeyframeSelector>,
) -> Vec<KeyframeSelector>
fn fold_keyframe_selectors( &mut self, node: Vec<KeyframeSelector>, ) -> Vec<KeyframeSelector>
Visit a node of type Vec < KeyframeSelector >
.
By default, this method calls [Vec < KeyframeSelector >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_keyframes_name(&mut self, node: KeyframesName) -> KeyframesName
fn fold_keyframes_name(&mut self, node: KeyframesName) -> KeyframesName
Visit a node of type KeyframesName
.
By default, this method calls [KeyframesName::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_keyframes_pseudo_function(
&mut self,
node: KeyframesPseudoFunction,
) -> KeyframesPseudoFunction
fn fold_keyframes_pseudo_function( &mut self, node: KeyframesPseudoFunction, ) -> KeyframesPseudoFunction
Visit a node of type KeyframesPseudoFunction
.
By default, this method calls [KeyframesPseudoFunction::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_keyframes_pseudo_prefix(
&mut self,
node: KeyframesPseudoPrefix,
) -> KeyframesPseudoPrefix
fn fold_keyframes_pseudo_prefix( &mut self, node: KeyframesPseudoPrefix, ) -> KeyframesPseudoPrefix
Visit a node of type KeyframesPseudoPrefix
.
By default, this method calls [KeyframesPseudoPrefix::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_layer_name(&mut self, node: LayerName) -> LayerName
fn fold_layer_name(&mut self, node: LayerName) -> LayerName
Visit a node of type LayerName
.
By default, this method calls [LayerName::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_layer_name_list(&mut self, node: LayerNameList) -> LayerNameList
fn fold_layer_name_list(&mut self, node: LayerNameList) -> LayerNameList
Visit a node of type LayerNameList
.
By default, this method calls [LayerNameList::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_layer_names(&mut self, node: Vec<LayerName>) -> Vec<LayerName>
fn fold_layer_names(&mut self, node: Vec<LayerName>) -> Vec<LayerName>
Visit a node of type Vec < LayerName >
.
By default, this method calls [Vec < LayerName >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_layer_prelude(&mut self, node: LayerPrelude) -> LayerPrelude
fn fold_layer_prelude(&mut self, node: LayerPrelude) -> LayerPrelude
Visit a node of type LayerPrelude
.
By default, this method calls [LayerPrelude::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_length(&mut self, node: Length) -> Length
fn fold_length(&mut self, node: Length) -> Length
Visit a node of type Length
.
By default, this method calls [Length::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_length_percentage(&mut self, node: LengthPercentage) -> LengthPercentage
fn fold_length_percentage(&mut self, node: LengthPercentage) -> LengthPercentage
Visit a node of type LengthPercentage
.
By default, this method calls [LengthPercentage::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_list_of_component_values(
&mut self,
node: ListOfComponentValues,
) -> ListOfComponentValues
fn fold_list_of_component_values( &mut self, node: ListOfComponentValues, ) -> ListOfComponentValues
Visit a node of type ListOfComponentValues
.
By default, this method calls [ListOfComponentValues::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_media_and(&mut self, node: MediaAnd) -> MediaAnd
fn fold_media_and(&mut self, node: MediaAnd) -> MediaAnd
Visit a node of type MediaAnd
.
By default, this method calls [MediaAnd::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_media_condition(&mut self, node: MediaCondition) -> MediaCondition
fn fold_media_condition(&mut self, node: MediaCondition) -> MediaCondition
Visit a node of type MediaCondition
.
By default, this method calls [MediaCondition::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_media_condition_all_type(
&mut self,
node: MediaConditionAllType,
) -> MediaConditionAllType
fn fold_media_condition_all_type( &mut self, node: MediaConditionAllType, ) -> MediaConditionAllType
Visit a node of type MediaConditionAllType
.
By default, this method calls [MediaConditionAllType::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_media_condition_all_types(
&mut self,
node: Vec<MediaConditionAllType>,
) -> Vec<MediaConditionAllType>
fn fold_media_condition_all_types( &mut self, node: Vec<MediaConditionAllType>, ) -> Vec<MediaConditionAllType>
Visit a node of type Vec < MediaConditionAllType >
.
By default, this method calls [Vec < MediaConditionAllType >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_media_condition_type(
&mut self,
node: MediaConditionType,
) -> MediaConditionType
fn fold_media_condition_type( &mut self, node: MediaConditionType, ) -> MediaConditionType
Visit a node of type MediaConditionType
.
By default, this method calls [MediaConditionType::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_media_condition_without_or(
&mut self,
node: MediaConditionWithoutOr,
) -> MediaConditionWithoutOr
fn fold_media_condition_without_or( &mut self, node: MediaConditionWithoutOr, ) -> MediaConditionWithoutOr
Visit a node of type MediaConditionWithoutOr
.
By default, this method calls [MediaConditionWithoutOr::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_media_condition_without_or_type(
&mut self,
node: MediaConditionWithoutOrType,
) -> MediaConditionWithoutOrType
fn fold_media_condition_without_or_type( &mut self, node: MediaConditionWithoutOrType, ) -> MediaConditionWithoutOrType
Visit a node of type MediaConditionWithoutOrType
.
By default, this method calls [MediaConditionWithoutOrType::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_media_condition_without_or_types(
&mut self,
node: Vec<MediaConditionWithoutOrType>,
) -> Vec<MediaConditionWithoutOrType>
fn fold_media_condition_without_or_types( &mut self, node: Vec<MediaConditionWithoutOrType>, ) -> Vec<MediaConditionWithoutOrType>
Visit a node of type Vec < MediaConditionWithoutOrType >
.
By default, this method calls [Vec < MediaConditionWithoutOrType >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_media_feature(&mut self, node: MediaFeature) -> MediaFeature
fn fold_media_feature(&mut self, node: MediaFeature) -> MediaFeature
Visit a node of type MediaFeature
.
By default, this method calls [MediaFeature::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_media_feature_boolean(
&mut self,
node: MediaFeatureBoolean,
) -> MediaFeatureBoolean
fn fold_media_feature_boolean( &mut self, node: MediaFeatureBoolean, ) -> MediaFeatureBoolean
Visit a node of type MediaFeatureBoolean
.
By default, this method calls [MediaFeatureBoolean::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_media_feature_name(
&mut self,
node: MediaFeatureName,
) -> MediaFeatureName
fn fold_media_feature_name( &mut self, node: MediaFeatureName, ) -> MediaFeatureName
Visit a node of type MediaFeatureName
.
By default, this method calls [MediaFeatureName::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_media_feature_plain(
&mut self,
node: MediaFeaturePlain,
) -> MediaFeaturePlain
fn fold_media_feature_plain( &mut self, node: MediaFeaturePlain, ) -> MediaFeaturePlain
Visit a node of type MediaFeaturePlain
.
By default, this method calls [MediaFeaturePlain::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_media_feature_range(
&mut self,
node: MediaFeatureRange,
) -> MediaFeatureRange
fn fold_media_feature_range( &mut self, node: MediaFeatureRange, ) -> MediaFeatureRange
Visit a node of type MediaFeatureRange
.
By default, this method calls [MediaFeatureRange::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_media_feature_range_comparison(
&mut self,
node: MediaFeatureRangeComparison,
) -> MediaFeatureRangeComparison
fn fold_media_feature_range_comparison( &mut self, node: MediaFeatureRangeComparison, ) -> MediaFeatureRangeComparison
Visit a node of type MediaFeatureRangeComparison
.
By default, this method calls [MediaFeatureRangeComparison::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_media_feature_range_interval(
&mut self,
node: MediaFeatureRangeInterval,
) -> MediaFeatureRangeInterval
fn fold_media_feature_range_interval( &mut self, node: MediaFeatureRangeInterval, ) -> MediaFeatureRangeInterval
Visit a node of type MediaFeatureRangeInterval
.
By default, this method calls [MediaFeatureRangeInterval::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_media_feature_value(
&mut self,
node: MediaFeatureValue,
) -> MediaFeatureValue
fn fold_media_feature_value( &mut self, node: MediaFeatureValue, ) -> MediaFeatureValue
Visit a node of type MediaFeatureValue
.
By default, this method calls [MediaFeatureValue::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_media_in_parens(&mut self, node: MediaInParens) -> MediaInParens
fn fold_media_in_parens(&mut self, node: MediaInParens) -> MediaInParens
Visit a node of type MediaInParens
.
By default, this method calls [MediaInParens::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_media_not(&mut self, node: MediaNot) -> MediaNot
fn fold_media_not(&mut self, node: MediaNot) -> MediaNot
Visit a node of type MediaNot
.
By default, this method calls [MediaNot::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_media_or(&mut self, node: MediaOr) -> MediaOr
fn fold_media_or(&mut self, node: MediaOr) -> MediaOr
Visit a node of type MediaOr
.
By default, this method calls [MediaOr::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_media_query(&mut self, node: MediaQuery) -> MediaQuery
fn fold_media_query(&mut self, node: MediaQuery) -> MediaQuery
Visit a node of type MediaQuery
.
By default, this method calls [MediaQuery::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_media_query_list(&mut self, node: MediaQueryList) -> MediaQueryList
fn fold_media_query_list(&mut self, node: MediaQueryList) -> MediaQueryList
Visit a node of type MediaQueryList
.
By default, this method calls [MediaQueryList::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_media_querys(&mut self, node: Vec<MediaQuery>) -> Vec<MediaQuery>
fn fold_media_querys(&mut self, node: Vec<MediaQuery>) -> Vec<MediaQuery>
Visit a node of type Vec < MediaQuery >
.
By default, this method calls [Vec < MediaQuery >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_media_type(&mut self, node: MediaType) -> MediaType
fn fold_media_type(&mut self, node: MediaType) -> MediaType
Visit a node of type MediaType
.
By default, this method calls [MediaType::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_named_namespace(&mut self, node: NamedNamespace) -> NamedNamespace
fn fold_named_namespace(&mut self, node: NamedNamespace) -> NamedNamespace
Visit a node of type NamedNamespace
.
By default, this method calls [NamedNamespace::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_namespace(&mut self, node: Namespace) -> Namespace
fn fold_namespace(&mut self, node: Namespace) -> Namespace
Visit a node of type Namespace
.
By default, this method calls [Namespace::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_namespace_prefix(&mut self, node: NamespacePrefix) -> NamespacePrefix
fn fold_namespace_prefix(&mut self, node: NamespacePrefix) -> NamespacePrefix
Visit a node of type NamespacePrefix
.
By default, this method calls [NamespacePrefix::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_namespace_prelude(&mut self, node: NamespacePrelude) -> NamespacePrelude
fn fold_namespace_prelude(&mut self, node: NamespacePrelude) -> NamespacePrelude
Visit a node of type NamespacePrelude
.
By default, this method calls [NamespacePrelude::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_namespace_prelude_uri(
&mut self,
node: NamespacePreludeUri,
) -> NamespacePreludeUri
fn fold_namespace_prelude_uri( &mut self, node: NamespacePreludeUri, ) -> NamespacePreludeUri
Visit a node of type NamespacePreludeUri
.
By default, this method calls [NamespacePreludeUri::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_nesting_selector(&mut self, node: NestingSelector) -> NestingSelector
fn fold_nesting_selector(&mut self, node: NestingSelector) -> NestingSelector
Visit a node of type NestingSelector
.
By default, this method calls [NestingSelector::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_number(&mut self, node: Number) -> Number
fn fold_number(&mut self, node: Number) -> Number
Visit a node of type Number
.
By default, this method calls [Number::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_number_type(&mut self, node: NumberType) -> NumberType
fn fold_number_type(&mut self, node: NumberType) -> NumberType
Visit a node of type NumberType
.
By default, this method calls [NumberType::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_opt_at_rule_prelude(
&mut self,
node: Option<Box<AtRulePrelude>>,
) -> Option<Box<AtRulePrelude>>
fn fold_opt_at_rule_prelude( &mut self, node: Option<Box<AtRulePrelude>>, ) -> Option<Box<AtRulePrelude>>
Visit a node of type Option < Box < AtRulePrelude > >
.
By default, this method calls [Option < Box < AtRulePrelude > >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn 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 >
.
By default, this method calls [Option < swc_atoms :: Atom >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_opt_attribute_selector_matcher(
&mut self,
node: Option<AttributeSelectorMatcher>,
) -> Option<AttributeSelectorMatcher>
fn fold_opt_attribute_selector_matcher( &mut self, node: Option<AttributeSelectorMatcher>, ) -> Option<AttributeSelectorMatcher>
Visit a node of type Option < AttributeSelectorMatcher >
.
By default, this method calls [Option < AttributeSelectorMatcher >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_opt_attribute_selector_modifier(
&mut self,
node: Option<AttributeSelectorModifier>,
) -> Option<AttributeSelectorModifier>
fn fold_opt_attribute_selector_modifier( &mut self, node: Option<AttributeSelectorModifier>, ) -> Option<AttributeSelectorModifier>
Visit a node of type Option < AttributeSelectorModifier >
.
By default, this method calls [Option < AttributeSelectorModifier >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_opt_attribute_selector_value(
&mut self,
node: Option<AttributeSelectorValue>,
) -> Option<AttributeSelectorValue>
fn fold_opt_attribute_selector_value( &mut self, node: Option<AttributeSelectorValue>, ) -> Option<AttributeSelectorValue>
Visit a node of type Option < AttributeSelectorValue >
.
By default, this method calls [Option < AttributeSelectorValue >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_opt_combinator(
&mut self,
node: Option<Combinator>,
) -> Option<Combinator>
fn fold_opt_combinator( &mut self, node: Option<Combinator>, ) -> Option<Combinator>
Visit a node of type Option < Combinator >
.
By default, this method calls [Option < Combinator >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_opt_container_name(
&mut self,
node: Option<ContainerName>,
) -> Option<ContainerName>
fn fold_opt_container_name( &mut self, node: Option<ContainerName>, ) -> Option<ContainerName>
Visit a node of type Option < ContainerName >
.
By default, this method calls [Option < ContainerName >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_opt_forgiving_selector_list(
&mut self,
node: Option<ForgivingSelectorList>,
) -> Option<ForgivingSelectorList>
fn fold_opt_forgiving_selector_list( &mut self, node: Option<ForgivingSelectorList>, ) -> Option<ForgivingSelectorList>
Visit a node of type Option < ForgivingSelectorList >
.
By default, this method calls [Option < ForgivingSelectorList >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_opt_function(
&mut self,
node: Option<Box<Function>>,
) -> Option<Box<Function>>
fn fold_opt_function( &mut self, node: Option<Box<Function>>, ) -> Option<Box<Function>>
Visit a node of type Option < Box < Function > >
.
By default, this method calls [Option < Box < Function > >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn 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 >
.
By default, this method calls [Option < Ident >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_opt_import_conditions(
&mut self,
node: Option<Box<ImportConditions>>,
) -> Option<Box<ImportConditions>>
fn fold_opt_import_conditions( &mut self, node: Option<Box<ImportConditions>>, ) -> Option<Box<ImportConditions>>
Visit a node of type Option < Box < ImportConditions > >
.
By default, this method calls [Option < Box < ImportConditions > >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_opt_import_layer_name(
&mut self,
node: Option<Box<ImportLayerName>>,
) -> Option<Box<ImportLayerName>>
fn fold_opt_import_layer_name( &mut self, node: Option<Box<ImportLayerName>>, ) -> Option<Box<ImportLayerName>>
Visit a node of type Option < Box < ImportLayerName > >
.
By default, this method calls [Option < Box < ImportLayerName > >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_opt_important_flag(
&mut self,
node: Option<ImportantFlag>,
) -> Option<ImportantFlag>
fn fold_opt_important_flag( &mut self, node: Option<ImportantFlag>, ) -> Option<ImportantFlag>
Visit a node of type Option < ImportantFlag >
.
By default, this method calls [Option < ImportantFlag >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_opt_media_condition_type(
&mut self,
node: Option<Box<MediaConditionType>>,
) -> Option<Box<MediaConditionType>>
fn fold_opt_media_condition_type( &mut self, node: Option<Box<MediaConditionType>>, ) -> Option<Box<MediaConditionType>>
Visit a node of type Option < Box < MediaConditionType > >
.
By default, this method calls [Option < Box < MediaConditionType > >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_opt_media_query_list(
&mut self,
node: Option<Box<MediaQueryList>>,
) -> Option<Box<MediaQueryList>>
fn fold_opt_media_query_list( &mut self, node: Option<Box<MediaQueryList>>, ) -> Option<Box<MediaQueryList>>
Visit a node of type Option < Box < MediaQueryList > >
.
By default, this method calls [Option < Box < MediaQueryList > >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_opt_media_type(&mut self, node: Option<MediaType>) -> Option<MediaType>
fn fold_opt_media_type(&mut self, node: Option<MediaType>) -> Option<MediaType>
Visit a node of type Option < MediaType >
.
By default, this method calls [Option < MediaType >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_opt_namespace(&mut self, node: Option<Namespace>) -> Option<Namespace>
fn fold_opt_namespace(&mut self, node: Option<Namespace>) -> Option<Namespace>
Visit a node of type Option < Namespace >
.
By default, this method calls [Option < Namespace >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_opt_namespace_prefix(
&mut self,
node: Option<NamespacePrefix>,
) -> Option<NamespacePrefix>
fn fold_opt_namespace_prefix( &mut self, node: Option<NamespacePrefix>, ) -> Option<NamespacePrefix>
Visit a node of type Option < NamespacePrefix >
.
By default, this method calls [Option < NamespacePrefix >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_opt_nesting_selector(
&mut self,
node: Option<NestingSelector>,
) -> Option<NestingSelector>
fn fold_opt_nesting_selector( &mut self, node: Option<NestingSelector>, ) -> Option<NestingSelector>
Visit a node of type Option < NestingSelector >
.
By default, this method calls [Option < NestingSelector >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_opt_number(&mut self, node: Option<Number>) -> Option<Number>
fn fold_opt_number(&mut self, node: Option<Number>) -> Option<Number>
Visit a node of type Option < Number >
.
By default, this method calls [Option < Number >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_opt_page_selector_pseudos(
&mut self,
node: Option<Vec<PageSelectorPseudo>>,
) -> Option<Vec<PageSelectorPseudo>>
fn fold_opt_page_selector_pseudos( &mut self, node: Option<Vec<PageSelectorPseudo>>, ) -> Option<Vec<PageSelectorPseudo>>
Visit a node of type Option < Vec < PageSelectorPseudo > >
.
By default, this method calls [Option < Vec < PageSelectorPseudo > >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_opt_page_selector_type(
&mut self,
node: Option<PageSelectorType>,
) -> Option<PageSelectorType>
fn fold_opt_page_selector_type( &mut self, node: Option<PageSelectorType>, ) -> Option<PageSelectorType>
Visit a node of type Option < PageSelectorType >
.
By default, this method calls [Option < PageSelectorType >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_opt_pseudo_class_selector_childrens(
&mut self,
node: Option<Vec<PseudoClassSelectorChildren>>,
) -> Option<Vec<PseudoClassSelectorChildren>>
fn fold_opt_pseudo_class_selector_childrens( &mut self, node: Option<Vec<PseudoClassSelectorChildren>>, ) -> Option<Vec<PseudoClassSelectorChildren>>
Visit a node of type Option < Vec < PseudoClassSelectorChildren > >
.
By default, this method calls [Option < Vec < PseudoClassSelectorChildren > >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_opt_pseudo_element_selector_childrens(
&mut self,
node: Option<Vec<PseudoElementSelectorChildren>>,
) -> Option<Vec<PseudoElementSelectorChildren>>
fn fold_opt_pseudo_element_selector_childrens( &mut self, node: Option<Vec<PseudoElementSelectorChildren>>, ) -> Option<Vec<PseudoElementSelectorChildren>>
Visit a node of type Option < Vec < PseudoElementSelectorChildren > >
.
By default, this method calls [Option < Vec < PseudoElementSelectorChildren > >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_opt_simple_block(
&mut self,
node: Option<SimpleBlock>,
) -> Option<SimpleBlock>
fn fold_opt_simple_block( &mut self, node: Option<SimpleBlock>, ) -> Option<SimpleBlock>
Visit a node of type Option < SimpleBlock >
.
By default, this method calls [Option < SimpleBlock >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_opt_type_selector(
&mut self,
node: Option<Box<TypeSelector>>,
) -> Option<Box<TypeSelector>>
fn fold_opt_type_selector( &mut self, node: Option<Box<TypeSelector>>, ) -> Option<Box<TypeSelector>>
Visit a node of type Option < Box < TypeSelector > >
.
By default, this method calls [Option < Box < TypeSelector > >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_opt_url_modifiers(
&mut self,
node: Option<Vec<UrlModifier>>,
) -> Option<Vec<UrlModifier>>
fn fold_opt_url_modifiers( &mut self, node: Option<Vec<UrlModifier>>, ) -> Option<Vec<UrlModifier>>
Visit a node of type Option < Vec < UrlModifier > >
.
By default, this method calls [Option < Vec < UrlModifier > >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_opt_url_value(
&mut self,
node: Option<Box<UrlValue>>,
) -> Option<Box<UrlValue>>
fn fold_opt_url_value( &mut self, node: Option<Box<UrlValue>>, ) -> Option<Box<UrlValue>>
Visit a node of type Option < Box < UrlValue > >
.
By default, this method calls [Option < Box < UrlValue > >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_page_selector(&mut self, node: PageSelector) -> PageSelector
fn fold_page_selector(&mut self, node: PageSelector) -> PageSelector
Visit a node of type PageSelector
.
By default, this method calls [PageSelector::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_page_selector_list(
&mut self,
node: PageSelectorList,
) -> PageSelectorList
fn fold_page_selector_list( &mut self, node: PageSelectorList, ) -> PageSelectorList
Visit a node of type PageSelectorList
.
By default, this method calls [PageSelectorList::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_page_selector_pseudo(
&mut self,
node: PageSelectorPseudo,
) -> PageSelectorPseudo
fn fold_page_selector_pseudo( &mut self, node: PageSelectorPseudo, ) -> PageSelectorPseudo
Visit a node of type PageSelectorPseudo
.
By default, this method calls [PageSelectorPseudo::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_page_selector_pseudos(
&mut self,
node: Vec<PageSelectorPseudo>,
) -> Vec<PageSelectorPseudo>
fn fold_page_selector_pseudos( &mut self, node: Vec<PageSelectorPseudo>, ) -> Vec<PageSelectorPseudo>
Visit a node of type Vec < PageSelectorPseudo >
.
By default, this method calls [Vec < PageSelectorPseudo >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_page_selector_type(
&mut self,
node: PageSelectorType,
) -> PageSelectorType
fn fold_page_selector_type( &mut self, node: PageSelectorType, ) -> PageSelectorType
Visit a node of type PageSelectorType
.
By default, this method calls [PageSelectorType::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_page_selectors(&mut self, node: Vec<PageSelector>) -> Vec<PageSelector>
fn fold_page_selectors(&mut self, node: Vec<PageSelector>) -> Vec<PageSelector>
Visit a node of type Vec < PageSelector >
.
By default, this method calls [Vec < PageSelector >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_percentage(&mut self, node: Percentage) -> Percentage
fn fold_percentage(&mut self, node: Percentage) -> Percentage
Visit a node of type Percentage
.
By default, this method calls [Percentage::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_pseudo_class_selector(
&mut self,
node: PseudoClassSelector,
) -> PseudoClassSelector
fn fold_pseudo_class_selector( &mut self, node: PseudoClassSelector, ) -> PseudoClassSelector
Visit a node of type PseudoClassSelector
.
By default, this method calls [PseudoClassSelector::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_pseudo_class_selector_children(
&mut self,
node: PseudoClassSelectorChildren,
) -> PseudoClassSelectorChildren
fn fold_pseudo_class_selector_children( &mut self, node: PseudoClassSelectorChildren, ) -> PseudoClassSelectorChildren
Visit a node of type PseudoClassSelectorChildren
.
By default, this method calls [PseudoClassSelectorChildren::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_pseudo_class_selector_childrens(
&mut self,
node: Vec<PseudoClassSelectorChildren>,
) -> Vec<PseudoClassSelectorChildren>
fn fold_pseudo_class_selector_childrens( &mut self, node: Vec<PseudoClassSelectorChildren>, ) -> Vec<PseudoClassSelectorChildren>
Visit a node of type Vec < PseudoClassSelectorChildren >
.
By default, this method calls [Vec < PseudoClassSelectorChildren >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_pseudo_element_selector(
&mut self,
node: PseudoElementSelector,
) -> PseudoElementSelector
fn fold_pseudo_element_selector( &mut self, node: PseudoElementSelector, ) -> PseudoElementSelector
Visit a node of type PseudoElementSelector
.
By default, this method calls [PseudoElementSelector::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_pseudo_element_selector_children(
&mut self,
node: PseudoElementSelectorChildren,
) -> PseudoElementSelectorChildren
fn fold_pseudo_element_selector_children( &mut self, node: PseudoElementSelectorChildren, ) -> PseudoElementSelectorChildren
Visit a node of type PseudoElementSelectorChildren
.
By default, this method calls [PseudoElementSelectorChildren::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_pseudo_element_selector_childrens(
&mut self,
node: Vec<PseudoElementSelectorChildren>,
) -> Vec<PseudoElementSelectorChildren>
fn fold_pseudo_element_selector_childrens( &mut self, node: Vec<PseudoElementSelectorChildren>, ) -> Vec<PseudoElementSelectorChildren>
Visit a node of type Vec < PseudoElementSelectorChildren >
.
By default, this method calls [Vec < PseudoElementSelectorChildren >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_qualified_rule(&mut self, node: QualifiedRule) -> QualifiedRule
fn fold_qualified_rule(&mut self, node: QualifiedRule) -> QualifiedRule
Visit a node of type QualifiedRule
.
By default, this method calls [QualifiedRule::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_qualified_rule_prelude(
&mut self,
node: QualifiedRulePrelude,
) -> QualifiedRulePrelude
fn fold_qualified_rule_prelude( &mut self, node: QualifiedRulePrelude, ) -> QualifiedRulePrelude
Visit a node of type QualifiedRulePrelude
.
By default, this method calls [QualifiedRulePrelude::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_query_in_parens(&mut self, node: QueryInParens) -> QueryInParens
fn fold_query_in_parens(&mut self, node: QueryInParens) -> QueryInParens
Visit a node of type QueryInParens
.
By default, this method calls [QueryInParens::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_ratio(&mut self, node: Ratio) -> Ratio
fn fold_ratio(&mut self, node: Ratio) -> Ratio
Visit a node of type Ratio
.
By default, this method calls [Ratio::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_relative_selector(&mut self, node: RelativeSelector) -> RelativeSelector
fn fold_relative_selector(&mut self, node: RelativeSelector) -> RelativeSelector
Visit a node of type RelativeSelector
.
By default, this method calls [RelativeSelector::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_relative_selector_list(
&mut self,
node: RelativeSelectorList,
) -> RelativeSelectorList
fn fold_relative_selector_list( &mut self, node: RelativeSelectorList, ) -> RelativeSelectorList
Visit a node of type RelativeSelectorList
.
By default, this method calls [RelativeSelectorList::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_relative_selectors(
&mut self,
node: Vec<RelativeSelector>,
) -> Vec<RelativeSelector>
fn fold_relative_selectors( &mut self, node: Vec<RelativeSelector>, ) -> Vec<RelativeSelector>
Visit a node of type Vec < RelativeSelector >
.
By default, this method calls [Vec < RelativeSelector >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_resolution(&mut self, node: Resolution) -> Resolution
fn fold_resolution(&mut self, node: Resolution) -> Resolution
Visit a node of type Resolution
.
By default, this method calls [Resolution::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_rule(&mut self, node: Rule) -> Rule
fn fold_rule(&mut self, node: Rule) -> Rule
Visit a node of type Rule
.
By default, this method calls [Rule::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_rules(&mut self, node: Vec<Rule>) -> Vec<Rule>
fn fold_rules(&mut self, node: Vec<Rule>) -> Vec<Rule>
Visit a node of type Vec < Rule >
.
By default, this method calls [Vec < Rule >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_scope_range(&mut self, node: ScopeRange) -> ScopeRange
fn fold_scope_range(&mut self, node: ScopeRange) -> ScopeRange
Visit a node of type ScopeRange
.
By default, this method calls [ScopeRange::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_selector_list(&mut self, node: SelectorList) -> SelectorList
fn fold_selector_list(&mut self, node: SelectorList) -> SelectorList
Visit a node of type SelectorList
.
By default, this method calls [SelectorList::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_sequence_of_custom_idents(
&mut self,
node: SequenceOfCustomIdents,
) -> SequenceOfCustomIdents
fn fold_sequence_of_custom_idents( &mut self, node: SequenceOfCustomIdents, ) -> SequenceOfCustomIdents
Visit a node of type SequenceOfCustomIdents
.
By default, this method calls [SequenceOfCustomIdents::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_simple_block(&mut self, node: SimpleBlock) -> SimpleBlock
fn fold_simple_block(&mut self, node: SimpleBlock) -> SimpleBlock
Visit a node of type SimpleBlock
.
By default, this method calls [SimpleBlock::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_size_feature(&mut self, node: SizeFeature) -> SizeFeature
fn fold_size_feature(&mut self, node: SizeFeature) -> SizeFeature
Visit a node of type SizeFeature
.
By default, this method calls [SizeFeature::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_size_feature_boolean(
&mut self,
node: SizeFeatureBoolean,
) -> SizeFeatureBoolean
fn fold_size_feature_boolean( &mut self, node: SizeFeatureBoolean, ) -> SizeFeatureBoolean
Visit a node of type SizeFeatureBoolean
.
By default, this method calls [SizeFeatureBoolean::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_size_feature_name(&mut self, node: SizeFeatureName) -> SizeFeatureName
fn fold_size_feature_name(&mut self, node: SizeFeatureName) -> SizeFeatureName
Visit a node of type SizeFeatureName
.
By default, this method calls [SizeFeatureName::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_size_feature_plain(
&mut self,
node: SizeFeaturePlain,
) -> SizeFeaturePlain
fn fold_size_feature_plain( &mut self, node: SizeFeaturePlain, ) -> SizeFeaturePlain
Visit a node of type SizeFeaturePlain
.
By default, this method calls [SizeFeaturePlain::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_size_feature_range(
&mut self,
node: SizeFeatureRange,
) -> SizeFeatureRange
fn fold_size_feature_range( &mut self, node: SizeFeatureRange, ) -> SizeFeatureRange
Visit a node of type SizeFeatureRange
.
By default, this method calls [SizeFeatureRange::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_size_feature_range_comparison(
&mut self,
node: SizeFeatureRangeComparison,
) -> SizeFeatureRangeComparison
fn fold_size_feature_range_comparison( &mut self, node: SizeFeatureRangeComparison, ) -> SizeFeatureRangeComparison
Visit a node of type SizeFeatureRangeComparison
.
By default, this method calls [SizeFeatureRangeComparison::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_size_feature_range_interval(
&mut self,
node: SizeFeatureRangeInterval,
) -> SizeFeatureRangeInterval
fn fold_size_feature_range_interval( &mut self, node: SizeFeatureRangeInterval, ) -> SizeFeatureRangeInterval
Visit a node of type SizeFeatureRangeInterval
.
By default, this method calls [SizeFeatureRangeInterval::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_size_feature_value(
&mut self,
node: SizeFeatureValue,
) -> SizeFeatureValue
fn fold_size_feature_value( &mut self, node: SizeFeatureValue, ) -> SizeFeatureValue
Visit a node of type SizeFeatureValue
.
By default, this method calls [SizeFeatureValue::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_span(&mut self, node: Span) -> Span
fn fold_span(&mut self, node: Span) -> Span
Visit a node of type swc_common :: Span
.
By default, this method calls [swc_common :: Span::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_str(&mut self, node: Str) -> Str
fn fold_str(&mut self, node: Str) -> Str
Visit a node of type Str
.
By default, this method calls [Str::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_style_block(&mut self, node: StyleBlock) -> StyleBlock
fn fold_style_block(&mut self, node: StyleBlock) -> StyleBlock
Visit a node of type StyleBlock
.
By default, this method calls [StyleBlock::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_stylesheet(&mut self, node: Stylesheet) -> Stylesheet
fn fold_stylesheet(&mut self, node: Stylesheet) -> Stylesheet
Visit a node of type Stylesheet
.
By default, this method calls [Stylesheet::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_subclass_selector(&mut self, node: SubclassSelector) -> SubclassSelector
fn fold_subclass_selector(&mut self, node: SubclassSelector) -> SubclassSelector
Visit a node of type SubclassSelector
.
By default, this method calls [SubclassSelector::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_subclass_selectors(
&mut self,
node: Vec<SubclassSelector>,
) -> Vec<SubclassSelector>
fn fold_subclass_selectors( &mut self, node: Vec<SubclassSelector>, ) -> Vec<SubclassSelector>
Visit a node of type Vec < SubclassSelector >
.
By default, this method calls [Vec < SubclassSelector >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_supports_and(&mut self, node: SupportsAnd) -> SupportsAnd
fn fold_supports_and(&mut self, node: SupportsAnd) -> SupportsAnd
Visit a node of type SupportsAnd
.
By default, this method calls [SupportsAnd::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_supports_condition(
&mut self,
node: SupportsCondition,
) -> SupportsCondition
fn fold_supports_condition( &mut self, node: SupportsCondition, ) -> SupportsCondition
Visit a node of type SupportsCondition
.
By default, this method calls [SupportsCondition::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_supports_condition_type(
&mut self,
node: SupportsConditionType,
) -> SupportsConditionType
fn fold_supports_condition_type( &mut self, node: SupportsConditionType, ) -> SupportsConditionType
Visit a node of type SupportsConditionType
.
By default, this method calls [SupportsConditionType::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_supports_condition_types(
&mut self,
node: Vec<SupportsConditionType>,
) -> Vec<SupportsConditionType>
fn fold_supports_condition_types( &mut self, node: Vec<SupportsConditionType>, ) -> Vec<SupportsConditionType>
Visit a node of type Vec < SupportsConditionType >
.
By default, this method calls [Vec < SupportsConditionType >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_supports_feature(&mut self, node: SupportsFeature) -> SupportsFeature
fn fold_supports_feature(&mut self, node: SupportsFeature) -> SupportsFeature
Visit a node of type SupportsFeature
.
By default, this method calls [SupportsFeature::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_supports_in_parens(
&mut self,
node: SupportsInParens,
) -> SupportsInParens
fn fold_supports_in_parens( &mut self, node: SupportsInParens, ) -> SupportsInParens
Visit a node of type SupportsInParens
.
By default, this method calls [SupportsInParens::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_supports_not(&mut self, node: SupportsNot) -> SupportsNot
fn fold_supports_not(&mut self, node: SupportsNot) -> SupportsNot
Visit a node of type SupportsNot
.
By default, this method calls [SupportsNot::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_supports_or(&mut self, node: SupportsOr) -> SupportsOr
fn fold_supports_or(&mut self, node: SupportsOr) -> SupportsOr
Visit a node of type SupportsOr
.
By default, this method calls [SupportsOr::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_tag_name_selector(&mut self, node: TagNameSelector) -> TagNameSelector
fn fold_tag_name_selector(&mut self, node: TagNameSelector) -> TagNameSelector
Visit a node of type TagNameSelector
.
By default, this method calls [TagNameSelector::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_time(&mut self, node: Time) -> Time
fn fold_time(&mut self, node: Time) -> Time
Visit a node of type Time
.
By default, this method calls [Time::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_time_percentage(&mut self, node: TimePercentage) -> TimePercentage
fn fold_time_percentage(&mut self, node: TimePercentage) -> TimePercentage
Visit a node of type TimePercentage
.
By default, this method calls [TimePercentage::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_token(&mut self, node: Token) -> Token
fn fold_token(&mut self, node: Token) -> Token
Visit a node of type Token
.
By default, this method calls [Token::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_token_and_span(&mut self, node: TokenAndSpan) -> TokenAndSpan
fn fold_token_and_span(&mut self, node: TokenAndSpan) -> TokenAndSpan
Visit a node of type TokenAndSpan
.
By default, this method calls [TokenAndSpan::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_type_selector(&mut self, node: TypeSelector) -> TypeSelector
fn fold_type_selector(&mut self, node: TypeSelector) -> TypeSelector
Visit a node of type TypeSelector
.
By default, this method calls [TypeSelector::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_unicode_range(&mut self, node: UnicodeRange) -> UnicodeRange
fn fold_unicode_range(&mut self, node: UnicodeRange) -> UnicodeRange
Visit a node of type UnicodeRange
.
By default, this method calls [UnicodeRange::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_universal_selector(
&mut self,
node: UniversalSelector,
) -> UniversalSelector
fn fold_universal_selector( &mut self, node: UniversalSelector, ) -> UniversalSelector
Visit a node of type UniversalSelector
.
By default, this method calls [UniversalSelector::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_unknown_dimension(&mut self, node: UnknownDimension) -> UnknownDimension
fn fold_unknown_dimension(&mut self, node: UnknownDimension) -> UnknownDimension
Visit a node of type UnknownDimension
.
By default, this method calls [UnknownDimension::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_url(&mut self, node: Url) -> Url
fn fold_url(&mut self, node: Url) -> Url
Visit a node of type Url
.
By default, this method calls [Url::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_url_key_value(&mut self, node: UrlKeyValue) -> UrlKeyValue
fn fold_url_key_value(&mut self, node: UrlKeyValue) -> UrlKeyValue
Visit a node of type UrlKeyValue
.
By default, this method calls [UrlKeyValue::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_url_modifier(&mut self, node: UrlModifier) -> UrlModifier
fn fold_url_modifier(&mut self, node: UrlModifier) -> UrlModifier
Visit a node of type UrlModifier
.
By default, this method calls [UrlModifier::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_url_modifiers(&mut self, node: Vec<UrlModifier>) -> Vec<UrlModifier>
fn fold_url_modifiers(&mut self, node: Vec<UrlModifier>) -> Vec<UrlModifier>
Visit a node of type Vec < UrlModifier >
.
By default, this method calls [Vec < UrlModifier >::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_url_value(&mut self, node: UrlValue) -> UrlValue
fn fold_url_value(&mut self, node: UrlValue) -> UrlValue
Visit a node of type UrlValue
.
By default, this method calls [UrlValue::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_url_value_raw(&mut self, node: UrlValueRaw) -> UrlValueRaw
fn fold_url_value_raw(&mut self, node: UrlValueRaw) -> UrlValueRaw
Visit a node of type UrlValueRaw
.
By default, this method calls [UrlValueRaw::fold_children_with
]. If you want to recurse, you need to call it manually.
sourcefn fold_wq_name(&mut self, node: WqName) -> WqName
fn fold_wq_name(&mut self, node: WqName) -> WqName
Visit a node of type WqName
.
By default, this method calls [WqName::fold_children_with
]. If you want to recurse, you need to call it manually.