MCPcopy Create free account
hub / github.com/Effect-TS/effect / parseArray

Method parseArray

packages/effect/src/encoding/Toml.ts:425–442  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

423 }
424
425 private parseArray(): Array<unknown> {
426 this.expect("[")
427 const output: Array<unknown> = []
428 while (true) {
429 this.skipWhitespace()
430 if (this.peek() === "]") {
431 this.advance()
432 return output
433 }
434 output.push(this.parseValue())
435 this.skipWhitespace()
436 if (this.peek() === "]") {
437 this.advance()
438 return output
439 }
440 this.expect(",")
441 }
442 }
443
444 private parseInlineTable(): Table {
445 this.expect("{")

Callers 2

parseValueMethod · 0.95
makeArrayBaseFunction · 0.80

Calls 6

expectMethod · 0.95
skipWhitespaceMethod · 0.95
peekMethod · 0.95
advanceMethod · 0.95
parseValueMethod · 0.95
pushMethod · 0.65

Tested by

no test coverage detected