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

Function evalCall

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

Source from the content-addressed store, hash-verified

307}
308
309func evalCall(env *Env, call, arg ast.Expr) error {
310 ast := &Ast{impl: ast.NewAST(call, ast.NewSourceInfo(nil))}
311 prg, err := env.Program(ast)
312 if err != nil {
313 return err
314 }
315 resCh := prg.ConcurrentEval(context.Background(), NoVars())
316 res := <-resCh
317 return res.Err
318}
319
320func compileRegex(_ *Env, _, arg ast.Expr) error {
321 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