VMScopeContext class final

A runtime context, for current scope, of the VM.

See VMContext

Inheritance

Constructors

VMScopeContext(ASTBlock block, {VMContext? parent, VMTypeResolver? typeResolver, ApolloImportManager? importManager})

Properties

block → ASTBlock
The runtime block of this context.
finalinherited
externalFunctionMapper ↔ ApolloExternalFunctionMapper?
The external function mapper.
getter/setter pairinherited
externalGetterMapper ↔ ApolloExternalGetterMapper?
getter/setter pairinherited
hashCode → int
The hash code for this object.
no setterinherited
importManager ↔ ApolloImportManager?
The import manager.
getter/setter pairinherited
importScope ↔ ImportScope?
The resolved module import scope; inherited from parent when not set on this context. Consulted by scoped symbol resolution before the greedy fallback.
getter/setter pairinherited
parent → VMContext?
The parent context.
finalinherited
root → VMContext?
The root context.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
typeResolver → VMTypeResolver
The type resolver. If not defined for this instance will get from parent.
no setterinherited

Methods

declareVariable(ASTTypedVariable variable) → bool
Declares a variable of type and name without a initial value.
inherited
declareVariableWithValue(ASTType type, String name, ASTValue? value) → bool
Declares a variable of type and name with an optional value in this context.
inherited
getClassInstance() → ASTValue?
The visible object class instance from this context.
inherited
getField(String name) → ASTVariable?
Returns an ASTVariable of field name.
inherited
getFunction(String name, ASTFunctionSignature parametersSignature) → ASTInvocableDeclaration<dynamic, ASTParameterDeclaration, ASTParametersDeclaration<ASTParameterDeclaration>>?
Returns a function of name and parametersSignature
inherited
getGetter(String name) → ASTGetterDeclaration?
Returns a getter of name.
inherited
getImportedFunction<R>(String fName, [ASTFunctionSignature? parametersSignature]) → ASTFunctionDeclaration<R>?
inherited
getMappedExternalFunction<R>(String fName, [ASTFunctionSignature? parametersSignature]) → ASTExternalFunction<R>?
Returns an ASTExternalFunction of fName and parametersSignature.
inherited
getMappedExternalGetter<R>(String fName) → ASTExternalGetter<R>?
Returns an ASTExternalFunction of fName and parametersSignature.
inherited
getSetter(String name) → ASTSetterDeclaration?
Returns a setter of name.
inherited
getVariable(String name, bool allowClassFields) → FutureOr<ASTVariable?>
Returns an ASTVariable of name in this context.
inherited
import(String path) → FutureOr<bool>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setVariable(String name, ASTValue value, bool allowField) → bool
Sets an already declared variable of name with value in this context.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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