Skip to content

Commit

Permalink
Fix typo in AST predicates (#1462)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjmahone committed Aug 12, 2018
1 parent f4f15b3 commit 7cfd686
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/language/kinds.js
Expand Up @@ -18,7 +18,6 @@ export const Kind = Object.freeze({
DOCUMENT: 'Document',
OPERATION_DEFINITION: 'OperationDefinition',
VARIABLE_DEFINITION: 'VariableDefinition',
VARIABLE: 'Variable',
SELECTION_SET: 'SelectionSet',
FIELD: 'Field',
ARGUMENT: 'Argument',
Expand All @@ -29,6 +28,7 @@ export const Kind = Object.freeze({
FRAGMENT_DEFINITION: 'FragmentDefinition',

// Values
VARIABLE: 'Variable',
INT: 'IntValue',
FLOAT: 'FloatValue',
STRING: 'StringValue',
Expand Down
4 changes: 2 additions & 2 deletions src/language/predicates.js
Expand Up @@ -35,15 +35,15 @@ export function isSelectionNode(node: ASTNode): boolean %checks {

export function isValueNode(node: ASTNode): boolean %checks {
return (
node.kind === Kind.VARIABLE ||
node.kind === Kind.INT ||
node.kind === Kind.FLOAT ||
node.kind === Kind.STRING ||
node.kind === Kind.BOOLEAN ||
node.kind === Kind.NULL ||
node.kind === Kind.ENUM ||
node.kind === Kind.LIST ||
node.kind === Kind.OBJECT ||
node.kind === Kind.OBJECT_FIELD
node.kind === Kind.OBJECT
);
}

Expand Down

0 comments on commit 7cfd686

Please sign in to comment.