(value: string)
| 436 | } |
| 437 | |
| 438 | private parseInlineValue(value: string): unknown { |
| 439 | if (value.startsWith("*")) { |
| 440 | const name = value.slice(1).trim() |
| 441 | if (!this.anchors.has(name)) throw new SyntaxError(`Unknown YAML alias '*${name}'`) |
| 442 | return this.anchors.get(name) |
| 443 | } |
| 444 | if (value.startsWith("[") || value.startsWith("{")) { |
| 445 | return new FlowParser(value, this.anchors).parse() |
| 446 | } |
| 447 | return parseScalar(value) |
| 448 | } |
| 449 | |
| 450 | private parseBlockScalar(indicator: string, parentIndent: number): string { |
| 451 | const style = indicator[0] |
no test coverage detected