ExcludeOverloads defines an OverloadSelector which deny-lists a set of overloads by their ids.
(overloadIDs ...string)
| 218 | |
| 219 | // ExcludeOverloads defines an OverloadSelector which deny-lists a set of overloads by their ids. |
| 220 | func 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 |
no outgoing calls
no test coverage detected