()
| 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() |
nothing calls this directly
no test coverage detected