@@ -81,7 +81,6 @@ class ThisDerived1 : ThisBase1 {
81
81
82
82
class func derivedStaticFunc0( ) { }
83
83
84
- // COMMON_SELF_NO_DOT_1: Begin completions
85
84
// COMMON_SELF_NO_DOT_1-DAG: Decl[InstanceVar]/CurrNominal: .derivedInstanceVar[#Int#]{{; name=.+$}}
86
85
// COMMON_SELF_NO_DOT_1-DAG: Decl[InstanceMethod]/CurrNominal: .derivedFunc0()[#Void#]{{; name=.+$}}
87
86
// COMMON_SELF_NO_DOT_1-DAG: Decl[Subscript]/CurrNominal: [{#(i): Double#}][#Int#]{{; name=.+$}}
@@ -98,9 +97,7 @@ class ThisDerived1 : ThisBase1 {
98
97
// COMMON_SELF_NO_DOT_1-DAG: Decl[InstanceVar]/Super: .baseExtProp[#Int#]{{; name=.+$}}
99
98
// COMMON_SELF_NO_DOT_1-DAG: Decl[InstanceMethod]/Super: .baseExtInstanceFunc0()[#Void#]{{; name=.+$}}
100
99
// COMMON_SELF_NO_DOT_1-DAG: Decl[InstanceVar]/Super: .baseExtStaticProp[#Int#]{{; name=.+$}}
101
- // COMMON_SELF_NO_DOT_1: End completions
102
100
103
- // COMMON_SELF_DOT_1: Begin completions
104
101
// COMMON_SELF_DOT_1-DAG: Decl[InstanceVar]/CurrNominal: derivedInstanceVar[#Int#]{{; name=.+$}}
105
102
// COMMON_SELF_DOT_1-DAG: Decl[InstanceMethod]/CurrNominal: derivedFunc0()[#Void#]{{; name=.+$}}
106
103
// COMMON_SELF_DOT_1-DAG: Decl[InstanceMethod]/CurrNominal: test1()[#Void#]{{; name=.+$}}
@@ -114,13 +111,11 @@ class ThisDerived1 : ThisBase1 {
114
111
// COMMON_SELF_DOT_1-DAG: Decl[InstanceVar]/Super: baseExtProp[#Int#]{{; name=.+$}}
115
112
// COMMON_SELF_DOT_1-DAG: Decl[InstanceMethod]/Super: baseExtInstanceFunc0()[#Void#]{{; name=.+$}}
116
113
// COMMON_SELF_DOT_1-DAG: Decl[InstanceVar]/Super: baseExtStaticProp[#Int#]{{; name=.+$}}
117
- // COMMON_SELF_DOT_1: End completions
118
114
119
115
init ( ) {
120
116
self#^CONSTRUCTOR_SELF_NO_DOT_1? check= CONSTRUCTOR_SELF_NO_DOT_1;check= COMMON_SELF_NO_DOT_1^#
121
117
// CONSTRUCTOR_SELF_NO_DOT_1: Begin completions, 21 items
122
118
// CONSTRUCTOR_SELF_NO_DOT_1-NOT: Decl[Constructor]
123
- // CONSTRUCTOR_SELF_NO_DOT_1: End completions
124
119
let d : ThisDerived1
125
120
d#^CONSTRUCTOR_NONSELF_NO_DOT_1? check= COMMON_SELF_NO_DOT_1;check= NO_INIT^#
126
121
// NO_INIT-NOT: init()
@@ -130,7 +125,6 @@ class ThisDerived1 : ThisBase1 {
130
125
self . #^CONSTRUCTOR_SELF_DOT_1? check= CONSTRUCTOR_SELF_DOT_1;check= COMMON_SELF_DOT_1^#
131
126
// CONSTRUCTOR_SELF_DOT_1: Begin completions, 16 items
132
127
// CONSTRUCTOR_SELF_DOT_1-NOT: Decl[Constructor]
133
- // CONSTRUCTOR_SELF_DOT_1: End completions
134
128
let d : ThisDerived1
135
129
d. #^CONSTRUCTOR_NONSELF_DOT_1? check= COMMON_SELF_DOT_1;check= NO_INIT^#
136
130
}
@@ -141,34 +135,28 @@ class ThisDerived1 : ThisBase1 {
141
135
// CONVENIENCE_SELF_DOT_1-DAG: Decl[Constructor]/CurrNominal: init()[#ThisDerived1#]; name=init()
142
136
// CONVENIENCE_SELF_DOT_1-DAG: Decl[Constructor]/CurrNominal: init({#a: Int#})[#ThisDerived1#]; name=init(a:)
143
137
// CONVENIENCE_SELF_DOT_1-DAG: Decl[Constructor]/CurrNominal: init({#conv: Int#})[#ThisDerived1#]; name=init(conv:)
144
- // CONVENIENCE_SELF_DOT_1: End completions
145
138
}
146
139
147
140
deinit {
148
141
self#^DESTRUCTOR_SELF_NO_DOT_1? check= DESTRUCTOR_SELF_NO_DOT_1;check= COMMON_SELF_NO_DOT_1;check= NO_INIT^#
149
142
// DESTRUCTOR_SELF_NO_DOT_1: Begin completions, 21 items
150
- // DESTRUCTOR_SELF_NO_DOT_1: End completions
151
143
152
144
self . #^DESTRUCTOR_SELF_DOT_1? check= DESTRUCTOR_SELF_DOT_1;check= COMMON_SELF_DOT_1;check= NO_INIT^#
153
145
// DESTRUCTOR_SELF_DOT_1: Begin completions, 16 items
154
- // DESTRUCTOR_SELF_DOT_1: End completions
155
146
}
156
147
157
148
func test1( ) {
158
149
self#^FUNC_SELF_NO_DOT_1? check= FUNC_SELF_NO_DOT_1;check= COMMON_SELF_NO_DOT_1;check= NO_INIT^#
159
150
// FUNC_SELF_NO_DOT_1: Begin completions, 21 items
160
- // FUNC_SELF_NO_DOT_1: End completions
161
151
}
162
152
163
153
func test2( ) {
164
154
self . #^FUNC_SELF_DOT_1? check= FUNC_SELF_DOT_1;check= COMMON_SELF_DOT_1;check= NO_INIT^#
165
155
// FUNC_SELF_DOT_1: Begin completions, 16 items
166
- // FUNC_SELF_DOT_1: End completions
167
156
}
168
157
169
158
class func staticTest1( ) {
170
159
self#^FUNC_STATIC_SELF_NO_DOT_1^#
171
- // FUNC_STATIC_SELF_NO_DOT_1: Begin completions
172
160
// FUNC_STATIC_SELF_NO_DOT_1-DAG: Decl[InstanceMethod]/CurrNominal: .derivedFunc0({#(self): ThisDerived1#})[#() -> Void#]
173
161
// FUNC_STATIC_SELF_NO_DOT_1-DAG: Decl[StaticVar]/CurrNominal: .derivedStaticVar[#Int#]
174
162
// FUNC_STATIC_SELF_NO_DOT_1-DAG: Decl[StaticMethod]/CurrNominal: .derivedStaticFunc0()[#Void#]
@@ -197,41 +185,39 @@ class ThisDerived1 : ThisBase1 {
197
185
// FUNC_STATIC_SELF_NO_DOT_1-DAG: Decl[Enum]/Super: .BaseExtNestedEnum[#ThisBase1.BaseExtNestedEnum#]
198
186
// FUNC_STATIC_SELF_NO_DOT_1-DAG: Decl[TypeAlias]/Super: .BaseExtNestedTypealias[#Int#]
199
187
// FUNC_STATIC_SELF_NO_DOT_1-DAG: Keyword[self]/CurrNominal: .self[#ThisDerived1.Type#]; name=self
200
- // FUNC_STATIC_SELF_NO_DOT_1: End completions
201
188
}
202
189
203
190
class func staticTest2( ) {
204
191
self . #^FUNC_STATIC_SELF_DOT_1^#
205
- // FUNC_STATIC_SELF_DOT_1: Begin completions
206
- // FUNC_STATIC_SELF_DOT_1-NEXT: Keyword[self]/CurrNominal: self[#ThisDerived1.Type#]; name=self
207
- // FUNC_STATIC_SELF_DOT_1-NEXT: Decl[InstanceMethod]/CurrNominal: derivedFunc0({#(self): ThisDerived1#})[#() -> Void#]
208
- // FUNC_STATIC_SELF_DOT_1-NEXT: Decl[StaticVar]/CurrNominal: derivedStaticVar[#Int#]
209
- // FUNC_STATIC_SELF_DOT_1-NEXT: Decl[StaticMethod]/CurrNominal: derivedStaticFunc0()[#Void#]
210
- // FUNC_STATIC_SELF_DOT_1-NEXT: Decl[Constructor]/CurrNominal: init()[#ThisDerived1#]
211
- // FUNC_STATIC_SELF_DOT_1-NEXT: Decl[Constructor]/CurrNominal: init({#a: Int#})[#ThisDerived1#]
212
- // FUNC_STATIC_SELF_DOT_1-NEXT: Decl[Constructor]/CurrNominal: init({#conv: Int#})[#ThisDerived1#]
213
- // FUNC_STATIC_SELF_DOT_1-NEXT: Decl[InstanceMethod]/CurrNominal: test1({#(self): ThisDerived1#})[#() -> Void#]
214
- // FUNC_STATIC_SELF_DOT_1-NEXT: Decl[InstanceMethod]/CurrNominal: test2({#(self): ThisDerived1#})[#() -> Void#]
215
- // FUNC_STATIC_SELF_DOT_1-NEXT: Decl[StaticMethod]/CurrNominal: staticTest1()[#Void#]
216
- // FUNC_STATIC_SELF_DOT_1-NEXT: Decl[StaticMethod]/CurrNominal: staticTest2()[#Void#]
217
- // FUNC_STATIC_SELF_DOT_1-NEXT: Decl[InstanceMethod]/CurrNominal: derivedExtInstanceFunc0({#(self): ThisDerived1#})[#() -> Void#]
218
- // FUNC_STATIC_SELF_DOT_1-NEXT: Decl[StaticMethod]/CurrNominal: derivedExtStaticFunc0()[#Void#]
219
- // FUNC_STATIC_SELF_DOT_1-NEXT: Decl[Struct]/CurrNominal: DerivedExtNestedStruct[#DerivedExtNestedStruct#]
220
- // FUNC_STATIC_SELF_DOT_1-NEXT: Decl[Class]/CurrNominal: DerivedExtNestedClass[#DerivedExtNestedClass#]
221
- // FUNC_STATIC_SELF_DOT_1-NEXT: Decl[Enum]/CurrNominal: DerivedExtNestedEnum[#DerivedExtNestedEnum#]
222
- // FUNC_STATIC_SELF_DOT_1-NEXT: Decl[TypeAlias]/CurrNominal: DerivedExtNestedTypealias[#Int#]
223
- // FUNC_STATIC_SELF_DOT_1-NEXT: Decl[Constructor]/CurrNominal: init({#someExtensionArg: Int#})[#ThisDerived1#]
224
- // FUNC_STATIC_SELF_DOT_1-NEXT: Decl[InstanceMethod]/Super: baseFunc0({#(self): ThisBase1#})[#() -> Void#]
225
- // FUNC_STATIC_SELF_DOT_1-NEXT: Decl[InstanceMethod]/Super: baseFunc1({#(self): ThisBase1#})[#(Int) -> Void#]
226
- // FUNC_STATIC_SELF_DOT_1-NEXT: Decl[StaticVar]/Super: baseStaticVar[#Int#]
227
- // FUNC_STATIC_SELF_DOT_1-NEXT: Decl[StaticMethod]/Super: baseStaticFunc0()[#Void#]
228
- // FUNC_STATIC_SELF_DOT_1-NEXT: Decl[InstanceMethod]/Super: baseExtInstanceFunc0({#(self): ThisBase1#})[#() -> Void#]
229
- // FUNC_STATIC_SELF_DOT_1-NEXT: Decl[StaticMethod]/Super: baseExtStaticFunc0()[#Void#]
230
- // FUNC_STATIC_SELF_DOT_1-NEXT: Decl[Struct]/Super: BaseExtNestedStruct[#ThisBase1.BaseExtNestedStruct#]
231
- // FUNC_STATIC_SELF_DOT_1-NEXT: Decl[Class]/Super: BaseExtNestedClass[#ThisBase1.BaseExtNestedClass#]
232
- // FUNC_STATIC_SELF_DOT_1-NEXT: Decl[Enum]/Super: BaseExtNestedEnum[#ThisBase1.BaseExtNestedEnum#]
233
- // FUNC_STATIC_SELF_DOT_1-NEXT: Decl[TypeAlias]/Super: BaseExtNestedTypealias[#Int#]
234
- // FUNC_STATIC_SELF_DOT_1-NEXT: End completions
192
+ // FUNC_STATIC_SELF_DOT_1: Begin completions, 28 items
193
+ // FUNC_STATIC_SELF_DOT_1-DAG: Keyword[self]/CurrNominal: self[#ThisDerived1.Type#]; name=self
194
+ // FUNC_STATIC_SELF_DOT_1-DAG: Decl[InstanceMethod]/CurrNominal: derivedFunc0({#(self): ThisDerived1#})[#() -> Void#]
195
+ // FUNC_STATIC_SELF_DOT_1-DAG: Decl[StaticVar]/CurrNominal: derivedStaticVar[#Int#]
196
+ // FUNC_STATIC_SELF_DOT_1-DAG: Decl[StaticMethod]/CurrNominal: derivedStaticFunc0()[#Void#]
197
+ // FUNC_STATIC_SELF_DOT_1-DAG: Decl[Constructor]/CurrNominal: init()[#ThisDerived1#]
198
+ // FUNC_STATIC_SELF_DOT_1-DAG: Decl[Constructor]/CurrNominal: init({#a: Int#})[#ThisDerived1#]
199
+ // FUNC_STATIC_SELF_DOT_1-DAG: Decl[Constructor]/CurrNominal: init({#conv: Int#})[#ThisDerived1#]
200
+ // FUNC_STATIC_SELF_DOT_1-DAG: Decl[InstanceMethod]/CurrNominal: test1({#(self): ThisDerived1#})[#() -> Void#]
201
+ // FUNC_STATIC_SELF_DOT_1-DAG: Decl[InstanceMethod]/CurrNominal: test2({#(self): ThisDerived1#})[#() -> Void#]
202
+ // FUNC_STATIC_SELF_DOT_1-DAG: Decl[StaticMethod]/CurrNominal: staticTest1()[#Void#]
203
+ // FUNC_STATIC_SELF_DOT_1-DAG: Decl[StaticMethod]/CurrNominal: staticTest2()[#Void#]
204
+ // FUNC_STATIC_SELF_DOT_1-DAG: Decl[InstanceMethod]/CurrNominal: derivedExtInstanceFunc0({#(self): ThisDerived1#})[#() -> Void#]
205
+ // FUNC_STATIC_SELF_DOT_1-DAG: Decl[StaticMethod]/CurrNominal: derivedExtStaticFunc0()[#Void#]
206
+ // FUNC_STATIC_SELF_DOT_1-DAG: Decl[Struct]/CurrNominal: DerivedExtNestedStruct[#DerivedExtNestedStruct#]
207
+ // FUNC_STATIC_SELF_DOT_1-DAG: Decl[Class]/CurrNominal: DerivedExtNestedClass[#DerivedExtNestedClass#]
208
+ // FUNC_STATIC_SELF_DOT_1-DAG: Decl[Enum]/CurrNominal: DerivedExtNestedEnum[#DerivedExtNestedEnum#]
209
+ // FUNC_STATIC_SELF_DOT_1-DAG: Decl[TypeAlias]/CurrNominal: DerivedExtNestedTypealias[#Int#]
210
+ // FUNC_STATIC_SELF_DOT_1-DAG: Decl[Constructor]/CurrNominal: init({#someExtensionArg: Int#})[#ThisDerived1#]
211
+ // FUNC_STATIC_SELF_DOT_1-DAG: Decl[InstanceMethod]/Super: baseFunc0({#(self): ThisBase1#})[#() -> Void#]
212
+ // FUNC_STATIC_SELF_DOT_1-DAG: Decl[InstanceMethod]/Super: baseFunc1({#(self): ThisBase1#})[#(Int) -> Void#]
213
+ // FUNC_STATIC_SELF_DOT_1-DAG: Decl[StaticVar]/Super: baseStaticVar[#Int#]
214
+ // FUNC_STATIC_SELF_DOT_1-DAG: Decl[StaticMethod]/Super: baseStaticFunc0()[#Void#]
215
+ // FUNC_STATIC_SELF_DOT_1-DAG: Decl[InstanceMethod]/Super: baseExtInstanceFunc0({#(self): ThisBase1#})[#() -> Void#]
216
+ // FUNC_STATIC_SELF_DOT_1-DAG: Decl[StaticMethod]/Super: baseExtStaticFunc0()[#Void#]
217
+ // FUNC_STATIC_SELF_DOT_1-DAG: Decl[Struct]/Super: BaseExtNestedStruct[#ThisBase1.BaseExtNestedStruct#]
218
+ // FUNC_STATIC_SELF_DOT_1-DAG: Decl[Class]/Super: BaseExtNestedClass[#ThisBase1.BaseExtNestedClass#]
219
+ // FUNC_STATIC_SELF_DOT_1-DAG: Decl[Enum]/Super: BaseExtNestedEnum[#ThisBase1.BaseExtNestedEnum#]
220
+ // FUNC_STATIC_SELF_DOT_1-DAG: Decl[TypeAlias]/Super: BaseExtNestedTypealias[#Int#]
235
221
}
236
222
}
237
223
@@ -275,7 +261,6 @@ extension ThisDerived1 {
275
261
// EXTENSION_CONSTRUCTOR_SELF_DOT_1: Decl[Constructor]/CurrNominal: init()[#ThisDerived1#]; name=init()
276
262
// EXTENSION_CONSTRUCTOR_SELF_DOT_1: Decl[Constructor]/CurrNominal: init({#a: Int#})[#ThisDerived1#]; name=init(a:)
277
263
// EXTENSION_CONSTRUCTOR_SELF_DOT_1: Decl[Constructor]/CurrNominal: init({#someExtensionArg: Int#})[#ThisDerived1#]; name=init(someExtensionArg:)
278
- // EXTENSION_CONSTRUCTOR_SELF_DOT_1: End completions
279
264
280
265
}
281
266
}
@@ -289,7 +274,6 @@ struct S1 {
289
274
// STRUCT_CONSTRUCTOR_SELF_DOT_1-DAG: Decl[Constructor]/CurrNominal: init()[#S1#]; name=init()
290
275
// STRUCT_CONSTRUCTOR_SELF_DOT_1-DAG: Decl[Constructor]/CurrNominal: init({#x: Int#})[#S1#]; name=init(x:)
291
276
// STRUCT_CONSTRUCTOR_SELF_DOT_1-DAG: Decl[InstanceMethod]/CurrNominal: f()[#Void#]; name=f()
292
- // STRUCT_CONSTRUCTOR_SELF_DOT_1: End completions
293
277
let s : S1
294
278
s. #^STRUCT_CONSTRUCTOR_NONSELF_DOT_1? check= NO_INIT^#
295
279
}
0 commit comments