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

Method MacroKey

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

MacroKey implements the Macro interface method.

()

Source from the content-addressed store, hash-verified

157
158// MacroKey implements the Macro interface method.
159func (m *macro) MacroKey() string {
160 if m.varArgStyle {
161 return makeVarArgMacroKey(m.function, m.receiverStyle)
162 }
163 return makeMacroKey(m.function, m.argCount, m.receiverStyle)
164}
165
166// Documentation generates documentation and examples for the macro.
167func (m *macro) Documentation() *common.Doc {

Callers

nothing calls this directly

Calls 2

makeVarArgMacroKeyFunction · 0.85
makeMacroKeyFunction · 0.85

Tested by

no test coverage detected