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

Function NewReceiverVarArgMacro

cel/macro.go:206–209  ·  view source on GitHub ↗

NewReceiverVarArgMacro creates a Macro for a receiver function matching a variable arg count. Deprecated: use ReceiverVarArgMacro

(function string, expander MacroExpander)

Source from the content-addressed store, hash-verified

204//
205// Deprecated: use ReceiverVarArgMacro
206func NewReceiverVarArgMacro(function string, expander MacroExpander) Macro {
207 expand := adaptingExpander{expander}
208 return parser.NewReceiverVarArgMacro(function, expand.Expander)
209}
210
211// HasMacroExpander expands the input call arguments into a presence test, e.g. has(<operand>.field)
212func HasMacroExpander(meh MacroExprHelper, target *exprpb.Expr, args []*exprpb.Expr) (*exprpb.Expr, *Error) {

Callers

nothing calls this directly

Calls 1

NewReceiverVarArgMacroFunction · 0.92

Tested by

no test coverage detected