ResolveResult class
Result of resolving a type. This can either have the resolved type set, or it can inform the called that it needsContext to resolve the type properly. Failure to resolve the type will have the unknown flag set.
When you see a ResolveResult that is unknown or needs context in the final AST returned by SqlEngine.analyze, assume that the type cannot be determined.
Constructors
- ResolveResult(ResolvedType? type)
-
const
- ResolveResult.needsContext()
-
const
- ResolveResult.unknown()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- needsContext → bool
-
Whether more context is needed to resolve the type. Used internally by the
analyzer.
final
- nullable → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → ResolvedType?
-
The resolved type.
final
- unknown → bool
-
Whether type resolution failed.
final
Methods
-
mapResult(
ResolvedType map(ResolvedType?)) → ResolveResult -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
withNullable(
bool nullable) → ResolveResult -
Copies the result with the
nullable
information, if there is one. If there isn't, the failure state will be copied into the new ResolveResult.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override