CostEstimatorOptions configure type-check time options for estimating expression cost.
(costOpts ...checker.CostOption)
| 737 | |
| 738 | // CostEstimatorOptions configure type-check time options for estimating expression cost. |
| 739 | func CostEstimatorOptions(costOpts ...checker.CostOption) EnvOption { |
| 740 | return func(e *Env) (*Env, error) { |
| 741 | e.costOptions = append(e.costOptions, costOpts...) |
| 742 | return e, nil |
| 743 | } |
| 744 | } |
| 745 | |
| 746 | // CostTrackerOptions configures a set of options for cost-tracking. |
| 747 | // |
no outgoing calls