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

Method ArgCount

parser/macro.go:109–109  ·  view source on GitHub ↗

ArgCount for the function call. When the macro is a var-arg style macro, the return value will be zero, but the MacroKey will contain a `*` where the arg count would have been.

()

Source from the content-addressed store, hash-verified

107 // When the macro is a var-arg style macro, the return value will be zero, but the MacroKey
108 // will contain a `*` where the arg count would have been.
109 ArgCount() int
110
111 // IsReceiverStyle returns true if the macro matches a receiver style call.
112 IsReceiverStyle() bool

Callers 4

setFunctionMethod · 0.65
TestReceiverVarArgMacroFunction · 0.65
TestGlobalVarArgMacroFunction · 0.65
TestReceiverVarArgMacroFunction · 0.65

Implementers 1

macroparser/macro.go

Calls

no outgoing calls

Tested by 3

TestReceiverVarArgMacroFunction · 0.52
TestGlobalVarArgMacroFunction · 0.52
TestReceiverVarArgMacroFunction · 0.52