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

Function evalCall

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

Source from the content-addressed store, hash-verified

313}
314
315func evalCall(env *Env, call, arg ast.Expr) error {
316 ast := &Ast{impl: ast.NewAST(call, ast.NewSourceInfo(nil))}
317 prg, err := env.Program(ast)
318 if err != nil {
319 return err
320 }
321 resCh := prg.ConcurrentEval(context.Background(), NoVars())
322 res := <-resCh
323 return res.Err
324}
325
326func compileRegex(_ *Env, _, arg ast.Expr) error {
327 pattern := arg.AsLiteral().Value().(string)

Callers

nothing calls this directly

Calls 4

NoVarsFunction · 0.85
NewASTMethod · 0.80
ProgramMethod · 0.80
ConcurrentEvalMethod · 0.65

Tested by

no test coverage detected