(mef cel.MacroExprFactory, target ast.Expr, args []ast.Expr)
| 359 | } |
| 360 | |
| 361 | func celBlock(mef cel.MacroExprFactory, target ast.Expr, args []ast.Expr) (ast.Expr, *cel.Error) { |
| 362 | if !isCELNamespace(target) { |
| 363 | return nil, nil |
| 364 | } |
| 365 | bindings := args[0] |
| 366 | if bindings.Kind() != ast.ListKind { |
| 367 | return bindings, mef.NewError(bindings.ID(), "cel.block requires the first arg to be a list literal") |
| 368 | } |
| 369 | return mef.NewCall("cel.@block", args...), nil |
| 370 | } |
| 371 | |
| 372 | func celIndex(mef cel.MacroExprFactory, target ast.Expr, args []ast.Expr) (ast.Expr, *cel.Error) { |
| 373 | if !isCELNamespace(target) { |
nothing calls this directly
no test coverage detected