EvalState
EvalState tracks the values associated with expression ids during execution.
Methods
Section titled “Methods”ids():
number[]
ids returns the list of ids with recorded values.
Returns
Section titled “Returns”number[]
reset()
Section titled “reset()”reset():
void
reset clears the previously recorded expression values.
Returns
Section titled “Returns”void
setValue()
Section titled “setValue()”setValue(
options):void
setValue records the observed value for the expression id.
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”void
value()
Section titled “value()”value(
exprId):Val|undefined
value returns the observed value for the expression id, if one has been recorded.
Parameters
Section titled “Parameters”exprId
Section titled “exprId”number
Returns
Section titled “Returns”Val | undefined