CallStack class

Constructors

CallStack()
CallStack.copy(CallStack toCopy)
CallStack.of({required Story storyContext})

Properties

callStackTrace String
no setter
canPopThread bool
no setter
currentElement Element
no setter
currentElementIndex int
no setter
currentThread Thread
getter/setter pair
depth int
no setter
elementIsEvaluateFromGame bool
no setter
elements List<Element>
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

canPop([PushPopType? type]) bool
contextForVariableNamed(String name) int
Find the most appropriate context for this variable. Are we referencing a temporary or global variable? Note that the compiler will have warned us about possible conflicts, so anything that happens here should be safe!
forkThread() Thread
getTemporaryVariableWithName(String? name, {int contextIndex = -1}) RuntimeObject?
Get variable value, dereferencing a variable pointer if necessary
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pop([PushPopType? type]) → void
popThread() → void
push(PushPopType type, {int externalEvaluationStackHeight = 0, int outputStreamLengthWithPushed = 0}) → void
pushThread() → void
reset() → void
setJsonToken(Map<String, dynamic> jObject, Story storyContext) → void
Unfortunately it's not possible to implement jsonToken since the setter needs to take a Story as a context in order to look up objects from paths for currentContainer within elements.
SetJsonToken(Map<String, dynamic> jObject, Story storyContext) → void
setTemporaryVariable(String name, RuntimeObject value, bool declareNew, {int contextIndex = -1}) → void
threadWithIndex(int index) Thread?
toString() String
A string representation of this object.
inherited
WriteJson(SimpleJsonWriter w) → void

Operators

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