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

Method CompileOptions

ext/protos.go:89–98  ·  view source on GitHub ↗

CompileOptions implements the Library interface method.

()

Source from the content-addressed store, hash-verified

87
88// CompileOptions implements the Library interface method.
89func (protoLib) CompileOptions() []cel.EnvOption {
90 return []cel.EnvOption{
91 cel.Macros(
92 // proto.getExt(msg, select_expression)
93 cel.ReceiverMacro(getExtension, 2, getProtoExt),
94 // proto.hasExt(msg, select_expression)
95 cel.ReceiverMacro(hasExtension, 2, hasProtoExt),
96 ),
97 }
98}
99
100// ProgramOptions implements the Library interface method.
101func (protoLib) ProgramOptions() []cel.ProgramOption {

Callers

nothing calls this directly

Calls 2

MacrosFunction · 0.92
ReceiverMacroFunction · 0.92

Tested by

no test coverage detected