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

Method parseArray

packages/effect/src/unstable/encoding/Toml.ts:371–388  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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("{")

Callers 1

parseValueMethod · 0.95

Calls 6

expectMethod · 0.95
skipArrayWhitespaceMethod · 0.95
peekMethod · 0.95
advanceMethod · 0.95
parseValueMethod · 0.95
pushMethod · 0.80

Tested by

no test coverage detected