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

Function ReceiverMacro

cel/macro.go:165–167  ·  view source on GitHub ↗

ReceiverMacro creates a Macro for a receiver function matching the specified arg count.

(function string, argCount int, factory MacroFactory, opts ...MacroOpt)

Source from the content-addressed store, hash-verified

163
164// ReceiverMacro creates a Macro for a receiver function matching the specified arg count.
165func ReceiverMacro(function string, argCount int, factory MacroFactory, opts ...MacroOpt) Macro {
166 return parser.NewReceiverMacro(function, argCount, factory, opts...)
167}
168
169// GlobalVarArgMacro creates a Macro for a global function with a variable arg count.
170func GlobalVarArgMacro(function string, factory MacroFactory, opts ...MacroOpt) Macro {

Callers 7

CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.85
TestMacroModernFunction · 0.85

Calls 1

NewReceiverMacroFunction · 0.92

Tested by 2

CompileOptionsMethod · 0.74
TestMacroModernFunction · 0.68