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

Function evalCall

cel/validator.go:281–289  ·  view source on GitHub ↗
(env *Env, call, arg ast.Expr)

Source from the content-addressed store, hash-verified

279}
280
281func evalCall(env *Env, call, arg ast.Expr) error {
282 ast := &Ast{impl: ast.NewAST(call, ast.NewSourceInfo(nil))}
283 prg, err := env.Program(ast)
284 if err != nil {
285 return err
286 }
287 _, _, err = prg.Eval(NoVars())
288 return err
289}
290
291func compileRegex(_ *Env, _, arg ast.Expr) error {
292 pattern := arg.AsLiteral().Value().(string)

Callers

nothing calls this directly

Calls 4

NoVarsFunction · 0.85
NewASTMethod · 0.80
ProgramMethod · 0.80
EvalMethod · 0.65

Tested by

no test coverage detected