Skip to content

Mark

Defined in: src/js-yaml-compat.ts:132

Cut-down version of js-yaml v5’s SnippetMark (dist/js-yaml.d.ts — v5 bundles its own types, no more @types/js-yaml): the fields a consumer is likely to read (line/column) are populated from our error’s message when we can parse one out of it; the rest are cheap placeholders rather than a real re-lex of the source (js-yaml computes a snippet by re-scanning the input around the failure — not worth reproducing for a compat shim).

buffer: string

Defined in: src/js-yaml-compat.ts:133


column: number

Defined in: src/js-yaml-compat.ts:134


line: number

Defined in: src/js-yaml-compat.ts:135


name: string

Defined in: src/js-yaml-compat.ts:136


position: number

Defined in: src/js-yaml-compat.ts:137


snippet: string

Defined in: src/js-yaml-compat.ts:138