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

Function NewReceiverMacro

cel/macro.go:190–193  ·  view source on GitHub ↗

NewReceiverMacro creates a Macro for a receiver function matching the specified arg count. Deprecated: use ReceiverMacro

(function string, argCount int, expander MacroExpander)

Source from the content-addressed store, hash-verified

188//
189// Deprecated: use ReceiverMacro
190func NewReceiverMacro(function string, argCount int, expander MacroExpander) Macro {
191 expand := adaptingExpander{expander}
192 return parser.NewReceiverMacro(function, argCount, expand.Expander)
193}
194
195// NewGlobalVarArgMacro creates a Macro for a global function with a variable arg count.
196//

Callers 2

TestCustomMacroFunction · 0.70
TestMacroInteropFunction · 0.70

Calls 1

NewReceiverMacroFunction · 0.92

Tested by 2

TestCustomMacroFunction · 0.56
TestMacroInteropFunction · 0.56