Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions crates/biome_css_analyze/src/lint/nursery/use_baseline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,7 @@ fn at_rule_name(rule: &AnyCssAtRule) -> Option<&'static str> {
| AnyCssAtRule::TwThemeAtRule(_)
| AnyCssAtRule::TwUtilityAtRule(_)
| AnyCssAtRule::ScssContentAtRule(_)
| AnyCssAtRule::ScssAtRootAtRule(_)
| AnyCssAtRule::ScssDebugAtRule(_)
| AnyCssAtRule::ScssEachAtRule(_)
| AnyCssAtRule::ScssErrorAtRule(_)
Expand Down
76 changes: 76 additions & 0 deletions crates/biome_css_factory/src/generated/node_factory.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

109 changes: 109 additions & 0 deletions crates/biome_css_factory/src/generated/syntax_factory.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/biome_css_formatter/src/css/any/at_rule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ impl FormatRule<AnyCssAtRule> for FormatAnyCssAtRule {
AnyCssAtRule::CssUnknownValueAtRule(node) => node.format().fmt(f),
AnyCssAtRule::CssValueAtRule(node) => node.format().fmt(f),
AnyCssAtRule::CssViewTransitionAtRule(node) => node.format().fmt(f),
AnyCssAtRule::ScssAtRootAtRule(node) => node.format().fmt(f),
AnyCssAtRule::ScssContentAtRule(node) => node.format().fmt(f),
AnyCssAtRule::ScssDebugAtRule(node) => node.format().fmt(f),
AnyCssAtRule::ScssEachAtRule(node) => node.format().fmt(f),
Expand Down
139 changes: 139 additions & 0 deletions crates/biome_css_formatter/src/generated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7115,6 +7115,120 @@ impl IntoFormat<CssFormatContext> for biome_css_syntax::ScssArbitraryArgument {
)
}
}
impl FormatRule<biome_css_syntax::ScssAtRootAtRule>
for crate::scss::statements::at_root_at_rule::FormatScssAtRootAtRule
{
type Context = CssFormatContext;
#[inline(always)]
fn fmt(
&self,
node: &biome_css_syntax::ScssAtRootAtRule,
f: &mut CssFormatter,
) -> FormatResult<()> {
FormatNodeRule::<biome_css_syntax::ScssAtRootAtRule>::fmt(self, node, f)
}
}
impl AsFormat<CssFormatContext> for biome_css_syntax::ScssAtRootAtRule {
type Format<'a> = FormatRefWithRule<
'a,
biome_css_syntax::ScssAtRootAtRule,
crate::scss::statements::at_root_at_rule::FormatScssAtRootAtRule,
>;
fn format(&self) -> Self::Format<'_> {
FormatRefWithRule::new(
self,
crate::scss::statements::at_root_at_rule::FormatScssAtRootAtRule::default(),
)
}
}
impl IntoFormat<CssFormatContext> for biome_css_syntax::ScssAtRootAtRule {
type Format = FormatOwnedWithRule<
biome_css_syntax::ScssAtRootAtRule,
crate::scss::statements::at_root_at_rule::FormatScssAtRootAtRule,
>;
fn into_format(self) -> Self::Format {
FormatOwnedWithRule::new(
self,
crate::scss::statements::at_root_at_rule::FormatScssAtRootAtRule::default(),
)
}
}
impl FormatRule<biome_css_syntax::ScssAtRootQuery>
for crate::scss::auxiliary::at_root_query::FormatScssAtRootQuery
{
type Context = CssFormatContext;
#[inline(always)]
fn fmt(
&self,
node: &biome_css_syntax::ScssAtRootQuery,
f: &mut CssFormatter,
) -> FormatResult<()> {
FormatNodeRule::<biome_css_syntax::ScssAtRootQuery>::fmt(self, node, f)
}
}
impl AsFormat<CssFormatContext> for biome_css_syntax::ScssAtRootQuery {
type Format<'a> = FormatRefWithRule<
'a,
biome_css_syntax::ScssAtRootQuery,
crate::scss::auxiliary::at_root_query::FormatScssAtRootQuery,
>;
fn format(&self) -> Self::Format<'_> {
FormatRefWithRule::new(
self,
crate::scss::auxiliary::at_root_query::FormatScssAtRootQuery::default(),
)
}
}
impl IntoFormat<CssFormatContext> for biome_css_syntax::ScssAtRootQuery {
type Format = FormatOwnedWithRule<
biome_css_syntax::ScssAtRootQuery,
crate::scss::auxiliary::at_root_query::FormatScssAtRootQuery,
>;
fn into_format(self) -> Self::Format {
FormatOwnedWithRule::new(
self,
crate::scss::auxiliary::at_root_query::FormatScssAtRootQuery::default(),
)
}
}
impl FormatRule<biome_css_syntax::ScssAtRootSelector>
for crate::scss::selectors::at_root_selector::FormatScssAtRootSelector
{
type Context = CssFormatContext;
#[inline(always)]
fn fmt(
&self,
node: &biome_css_syntax::ScssAtRootSelector,
f: &mut CssFormatter,
) -> FormatResult<()> {
FormatNodeRule::<biome_css_syntax::ScssAtRootSelector>::fmt(self, node, f)
}
}
impl AsFormat<CssFormatContext> for biome_css_syntax::ScssAtRootSelector {
type Format<'a> = FormatRefWithRule<
'a,
biome_css_syntax::ScssAtRootSelector,
crate::scss::selectors::at_root_selector::FormatScssAtRootSelector,
>;
fn format(&self) -> Self::Format<'_> {
FormatRefWithRule::new(
self,
crate::scss::selectors::at_root_selector::FormatScssAtRootSelector::default(),
)
}
}
impl IntoFormat<CssFormatContext> for biome_css_syntax::ScssAtRootSelector {
type Format = FormatOwnedWithRule<
biome_css_syntax::ScssAtRootSelector,
crate::scss::selectors::at_root_selector::FormatScssAtRootSelector,
>;
fn into_format(self) -> Self::Format {
FormatOwnedWithRule::new(
self,
crate::scss::selectors::at_root_selector::FormatScssAtRootSelector::default(),
)
}
}
impl FormatRule<biome_css_syntax::ScssBinaryExpression>
for crate::scss::auxiliary::binary_expression::FormatScssBinaryExpression
{
Expand Down Expand Up @@ -10268,6 +10382,31 @@ impl IntoFormat<CssFormatContext> for biome_css_syntax::CssValueAtRulePropertyLi
FormatOwnedWithRule :: new (self , crate :: css :: lists :: value_at_rule_property_list :: FormatCssValueAtRulePropertyList :: default ())
}
}
impl AsFormat<CssFormatContext> for biome_css_syntax::ScssAtRootQueryList {
type Format<'a> = FormatRefWithRule<
'a,
biome_css_syntax::ScssAtRootQueryList,
crate::scss::lists::at_root_query_list::FormatScssAtRootQueryList,
>;
fn format(&self) -> Self::Format<'_> {
FormatRefWithRule::new(
self,
crate::scss::lists::at_root_query_list::FormatScssAtRootQueryList::default(),
)
}
}
impl IntoFormat<CssFormatContext> for biome_css_syntax::ScssAtRootQueryList {
type Format = FormatOwnedWithRule<
biome_css_syntax::ScssAtRootQueryList,
crate::scss::lists::at_root_query_list::FormatScssAtRootQueryList,
>;
fn into_format(self) -> Self::Format {
FormatOwnedWithRule::new(
self,
crate::scss::lists::at_root_query_list::FormatScssAtRootQueryList::default(),
)
}
}
impl AsFormat<CssFormatContext> for biome_css_syntax::ScssEachBindingList {
type Format<'a> = FormatRefWithRule<
'a,
Expand Down
Loading
Loading