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

Function VariableDecls

cel/decls.go:157–164  ·  view source on GitHub ↗

VariableDecls configures a set of fully defined cel.VariableDecl instances in the environment.

(vars ...*decls.VariableDecl)

Source from the content-addressed store, hash-verified

155
156// VariableDecls configures a set of fully defined cel.VariableDecl instances in the environment.
157func VariableDecls(vars ...*decls.VariableDecl) EnvOption {
158 return func(e *Env) (*Env, error) {
159 for _, v := range vars {
160 e.variables = append(e.variables, v)
161 }
162 return e, nil
163 }
164}
165
166// Function defines a function and overloads with optional singleton or per-overload bindings.
167//

Callers 4

ParsePolicyVariablesFunction · 0.92
updateImplMethod · 0.92
configToEnvOptionsFunction · 0.85
DeclareContextProtoFunction · 0.85

Calls

no outgoing calls

Tested by 1

ParsePolicyVariablesFunction · 0.74