CompileOptions implements the Library interface method.
()
| 87 | |
| 88 | // CompileOptions implements the Library interface method. |
| 89 | func (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. |
| 101 | func (protoLib) ProgramOptions() []cel.ProgramOption { |
nothing calls this directly
no test coverage detected