ParseResult class
The result of parsing an sql query. Contains the root of the AST and all errors that might have occurred during parsing.
Properties
- autoCompleteEngine → AutoCompleteEngine?
-
The engine which can be used to handle auto-complete requests on this
result.
final
-
errors
→ List<
ParsingError> -
A list of all errors that occurred during parsing. ParsingError.toString
returns a helpful description of what went wrong, along with the position
where the error occurred.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- rootNode → AstNode
-
The topmost node in the sql AST that was parsed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sql → String
-
The sql source that created the AST at rootNode.
final
-
tokens
→ List<
Token> -
The tokens that were scanned in the source file, including those that are
Token.invisibleToParser.
final
Methods
-
findNodesAtPosition(
int offset, {int length = 0}) → List< AstNode> -
Attempts to find the most relevant (bottom-most in the AST) nodes that
intersects with the source range from
offset
tooffset
+length
. -
lexemeOfNode(
AstNode node) → String -
Returns the lexeme that created an AST
node
(which should be a child of rootNode, e.g appear in this result). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited