3
3
4
4
// REQUIRES: OS=macosx
5
5
6
- // CHECK: {{^}}(root versions=[50,+Inf)
7
-
8
- // CHECK-NEXT: {{^}} (decl versions=[51,+Inf) decl=SomeClass
9
- // CHECK-NEXT: {{^}} (decl versions=[52,+Inf) decl=someMethod()
10
- // CHECK-NEXT: {{^}} (decl versions=[53,+Inf) decl=someInnerFunc()
11
- // CHECK-NEXT: {{^}} (decl versions=[53,+Inf) decl=InnerClass
12
- // CHECK-NEXT: {{^}} (decl versions=[54,+Inf) decl=innerClassMethod
13
- // CHECK-NEXT: {{^}} (decl_implicit versions=[51,+Inf) decl=someStaticProperty
14
- // CHECK-NEXT: {{^}} (decl versions=[52,+Inf) decl=someStaticProperty
15
- // CHECK-NEXT: {{^}} (decl_implicit versions=[51,+Inf) decl=someStaticPropertyInferredType
16
- // CHECK-NEXT: {{^}} (decl versions=[52,+Inf) decl=someStaticPropertyInferredType
17
- // CHECK-NEXT: {{^}} (decl_implicit versions=[51,+Inf) decl=multiPatternStaticPropertyA
18
- // CHECK-NEXT: {{^}} (decl versions=[52,+Inf) decl=multiPatternStaticPropertyA
19
- // CHECK-NEXT: {{^}} (decl_implicit versions=[51,+Inf) decl=someComputedProperty
20
- // CHECK-NEXT: {{^}} (decl versions=[52,+Inf) decl=someComputedProperty
21
- // CHECK-NEXT: {{^}} (decl versions=[52,+Inf) decl=someOtherMethod()
6
+ // CHECK: {{^}}(root version=50
7
+
8
+ // CHECK-NEXT: {{^}} (decl version=51 decl=SomeClass
9
+ // CHECK-NEXT: {{^}} (decl version=52 decl=someMethod()
10
+ // CHECK-NEXT: {{^}} (decl version=53 decl=someInnerFunc()
11
+ // CHECK-NEXT: {{^}} (decl version=53 decl=InnerClass
12
+ // CHECK-NEXT: {{^}} (decl version=54 decl=innerClassMethod
13
+ // CHECK-NEXT: {{^}} (decl_implicit version=51 decl=someStaticProperty
14
+ // CHECK-NEXT: {{^}} (decl version=52 decl=someStaticProperty
15
+ // CHECK-NEXT: {{^}} (decl_implicit version=51 decl=someStaticPropertyInferredType
16
+ // CHECK-NEXT: {{^}} (decl version=52 decl=someStaticPropertyInferredType
17
+ // CHECK-NEXT: {{^}} (decl_implicit version=51 decl=multiPatternStaticPropertyA
18
+ // CHECK-NEXT: {{^}} (decl version=52 decl=multiPatternStaticPropertyA
19
+ // CHECK-NEXT: {{^}} (decl_implicit version=51 decl=someComputedProperty
20
+ // CHECK-NEXT: {{^}} (decl version=52 decl=someComputedProperty
21
+ // CHECK-NEXT: {{^}} (decl version=52 decl=someOtherMethod()
22
22
@available ( OSX 51 , * )
23
23
class SomeClass {
24
24
@available ( OSX 52 , * )
@@ -56,14 +56,14 @@ class SomeClass {
56
56
func someOtherMethod( ) { }
57
57
}
58
58
59
- // CHECK-NEXT: {{^}} (decl versions=[51,+Inf) decl=someFunction()
59
+ // CHECK-NEXT: {{^}} (decl version=51 decl=someFunction()
60
60
@available ( OSX 51 , * )
61
61
func someFunction( ) { }
62
62
63
- // CHECK-NEXT: {{^}} (decl versions=[51,+Inf) decl=SomeProtocol
64
- // CHECK-NEXT: {{^}} (decl versions=[52,+Inf) decl=protoMethod()
65
- // CHECK-NEXT: {{^}} (decl_implicit versions=[51,+Inf) decl=protoProperty
66
- // CHECK-NEXT: {{^}} (decl versions=[52,+Inf) decl=protoProperty
63
+ // CHECK-NEXT: {{^}} (decl version=51 decl=SomeProtocol
64
+ // CHECK-NEXT: {{^}} (decl version=52 decl=protoMethod()
65
+ // CHECK-NEXT: {{^}} (decl_implicit version=51 decl=protoProperty
66
+ // CHECK-NEXT: {{^}} (decl version=52 decl=protoProperty
67
67
@available ( OSX 51 , * )
68
68
protocol SomeProtocol {
69
69
@available ( OSX 52 , * )
@@ -73,27 +73,27 @@ protocol SomeProtocol {
73
73
var protoProperty : Int { get }
74
74
}
75
75
76
- // CHECK-NEXT: {{^}} (decl_implicit versions=[50,+Inf) decl=extension.SomeClass
77
- // CHECK-NEXT: {{^}} (decl versions=[51,+Inf) decl=extension.SomeClass
78
- // CHECK-NEXT: {{^}} (decl versions=[52,+Inf) decl=someExtensionFunction()
76
+ // CHECK-NEXT: {{^}} (decl_implicit version=50 decl=extension.SomeClass
77
+ // CHECK-NEXT: {{^}} (decl version=51 decl=extension.SomeClass
78
+ // CHECK-NEXT: {{^}} (decl version=52 decl=someExtensionFunction()
79
79
@available ( OSX 51 , * )
80
80
extension SomeClass {
81
81
@available ( OSX 52 , * )
82
82
func someExtensionFunction( ) { }
83
83
}
84
84
85
- // CHECK-NEXT: {{^}} (decl versions=[51,+Inf) decl=functionWithStmtCondition
86
- // CHECK-NEXT: {{^}} (condition_following_availability versions=[52,+Inf)
87
- // CHECK-NEXT: {{^}} (condition_following_availability versions=[53,+Inf)
88
- // CHECK-NEXT: {{^}} (if_then versions=[53,+Inf)
89
- // CHECK-NEXT: {{^}} (condition_following_availability versions=[54,+Inf)
90
- // CHECK-NEXT: {{^}} (if_then versions=[54,+Inf)
91
- // CHECK-NEXT: {{^}} (condition_following_availability versions=[55,+Inf)
92
- // CHECK-NEXT: {{^}} (decl versions=[55,+Inf) decl=funcInGuardElse()
93
- // CHECK-NEXT: {{^}} (guard_fallthrough versions=[55,+Inf)
94
- // CHECK-NEXT: {{^}} (condition_following_availability versions=[56,+Inf)
95
- // CHECK-NEXT: {{^}} (guard_fallthrough versions=[56,+Inf)
96
- // CHECK-NEXT: {{^}} (decl versions=[57,+Inf) decl=funcInInnerIfElse()
85
+ // CHECK-NEXT: {{^}} (decl version=51 decl=functionWithStmtCondition
86
+ // CHECK-NEXT: {{^}} (condition_following_availability version=52
87
+ // CHECK-NEXT: {{^}} (condition_following_availability version=53
88
+ // CHECK-NEXT: {{^}} (if_then version=53
89
+ // CHECK-NEXT: {{^}} (condition_following_availability version=54
90
+ // CHECK-NEXT: {{^}} (if_then version=54
91
+ // CHECK-NEXT: {{^}} (condition_following_availability version=55
92
+ // CHECK-NEXT: {{^}} (decl version=55 decl=funcInGuardElse()
93
+ // CHECK-NEXT: {{^}} (guard_fallthrough version=55
94
+ // CHECK-NEXT: {{^}} (condition_following_availability version=56
95
+ // CHECK-NEXT: {{^}} (guard_fallthrough version=56
96
+ // CHECK-NEXT: {{^}} (decl version=57 decl=funcInInnerIfElse()
97
97
@available ( OSX 51 , * )
98
98
func functionWithStmtCondition( ) {
99
99
if #available( OSX 52 , * ) ,
@@ -112,11 +112,11 @@ func functionWithStmtCondition() {
112
112
}
113
113
}
114
114
115
- // CHECK-NEXT: {{^}} (decl versions=[51,+Inf) decl=functionWithUnnecessaryStmtCondition
116
- // CHECK-NEXT: {{^}} (condition_following_availability versions=[53,+Inf)
117
- // CHECK-NEXT: {{^}} (if_then versions=[53,+Inf)
118
- // CHECK-NEXT: {{^}} (condition_following_availability versions=[54,+Inf)
119
- // CHECK-NEXT: {{^}} (if_then versions=[54,+Inf)
115
+ // CHECK-NEXT: {{^}} (decl version=51 decl=functionWithUnnecessaryStmtCondition
116
+ // CHECK-NEXT: {{^}} (condition_following_availability version=53
117
+ // CHECK-NEXT: {{^}} (if_then version=53
118
+ // CHECK-NEXT: {{^}} (condition_following_availability version=54
119
+ // CHECK-NEXT: {{^}} (if_then version=54
120
120
121
121
@available ( OSX 51 , * )
122
122
func functionWithUnnecessaryStmtCondition( ) {
@@ -142,13 +142,13 @@ func functionWithUnnecessaryStmtCondition() {
142
142
}
143
143
}
144
144
145
- // CHECK-NEXT: {{^}} (decl versions=[51,+Inf) decl=functionWithUnnecessaryStmtConditionsHavingElseBranch
146
- // CHECK-NEXT: {{^}} (if_else versions=empty
147
- // CHECK-NEXT: {{^}} (decl versions=empty decl=funcInInnerIfElse()
148
- // CHECK-NEXT: {{^}} (if_else versions=empty
149
- // CHECK-NEXT: {{^}} (guard_else versions=empty
150
- // CHECK-NEXT: {{^}} (guard_else versions=empty
151
- // CHECK-NEXT: {{^}} (if_else versions=empty
145
+ // CHECK-NEXT: {{^}} (decl version=51 decl=functionWithUnnecessaryStmtConditionsHavingElseBranch
146
+ // CHECK-NEXT: {{^}} (if_else version=none
147
+ // CHECK-NEXT: {{^}} (decl version=none decl=funcInInnerIfElse()
148
+ // CHECK-NEXT: {{^}} (if_else version=none
149
+ // CHECK-NEXT: {{^}} (guard_else version=none
150
+ // CHECK-NEXT: {{^}} (guard_else version=none
151
+ // CHECK-NEXT: {{^}} (if_else version=none
152
152
153
153
@available ( OSX 51 , * )
154
154
func functionWithUnnecessaryStmtConditionsHavingElseBranch( p: Int ? ) {
@@ -195,10 +195,10 @@ func functionWithUnnecessaryStmtConditionsHavingElseBranch(p: Int?) {
195
195
196
196
}
197
197
198
- // CHECK-NEXT: {{^}} (decl versions=[51,+Inf) decl=functionWithWhile()
199
- // CHECK-NEXT: {{^}} (condition_following_availability versions=[52,+Inf)
200
- // CHECK-NEXT: {{^}} (while_body versions=[52,+Inf)
201
- // CHECK-NEXT: {{^}} (decl versions=[54,+Inf) decl=funcInWhileBody()
198
+ // CHECK-NEXT: {{^}} (decl version=51 decl=functionWithWhile()
199
+ // CHECK-NEXT: {{^}} (condition_following_availability version=52
200
+ // CHECK-NEXT: {{^}} (while_body version=52
201
+ // CHECK-NEXT: {{^}} (decl version=54 decl=funcInWhileBody()
202
202
@available ( OSX 51 , * )
203
203
func functionWithWhile( ) {
204
204
while #available( OSX 52 , * ) ,
@@ -208,16 +208,16 @@ func functionWithWhile() {
208
208
}
209
209
}
210
210
211
- // CHECK-NEXT: {{^}} (decl_implicit versions=[50,+Inf) decl=extension.SomeClass
212
- // CHECK-NEXT: {{^}} (decl versions=[51,+Inf) decl=extension.SomeClass
213
- // CHECK-NEXT: {{^}} (decl_implicit versions=[51,+Inf) decl=someStaticPropertyWithClosureInit
214
- // CHECK-NEXT: {{^}} (decl versions=[52,+Inf) decl=someStaticPropertyWithClosureInit
215
- // CHECK-NEXT: {{^}} (condition_following_availability versions=[54,+Inf)
216
- // CHECK-NEXT: {{^}} (if_then versions=[54,+Inf)
217
- // CHECK-NEXT: {{^}} (decl_implicit versions=[51,+Inf) decl=someStaticPropertyWithClosureInitInferred
218
- // CHECK-NEXT: {{^}} (decl versions=[52,+Inf) decl=someStaticPropertyWithClosureInitInferred
219
- // CHECK-NEXT: {{^}} (condition_following_availability versions=[54,+Inf)
220
- // CHECK-NEXT: {{^}} (if_then versions=[54,+Inf)
211
+ // CHECK-NEXT: {{^}} (decl_implicit version=50 decl=extension.SomeClass
212
+ // CHECK-NEXT: {{^}} (decl version=51 decl=extension.SomeClass
213
+ // CHECK-NEXT: {{^}} (decl_implicit version=51 decl=someStaticPropertyWithClosureInit
214
+ // CHECK-NEXT: {{^}} (decl version=52 decl=someStaticPropertyWithClosureInit
215
+ // CHECK-NEXT: {{^}} (condition_following_availability version=54
216
+ // CHECK-NEXT: {{^}} (if_then version=54
217
+ // CHECK-NEXT: {{^}} (decl_implicit version=51 decl=someStaticPropertyWithClosureInitInferred
218
+ // CHECK-NEXT: {{^}} (decl version=52 decl=someStaticPropertyWithClosureInitInferred
219
+ // CHECK-NEXT: {{^}} (condition_following_availability version=54
220
+ // CHECK-NEXT: {{^}} (if_then version=54
221
221
@available ( OSX 51 , * )
222
222
extension SomeClass {
223
223
@available ( OSX 52 , * )
@@ -237,21 +237,21 @@ extension SomeClass {
237
237
} ( )
238
238
}
239
239
240
- // CHECK-NEXT: {{^}} (decl_implicit versions=[50,+Inf) decl=wrappedValue
240
+ // CHECK-NEXT: {{^}} (decl_implicit version=50 decl=wrappedValue
241
241
242
242
@propertyWrapper
243
243
struct Wrapper < T> {
244
244
var wrappedValue : T
245
245
}
246
246
247
- // CHECK-NEXT: {{^}} (decl versions=[51,+Inf) decl=SomeStruct
248
- // CHECK-NEXT: {{^}} (decl_implicit versions=[51,+Inf) decl=someLazyVar
249
- // CHECK-NEXT: {{^}} (condition_following_availability versions=[52,+Inf)
250
- // CHECK-NEXT: {{^}} (guard_fallthrough versions=[52,+Inf)
251
- // CHECK-NEXT: {{^}} (decl_implicit versions=[51,+Inf) decl=someWrappedVar
252
- // CHECK-NEXT: {{^}} (condition_following_availability versions=[52,+Inf)
253
- // CHECK-NEXT: {{^}} (guard_fallthrough versions=[52,+Inf)
254
- // CHECK-NEXT: {{^}} (decl versions=[52,+Inf) decl=someMethodAvailable52()
247
+ // CHECK-NEXT: {{^}} (decl version=51 decl=SomeStruct
248
+ // CHECK-NEXT: {{^}} (decl_implicit version=51 decl=someLazyVar
249
+ // CHECK-NEXT: {{^}} (condition_following_availability version=52
250
+ // CHECK-NEXT: {{^}} (guard_fallthrough version=52
251
+ // CHECK-NEXT: {{^}} (decl_implicit version=51 decl=someWrappedVar
252
+ // CHECK-NEXT: {{^}} (condition_following_availability version=52
253
+ // CHECK-NEXT: {{^}} (guard_fallthrough version=52
254
+ // CHECK-NEXT: {{^}} (decl version=52 decl=someMethodAvailable52()
255
255
@available ( OSX 51 , * )
256
256
struct SomeStruct {
257
257
lazy var someLazyVar = {
0 commit comments