evaluate Phrase Then
fun evaluatePhraseThen( expressionNode: A_Phrase, lexingState: LexingState, shouldSerialize: Boolean, trackTasks: Boolean, onSuccess: (AvailObject) -> Unit, onFailure: (Throwable) -> Unit)
Content copied to clipboard
Generate a function from the specified phrase and evaluate it in the module's context; lexically enclosing variables are not considered in scope, but module variables and constants are in scope.
Parameters
expression Node
A phrase.
lexing State
The position at which the expression starts.
should Serialize
true if the generated function should be serialized, false otherwise.
track Tasks
Whether to track that this fiber is running, and when done, to run noMoreWorkUnits if the queued/completed counts agree.
on Success
What to do with the result of the evaluation.
on Failure
What to do after a failure.