SourceScope class
A special intermediate scope used for nodes that don't see columns and tables added to the statement they're in.
An example for this are subqueries appearing in a FROM
clause, which can't
see outer columns and tables of the select statement.
Another example is the InsertStatement.source of an InsertStatement,
which cannot refer to columns of the table being inserted to of course.
Things like INSERT INTO tbl (col) VALUES (tbl.col)
are not allowed.
- Inheritance
-
- Object
- ReferenceScope
- SourceScope
Constructors
- SourceScope(StatementScope enclosingStatement)
Properties
- enclosingStatement → StatementScope
-
final
-
expansionOfStarColumn
→ List<
Column> ? -
The list of column to which a
*
would expand to.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
-
resultSetAvailableToChildScopes
→ Iterable<
ResultSetAvailableInStatement> -
All available result sets that can also be seen in child scopes.
no setterinherited
- rootScope → RootScope
-
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addAlias(
AstNode origin, ResultSet resultSet, String alias, {bool canUseUnqualifiedColumns = true}) → void -
Registers a ResultSetAvailableInStatement to a TableAlias for the
given
resultSet
.inherited -
addResolvedResultSet(
String? name, ResultSetAvailableInStatement resultSet) → void -
Adds an added result set to this scope.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolveResultSetForReference(
String name) → ResultSetAvailableInStatement? -
Attempts to find a result set that has been added to this scope, for
instance because it was introduced in a
FROM
clause.inherited -
resolveResultSetToAdd(
String name) → ResultSet? -
Attempts to find a result set that can be added to a scope.
override
-
resolveUnqualifiedReference(
String columnName, {bool allowReferenceToResultColumn = false}) → List< Column> -
Attempts to resolve an unqualified reference from a
columnName
.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited