Skip to content

Commit a637617

Browse files
committed
Formatting edits
1 parent 5b40864 commit a637617

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/language/ast.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,13 @@ export type InputObjectTypeDefinitionNode = {
503503

504504
export type TypeSystemExtensionNode = SchemaExtensionNode | TypeExtensionNode;
505505

506+
export type SchemaExtensionNode = {
507+
+kind: 'SchemaExtension',
508+
+loc?: Location,
509+
+directives?: $ReadOnlyArray<DirectiveNode>,
510+
+operationTypes?: $ReadOnlyArray<OperationTypeDefinitionNode>,
511+
};
512+
506513
export type TypeExtensionNode =
507514
| ScalarTypeExtensionNode
508515
| ObjectTypeExtensionNode
@@ -511,13 +518,6 @@ export type TypeExtensionNode =
511518
| EnumTypeExtensionNode
512519
| InputObjectTypeExtensionNode;
513520

514-
export type SchemaExtensionNode = {
515-
+kind: 'SchemaExtension',
516-
+loc?: Location,
517-
+directives?: $ReadOnlyArray<DirectiveNode>,
518-
+operationTypes?: $ReadOnlyArray<OperationTypeDefinitionNode>,
519-
};
520-
521521
export type ScalarTypeExtensionNode = {
522522
+kind: 'ScalarTypeExtension',
523523
+loc?: Location,

src/language/parser.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -752,10 +752,10 @@ export function parseNamedType(lexer: Lexer<*>): NamedTypeNode {
752752

753753
/**
754754
* TypeSystemDefinition :
755-
* - TypeSystemExtension
756755
* - SchemaDefinition
757756
* - TypeDefinition
758757
* - DirectiveDefinition
758+
* - TypeSystemExtension
759759
*
760760
* TypeDefinition :
761761
* - ScalarTypeDefinition
@@ -785,10 +785,10 @@ function parseTypeSystemDefinition(lexer: Lexer<*>): TypeSystemDefinitionNode {
785785
return parseEnumTypeDefinition(lexer);
786786
case 'input':
787787
return parseInputObjectTypeDefinition(lexer);
788-
case 'extend':
789-
return parseTypeSystemExtension(lexer);
790788
case 'directive':
791789
return parseDirectiveDefinition(lexer);
790+
case 'extend':
791+
return parseTypeSystemExtension(lexer);
792792
}
793793
}
794794

0 commit comments

Comments
 (0)