CostEstimatorOptions configure type-check time options for estimating expression cost.
(costOpts ...checker.CostOption)
| 793 | |
| 794 | // CostEstimatorOptions configure type-check time options for estimating expression cost. |
| 795 | func CostEstimatorOptions(costOpts ...checker.CostOption) EnvOption { |
| 796 | return func(e *Env) (*Env, error) { |
| 797 | e.costOptions = append(e.costOptions, costOpts...) |
| 798 | return e, nil |
| 799 | } |
| 800 | } |
| 801 | |
| 802 | // CostTrackerOptions configures a set of options for cost-tracking. |
| 803 | // |
no outgoing calls