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
query?
optionalquery:SelectQuery
Defined in: packages/core/src/parsers/SelectQueryParser.ts:21
Inherited from
error?
optionalerror:string
Defined in: packages/core/src/parsers/SelectQueryParser.ts:22
Inherited from
errorPosition?
optionalerrorPosition:number
Defined in: packages/core/src/parsers/SelectQueryParser.ts:23
Inherited from
ParseAnalysisResult.errorPosition
remainingTokens?
optionalremainingTokens:string[]
Defined in: packages/core/src/parsers/SelectQueryParser.ts:24
Inherited from
ParseAnalysisResult.remainingTokens
parsedTokens?
optionalparsedTokens:Lexeme[]
Defined in: packages/core/src/utils/PositionAwareParser.ts:27
Tokens that were parsed up to the cursor position
tokenBeforeCursor?
optionaltokenBeforeCursor:Lexeme
Defined in: packages/core/src/utils/PositionAwareParser.ts:29
Token immediately before the cursor position
stoppedAtCursor?
optionalstoppedAtCursor:boolean
Defined in: packages/core/src/utils/PositionAwareParser.ts:31
Whether parsing stopped at the cursor position
recoveryAttempts?
optionalrecoveryAttempts:number
Defined in: packages/core/src/utils/PositionAwareParser.ts:33
Number of error recovery attempts made
partialAST?
optionalpartialAST:SelectQuery
Defined in: packages/core/src/utils/PositionAwareParser.ts:35
Partial AST even if parsing failed