(message: string)
| 273 | } |
| 274 | |
| 275 | #createError(message: string): YamlSyntaxError { |
| 276 | const offset = this.#scanner.position; |
| 277 | const snippet = getSnippet(this.#scanner.source, offset) ?? undefined; |
| 278 | return new YamlSyntaxError(message, { |
| 279 | line: this.line + 1, |
| 280 | column: offset - this.lineStart + 1, |
| 281 | offset, |
| 282 | }, snippet); |
| 283 | } |
| 284 | |
| 285 | dispatchWarning(message: string) { |
| 286 | const error = this.#createError(message); |
no test coverage detected