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