Skip to content

Commit

Permalink
fix(css_formatter): syntax errors after parser refactoring (#1308)
Browse files Browse the repository at this point in the history
  • Loading branch information
faultyserver authored Dec 22, 2023
1 parent af321cd commit 8252ac2
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ impl FormatNodeRule<CssPseudoClassFunctionCompoundSelectorList>
let CssPseudoClassFunctionCompoundSelectorListFields {
name,
l_paren_token,
compound_selector_list,
compound_selectors,
r_paren_token,
} = node.as_fields();

Expand All @@ -27,7 +27,7 @@ impl FormatNodeRule<CssPseudoClassFunctionCompoundSelectorList>
name.format(),
group(&format_args![
l_paren_token.format(),
soft_block_indent(&compound_selector_list.format()),
soft_block_indent(&compound_selectors.format()),
r_paren_token.format()
])
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ impl FormatNodeRule<CssPseudoClassFunctionRelativeSelectorList>
let CssPseudoClassFunctionRelativeSelectorListFields {
name_token,
l_paren_token,
relative_selector_list,
relative_selectors,
r_paren_token,
} = node.as_fields();

Expand All @@ -27,7 +27,7 @@ impl FormatNodeRule<CssPseudoClassFunctionRelativeSelectorList>
name_token.format(),
group(&format_args![
l_paren_token.format(),
soft_block_indent(&relative_selector_list.format()),
soft_block_indent(&relative_selectors.format()),
r_paren_token.format()
])
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ impl FormatNodeRule<CssPseudoClassFunctionSelectorList>
let CssPseudoClassFunctionSelectorListFields {
name,
l_paren_token,
selector_list,
selectors,
r_paren_token,
} = node.as_fields();

Expand All @@ -27,7 +27,7 @@ impl FormatNodeRule<CssPseudoClassFunctionSelectorList>
name.format(),
group(&format_args![
l_paren_token.format(),
soft_block_indent(&selector_list.format()),
soft_block_indent(&selectors.format()),
r_paren_token.format()
])
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ impl FormatNodeRule<CssPseudoClassFunctionValueList> for FormatCssPseudoClassFun
let CssPseudoClassFunctionValueListFields {
name_token,
l_paren_token,
value_list,
values,
r_paren_token,
} = node.as_fields();

Expand All @@ -23,7 +23,7 @@ impl FormatNodeRule<CssPseudoClassFunctionValueList> for FormatCssPseudoClassFun
name_token.format(),
group(&format_args![
l_paren_token.format(),
soft_block_indent(&value_list.format()),
soft_block_indent(&values.format()),
r_paren_token.format()
])
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ impl FormatNodeRule<CssPseudoClassOfNthSelector> for FormatCssPseudoClassOfNthSe
) -> FormatResult<()> {
let CssPseudoClassOfNthSelectorFields {
of_token,
selector_list,
selectors,
} = node.as_fields();

write!(f, [of_token.format(), space(), selector_list.format()])
write!(f, [of_token.format(), space(), selectors.format()])
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ impl FormatNodeRule<CssMediaAtRule> for FormatCssMediaAtRule {
fn fmt_fields(&self, node: &CssMediaAtRule, f: &mut CssFormatter) -> FormatResult<()> {
let CssMediaAtRuleFields {
media_token,
query_list,
queries,
block,
} = node.as_fields();

Expand Down Expand Up @@ -36,7 +36,7 @@ impl FormatNodeRule<CssMediaAtRule> for FormatCssMediaAtRule {
// all and (min-device-pixel-ratio: 1.5)
// {
// }
group(&indent(&query_list.format())),
group(&indent(&queries.format())),
space(),
block.format()
]
Expand Down

0 comments on commit 8252ac2

Please sign in to comment.