Skip to content

Commit

Permalink
Formatting edits
Browse files Browse the repository at this point in the history
  • Loading branch information
leebyron committed Apr 19, 2018
1 parent 5b40864 commit a637617
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions src/language/ast.js
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,13 @@ export type InputObjectTypeDefinitionNode = {

export type TypeSystemExtensionNode = SchemaExtensionNode | TypeExtensionNode;

export type SchemaExtensionNode = {
+kind: 'SchemaExtension',
+loc?: Location,
+directives?: $ReadOnlyArray<DirectiveNode>,
+operationTypes?: $ReadOnlyArray<OperationTypeDefinitionNode>,
};

export type TypeExtensionNode =
| ScalarTypeExtensionNode
| ObjectTypeExtensionNode
Expand All @@ -511,13 +518,6 @@ export type TypeExtensionNode =
| EnumTypeExtensionNode
| InputObjectTypeExtensionNode;

export type SchemaExtensionNode = {
+kind: 'SchemaExtension',
+loc?: Location,
+directives?: $ReadOnlyArray<DirectiveNode>,
+operationTypes?: $ReadOnlyArray<OperationTypeDefinitionNode>,
};

export type ScalarTypeExtensionNode = {
+kind: 'ScalarTypeExtension',
+loc?: Location,
Expand Down
6 changes: 3 additions & 3 deletions src/language/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -752,10 +752,10 @@ export function parseNamedType(lexer: Lexer<*>): NamedTypeNode {

/**
* TypeSystemDefinition :
* - TypeSystemExtension
* - SchemaDefinition
* - TypeDefinition
* - DirectiveDefinition
* - TypeSystemExtension
*
* TypeDefinition :
* - ScalarTypeDefinition
Expand Down Expand Up @@ -785,10 +785,10 @@ function parseTypeSystemDefinition(lexer: Lexer<*>): TypeSystemDefinitionNode {
return parseEnumTypeDefinition(lexer);
case 'input':
return parseInputObjectTypeDefinition(lexer);
case 'extend':
return parseTypeSystemExtension(lexer);
case 'directive':
return parseDirectiveDefinition(lexer);
case 'extend':
return parseTypeSystemExtension(lexer);
}
}

Expand Down

0 comments on commit a637617

Please sign in to comment.