MCPcopy
hub / github.com/graphql/graphiql / name

Function name

packages/graphql-language-service/src/parser/Rules.ts:343–351  ·  view source on GitHub ↗
(style: string)

Source from the content-addressed store, hash-verified

341
342// A Name Token which will decorate the state with a `name`.
343function name(style: string): Rule {
344 return {
345 style,
346 match: (token: Token) => token.kind === 'Name',
347 update(state: State, token: Token) {
348 state.name = token.value;
349 },
350 };
351}
352
353// A Name Token which will decorate the previous state with a `type`.
354function type(style: string) {

Callers 1

Rules.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected