-
-
Notifications
You must be signed in to change notification settings - Fork 498
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
7be126c
commit e7fe085
Showing
31 changed files
with
2,060 additions
and
11 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.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
16 changes: 16 additions & 0 deletions
16
crates/biome_css_formatter/src/css/any/document_matcher.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,16 @@ | ||
//! 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::AnyCssDocumentMatcher; | ||
#[derive(Debug, Clone, Default)] | ||
pub(crate) struct FormatAnyCssDocumentMatcher; | ||
impl FormatRule<AnyCssDocumentMatcher> for FormatAnyCssDocumentMatcher { | ||
type Context = CssFormatContext; | ||
fn fmt(&self, node: &AnyCssDocumentMatcher, f: &mut CssFormatter) -> FormatResult<()> { | ||
match node { | ||
AnyCssDocumentMatcher::CssUrlFunction(node) => node.format().fmt(f), | ||
AnyCssDocumentMatcher::CssDocumentCustomMatcher(node) => node.format().fmt(f), | ||
AnyCssDocumentMatcher::CssBogusDocumentMatcher(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
14 changes: 14 additions & 0 deletions
14
crates/biome_css_formatter/src/css/auxiliary/document_custom_matcher.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,14 @@ | ||
use crate::prelude::*; | ||
use biome_css_syntax::CssDocumentCustomMatcher; | ||
use biome_rowan::AstNode; | ||
#[derive(Debug, Clone, Default)] | ||
pub(crate) struct FormatCssDocumentCustomMatcher; | ||
impl FormatNodeRule<CssDocumentCustomMatcher> for FormatCssDocumentCustomMatcher { | ||
fn fmt_fields( | ||
&self, | ||
node: &CssDocumentCustomMatcher, | ||
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
5 changes: 5 additions & 0 deletions
5
crates/biome_css_formatter/src/css/bogus/bogus_document_matcher.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,5 @@ | ||
use crate::FormatBogusNodeRule; | ||
use biome_css_syntax::CssBogusDocumentMatcher; | ||
#[derive(Debug, Clone, Default)] | ||
pub(crate) struct FormatCssBogusDocumentMatcher; | ||
impl FormatBogusNodeRule<CssBogusDocumentMatcher> for FormatCssBogusDocumentMatcher {} |
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/lists/document_matcher_list.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::CssDocumentMatcherList; | ||
#[derive(Debug, Clone, Default)] | ||
pub(crate) struct FormatCssDocumentMatcherList; | ||
impl FormatRule<CssDocumentMatcherList> for FormatCssDocumentMatcherList { | ||
type Context = CssFormatContext; | ||
fn fmt(&self, node: &CssDocumentMatcherList, 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/statements/document_at_rule.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::CssDocumentAtRule; | ||
use biome_rowan::AstNode; | ||
#[derive(Debug, Clone, Default)] | ||
pub(crate) struct FormatCssDocumentAtRule; | ||
impl FormatNodeRule<CssDocumentAtRule> for FormatCssDocumentAtRule { | ||
fn fmt_fields(&self, node: &CssDocumentAtRule, 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
Oops, something went wrong.