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

Struct macro

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

Macro type which declares the function name and arg count expected for the macro, as well as a macro expansion function.

Source from the content-addressed store, hash-verified

126// Macro type which declares the function name and arg count expected for the
127// macro, as well as a macro expansion function.
128type macro struct {
129 function string
130 receiverStyle bool
131 varArgStyle bool
132 argCount int
133 expander MacroExpander
134 doc string
135 examples []string
136}
137
138// Function returns the macro's function name (i.e. the function whose syntax it mimics).
139func (m *macro) Function() string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected