MCPcopy Create free account
hub / github.com/cel-expr/cel-go / prog

Struct prog

cel/program.go:148–167  ·  view source on GitHub ↗

prog is the internal implementation of the Program interface.

Source from the content-addressed store, hash-verified

146
147// prog is the internal implementation of the Program interface.
148type prog struct {
149 *Env
150 evalOpts EvalOption
151 defaultVars Activation
152 dispatcher interpreter.Dispatcher
153 interpreter interpreter.Interpreter
154 interruptCheckFrequency uint
155
156 // Intermediate state used to configure the InterpretableDecorator set provided
157 // to the initInterpretable call.
158 plannerOptions []interpreter.PlannerOption
159 regexOptimizations []*interpreter.RegexOptimization
160
161 // Interpretable configured from an Ast and aggregate decorator set based on program options.
162 interpretable interpreter.InterpretableV2
163 observable *interpreter.ObservableInterpretable
164 callCostEstimator interpreter.ActualCostEstimator
165 costOptions []interpreter.CostTrackerOption
166 costLimit *uint64
167}
168
169// newProgram creates a program instance with an environment, an ast, and an optional list of
170// ProgramOption values.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected