(env *Env, call, arg ast.Expr)
| 307 | } |
| 308 | |
| 309 | func 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 | |
| 320 | func compileRegex(_ *Env, _, arg ast.Expr) error { |
| 321 | pattern := arg.AsLiteral().Value().(string) |
nothing calls this directly
no test coverage detected