ASTValue<T> class
abstract
Base class for AST values.
- Implemented types
- Mixed in types
- Implementers
- Available Extensions
Constructors
-
ASTValue(ASTType<
T> type) -
ASTValue.from(ASTType<
T> type, T value) -
factory
Properties
-
children
→ Iterable<
ASTNode> -
The children nodes of this node.
no setterinherited
-
descendantChildren
→ List<
ASTNode> -
Return the children and it's descendant children (unmodifiable).
no setterinherited
- hashCode → int
-
The hash code for this object.
no setteroverride
- parentNode → ASTNode?
-
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
type
↔ ASTType<
T> -
getter/setter pair
Methods
-
associateToType(
ASTTypedNode node) → void -
override
-
cacheDescendantChildren(
) → void -
Mark that this node can cache its descendantChildren.
inherited
-
equals(
Object other) → FutureOr< bool> -
getNodeIdentifier(
String name, {ASTNode? requester}) → ASTNode? -
override
-
getValue(
VMContext context) → FutureOr< T> -
getValueNoContext(
) → FutureOr< T> -
isInstanceOf(
ASTType type) → bool -
isInstanceOfAsync(
ASTType type) → FutureOr< bool> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readIndex<
V> (VMContext context, int index) → FutureOr< V> -
readKey<
V> (VMContext context, Object key) → FutureOr< V> -
resolve(
VMContext context) → FutureOr< ASTValue< T> > -
resolveNode(
ASTNode? parentNode) → void -
override
-
resolveType(
VMContext? context) → FutureOr< ASTType> -
override
-
size(
VMContext context) → FutureOr< int?> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator *(
ASTValue other) → FutureOr< ASTValue> -
operator +(
ASTValue other) → FutureOr< ASTValue> -
operator -(
ASTValue other) → FutureOr< ASTValue> -
operator /(
ASTValue other) → FutureOr< ASTValue> -
operator <(
Object other) → FutureOr< bool> -
operator <=(
Object other) → FutureOr< bool> -
operator ==(
Object other) → bool -
The equality operator.
override
-
operator >(
Object other) → FutureOr< bool> -
operator >=(
Object other) → FutureOr< bool> -
operator ~/(
ASTValue other) → FutureOr< ASTValue>