(ctx *cel.OptimizerContext, a *ast.AST)
| 306 | } |
| 307 | |
| 308 | func (opt *replaceOptimizer) Optimize(ctx *cel.OptimizerContext, a *ast.AST) *ast.AST { |
| 309 | opt.t.Helper() |
| 310 | copy := ctx.CopyASTAndMetadata(opt.targetAST) |
| 311 | return ctx.NewAST(copy) |
| 312 | } |
| 313 | |
| 314 | func getMacroKeys(macroCalls map[int64]ast.Expr) []int { |
| 315 | keys := []int{} |
nothing calls this directly
no test coverage detected