State of the evaluation, non-nil if the OptTrackState or OptExhaustiveEval is specified within EvalOptions.
()
| 128 | // State of the evaluation, non-nil if the OptTrackState or OptExhaustiveEval is specified |
| 129 | // within EvalOptions. |
| 130 | func (ed *EvalDetails) State() interpreter.EvalState { |
| 131 | if ed == nil { |
| 132 | return interpreter.NewEvalState() |
| 133 | } |
| 134 | return ed.state |
| 135 | } |
| 136 | |
| 137 | // ActualCost returns the tracked cost through the course of execution when `CostTracking` is enabled. |
| 138 | // Otherwise, returns nil if the cost was not enabled. |