EvalContext implements `EvalContext` to provide a static context for expression evaluation. The "static" means comparing with `EvalContext`, its internal state does not relay on the session or other complex contexts that keeps immutable for most fields.
| 216 | // The "static" means comparing with `EvalContext`, its internal state does not relay on the session or other |
| 217 | // complex contexts that keeps immutable for most fields. |
| 218 | type EvalContext struct { |
| 219 | id uint64 |
| 220 | evalCtxState |
| 221 | } |
| 222 | |
| 223 | // NewEvalContext creates a new `EvalContext` with the given options. |
| 224 | func NewEvalContext(opt ...EvalCtxOption) *EvalContext { |
nothing calls this directly
no outgoing calls
no test coverage detected