Mark
Defined in: src/js-yaml-compat.ts:128
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).
Properties
Section titled “Properties”buffer
Section titled “buffer”buffer:
string
Defined in: src/js-yaml-compat.ts:129
column
Section titled “column”column:
number
Defined in: src/js-yaml-compat.ts:130
line:
number
Defined in: src/js-yaml-compat.ts:131
name:
string
Defined in: src/js-yaml-compat.ts:132
position
Section titled “position”position:
number
Defined in: src/js-yaml-compat.ts:133
snippet
Section titled “snippet”snippet:
string
Defined in: src/js-yaml-compat.ts:134