-
-
Notifications
You must be signed in to change notification settings - Fork 475
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(graphql_parser): separate binding and reference nodes
- Loading branch information
1 parent
48387f6
commit 3d0e70f
Showing
86 changed files
with
4,988 additions
and
4,931 deletions.
There are no files selected for viewing
150 changes: 90 additions & 60 deletions
150
crates/biome_graphql_factory/src/generated/node_factory.rs
Large diffs are not rendered by default.
Oops, something went wrong.
129 changes: 87 additions & 42 deletions
129
crates/biome_graphql_factory/src/generated/syntax_factory.rs
Large diffs are not rendered by default.
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
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
21 changes: 21 additions & 0 deletions
21
crates/biome_graphql_formatter/src/graphql/any/type_definition.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,21 @@ | ||
//! 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_graphql_syntax::AnyGraphqlTypeDefinition; | ||
#[derive(Debug, Clone, Default)] | ||
pub(crate) struct FormatAnyGraphqlTypeDefinition; | ||
impl FormatRule<AnyGraphqlTypeDefinition> for FormatAnyGraphqlTypeDefinition { | ||
type Context = GraphqlFormatContext; | ||
fn fmt(&self, node: &AnyGraphqlTypeDefinition, f: &mut GraphqlFormatter) -> FormatResult<()> { | ||
match node { | ||
AnyGraphqlTypeDefinition::GraphqlEnumTypeDefinition(node) => node.format().fmt(f), | ||
AnyGraphqlTypeDefinition::GraphqlInputObjectTypeDefinition(node) => { | ||
node.format().fmt(f) | ||
} | ||
AnyGraphqlTypeDefinition::GraphqlInterfaceTypeDefinition(node) => node.format().fmt(f), | ||
AnyGraphqlTypeDefinition::GraphqlObjectTypeDefinition(node) => node.format().fmt(f), | ||
AnyGraphqlTypeDefinition::GraphqlScalarTypeDefinition(node) => node.format().fmt(f), | ||
AnyGraphqlTypeDefinition::GraphqlUnionTypeDefinition(node) => node.format().fmt(f), | ||
} | ||
} | ||
} |
Oops, something went wrong.