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

Function IncludeOverloads

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

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

Callers 2

IncludeOverloadsFunction · 0.92
SubsetFunctionMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected