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

Method ExtendEnv

cel/optimizer.go:250–257  ·  view source on GitHub ↗

ExtendEnv auguments the context's environment with the additional options.

(opts ...EnvOption)

Source from the content-addressed store, hash-verified

248
249// ExtendEnv auguments the context's environment with the additional options.
250func (opt *OptimizerContext) ExtendEnv(opts ...EnvOption) error {
251 e, err := opt.Env.Extend(opts...)
252 if err != nil {
253 return err
254 }
255 opt.Env = e
256 return nil
257}
258
259// ASTOptimizer applies an optimization over an AST and returns the optimized result.
260type ASTOptimizer interface {

Callers 2

OptimizeMethod · 0.80
OptimizeMethod · 0.80

Calls 1

ExtendMethod · 0.45

Tested by

no test coverage detected