MCPcopy Create free account
hub / github.com/cel-expr/cel-go / ASTOptimizer

Interface ASTOptimizer

cel/optimizer.go:261–264  ·  view source on GitHub ↗

ASTOptimizer applies an optimization over an AST and returns the optimized result.

Source from the content-addressed store, hash-verified

259
260// ASTOptimizer applies an optimization over an AST and returns the optimized result.
261type ASTOptimizer interface {
262 // Optimize optimizes a type-checked AST within an Environment and accumulates any issues.
263 Optimize(*OptimizerContext, *ast.AST) *ast.AST
264}
265
266type optimizerExprFactory struct {
267 *idGenerator

Callers 1

OptimizeMethod · 0.65

Implementers 12

testUnconditionalComposerpolicy/composer_test.go
ruleComposerImplpolicy/composer.go
ruleUnnesterImplpolicy/composer.go
setsLibext/sets.go
identityOptimizercel/optimizer_test.go
testOptimizercel/optimizer_test.go
replaceOptimizercel/optimizer_test.go
inliningOptimizercel/inlining.go
StaticOptimizercel/optimizer.go
testVariadicLogicOptimizercel/folding_test.go
bindToBlockOptimizercommon/cost/cost_bounds_test.go

Calls

no outgoing calls

Tested by

no test coverage detected