@@ -9,61 +9,61 @@ import _Concurrency
9
9
10
10
// CHECK-LABEL: class SlowServer : NSObject, ServiceProvider {
11
11
12
- // CHECK: @completionHandlerAsync("doSomethingSlow(_:)", completionHandleIndex : 1)
12
+ // CHECK: @completionHandlerAsync("doSomethingSlow(_:)", completionHandlerIndex : 1)
13
13
// CHECK-NEXT: func doSomethingSlow(_ operation: String, completionHandler handler: @escaping (Int) -> Void)
14
14
// CHECK-NEXT: @discardableResult
15
15
// CHECK-NEXT: func doSomethingSlow(_ operation: String) async -> Int
16
16
17
- // CHECK: @completionHandlerAsync("doSomethingDangerous(_:)", completionHandleIndex : 1)
17
+ // CHECK: @completionHandlerAsync("doSomethingDangerous(_:)", completionHandlerIndex : 1)
18
18
// CHECK-NEXT: func doSomethingDangerous(_ operation: String, completionHandler handler: ((String?, Error?) -> Void)? = nil)
19
19
// CHECK-NEXT: @discardableResult
20
20
// CHECK-NEXT: func doSomethingDangerous(_ operation: String) async throws -> String
21
21
22
- // CHECK: @completionHandlerAsync("checkAvailability()", completionHandleIndex : 0)
22
+ // CHECK: @completionHandlerAsync("checkAvailability()", completionHandlerIndex : 0)
23
23
// CHECK-NEXT: func checkAvailability(completionHandler: @escaping (Bool) -> Void)
24
24
// CHECK-NEXT: @discardableResult
25
25
// CHECK-NEXT: func checkAvailability() async -> Bool
26
26
27
- // CHECK: @completionHandlerAsync("anotherExample()", completionHandleIndex : 0)
27
+ // CHECK: @completionHandlerAsync("anotherExample()", completionHandlerIndex : 0)
28
28
// CHECK-NEXT: func anotherExample(completionBlock block: @escaping (String) -> Void)
29
29
// CHECK-NEXT: @discardableResult
30
30
// CHECK-NEXT: func anotherExample() async -> String
31
31
32
- // CHECK: @completionHandlerAsync("finalExample()", completionHandleIndex : 0)
32
+ // CHECK: @completionHandlerAsync("finalExample()", completionHandlerIndex : 0)
33
33
// CHECK-NEXT: func finalExampleWithReply(to block: @escaping (String) -> Void)
34
34
// CHECK-NEXT: @discardableResult
35
35
// CHECK-NEXT: func finalExample() async -> String
36
36
37
- // CHECK: @completionHandlerAsync("replyingOperation(_:)", completionHandleIndex : 1)
37
+ // CHECK: @completionHandlerAsync("replyingOperation(_:)", completionHandlerIndex : 1)
38
38
// CHECK-NEXT: func replyingOperation(_ operation: String, replyTo block: @escaping (String) -> Void)
39
39
// CHECK-NEXT: @discardableResult
40
40
// CHECK-NEXT: func replyingOperation(_ operation: String) async -> String
41
41
42
- // CHECK: @completionHandlerAsync("findAnswer()", completionHandleIndex : 0)
42
+ // CHECK: @completionHandlerAsync("findAnswer()", completionHandlerIndex : 0)
43
43
// CHECK-NEXT: func findAnswer(completionHandler handler: @escaping (String?, Error?) -> Void)
44
44
// CHECK-NEXT: @discardableResult
45
45
// CHECK-NEXT: func findAnswer() async throws -> String
46
46
47
- // CHECK: @completionHandlerAsync("findAnswerFailingly()", completionHandleIndex : 0)
47
+ // CHECK: @completionHandlerAsync("findAnswerFailingly()", completionHandlerIndex : 0)
48
48
// CHECK-NEXT: func findAnswerFailingly(completionHandler handler: @escaping (String?, Error?) -> Void) throws
49
49
// CHECK-NEXT: @discardableResult
50
50
// CHECK-NEXT: func findAnswerFailingly() async throws -> String
51
51
52
- // CHECK: @completionHandlerAsync("findQAndA()", completionHandleIndex : 0)
52
+ // CHECK: @completionHandlerAsync("findQAndA()", completionHandlerIndex : 0)
53
53
// CHECK-NEXT: func findQAndA(completionHandler handler: @escaping (String?, String?, Error?) -> Void)
54
54
// CHECK-NEXT: @discardableResult
55
55
// CHECK-NEXT: func findQAndA() async throws -> (String?, String)
56
56
57
- // CHECK: @completionHandlerAsync("findQuestionableAnswers()", completionHandleIndex : 0)
57
+ // CHECK: @completionHandlerAsync("findQuestionableAnswers()", completionHandlerIndex : 0)
58
58
// CHECK-NEXT: func findQuestionableAnswers(completionHandler handler: @escaping CompletionHandler)
59
59
// CHECK-NEXT: @discardableResult
60
60
// CHECK-NEXT: func findQuestionableAnswers() async throws -> (String, String?)
61
61
62
- // CHECK: @completionHandlerAsync("doSomethingFun(_:)", completionHandleIndex : 1)
62
+ // CHECK: @completionHandlerAsync("doSomethingFun(_:)", completionHandlerIndex : 1)
63
63
// CHECK-NEXT: func doSomethingFun(_ operation: String, then completionHandler: @escaping () -> Void)
64
64
// CHECK-NEXT: func doSomethingFun(_ operation: String) async
65
65
66
- // CHECK: @completionHandlerAsync("doSomethingConflicted(_:)", completionHandleIndex : 1)
66
+ // CHECK: @completionHandlerAsync("doSomethingConflicted(_:)", completionHandlerIndex : 1)
67
67
// CHECK-NEXT: func doSomethingConflicted(_ operation: String, completionHandler handler: @escaping (Int) -> Void)
68
68
// CHECK-NEXT: @discardableResult
69
69
// CHECK-NEXT: func doSomethingConflicted(_ operation: String) async -> Int
@@ -73,12 +73,12 @@ import _Concurrency
73
73
// CHECK: func dance(_ step: String) async -> String
74
74
// CHECK: func __leap(_ height: Int) async -> String
75
75
76
- // CHECK: @completionHandlerAsync("runOnMainThread()", completionHandleIndex : 0)
76
+ // CHECK: @completionHandlerAsync("runOnMainThread()", completionHandlerIndex : 0)
77
77
// CHECK-NEXT: func runOnMainThread(completionHandler completion: (@MainActor (String) -> Void)? = nil)
78
78
// CHECK-NEXT: @discardableResult
79
79
// CHECK-NEXT: func runOnMainThread() async -> String
80
80
81
- // CHECK: @completionHandlerAsync("asyncImportSame(_:)", completionHandleIndex : 1)
81
+ // CHECK: @completionHandlerAsync("asyncImportSame(_:)", completionHandlerIndex : 1)
82
82
// CHECK-NEXT: func asyncImportSame(_ operation: String, completionHandler handler: @escaping (Int) -> Void)
83
83
// CHECK-NEXT: @discardableResult
84
84
// CHECK-NEXT: func asyncImportSame(_ operation: String) async -> Int
0 commit comments