UNPKG

488 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.syntaxError = syntaxError;
7
8var _GraphQLError = require("./GraphQLError");
9
10/**
11 * Produces a GraphQLError representing a syntax error, containing useful
12 * descriptive information about the syntax error's position in the source.
13 */
14function syntaxError(source, position, description) {
15 return new _GraphQLError.GraphQLError("Syntax Error: ".concat(description), undefined, source, [position]);
16}