ASTValueInt class

ASTValue for integer (int).

Inheritance

Constructors

ASTValueInt(int n, {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 setterinherited
isZero bool
no setterinherited
negative bool
finalinherited
parentNode ASTNode?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ASTType<int>
getter/setter pairinherited
value int
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>
inherited
getHashcodeValue(VMContext? context) FutureOr<int>
inherited
getNodeIdentifier(String name, {ASTNode? requester}) ASTNode?
inherited
getValue(VMContext context) int
inherited
getValueNoContext() int
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
readIndexASTValue<V>(VMContext context, int index) FutureOr<ASTValue<V>>
inherited
readKey<V>(VMContext context, Object? key) → V
inherited
readKeyASTValue<V>(VMContext context, Object? key) FutureOr<ASTValue<V>>
inherited
resolve(VMContext context) ASTValue<int>
inherited
resolveNode(ASTNode? parentNode) → void
inherited
resolveRuntimeType(VMContext context, ASTNode? node) FutureOr<ASTType>
inherited
resolveType(VMContext? context) FutureOr<ASTType>
inherited
size(VMContext context) int?
inherited
toString() String
A string representation of this object.
override
writeIndex<V>(VMContext context, int index, V value) → void
inherited
writeKey<V>(VMContext context, Object? key, V value) → void
inherited

Operators

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