(indent: number)
| 340 | } |
| 341 | |
| 342 | private parseNode(indent: number): unknown { |
| 343 | this.skipIgnored() |
| 344 | const line = this.lines[this.index] |
| 345 | if (line === undefined) return null |
| 346 | if (line.indent !== indent) this.fail(line, `Expected indentation of ${indent} spaces`) |
| 347 | if (line.text === "-" || line.text.startsWith("- ")) return this.parseSequence(indent) |
| 348 | if (mappingSeparator(line.text) !== -1) return this.parseMapping(indent) |
| 349 | this.index++ |
| 350 | return this.parseInlineValue(line.text) |
| 351 | } |
| 352 | |
| 353 | private parseMapping(indent: number): YamlRecord { |
| 354 | const output: YamlRecord = {} |
no test coverage detected