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

Function IncludeOverloads

common/decls/decls.go:208–217  ·  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

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

Callers 2

IncludeOverloadsFunction · 0.92
SubsetFunctionMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected