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

Function ExcludeOverloads

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

213
214// ExcludeOverloads defines an OverloadSelector which deny-lists a set of overloads by their ids.
215func ExcludeOverloads(overloadIDs ...string) OverloadSelector {
216 return func(overload *OverloadDecl) bool {
217 for _, oID := range overloadIDs {
218 if overload.id == oID {
219 return false
220 }
221 }
222 return true
223 }
224}
225
226// Subset returns a new function declaration which contains only the overloads with the specified IDs.
227// 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