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

Method parse

packages/effect/src/unstable/encoding/Yaml.ts:331–340  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

329 }
330
331 parse(): unknown {
332 this.skipIgnored()
333 if (this.index >= this.lines.length) return null
334 const value = this.parseNode(this.lines[this.index].indent)
335 this.skipIgnored()
336 if (this.index < this.lines.length) {
337 this.fail(this.lines[this.index], "Unexpected content")
338 }
339 return value
340 }
341
342 private parseNode(indent: number): unknown {
343 this.skipIgnored()

Callers

nothing calls this directly

Calls 3

skipIgnoredMethod · 0.95
parseNodeMethod · 0.95
failMethod · 0.95

Tested by

no test coverage detected