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