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

Method Functions

cel/env.go:624–630  ·  view source on GitHub ↗

Functions returns a shallow copy of the Functions, keyed by function name, that have been configured in the environment.

()

Source from the content-addressed store, hash-verified

622
623// Functions returns a shallow copy of the Functions, keyed by function name, that have been configured in the environment.
624func (e *Env) Functions() map[string]*decls.FunctionDecl {
625 shallowCopy := make(map[string]*decls.FunctionDecl, len(e.functions))
626 for nm, fn := range e.functions {
627 shallowCopy[nm] = fn
628 }
629 return shallowCopy
630}
631
632// Variables returns a shallow copy of the variables associated with the environment.
633func (e *Env) Variables() []*decls.VariableDecl {

Callers 5

ToConfigMethod · 0.95
TestFunctionsFunction · 0.95
TestFunctionsForVersionsFunction · 0.80
RenderMethod · 0.80
isLateBoundFunctionCallFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestFunctionsFunction · 0.76
TestFunctionsForVersionsFunction · 0.64