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

Function curToken

packages/codemirror-graphql/src/utils/jsonParse.ts:135–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133}
134
135function curToken(): ParseTokenOutput {
136 return { kind, start, end, value: JSON.parse(string.slice(start, end)) };
137}
138
139function expect(str: string) {
140 if (kind === str) {

Callers 2

parseMemberFunction · 0.85
parseValFunction · 0.85

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…