Skip to content

ParsingResult

Defined in: packages/engine/src/types/ParsingResult.ts:72

Everything produced by parsing a document.

Errors are collected rather than thrown. One bad line must not cost the results of every other line, so failures are reported alongside the lines that did evaluate.

optional diagnostics?: DiagnosticReportJSON;

Defined in: packages/engine/src/types/ParsingResult.ts:80

Stage-by-stage trace, present only when diagnostics were requested.


errors: string[];

Defined in: packages/engine/src/types/ParsingResult.ts:78

Messages from lines that failed. Those lines are still present above.


lines: ParsedLine[];

Defined in: packages/engine/src/types/ParsingResult.ts:74

Every line in document order, including ones with nothing to evaluate.


totalLines: number;

Defined in: packages/engine/src/types/ParsingResult.ts:76

Line count, so a caller need not measure lines.