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

Method ExtendEnv

cel/optimizer.go:251–258  ·  view source on GitHub ↗

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

(opts ...EnvOption)

Source from the content-addressed store, hash-verified

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

Callers 2

OptimizeMethod · 0.80
OptimizeMethod · 0.80

Calls 1

ExtendMethod · 0.45

Tested by

no test coverage detected