Skip to content
# Interface: PositionParseResult

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

Result of position-aware parsing

Extends

Properties

success

success: boolean

Defined in: packages/core/src/parsers/SelectQueryParser.ts:20

Inherited from

ParseAnalysisResult.success


query?

optional query: SelectQuery

Defined in: packages/core/src/parsers/SelectQueryParser.ts:21

Inherited from

ParseAnalysisResult.query


error?

optional error: string

Defined in: packages/core/src/parsers/SelectQueryParser.ts:22

Inherited from

ParseAnalysisResult.error


errorPosition?

optional errorPosition: number

Defined in: packages/core/src/parsers/SelectQueryParser.ts:23

Inherited from

ParseAnalysisResult.errorPosition


remainingTokens?

optional remainingTokens: string[]

Defined in: packages/core/src/parsers/SelectQueryParser.ts:24

Inherited from

ParseAnalysisResult.remainingTokens


parsedTokens?

optional parsedTokens: Lexeme[]

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

Tokens that were parsed up to the cursor position


tokenBeforeCursor?

optional tokenBeforeCursor: Lexeme

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

Token immediately before the cursor position


stoppedAtCursor?

optional stoppedAtCursor: boolean

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

Whether parsing stopped at the cursor position


recoveryAttempts?

optional recoveryAttempts: number

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

Number of error recovery attempts made


partialAST?

optional partialAST: SelectQuery

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

Partial AST even if parsing failed

Released under the MIT License.