-
-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(css_parser): Parse
border
exactly (#1448)
- Loading branch information
1 parent
b5f5c08
commit 166cbab
Showing
31 changed files
with
2,844 additions
and
83 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
118 changes: 118 additions & 0 deletions
118
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.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
crates/biome_css_formatter/src/css/any/border_property_value.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
//! This is a generated file. Don't modify it by hand! Run 'cargo codegen formatter' to re-generate the file. | ||
use crate::prelude::*; | ||
use biome_css_syntax::AnyCssBorderPropertyValue; | ||
#[derive(Debug, Clone, Default)] | ||
pub(crate) struct FormatAnyCssBorderPropertyValue; | ||
impl FormatRule<AnyCssBorderPropertyValue> for FormatAnyCssBorderPropertyValue { | ||
type Context = CssFormatContext; | ||
fn fmt(&self, node: &AnyCssBorderPropertyValue, f: &mut CssFormatter) -> FormatResult<()> { | ||
match node { | ||
AnyCssBorderPropertyValue::CssBorder(node) => node.format().fmt(f), | ||
AnyCssBorderPropertyValue::CssWideKeyword(node) => node.format().fmt(f), | ||
AnyCssBorderPropertyValue::CssUnknownPropertyValue(node) => node.format().fmt(f), | ||
AnyCssBorderPropertyValue::CssBogusPropertyValue(node) => node.format().fmt(f), | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//! This is a generated file. Don't modify it by hand! Run 'cargo codegen formatter' to re-generate the file. | ||
use crate::prelude::*; | ||
use biome_css_syntax::AnyCssLineWidth; | ||
#[derive(Debug, Clone, Default)] | ||
pub(crate) struct FormatAnyCssLineWidth; | ||
impl FormatRule<AnyCssLineWidth> for FormatAnyCssLineWidth { | ||
type Context = CssFormatContext; | ||
fn fmt(&self, node: &AnyCssLineWidth, f: &mut CssFormatter) -> FormatResult<()> { | ||
match node { | ||
AnyCssLineWidth::CssRegularDimension(node) => node.format().fmt(f), | ||
AnyCssLineWidth::CssLineWidthKeyword(node) => node.format().fmt(f), | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
use crate::prelude::*; | ||
use biome_css_syntax::CssBorder; | ||
use biome_rowan::AstNode; | ||
#[derive(Debug, Clone, Default)] | ||
pub(crate) struct FormatCssBorder; | ||
impl FormatNodeRule<CssBorder> for FormatCssBorder { | ||
fn fmt_fields(&self, node: &CssBorder, f: &mut CssFormatter) -> FormatResult<()> { | ||
format_verbatim_node(node.syntax()).fmt(f) | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
crates/biome_css_formatter/src/css/auxiliary/line_style.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
use crate::prelude::*; | ||
use biome_css_syntax::CssLineStyle; | ||
use biome_rowan::AstNode; | ||
#[derive(Debug, Clone, Default)] | ||
pub(crate) struct FormatCssLineStyle; | ||
impl FormatNodeRule<CssLineStyle> for FormatCssLineStyle { | ||
fn fmt_fields(&self, node: &CssLineStyle, f: &mut CssFormatter) -> FormatResult<()> { | ||
format_verbatim_node(node.syntax()).fmt(f) | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
crates/biome_css_formatter/src/css/auxiliary/line_width_keyword.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
use crate::prelude::*; | ||
use biome_css_syntax::CssLineWidthKeyword; | ||
use biome_rowan::AstNode; | ||
#[derive(Debug, Clone, Default)] | ||
pub(crate) struct FormatCssLineWidthKeyword; | ||
impl FormatNodeRule<CssLineWidthKeyword> for FormatCssLineWidthKeyword { | ||
fn fmt_fields(&self, node: &CssLineWidthKeyword, f: &mut CssFormatter) -> FormatResult<()> { | ||
format_verbatim_node(node.syntax()).fmt(f) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
crates/biome_css_formatter/src/css/properties/border_property.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
use crate::prelude::*; | ||
use biome_css_syntax::CssBorderProperty; | ||
use biome_rowan::AstNode; | ||
#[derive(Debug, Clone, Default)] | ||
pub(crate) struct FormatCssBorderProperty; | ||
impl FormatNodeRule<CssBorderProperty> for FormatCssBorderProperty { | ||
fn fmt_fields(&self, node: &CssBorderProperty, f: &mut CssFormatter) -> FormatResult<()> { | ||
format_verbatim_node(node.syntax()).fmt(f) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
//! This is a generated file. Don't modify it by hand! Run 'cargo codegen formatter' to re-generate the file. | ||
pub(crate) mod all_property; | ||
pub(crate) mod border_property; | ||
pub(crate) mod generic_property; | ||
pub(crate) mod z_index_property; |
Oops, something went wrong.