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 7c9089f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions src/language/ast.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,8 @@ export type NonNullTypeNode = {
export type TypeSystemDefinitionNode =
| SchemaDefinitionNode
| TypeDefinitionNode
| TypeSystemExtensionNode
| DirectiveDefinitionNode;
| DirectiveDefinitionNode
| TypeSystemExtensionNode;

export type SchemaDefinitionNode = {
+kind: 'SchemaDefinition',
Expand Down 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 7c9089f

Please sign in to comment.