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