| 325 | } |
| 326 | |
| 327 | value::Value parseArray() |
| 328 | { |
| 329 | auto result = value::createEmptyArray(); |
| 330 | auto arrayStart = current; |
| 331 | |
| 332 | skipWhitespace(); |
| 333 | if (popIf (']')) return result; |
| 334 | |
| 335 | for (;;) |
| 336 | { |
| 337 | skipWhitespace(); |
| 338 | if (isEOF()) throwError ("Unexpected EOF in array declaration", arrayStart); |
| 339 | |
| 340 | result.addArrayElement (parseValue()); |
| 341 | skipWhitespace(); |
| 342 | |
| 343 | if (popIf (',')) continue; |
| 344 | if (popIf (']')) break; |
| 345 | throwError ("Expected ',' or ']'"); |
| 346 | } |
| 347 | |
| 348 | return result; |
| 349 | } |
| 350 | |
| 351 | value::Value parseObject() |
| 352 | { |
nothing calls this directly
no test coverage detected