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