Observe records the evaluation state for a given expression node and program step.
(vars Activation, id int64, programStep any, val ref.Val)
| 139 | |
| 140 | // Observe records the evaluation state for a given expression node and program step. |
| 141 | func (et *evalStateFactory) Observe(vars Activation, id int64, programStep any, val ref.Val) { |
| 142 | frame := AsFrame(vars) |
| 143 | if frame.ctx == nil || frame.ctx.state == nil { |
| 144 | return |
| 145 | } |
| 146 | frame.ctx.state.SetValue(id, val) |
| 147 | } |
| 148 | |
| 149 | // CustomDecorator configures a custom interpretable decorator for the program. |
| 150 | func CustomDecorator(dec InterpretableDecorator) PlannerOption { |