Environment class final
An environment that carries the context's identifiers.
An environment can belong to another enclosing environment, which will be considered when looking for an identifier.
Constructors
- Environment({Environment? enclosing})
- Creates an environment.
Properties
- enclosing → Environment?
-
The enclosing environment.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
defineSymbol(
String name, TypedElement type) → void -
Defines a
name
in the environment with the passedvalue
. -
fork(
) → Environment -
getDefinition(
String name) → TypedElement? -
Get a variable with the given
name
in the environment. -
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