Variable<T> class

Holds a symbol, the value of which may change or be marked immutable.

Implementers

Properties

hashCode int
The hash code for this object.
no setterinherited
isImmutable bool
If true, then the value of this variable cannot be overwritten.
no setter
isPrivate bool
This flag has no meaning within the context of this library, but if you are implementing some sort of interpreter, you may consider acting based on whether a variable is private.
no setter
name String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
symbolTable SymbolTable<T>?
final
value ↔ T?
getter/setter pair
visibility Visibility
getter/setter pair

Methods

lock() → void
Locks this symbol, and prevents its value from being overwritten.
markAsPrivate() → void
Marks this symbol as private.
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