ASTStatementAssert class

An assert(condition) / assert(condition, message) statement.

ApolloVM has no debug/release split, so the condition is always evaluated — matching dart run's default. A false condition throws message (or a default text) as an ApolloVMThrownException, so it is catchable exactly like a throw.

Inheritance

Constructors

ASTStatementAssert(ASTExpression condition, [ASTExpression? message])

Properties

children → Iterable<ASTNode>
The children nodes of this node.
no setteroverride
condition ↔ ASTExpression
getter/setter pair
descendantChildren → List<ASTNode>
Return the children and it's descendant children (unmodifiable).
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
message ↔ ASTExpression?
getter/setter pair
parentNode → ASTNode?
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

associateToType(ASTTypedNode node) → void
inherited
cacheDescendantChildren() → void
Mark that this node can cache its descendantChildren.
inherited
defineRunContext(VMContext parentContext) → VMContext
inherited
getNodeIdentifier(String name, {ASTNode? requester}) → ASTNode?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveNode(ASTNode? parentNode) → void
override
resolveRuntimeType(VMContext context, ASTNode? node) → FutureOr<ASTType>
inherited
resolveType(VMContext? context) → ASTType
override
run(VMContext parentContext, ASTRunStatus runStatus) → FutureOr<ASTValue>
override
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited