State of the evaluation, non-nil if the OptTrackState or OptExhaustiveEval is specified within EvalOptions.
()
| 146 | // State of the evaluation, non-nil if the OptTrackState or OptExhaustiveEval is specified |
| 147 | // within EvalOptions. |
| 148 | func (ed *EvalDetails) State() interpreter.EvalState { |
| 149 | if ed == nil { |
| 150 | return interpreter.NewEvalState() |
| 151 | } |
| 152 | return ed.state |
| 153 | } |
| 154 | |
| 155 | // ActualCost returns the tracked cost through the course of execution when `CostTracking` is enabled. |
| 156 | // Otherwise, returns nil if the cost was not enabled. |