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

Function IncludeOverloads

common/decls/decls.go:203–212  ·  view source on GitHub ↗

IncludeOverloads defines an OverloadSelector which allow-lists a set of overloads by their ids.

(overloadIDs ...string)

Source from the content-addressed store, hash-verified

201
202// IncludeOverloads defines an OverloadSelector which allow-lists a set of overloads by their ids.
203func IncludeOverloads(overloadIDs ...string) OverloadSelector {
204 return func(overload *OverloadDecl) bool {
205 for _, oID := range overloadIDs {
206 if overload.id == oID {
207 return true
208 }
209 }
210 return false
211 }
212}
213
214// ExcludeOverloads defines an OverloadSelector which deny-lists a set of overloads by their ids.
215func ExcludeOverloads(overloadIDs ...string) OverloadSelector {

Callers 2

IncludeOverloadsFunction · 0.92
SubsetFunctionMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected