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 e888d21 commit 6e65e8e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions src/language/ast.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ export type ASTNode =
| EnumTypeDefinitionNode
| EnumValueDefinitionNode
| InputObjectTypeDefinitionNode
| DirectiveDefinitionNode
| SchemaExtensionNode
| ScalarTypeExtensionNode
| ObjectTypeExtensionNode
| InterfaceTypeExtensionNode
| UnionTypeExtensionNode
| EnumTypeExtensionNode
| InputObjectTypeExtensionNode
| DirectiveDefinitionNode;
| InputObjectTypeExtensionNode;

/**
* Utility type listing all nodes indexed by their kind.
Expand Down Expand Up @@ -172,14 +172,14 @@ export type ASTKindToNode = {
EnumTypeDefinition: EnumTypeDefinitionNode,
EnumValueDefinition: EnumValueDefinitionNode,
InputObjectTypeDefinition: InputObjectTypeDefinitionNode,
DirectiveDefinition: DirectiveDefinitionNode,
SchemaExtension: SchemaExtensionNode,
ScalarTypeExtension: ScalarTypeExtensionNode,
ObjectTypeExtension: ObjectTypeExtensionNode,
InterfaceTypeExtension: InterfaceTypeExtensionNode,
UnionTypeExtension: UnionTypeExtensionNode,
EnumTypeExtension: EnumTypeExtensionNode,
InputObjectTypeExtension: InputObjectTypeExtensionNode,
DirectiveDefinition: DirectiveDefinitionNode,
};

// Name
Expand Down 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
6 changes: 3 additions & 3 deletions src/language/kinds.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ export const Kind = Object.freeze({
ENUM_VALUE_DEFINITION: 'EnumValueDefinition',
INPUT_OBJECT_TYPE_DEFINITION: 'InputObjectTypeDefinition',

// Directive Definitions
DIRECTIVE_DEFINITION: 'DirectiveDefinition',

// Type System Extensions
SCHEMA_EXTENSION: 'SchemaExtension',

Expand All @@ -72,9 +75,6 @@ export const Kind = Object.freeze({
UNION_TYPE_EXTENSION: 'UnionTypeExtension',
ENUM_TYPE_EXTENSION: 'EnumTypeExtension',
INPUT_OBJECT_TYPE_EXTENSION: 'InputObjectTypeExtension',

// Directive Definitions
DIRECTIVE_DEFINITION: 'DirectiveDefinition',
});

/**
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 6e65e8e

Please sign in to comment.