@@ -4,23 +4,24 @@ import PackageDescription
44import CompilerPluginSupport
55
66// Availability Macros
7- let availabilityTags = [ _Availability ( " AsyncAlgorithms " ) ]
7+ let availabilityTags = [ Availability ( " AsyncAlgorithms " ) ]
88let versionNumbers = [ " 1.0 " ]
99
1010// Availability Macro Utilities
11- enum _OSAvailability : String {
11+ enum OSAvailability : String {
1212 // This should match the package's deployment target
13- case alwaysAvailable = " macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0 "
13+ case initialIntroduction = " macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0 "
14+ case pending = " macOS 9999, iOS 9999, tvOS 9999, watchOS 9999 "
1415 // Use 10000 for future availability to avoid compiler magic around
1516 // the 9999 version number but ensure it is greater than 9999
1617 case future = " macOS 10000, iOS 10000, tvOS 10000, watchOS 10000 "
1718}
1819
19- struct _Availability {
20+ struct Availability {
2021 let name : String
21- let osAvailability : _OSAvailability
22+ let osAvailability : OSAvailability
2223
23- init ( _ name: String , availability: _OSAvailability = . alwaysAvailable ) {
24+ init ( _ name: String , availability: OSAvailability = . initialIntroduction ) {
2425 self . name = name
2526 self . osAvailability = availability
2627 }
0 commit comments