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
26 changes: 26 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.

59 changes: 59 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.

76 changes: 76 additions & 0 deletions crates/biome_css_formatter/src/generated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6996,6 +6996,44 @@ impl IntoFormat<CssFormatContext> for biome_css_syntax::CssViewTransitionAtRuleD
FormatOwnedWithRule :: new (self , crate :: css :: auxiliary :: view_transition_at_rule_declarator :: FormatCssViewTransitionAtRuleDeclarator :: default ())
}
}
impl FormatRule<biome_css_syntax::ScssArbitraryArgument>
for crate::scss::auxiliary::arbitrary_argument::FormatScssArbitraryArgument
{
type Context = CssFormatContext;
#[inline(always)]
fn fmt(
&self,
node: &biome_css_syntax::ScssArbitraryArgument,
f: &mut CssFormatter,
) -> FormatResult<()> {
FormatNodeRule::<biome_css_syntax::ScssArbitraryArgument>::fmt(self, node, f)
}
}
impl AsFormat<CssFormatContext> for biome_css_syntax::ScssArbitraryArgument {
type Format<'a> = FormatRefWithRule<
'a,
biome_css_syntax::ScssArbitraryArgument,
crate::scss::auxiliary::arbitrary_argument::FormatScssArbitraryArgument,
>;
fn format(&self) -> Self::Format<'_> {
FormatRefWithRule::new(
self,
crate::scss::auxiliary::arbitrary_argument::FormatScssArbitraryArgument::default(),
)
}
}
impl IntoFormat<CssFormatContext> for biome_css_syntax::ScssArbitraryArgument {
type Format = FormatOwnedWithRule<
biome_css_syntax::ScssArbitraryArgument,
crate::scss::auxiliary::arbitrary_argument::FormatScssArbitraryArgument,
>;
fn into_format(self) -> Self::Format {
FormatOwnedWithRule::new(
self,
crate::scss::auxiliary::arbitrary_argument::FormatScssArbitraryArgument::default(),
)
}
}
impl FormatRule<biome_css_syntax::ScssBinaryExpression>
for crate::scss::auxiliary::binary_expression::FormatScssBinaryExpression
{
Expand Down Expand Up @@ -7148,6 +7186,44 @@ impl IntoFormat<CssFormatContext> for biome_css_syntax::ScssIdentifier {
)
}
}
impl FormatRule<biome_css_syntax::ScssKeywordArgument>
for crate::scss::auxiliary::keyword_argument::FormatScssKeywordArgument
{
type Context = CssFormatContext;
#[inline(always)]
fn fmt(
&self,
node: &biome_css_syntax::ScssKeywordArgument,
f: &mut CssFormatter,
) -> FormatResult<()> {
FormatNodeRule::<biome_css_syntax::ScssKeywordArgument>::fmt(self, node, f)
}
}
impl AsFormat<CssFormatContext> for biome_css_syntax::ScssKeywordArgument {
type Format<'a> = FormatRefWithRule<
'a,
biome_css_syntax::ScssKeywordArgument,
crate::scss::auxiliary::keyword_argument::FormatScssKeywordArgument,
>;
fn format(&self) -> Self::Format<'_> {
FormatRefWithRule::new(
self,
crate::scss::auxiliary::keyword_argument::FormatScssKeywordArgument::default(),
)
}
}
impl IntoFormat<CssFormatContext> for biome_css_syntax::ScssKeywordArgument {
type Format = FormatOwnedWithRule<
biome_css_syntax::ScssKeywordArgument,
crate::scss::auxiliary::keyword_argument::FormatScssKeywordArgument,
>;
fn into_format(self) -> Self::Format {
FormatOwnedWithRule::new(
self,
crate::scss::auxiliary::keyword_argument::FormatScssKeywordArgument::default(),
)
}
}
impl FormatRule<biome_css_syntax::ScssListExpression>
for crate::scss::auxiliary::list_expression::FormatScssListExpression
{
Expand Down
2 changes: 2 additions & 0 deletions crates/biome_css_formatter/src/scss/any/expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ impl FormatRule<AnyScssExpression> for FormatAnyScssExpression {
fn fmt(&self, node: &AnyScssExpression, f: &mut CssFormatter) -> FormatResult<()> {
match node {
AnyScssExpression::AnyCssValue(node) => node.format().fmt(f),
AnyScssExpression::ScssArbitraryArgument(node) => node.format().fmt(f),
AnyScssExpression::ScssBinaryExpression(node) => node.format().fmt(f),
AnyScssExpression::ScssExpression(node) => node.format().fmt(f),
AnyScssExpression::ScssKeywordArgument(node) => node.format().fmt(f),
AnyScssExpression::ScssListExpression(node) => node.format().fmt(f),
AnyScssExpression::ScssMapExpression(node) => node.format().fmt(f),
AnyScssExpression::ScssParenthesizedExpression(node) => node.format().fmt(f),
Expand Down
2 changes: 2 additions & 0 deletions crates/biome_css_formatter/src/scss/any/expression_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ impl FormatRule<AnyScssExpressionItem> for FormatAnyScssExpressionItem {
match node {
AnyScssExpressionItem::AnyCssValue(node) => node.format().fmt(f),
AnyScssExpressionItem::CssGenericDelimiter(node) => node.format().fmt(f),
AnyScssExpressionItem::ScssArbitraryArgument(node) => node.format().fmt(f),
AnyScssExpressionItem::ScssBinaryExpression(node) => node.format().fmt(f),
AnyScssExpressionItem::ScssKeywordArgument(node) => node.format().fmt(f),
AnyScssExpressionItem::ScssListExpression(node) => node.format().fmt(f),
AnyScssExpressionItem::ScssMapExpression(node) => node.format().fmt(f),
AnyScssExpressionItem::ScssParenthesizedExpression(node) => node.format().fmt(f),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
use crate::prelude::*;
use biome_css_syntax::{ScssArbitraryArgument, ScssArbitraryArgumentFields};
use biome_formatter::write;

#[derive(Debug, Clone, Default)]
pub(crate) struct FormatScssArbitraryArgument;
impl FormatNodeRule<ScssArbitraryArgument> for FormatScssArbitraryArgument {
fn fmt_fields(&self, node: &ScssArbitraryArgument, f: &mut CssFormatter) -> FormatResult<()> {
let ScssArbitraryArgumentFields {
value,
dotdotdot_token,
} = node.as_fields();

write!(f, [value.format(), dotdotdot_token.format()])
}
}
20 changes: 20 additions & 0 deletions crates/biome_css_formatter/src/scss/auxiliary/keyword_argument.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
use crate::prelude::*;
use biome_css_syntax::{ScssKeywordArgument, ScssKeywordArgumentFields};
use biome_formatter::write;

#[derive(Debug, Clone, Default)]
pub(crate) struct FormatScssKeywordArgument;
impl FormatNodeRule<ScssKeywordArgument> for FormatScssKeywordArgument {
fn fmt_fields(&self, node: &ScssKeywordArgument, f: &mut CssFormatter) -> FormatResult<()> {
let ScssKeywordArgumentFields {
name,
colon_token,
value,
} = node.as_fields();

write!(
f,
[name.format(), colon_token.format(), space(), value.format()]
)
}
}
2 changes: 2 additions & 0 deletions crates/biome_css_formatter/src/scss/auxiliary/mod.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
//! This is a generated file. Don't modify it by hand! Run 'cargo codegen formatter' to re-generate the file.

pub(crate) mod arbitrary_argument;
pub(crate) mod binary_expression;
pub(crate) mod declaration;
pub(crate) mod expression;
pub(crate) mod keyword_argument;
pub(crate) mod list_expression;
pub(crate) mod list_expression_element;
pub(crate) mod map_expression;
Expand Down
Loading
Loading