(mef cel.MacroExprFactory, target ast.Expr)
| 420 | } |
| 421 | |
| 422 | func extractIterVar(mef cel.MacroExprFactory, target ast.Expr) (string, *cel.Error) { |
| 423 | iterVar, found := extractIdent(target) |
| 424 | if !found { |
| 425 | return "", mef.NewError(target.ID(), "argument must be a simple name") |
| 426 | } |
| 427 | return iterVar, nil |
| 428 | } |
no test coverage detected