(fail: (message: string) => never)
| 811 | // YAML 1.2.2 §7.5: a tag is separated from its content, which may be empty before a |
| 812 | // flow indicator or at the end of the line. |
| 813 | private readFlowTag(fail: (message: string) => never): string { |
| 814 | const tag = readTag(this.readTagToken(), fail) |
| 815 | if (this.index < this.line.length && !isFlowAliasEnd(this.line.charCodeAt(this.index))) { |
| 816 | this.fail(`Expected white space after the YAML tag ${tag}`) |
| 817 | } |
| 818 | return tag |
| 819 | } |
| 820 | |
| 821 | // A verbatim tag (`!<...>`) may contain `,`, so it is read up to its `>`. |
| 822 | private readTagToken(): string { |
no test coverage detected