Observe records the evaluation state for a given expression node and program step.
(vars Activation, id int64, programStep any, val ref.Val)
| 148 | |
| 149 | // Observe records the evaluation state for a given expression node and program step. |
| 150 | func (et *evalStateFactory) Observe(vars Activation, id int64, programStep any, val ref.Val) { |
| 151 | frame := AsFrame(vars) |
| 152 | if frame.ctx == nil || frame.ctx.state == nil { |
| 153 | return |
| 154 | } |
| 155 | frame.ctx.state.SetValue(id, val) |
| 156 | } |
| 157 | |
| 158 | // CustomDecorator configures a custom interpretable decorator for the program. |
| 159 | func CustomDecorator(dec InterpretableDecorator) PlannerOption { |