InlineSolvePosition
Defined in: packages/engine/src/types/ParsingResult.ts:21
One inline solve, and where it sits in its line.
An inline solve is an expression embedded in prose between backticks. A line can hold several, so positions are what let a host place each result against the right span rather than at the end of the line.
Properties
Section titled “Properties”columnNumber
Section titled “columnNumber”columnNumber: number;Defined in: packages/engine/src/types/ParsingResult.ts:31
One-based column, for hosts that report positions to a user.
end: number;Defined in: packages/engine/src/types/ParsingResult.ts:25
Character offset just past the end of the expression.
error?
Section titled “error?”optional error?: string | null;Defined in: packages/engine/src/types/ParsingResult.ts:35
Message when this span failed, leaving others on the line intact.
expression
Section titled “expression”expression: string;Defined in: packages/engine/src/types/ParsingResult.ts:27
The expression text, without the surrounding backticks.
lineNumber
Section titled “lineNumber”lineNumber: number;Defined in: packages/engine/src/types/ParsingResult.ts:29
One-based line number.
result?
Section titled “result?”optional result?: Value | null;Defined in: packages/engine/src/types/ParsingResult.ts:33
The evaluated value, or null when evaluation failed or was skipped.
start: number;Defined in: packages/engine/src/types/ParsingResult.ts:23
Character offset where the expression starts, within its line.