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

Function parseObj

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

Source from the content-addressed store, hash-verified

65 | undefined;
66
67function parseObj(): ParseObjectOutput {
68 const nodeStart = start;
69 const members = [];
70 expect('{');
71 if (!skip('}')) {
72 do {
73 members.push(parseMember());
74 } while (skip(','));
75 expect('}');
76 }
77 return {
78 kind: 'Object',
79 start: nodeStart,
80 end: lastEnd,
81 members,
82 };
83}
84
85function parseMember(): ParseMemberOutput {
86 const nodeStart = start;

Callers 2

jsonParseFunction · 0.85
parseValFunction · 0.85

Calls 4

expectFunction · 0.85
skipFunction · 0.85
parseMemberFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…