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.
Properties
Section titled “Properties”diagnostics?
Section titled “diagnostics?”optional diagnostics?: DiagnosticReportJSON;Defined in: packages/engine/src/types/ParsingResult.ts:80
Stage-by-stage trace, present only when diagnostics were requested.
errors
Section titled “errors”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
Section titled “totalLines”totalLines: number;Defined in: packages/engine/src/types/ParsingResult.ts:76
Line count, so a caller need not measure lines.