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

Function evalCall

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

Source from the content-addressed store, hash-verified

317}
318
319func evalCall(env *Env, call, arg ast.Expr) error {
320 ast := &Ast{impl: ast.NewAST(call, ast.NewSourceInfo(nil))}
321 prg, err := env.Program(ast, BypassAsyncProtection())
322 if err != nil {
323 return err
324 }
325 _, _, err = prg.Eval(NoVars())
326 return err
327}
328
329func compileRegex(_ *Env, _, arg ast.Expr) error {
330 pattern := arg.AsLiteral().Value().(string)

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected