EvalStateFactory configures the EvalState generator to be used by the EvalStateObserver.
(factory func() EvalState)
| 83 | |
| 84 | // EvalStateFactory configures the EvalState generator to be used by the EvalStateObserver. |
| 85 | func EvalStateFactory(factory func() EvalState) evalStateOption { |
| 86 | return func(fac *evalStateFactory) *evalStateFactory { |
| 87 | fac.factory = factory |
| 88 | return fac |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | // EvalStateObserver provides an observer which records the value associated with the given expression id. |
| 93 | // EvalState must be provided to the observer. |
no outgoing calls