ASTValueNum<T extends num> class abstract

ASTValue for numbers (num).

Inheritance
Implementers
Available Extensions

Constructors

ASTValueNum(ASTType<T> type, T value, {bool? negative})

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
isZero bool
no setter
negative bool
final
parentNode ASTNode?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ASTType<T>
getter/setter pairinherited
value ↔ T
getter/setter pairinherited

Methods

associateToType(ASTTypedNode node) → void
inherited
cacheDescendantChildren() → void
Mark that this node can cache its descendantChildren.
inherited
equals(Object other) FutureOr<bool>
override
getNodeIdentifier(String name, {ASTNode? requester}) ASTNode?
inherited
getValue(VMContext context) → T
inherited
getValueNoContext() → T
inherited
isInstanceOf(ASTType type) bool
inherited
isInstanceOfAsync(ASTType type) FutureOr<bool>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readIndex<V>(VMContext context, int index) → V
inherited
readKey<V>(VMContext context, Object key) → V
inherited
resolve(VMContext context) ASTValue<T>
inherited
resolveNode(ASTNode? parentNode) → void
inherited
resolveType(VMContext? context) FutureOr<ASTType>
inherited
size(VMContext context) int?
inherited
toString() String
A string representation of this object.
inherited

Operators

operator *(ASTValue other) FutureOr<ASTValue>
override
operator +(ASTValue other) FutureOr<ASTValue>
override
operator -(ASTValue other) FutureOr<ASTValue>
override
operator /(ASTValue other) FutureOr<ASTValue>
override
operator <(Object other) FutureOr<bool>
override
operator <=(Object other) FutureOr<bool>
override
operator ==(Object other) bool
The equality operator.
override
operator >(Object other) FutureOr<bool>
override
operator >=(Object other) FutureOr<bool>
override
operator ~/(ASTValue other) FutureOr<ASTValue>
inherited

Static Methods

from(dynamic o, {bool? negative}) ASTValueNum<num>