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