State of the evaluation, non-nil if the OptTrackState or OptExhaustiveEval is specified within EvalOptions.
()
| 195 | // State of the evaluation, non-nil if the OptTrackState or OptExhaustiveEval is specified |
| 196 | // within EvalOptions. |
| 197 | func (ed *EvalDetails) State() interpreter.EvalState { |
| 198 | if ed == nil { |
| 199 | return interpreter.NewEvalState() |
| 200 | } |
| 201 | return ed.state |
| 202 | } |
| 203 | |
| 204 | // ActualCost returns the tracked cost through the course of execution when `CostTracking` is enabled. |
| 205 | // Otherwise, returns nil if the cost was not enabled. |