@@ -52,9 +52,9 @@ public func makeProtoWithAssocType() -> some ProtoWithAssocType { return StructW
52
52
import Lib
53
53
54
54
// RUN: %empty-directory(%t/completion-cache)
55
- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token COMPLETE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s
55
+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token COMPLETE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s
56
56
// Perform the same completion again, this time using the code completion cache that implicitly gets added to swift-ide-test
57
- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token COMPLETE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s
57
+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token COMPLETE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s
58
58
59
59
func test( ) -> MyProto {
60
60
return #^COMPLETE^#
@@ -71,9 +71,9 @@ func test() -> MyProto {
71
71
72
72
73
73
// RUN: %empty-directory(%t/completion-cache)
74
- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token COMPLETE_OPAQUE_COMPOSITION -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=COMPLETE_OPAQUE_COMPOSITION
74
+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token COMPLETE_OPAQUE_COMPOSITION -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=COMPLETE_OPAQUE_COMPOSITION
75
75
// Perform the same completion again, this time using the code completion cache that implicitly gets added to swift-ide-test
76
- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token COMPLETE_OPAQUE_COMPOSITION -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=COMPLETE_OPAQUE_COMPOSITION
76
+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token COMPLETE_OPAQUE_COMPOSITION -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=COMPLETE_OPAQUE_COMPOSITION
77
77
78
78
func testOpaqueComposition( ) -> some MyProto & MyOtherProto {
79
79
return #^COMPLETE_OPAQUE_COMPOSITION^#
@@ -89,9 +89,9 @@ func testOpaqueComposition() -> some MyProto & MyOtherProto {
89
89
// COMPLETE_OPAQUE_COMPOSITION: End completions
90
90
91
91
// RUN: %empty-directory(%t/completion-cache)
92
- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token ALSO_CONSIDER_METATYPE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=ALSO_CONSIDER_METATYPE
92
+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token ALSO_CONSIDER_METATYPE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=ALSO_CONSIDER_METATYPE
93
93
// Perform the same completion again, this time using the code completion cache
94
- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token ALSO_CONSIDER_METATYPE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=ALSO_CONSIDER_METATYPE
94
+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token ALSO_CONSIDER_METATYPE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=ALSO_CONSIDER_METATYPE
95
95
96
96
func testAlsoConsiderMetatype( ) -> MyClass . Type {
97
97
return #^ALSO_CONSIDER_METATYPE^#
@@ -103,9 +103,9 @@ func testAlsoConsiderMetatype() -> MyClass.Type {
103
103
// ALSO_CONSIDER_METATYPE: End completions
104
104
105
105
// RUN: %empty-directory(%t/completion-cache)
106
- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token OPAQUE_WITH_CLASS -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=OPAQUE_WITH_CLASS
106
+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token OPAQUE_WITH_CLASS -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=OPAQUE_WITH_CLASS
107
107
// Perform the same completion again, this time using the code completion cache
108
- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token OPAQUE_WITH_CLASS -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=OPAQUE_WITH_CLASS
108
+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token OPAQUE_WITH_CLASS -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=OPAQUE_WITH_CLASS
109
109
func testOpaqueWithClass< T: MyClass & MyProto > ( ) -> T {
110
110
return #^OPAQUE_WITH_CLASS^#
111
111
}
@@ -121,9 +121,9 @@ func testOpaqueWithClass<T: MyClass & MyProto>() -> T {
121
121
// OPAQUE_WITH_CLASS: End completions
122
122
123
123
// RUN: %empty-directory(%t/completion-cache)
124
- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token GENERIC_RETURN -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=GENERIC_RETURN
124
+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token GENERIC_RETURN -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=GENERIC_RETURN
125
125
// Perform the same completion again, this time using the code completion cache
126
- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token GENERIC_RETURN -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=GENERIC_RETURN
126
+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token GENERIC_RETURN -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=GENERIC_RETURN
127
127
func testGenericReturn< T: MyProto > ( ) -> T {
128
128
return #^GENERIC_RETURN^#
129
129
}
@@ -140,9 +140,9 @@ func testGenericReturn<T: MyProto>() -> T {
140
140
// GENERIC_RETURN: End completions
141
141
142
142
// RUN: %empty-directory(%t/completion-cache)
143
- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token OPAQUE_CLASS_AND_PROTOCOL -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=OPAQUE_CLASS_AND_PROTOCOL
143
+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token OPAQUE_CLASS_AND_PROTOCOL -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=OPAQUE_CLASS_AND_PROTOCOL
144
144
// Perform the same completion again, this time using the code completion cache
145
- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token OPAQUE_CLASS_AND_PROTOCOL -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=OPAQUE_CLASS_AND_PROTOCOL
145
+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token OPAQUE_CLASS_AND_PROTOCOL -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=OPAQUE_CLASS_AND_PROTOCOL
146
146
func testGenericReturn( ) -> some MyClass & MyProto {
147
147
return #^OPAQUE_CLASS_AND_PROTOCOL^#
148
148
}
@@ -157,9 +157,9 @@ func testGenericReturn() -> some MyClass & MyProto {
157
157
// OPAQUE_CLASS_AND_PROTOCOL: End completions
158
158
159
159
// RUN: %empty-directory(%t/completion-cache)
160
- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token TRANSITIVE_CONFORMANCE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=TRANSITIVE_CONFORMANCE
160
+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token TRANSITIVE_CONFORMANCE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=TRANSITIVE_CONFORMANCE
161
161
// Perform the same completion again, this time using the code completion cache
162
- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token TRANSITIVE_CONFORMANCE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=TRANSITIVE_CONFORMANCE
162
+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token TRANSITIVE_CONFORMANCE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=TRANSITIVE_CONFORMANCE
163
163
func testGenericReturn( ) -> MyBaseProto {
164
164
return #^TRANSITIVE_CONFORMANCE^#
165
165
}
@@ -181,9 +181,9 @@ func testGenericReturn() -> MyBaseProto {
181
181
182
182
183
183
// RUN: %empty-directory(%t/completion-cache)
184
- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token PROTO_WITH_ASSOC_TYPE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=PROTO_WITH_ASSOC_TYPE
184
+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token PROTO_WITH_ASSOC_TYPE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=PROTO_WITH_ASSOC_TYPE
185
185
// Perform the same completion again, this time using the code completion cache
186
- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token PROTO_WITH_ASSOC_TYPE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=PROTO_WITH_ASSOC_TYPE
186
+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token PROTO_WITH_ASSOC_TYPE -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=PROTO_WITH_ASSOC_TYPE
187
187
func protoWithAssocType( ) -> ProtoWithAssocType {
188
188
return #^PROTO_WITH_ASSOC_TYPE^#
189
189
}
@@ -195,17 +195,17 @@ func protoWithAssocType() -> ProtoWithAssocType {
195
195
// PROTO_WITH_ASSOC_TYPE: End completions
196
196
197
197
// RUN: %empty-directory(%t/completion-cache)
198
- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token PROTO_WITH_ASSOC_TYPE_OPAQUE_CONTEXT -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=PROTO_WITH_ASSOC_TYPE
198
+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token PROTO_WITH_ASSOC_TYPE_OPAQUE_CONTEXT -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=PROTO_WITH_ASSOC_TYPE
199
199
// Perform the same completion again, this time using the code completion cache
200
- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token PROTO_WITH_ASSOC_TYPE_OPAQUE_CONTEXT -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=PROTO_WITH_ASSOC_TYPE
200
+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token PROTO_WITH_ASSOC_TYPE_OPAQUE_CONTEXT -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=PROTO_WITH_ASSOC_TYPE
201
201
func protoWithAssocTypeInOpaqueContext( ) -> some ProtoWithAssocType {
202
202
return #^PROTO_WITH_ASSOC_TYPE_OPAQUE_CONTEXT^#
203
203
}
204
204
205
205
// RUN: %empty-directory(%t/completion-cache)
206
- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token PROTO_WITH_ASSOC_TYPE_GENERIC_RETURN_CONTEXT -completion-cache-path %t/completion-cache -I %t/ImportPath
206
+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token PROTO_WITH_ASSOC_TYPE_GENERIC_RETURN_CONTEXT -completion-cache-path %t/completion-cache -I %t/ImportPath
207
207
// Perform the same completion again, this time using the code completion cache
208
- // RUN: %swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token PROTO_WITH_ASSOC_TYPE_GENERIC_RETURN_CONTEXT -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=PROTO_WITH_ASSOC_TYPE_GENERIC_RETURN_CONTEXT
208
+ // RUN: %target- swift-ide-test -code-completion -source-filename %t/test.swift -code-completion-token PROTO_WITH_ASSOC_TYPE_GENERIC_RETURN_CONTEXT -completion-cache-path %t/completion-cache -I %t/ImportPath | %FileCheck %s --check-prefix=PROTO_WITH_ASSOC_TYPE_GENERIC_RETURN_CONTEXT
209
209
func protoWithAssocTypeInGenericContext< T: ProtoWithAssocType > ( ) -> T {
210
210
return #^PROTO_WITH_ASSOC_TYPE_GENERIC_RETURN_CONTEXT^#
211
211
}
0 commit comments