99
1010// MARK: - API
1111
12- /*System 0.0.2, @available( macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
12+ @ available ( /*System 0.0.2: macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0*/iOS 8 , * )
1313extension FilePath {
1414 /// Represents a root of a file path.
1515 ///
@@ -72,7 +72,7 @@ extension FilePath {
7272 }
7373}
7474
75- /*System 0.0.2, @available( macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
75+ @ available ( /*System 0.0.2: macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0*/iOS 8 , * )
7676extension FilePath . Component {
7777
7878 /// Whether a component is a regular file or directory name, or a special
@@ -97,7 +97,7 @@ extension FilePath.Component {
9797 }
9898}
9999
100- /*System 0.0.2, @available( macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
100+ @ available ( /*System 0.0.2: macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0*/iOS 8 , * )
101101extension FilePath . Root {
102102 // TODO: Windows analysis APIs
103103}
@@ -183,17 +183,17 @@ extension _PathSlice {
183183 internal var _storage : SystemString { _path. _storage }
184184}
185185
186- /*System 0.0.2, @available( macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
186+ @ available ( /*System 0.0.2: macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0*/iOS 8 , * )
187187extension FilePath . Component : _PathSlice {
188188}
189- /*System 0.0.2, @available( macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
189+ @ available ( /*System 0.0.2: macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0*/iOS 8 , * )
190190extension FilePath . Root : _PathSlice {
191191 internal var _range : Range < SystemString . Index > {
192192 ( ..< _rootEnd) . relative ( to: _path. _storage)
193193 }
194194}
195195
196- /*System 0.0.1, @available( macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)*/
196+ @ available ( /*System 0.0.1: macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0*/iOS 8 , * )
197197extension FilePath : _PlatformStringable {
198198 func _withPlatformString< Result> ( _ body: ( UnsafePointer < CInterop . PlatformChar > ) throws -> Result ) rethrows -> Result {
199199 try _storage. withPlatformString ( body)
@@ -205,7 +205,7 @@ extension FilePath: _PlatformStringable {
205205
206206}
207207
208- /*System 0.0.2, @available( macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
208+ @ available ( /*System 0.0.2: macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0*/iOS 8 , * )
209209extension FilePath . Component {
210210 // The index of the `.` denoting an extension
211211 internal func _extensionIndex( ) -> SystemString . Index ? {
@@ -234,7 +234,7 @@ internal func _makeExtension(_ ext: String) -> SystemString {
234234 return result
235235}
236236
237- /*System 0.0.2, @available( macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
237+ @ available ( /*System 0.0.2: macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0*/iOS 8 , * )
238238extension FilePath . Component {
239239 internal init ? ( _ str: SystemString ) {
240240 // FIXME: explicit null root? Or something else?
@@ -247,7 +247,7 @@ extension FilePath.Component {
247247 }
248248}
249249
250- /*System 0.0.2, @available( macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
250+ @ available ( /*System 0.0.2: macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0*/iOS 8 , * )
251251extension FilePath . Root {
252252 internal init ? ( _ str: SystemString ) {
253253 // FIXME: explicit null root? Or something else?
@@ -262,7 +262,7 @@ extension FilePath.Root {
262262
263263// MARK: - Invariants
264264
265- /*System 0.0.2, @available( macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
265+ @ available ( /*System 0.0.2: macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0*/iOS 8 , * )
266266extension FilePath . Component {
267267 // TODO: ensure this all gets easily optimized away in release...
268268 internal func _invariantCheck( ) {
@@ -275,7 +275,7 @@ extension FilePath.Component {
275275 }
276276}
277277
278- /*System 0.0.2, @available( macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
278+ @ available ( /*System 0.0.2: macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0*/iOS 8 , * )
279279extension FilePath . Root {
280280 internal func _invariantCheck( ) {
281281 #if DEBUG
0 commit comments