1
- // RUN: %target-swift-ide-test -swift-version 3 - code-completion -source-filename %s -code-completion-token=BAD_MEMBERS_1 | %FileCheck %s -check-prefix=BAD_MEMBERS_1
2
- // RUN: %target-swift-ide-test -swift-version 3 - code-completion -source-filename %s -code-completion-token=BAD_MEMBERS_2 | %FileCheck %s -check-prefix=BAD_MEMBERS_2
3
- // RUN: %target-swift-ide-test -swift-version 3 - code-completion -source-filename %s -code-completion-token=CLOSURE_CALLED_IN_PLACE_1 | %FileCheck %s -check-prefix=WITH_GLOBAL
4
- // RUN: %target-swift-ide-test -swift-version 3 - code-completion -source-filename %s -code-completion-token=RDAR_28991372 | %FileCheck %s -check-prefix=RDAR_28991372
1
+ // RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=BAD_MEMBERS_1 | %FileCheck %s -check-prefix=BAD_MEMBERS_1
2
+ // RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=BAD_MEMBERS_2 | %FileCheck %s -check-prefix=BAD_MEMBERS_2
3
+ // RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=CLOSURE_CALLED_IN_PLACE_1 | %FileCheck %s -check-prefix=WITH_GLOBAL
4
+ // RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=RDAR_28991372 | %FileCheck %s -check-prefix=RDAR_28991372
5
5
6
6
class BadMembers1 {
7
7
var prop : Int {
@@ -37,7 +37,7 @@ func badMembers2(_ a: BadMembers2) {
37
37
38
38
func globalFunc( ) { }
39
39
40
- // RUN: %target-swift-ide-test -swift-version 3 - code-completion -source-filename %s -code-completion-token=LET_COMPUTED | %FileCheck %s -check-prefix=WITH_GLOBAL
40
+ // RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=LET_COMPUTED | %FileCheck %s -check-prefix=WITH_GLOBAL
41
41
class C {
42
42
let x : Int { #^LET_COMPUTED^# }
43
43
}
@@ -49,15 +49,15 @@ class C {
49
49
( { x in 2 + x } ) ( #^CLOSURE_CALLED_IN_PLACE_1 ^#
50
50
51
51
// rdar://19634354
52
- // RUN: %target-swift-ide-test -swift-version 3 - code-completion -source-filename %s -code-completion-token=RDAR_19634354
52
+ // RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=RDAR_19634354
53
53
while true {
54
54
func f( ) {
55
55
a#^RDAR_19634354^#
56
56
}
57
57
}
58
58
59
59
// rdar://problem/21197042
60
- // RUN: %target-swift-ide-test -swift-version 3 - code-completion -source-filename %s -code-completion-token=GENERIC_PARAM_AND_ASSOC_TYPE | %FileCheck %s -check-prefix=GENERIC_PARAM_AND_ASSOC_TYPE
60
+ // RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=GENERIC_PARAM_AND_ASSOC_TYPE | %FileCheck %s -check-prefix=GENERIC_PARAM_AND_ASSOC_TYPE
61
61
struct CustomGenericCollection < Key> : ExpressibleByDictionaryLiteral {
62
62
// GENERIC_PARAM_AND_ASSOC_TYPE: Begin completions
63
63
// GENERIC_PARAM_AND_ASSOC_TYPE-DAG: Decl[InstanceVar]/CurrNominal: count[#Int#]; name=count
@@ -69,13 +69,13 @@ struct CustomGenericCollection<Key> : ExpressibleByDictionaryLiteral {
69
69
}
70
70
71
71
// rdar://problem/21796881
72
- // RUN: %target-swift-ide-test -swift-version 3 - code-completion -source-filename %s -code-completion-token=RDAR_21796881
72
+ // RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=RDAR_21796881
73
73
extension ExpressibleByNilLiteral {
74
74
var nil : Self { #^RDAR_21796881 ^# }
75
75
}
76
76
77
77
// rdar://problem/21436558
78
- // RUN: %target-swift-ide-test -swift-version 3 - code-completion -source-filename %s -code-completion-token=RDAR_21436558
78
+ // RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=RDAR_21436558
79
79
private protocol RoundRobin : Sendable , Receivable {
80
80
typealias _NEXT
81
81
}
@@ -86,7 +86,7 @@ private protocol RoundRobin : Sendable, Receivable {
86
86
#endif
87
87
88
88
// rdar://problem/21435993
89
- // RUN: %target-swift-ide-test -swift-version 3 - code-completion -source-filename %s -code-completion-token=RDAR_21435993
89
+ // RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=RDAR_21435993
90
90
class C < T> {
91
91
func test( ) {
92
92
do { } catch { #^RDAR_21435993 ^# }
@@ -95,7 +95,7 @@ class C<T> {
95
95
}
96
96
97
97
// rdar://problem/21149908
98
- // RUN: %target-swift-ide-test -swift-version 3 - code-completion -source-filename %s -code-completion-token=RDAR_21149908
98
+ // RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=RDAR_21149908
99
99
@objc func handleTap( _ recognizer: UIGestureRecognizer ) {
100
100
if recognizer. state == . Ended {
101
101
let _ : ( ) = self . suggestion. cata ( #^RDAR_21149908 ^#{ _ in
@@ -107,7 +107,7 @@ class C<T> {
107
107
}
108
108
109
109
// rdar://problem/22036358
110
- // RUN: %target-swift-ide-test -swift-version 3 - code-completion -source-filename %s -code-completion-token=RDAR_22036358
110
+ // RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=RDAR_22036358
111
111
public extension AnyIterator {
112
112
public extension AnySequence {
113
113
public func take( _ n: Int ) -> AnySequence < Element > {
@@ -119,36 +119,36 @@ public extension AnyIterator {
119
119
}
120
120
121
121
// rdar://problem/22012123
122
- // RUN: %target-swift-ide-test -swift-version 3 - code-completion -source-filename %s -code-completion-token=RDAR_22012123
122
+ // RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=RDAR_22012123
123
123
protocol Fooable {
124
124
protocol FooableZingable : Fooable {
125
125
#^RDAR_22012123 ^#
126
126
}
127
127
}
128
128
129
129
// rdar://problem/22688199
130
- // RUN: %target-swift-ide-test -swift-version 3 - code-completion -source-filename %s -code-completion-token=RDAR_22688199 | %FileCheck %s -check-prefix=FLIP_CURRIED
130
+ // RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=RDAR_22688199 | %FileCheck %s -check-prefix=FLIP_CURRIED
131
131
func curried( _ a: Int ) ( _ b1: Int , _ b2: Int ) { }
132
132
func flip< A, B, C> ( _ f: A -> B -> C ) -> B -> A -> C { }
133
133
func rdar22688199( ) {
134
134
let f = flip ( curried) ( #^RDAR_22688199 ^#
135
135
}
136
136
// FLIP_CURRIED: Pattern/ExprSpecific: ['(']{#Int#}, {#Int#})[#(Int) -> ()#]
137
137
138
- // RUN: %target-swift-ide-test -swift-version 3 - code-completion -source-filename %s -code-completion-token=RDAR_22836263
138
+ // RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=RDAR_22836263
139
139
func rdar22836263( ) {
140
140
let x : [ Int ]
141
141
nosuchfunc ( x [ 0 ] . #^RDAR_22836263^#)
142
142
}
143
143
144
- // RUN: %target-swift-ide-test -swift-version 3 - code-completion -source-filename %s -code-completion-token=RDAR_22835966
144
+ // RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=RDAR_22835966
145
145
func rdar22835966( ) {
146
146
class Inner {
147
147
var prop = #^RDAR_22835966 ^#
148
148
}
149
149
}
150
150
151
- // RUN: %target-swift-ide-test -swift-version 3 - code-completion -source-filename %s -code-completion-token=RDAR_22834017 | %FileCheck %s -check-prefix=INVALID_TYPE_INIT
151
+ // RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=RDAR_22834017 | %FileCheck %s -check-prefix=INVALID_TYPE_INIT
152
152
struct Foo {
153
153
let a : Anosuchtype
154
154
let b : Bnosuchtype
@@ -161,13 +161,13 @@ func rdar22834017() {
161
161
// FIXME: We could provide a useful completion here. rdar://problem/22846558
162
162
// INVALID_TYPE_INIT-NOT: Begin completions
163
163
164
- // RUN: %target-swift-ide-test -swift-version 3 - code-completion -source-filename %s -code-completion-token=RDAR_23173692 | %FileCheck %s -check-prefix=RDAR_23173692
164
+ // RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=RDAR_23173692 | %FileCheck %s -check-prefix=RDAR_23173692
165
165
func rdar23173692( ) {
166
166
return IndexingIterator ( #^RDAR_23173692 ^#)
167
167
}
168
168
// RDAR_23173692: Begin completions
169
169
170
- // RUN: %target-swift-ide-test -swift-version 3 - code-completion -source-filename %s -code-completion-token=RDAR_22769393 | %FileCheck %s -check-prefix=RDAR_22769393
170
+ // RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=RDAR_22769393 | %FileCheck %s -check-prefix=RDAR_22769393
171
171
public enum PropertyListItem {
172
172
case PLString( String )
173
173
case PLDict( [ String : PropertyListItem ] )
0 commit comments