1
- #if compiler(<6)
1
+ #if compiler(<6.1 )
2
2
@_silgen_name ( " swift_reflectionMirror_normalizedType " )
3
3
internal func _getNormalizedType< T> ( _: T , type: Any . Type ) -> Any . Type
4
4
@@ -24,7 +24,7 @@ internal struct _FastChildIterator: IteratorProtocol {
24
24
deinit { self . freeFunc ( self . ptr) }
25
25
}
26
26
27
- #if compiler(<6)
27
+ #if compiler(<6.1 )
28
28
private let subject : AnyObject
29
29
private let type : Any . Type
30
30
private let childCount : Int
@@ -34,7 +34,7 @@ internal struct _FastChildIterator: IteratorProtocol {
34
34
#endif
35
35
private var lastNameBox : _CStringBox ?
36
36
37
- #if compiler(<6)
37
+ #if compiler(<6.1 )
38
38
fileprivate init( subject: AnyObject, type: Any . Type, childCount: Int) {
39
39
self . subject = subject
40
40
self . type = type
@@ -48,7 +48,7 @@ internal struct _FastChildIterator: IteratorProtocol {
48
48
#endif
49
49
50
50
init ( subject: AnyObject) {
51
- #if compiler(<6)
51
+ #if compiler(<6.1 )
52
52
let type = _getNormalizedType ( subject, type: Swift . type ( of: subject) )
53
53
self . init (
54
54
subject: subject,
@@ -69,7 +69,7 @@ internal struct _FastChildIterator: IteratorProtocol {
69
69
/// > Note: Ironically, in the fallback case that uses `Mirror` directly, preserving this semantic actually imposes
70
70
/// > an _additional_ performance penalty.
71
71
mutating func next( ) -> ( name: UnsafePointer < CChar > ? , child: Any ) ? {
72
- #if compiler(<6)
72
+ #if compiler(<6.1 )
73
73
guard self . index < self . childCount else {
74
74
self . lastNameBox = nil // ensure any lingering name gets freed
75
75
return nil
@@ -105,7 +105,7 @@ internal struct _FastChildIterator: IteratorProtocol {
105
105
}
106
106
107
107
internal struct _FastChildSequence : Sequence {
108
- #if compiler(<6)
108
+ #if compiler(<6.1 )
109
109
private let subject : AnyObject
110
110
private let type : Any . Type
111
111
private let childCount : Int
@@ -114,7 +114,7 @@ internal struct _FastChildSequence: Sequence {
114
114
#endif
115
115
116
116
init ( subject: AnyObject ) {
117
- #if compiler(<6)
117
+ #if compiler(<6.1 )
118
118
self . subject = subject
119
119
self . type = _getNormalizedType ( subject, type: Swift . type ( of: subject) )
120
120
self . childCount = _getChildCount ( subject, type: self . type)
@@ -124,7 +124,7 @@ internal struct _FastChildSequence: Sequence {
124
124
}
125
125
126
126
func makeIterator( ) -> _FastChildIterator {
127
- #if compiler(<6)
127
+ #if compiler(<6.1 )
128
128
_FastChildIterator ( subject: self . subject, type: self . type, childCount: self . childCount)
129
129
#else
130
130
_FastChildIterator ( iterator: self . children. makeIterator ( ) )
0 commit comments