prog is the internal implementation of the Program interface.
| 146 | |
| 147 | // prog is the internal implementation of the Program interface. |
| 148 | type 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. |
nothing calls this directly
no outgoing calls
no test coverage detected