AnalysisContext class

Result of parsing and analyzing an sql statement. Contains the AST with resolved references, information about result columns and errors that were reported during analysis.

Constructors

AnalysisContext(AstNode root, String sql, RootScope rootScope, EngineOptions engineOptions, {AnalyzeStatementOptions? stmtOptions, required SchemaFromCreateTable schemaSupport})
Constructs a new analysis context from the AST and the source sql.

Properties

engineOptions EngineOptions
Options passed to the surrounding engine.
final
errors List<AnalysisError>
All errors that occurred during analysis
final
hashCode int
The hash code for this object.
no setterinherited
root AstNode
The root node of the abstract syntax tree
final
rootScope RootScope
The root scope used when analyzing SQL statements.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schemaSupport SchemaFromCreateTable
Utilities to read types.
final
sql String
The raw sql statement that was used to construct this AnalysisContext.
final
stmtOptions AnalyzeStatementOptions
Additional information about variables in this context, passed from the outside.
final
types2 TypeInferenceResults
New type resolver with better support for nullability and complex structures.
latefinal

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reportError(AnalysisError error) → void
Reports an analysis error.
toString() String
A string representation of this object.
inherited
typeOf(Typeable t) ResolveResult
Obtains the result of any typeable component. See the information at types2 on important Typeables.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

compareNodesByOrder(AstNode first, AstNode second) int
Compares two AstNodes by their first position in the query.