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

Function ExcludeOverloads

common/decls/decls.go:220–229  ·  view source on GitHub ↗

ExcludeOverloads defines an OverloadSelector which deny-lists a set of overloads by their ids.

(overloadIDs ...string)

Source from the content-addressed store, hash-verified

218
219// ExcludeOverloads defines an OverloadSelector which deny-lists a set of overloads by their ids.
220func ExcludeOverloads(overloadIDs ...string) OverloadSelector {
221 return func(overload *OverloadDecl) bool {
222 for _, oID := range overloadIDs {
223 if overload.id == oID {
224 return false
225 }
226 }
227 return true
228 }
229}
230
231// Subset returns a new function declaration which contains only the overloads with the specified IDs.
232// If the subset function contains no overloads, then nil is returned to indicate the function is not

Callers 3

ToConfigMethod · 0.92
ExcludeOverloadsFunction · 0.92
SubsetFunctionMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected