MCPcopy
hub / github.com/graphql/graphql-js / parse

Function parse

src/language/parser.ts:175–182  ·  view source on GitHub ↗
(
  source: string | Source,
  options?: ParseOptions,
)

Source from the content-addressed store, hash-verified

173 * ```
174 */
175export function parse(
176 source: string | Source,
177 options?: ParseOptions,
178): DocumentNode {
179 return shouldTrace(parseChannel)
180 ? parseChannel.traceSync(() => parseImpl(source, options), { source })
181 : parseImpl(source, options);
182}
183
184function parseImpl(
185 source: string | Source,

Callers 15

expectSyntaxErrorFunction · 0.90
expectSyntaxErrorFunction · 0.90
parser-test.tsFile · 0.90
visitor-test.tsFile · 0.90
printer-test.tsFile · 0.90
validation-test.tsFile · 0.90
expectErrorMessageFunction · 0.90

Calls 2

shouldTraceFunction · 0.90
parseImplFunction · 0.85

Tested by 15

expectSyntaxErrorFunction · 0.72
expectSyntaxErrorFunction · 0.72
expectErrorMessageFunction · 0.72
expectIntrospectionQueryFunction · 0.72
expectSchemaChangesFunction · 0.72
validationErrorsFunction · 0.72
executeTestQueryFunction · 0.72
completeFunction · 0.72
completeObjectListFunction · 0.72
createSubscriptionFunction · 0.72