()
| 369 | } |
| 370 | |
| 371 | private parseArray(): Array<unknown> { |
| 372 | this.expect("[") |
| 373 | const output: Array<unknown> = [] |
| 374 | while (true) { |
| 375 | this.skipArrayWhitespace() |
| 376 | if (this.peek() === "]") { |
| 377 | this.advance() |
| 378 | return output |
| 379 | } |
| 380 | output.push(this.parseValue()) |
| 381 | this.skipArrayWhitespace() |
| 382 | if (this.peek() === "]") { |
| 383 | this.advance() |
| 384 | return output |
| 385 | } |
| 386 | this.expect(",") |
| 387 | } |
| 388 | } |
| 389 | |
| 390 | private parseInlineTable(): Table { |
| 391 | this.expect("{") |
no test coverage detected