CostEstimatorOptions configure type-check time options for estimating expression cost.
(costOpts ...cost.CostOption)
| 869 | |
| 870 | // CostEstimatorOptions configure type-check time options for estimating expression cost. |
| 871 | func CostEstimatorOptions(costOpts ...cost.CostOption) EnvOption { |
| 872 | return func(e *Env) (*Env, error) { |
| 873 | e.costOptions = append(e.costOptions, costOpts...) |
| 874 | return e, nil |
| 875 | } |
| 876 | } |
| 877 | |
| 878 | // CostModel configures overload cost estimators and cost trackers from a set of cost.OverloadModel definitions. |
| 879 | // |
no outgoing calls