File tree Expand file tree Collapse file tree 19 files changed +37
-1
lines changed Expand file tree Collapse file tree 19 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 7
7
// RUN: %target-run-simple-swift(-Xfrontend -disable-availability-checking -enable-experimental-feature SwiftParser -enable-experimental-feature ParserASTGen)
8
8
9
9
// REQUIRES: executable_test
10
+ // REQUIRES: swift_swift_parser
10
11
11
12
// -enable-experimental-feature requires an asserts build
12
13
// REQUIRES: asserts
Original file line number Diff line number Diff line change @@ -275,3 +275,4 @@ func hasCallToAsyncAlternative(c: ConvertAsync) {
275
275
// CHECK-CALLASYNC: ACTIONS END
276
276
277
277
// REQUIRES: OS=macosx || OS=linux-gnu
278
+ // REQUIRES: swift_swift_parser
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: split-file --leading-lines %s %t
3
3
4
+ // REQUIRES: swift_swift_parser
5
+
4
6
//--- a.swift
5
7
6
8
struct Foo { }
Original file line number Diff line number Diff line change @@ -16,3 +16,5 @@ func testThrowingClosure() async throws -> Int {
16
16
// RUN: diff -u %S/Outputs/await/async2.swift.expected %t.result/async2.swift
17
17
// RUN: %refactor -extract-function -source-filename %s -pos=8:1 -end-pos=8:60 >> %t.result/consumes_async.swift
18
18
// RUN: diff -u %S/Outputs/await/consumes_async.swift.expected %t.result/consumes_async.swift
19
+
20
+ // REQUIRES: swift_swift_parser
Original file line number Diff line number Diff line change @@ -12,3 +12,5 @@ func foo() -> Int{
12
12
// RUN: diff -u %S/Outputs/basic/L3-5.swift.expected %t.result/L3-5.swift
13
13
// RUN: %refactor -extract-function -source-filename %s -pos=3:1 -end-pos=4:26 >> %t.result/L3-4.swift
14
14
// RUN: diff -u %S/Outputs/basic/L3-4.swift.expected %t.result/L3-4.swift
15
+
16
+ // REQUIRES: swift_swift_parser
Original file line number Diff line number Diff line change @@ -11,3 +11,5 @@ public func foo() -> Int{
11
11
// RUN: %empty-directory(%t.result)
12
12
// RUN: %refactor -extract-function -source-filename %s -pos=5:1 -end-pos=6:26 >> %t.result/L5-6.swift
13
13
// RUN: diff -u %S/Outputs/extract_attributes/L5-6.swift.expected %t.result/L5-6.swift
14
+
15
+ // REQUIRES: swift_swift_parser
Original file line number Diff line number Diff line change @@ -15,3 +15,5 @@ class C {
15
15
16
16
// RUN: %refactor -extract-function -source-filename %s -pos=7:18 -end-pos=7:23 >> %t.result/ExplicitGetter.swift
17
17
// RUN: diff -u %S/Outputs/extract_from_accessor/ExplicitGetter.swift.expected %t.result/ExplicitGetter.swift
18
+
19
+ // REQUIRES: swift_swift_parser
Original file line number Diff line number Diff line change @@ -10,3 +10,5 @@ class C {
10
10
// RUN: %empty-directory(%t.result)
11
11
// RUN: %refactor -extract-function -source-filename %s -pos=5:1 -end-pos=6:15 >> %t.result/L5-6.swift
12
12
// RUN: diff -u %S/Outputs/extract_init/L5-6.swift.expected %t.result/L5-6.swift
13
+
14
+ // REQUIRES: swift_swift_parser
Original file line number Diff line number Diff line change @@ -15,3 +15,5 @@ func returnFifteen() -> Int {
15
15
// RUN: %empty-directory(%t.result)
16
16
// RUN: %refactor -extract-function -source-filename %s -pos=5:1 -end-pos=9:6 >> %t.result/AvoidFilePrivate.swift
17
17
// RUN: diff -u %S/Outputs/extract_local/AvoidFilePrivate.swift.expected %t.result/AvoidFilePrivate.swift
18
+
19
+ // REQUIRES: swift_swift_parser
Original file line number Diff line number Diff line change @@ -15,3 +15,5 @@ class A {
15
15
// RUN: diff -u %S/Outputs/extract_subscript/FromGetter.swift.expected %t.result/FromGetter.swift
16
16
// RUN: %refactor -extract-function -source-filename %s -pos=8:1 -end-pos=8:19 >> %t.result/FromSetter.swift
17
17
// RUN: diff -u %S/Outputs/extract_subscript/FromSetter.swift.expected %t.result/FromSetter.swift
18
+
19
+ // REQUIRES: swift_swift_parser
Original file line number Diff line number Diff line change @@ -8,3 +8,5 @@ func foo(_ a : inout [Int]) -> [Int] {
8
8
// RUN: %empty-directory(%t.result)
9
9
// RUN: %refactor -extract-function -source-filename %s -pos=2:1 -end-pos=5:11 >> %t.result/L2-5.swift
10
10
// RUN: diff -u %S/Outputs/extract_sugar/L2-5.swift.expected %t.result/L2-5.swift
11
+
12
+ // REQUIRES: swift_swift_parser
Original file line number Diff line number Diff line change @@ -29,3 +29,5 @@ func foo2(_ e : MyEnum) -> Int {
29
29
// RUN: %empty-directory(%t.result)
30
30
// RUN: %refactor -extract-function -source-filename %s -pos=16:1 -end-pos=23:4 >> %t.result/Int.swift
31
31
// RUN: diff -u %S/Outputs/extract_switch/Int.swift.expected %t.result/Int.swift
32
+
33
+ // REQUIRES: swift_swift_parser
Original file line number Diff line number Diff line change @@ -14,3 +14,5 @@ public func foo() -> Int{
14
14
// RUN: %empty-directory(%t.result)
15
15
// RUN: %refactor -extract-function -source-filename %s -pos=6:1 -end-pos=7:26 >> %t.result/L6-7.swift
16
16
// RUN: diff -u %S/Outputs/extract_with_comments/L6-7.swift.expected %t.result/L6-7.swift
17
+
18
+ // REQUIRES: swift_swift_parser
Original file line number Diff line number Diff line change @@ -15,3 +15,5 @@ public func new_name3() {}
15
15
// RUN: %empty-directory(%t.result)
16
16
// RUN: %refactor -extract-function -source-filename %s -pos=5:1 -end-pos=6:26 >> %t.result/L5-6.swift
17
17
// RUN: diff -u %S/Outputs/name_correction/L5-6.swift.expected %t.result/L5-6.swift
18
+
19
+ // REQUIRES: swift_swift_parser
Original file line number Diff line number Diff line change @@ -17,3 +17,5 @@ class C {
17
17
// RUN: diff -u %S/Outputs/static/L3-5.swift.expected %t.result/L3-5.swift
18
18
// RUN: %refactor -extract-function -source-filename %s -pos=9:1 -end-pos=11:13 >> %t.result/L9-11.swift
19
19
// RUN: diff -u %S/Outputs/static/L9-11.swift.expected %t.result/L9-11.swift
20
+
21
+ // REQUIRES: swift_swift_parser
Original file line number Diff line number Diff line change @@ -26,3 +26,5 @@ func foo2() throws {
26
26
// RUN: diff -u %S/Outputs/throw_errors/L10-12.swift.expected %t.result/L10-12.swift
27
27
// RUN: %refactor -extract-function -source-filename %s -pos=13:1 -end-pos=17:4 >> %t.result/L13-17.swift
28
28
// RUN: diff -u %S/Outputs/throw_errors/L13-17.swift.expected %t.result/L13-17.swift
29
+
30
+ // REQUIRES: swift_swift_parser
Original file line number Diff line number Diff line change @@ -15,3 +15,5 @@ struct RefactorExtractProblem {
15
15
// RUN: %empty-directory(%t.result)
16
16
// RUN: %refactor -extract-function -source-filename %s -pos=7:1 -end-pos=11:6 >> %t.result/L7-11.swift
17
17
// RUN: diff -u %S/Outputs/throw_errors2/L7-11.swift.expected %t.result/L7-11.swift
18
+
19
+ // REQUIRES: swift_swift_parser
Original file line number Diff line number Diff line change @@ -17,3 +17,5 @@ func testThrowingClosure() throws {
17
17
// RUN: diff -u %S/Outputs/throw_errors3/consumes_err.swift.expected %t.result/consumes_err.swift
18
18
// RUN: %refactor -extract-function -source-filename %s -pos=10:1 -end-pos=12:51 >> %t.result/rethrows_err.swift
19
19
// RUN: diff -u %S/Outputs/throw_errors3/rethrows_err.swift.expected %t.result/rethrows_err.swift
20
+
21
+ // REQUIRES: swift_swift_parser
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: split-file %s %t
3
3
// RUN: %refactor -find-rename-ranges -source-filename %t/input.swift -pos="test" -old-name "+(x:y:)" -new-name "-(x:y:)" > %t/output.txt
4
- // RUN: diff -u %t/expected.swift %t/output.txt
4
+ // RUN: diff -u %t/expected.swift %t/output.txt
5
+
6
+ // REQUIRES: swift_swift_parser
5
7
6
8
//--- input.swift
7
9
You can’t perform that action at this time.
0 commit comments