Skip to content
# Interface: ParseToPositionOptions

Defined in: packages/core/src/utils/PositionAwareParser.ts:11

Options for position-aware parsing

Properties ​

errorRecovery? ​

optional errorRecovery: boolean

Defined in: packages/core/src/utils/PositionAwareParser.ts:13

Enable error recovery to continue parsing after syntax errors


insertMissingTokens? ​

optional insertMissingTokens: boolean

Defined in: packages/core/src/utils/PositionAwareParser.ts:15

Insert missing tokens (e.g., missing FROM keywords)


parseToPosition? ​

optional parseToPosition: number | { line: number; column: number; }

Defined in: packages/core/src/utils/PositionAwareParser.ts:17

Parse only up to the specified position


maxRecoveryAttempts? ​

optional maxRecoveryAttempts: number

Defined in: packages/core/src/utils/PositionAwareParser.ts:19

Maximum number of error recovery attempts

Released under the MIT License.