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

Function extractIterVar

ext/comprehensions.go:422–428  ·  view source on GitHub ↗
(mef cel.MacroExprFactory, target ast.Expr)

Source from the content-addressed store, hash-verified

420}
421
422func 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}

Callers 1

extractIterVarsFunction · 0.85

Calls 3

extractIdentFunction · 0.70
NewErrorMethod · 0.65
IDMethod · 0.65

Tested by

no test coverage detected