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

Function parseArr

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

Source from the content-addressed store, hash-verified

98}
99
100function parseArr(): ParseArrayOutput {
101 const nodeStart = start;
102 const values = [];
103 expect('[');
104 if (!skip(']')) {
105 do {
106 values.push(parseVal());
107 } while (skip(','));
108 expect(']');
109 }
110 return {
111 kind: 'Array',
112 start: nodeStart,
113 end: lastEnd,
114 values,
115 };
116}
117
118function parseVal(): ParseValueOutput | undefined {
119 switch (kind) {

Callers 1

parseValFunction · 0.85

Calls 4

expectFunction · 0.85
skipFunction · 0.85
parseValFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected