ParsedLine
Defined in: packages/engine/src/types/ParsingResult.ts:42
One line of a parsed document.
A line carries either a whole-line expression or a set of inline solves,
never both. isEmpty covers the third case: prose, a heading, or a blank.
Properties
Section titled “Properties”endPosition
Section titled “endPosition”endPosition: number;Defined in: packages/engine/src/types/ParsingResult.ts:50
Character offset just past the line end within the whole document.
error: string | null;Defined in: packages/engine/src/types/ParsingResult.ts:62
Message when the whole-line expression failed.
expression
Section titled “expression”expression: string | null;Defined in: packages/engine/src/types/ParsingResult.ts:58
The whole-line expression, or null when the line has inline solves or nothing.
hasInlineSolves
Section titled “hasInlineSolves”hasInlineSolves: boolean;Defined in: packages/engine/src/types/ParsingResult.ts:54
Whether the line holds backtick-delimited expressions.
inlineSolves
Section titled “inlineSolves”inlineSolves: InlineSolvePosition[];Defined in: packages/engine/src/types/ParsingResult.ts:56
Each embedded expression and its position. Empty for a whole-line expression.
isEmpty
Section titled “isEmpty”isEmpty: boolean;Defined in: packages/engine/src/types/ParsingResult.ts:52
Whether the line holds nothing to evaluate.
lineNumber
Section titled “lineNumber”lineNumber: number;Defined in: packages/engine/src/types/ParsingResult.ts:44
One-based line number.
result
Section titled “result”result: Value | null;Defined in: packages/engine/src/types/ParsingResult.ts:60
The whole-line result, or null when there is none or it failed.
startPosition
Section titled “startPosition”startPosition: number;Defined in: packages/engine/src/types/ParsingResult.ts:48
Character offset of the line start within the whole document.
text: string;Defined in: packages/engine/src/types/ParsingResult.ts:46
The raw line text as it appeared.