mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
adjust autoclosure/noescape printing to print them in their type
position instead of before a parameter. This wraps up the meat of SE-0049.
This commit is contained in:
@@ -36,9 +36,9 @@ func foo3(a: Float, b: Bool) {}
|
||||
// CHECK-REPLACEMENT1: <Group>Collection/Array</Group>
|
||||
// CHECK-REPLACEMENT1: <Declaration>func sorted() -> [<Type usr="s:Si">Int</Type>]</Declaration>
|
||||
// CHECK-REPLACEMENT1: RELATED BEGIN
|
||||
// CHECK-REPLACEMENT1: sorted(@noescape isOrderedBefore: @noescape (Int, Int) -> Bool) -> [Int]</RelatedName>
|
||||
// CHECK-REPLACEMENT1: sorted(isOrderedBefore: @noescape (Int, Int) -> Bool) -> [Int]</RelatedName>
|
||||
// CHECK-REPLACEMENT1: sorted() -> [Int]</RelatedName>
|
||||
// CHECK-REPLACEMENT1: sorted(@noescape isOrderedBefore: @noescape (Int, Int) -> Bool) -> [Int]</RelatedName>
|
||||
// CHECK-REPLACEMENT1: sorted(isOrderedBefore: @noescape (Int, Int) -> Bool) -> [Int]</RelatedName>
|
||||
// CHECK-REPLACEMENT1: RELATED END
|
||||
|
||||
// RUN: %sourcekitd-test -req=cursor -pos=9:8 %s -- %s %mcp_opt %clang-importer-sdk | FileCheck -check-prefix=CHECK-REPLACEMENT2 %s
|
||||
@@ -47,10 +47,10 @@ func foo3(a: Float, b: Bool) {}
|
||||
|
||||
// RUN: %sourcekitd-test -req=cursor -pos=15:10 %s -- %s %mcp_opt %clang-importer-sdk | FileCheck -check-prefix=CHECK-REPLACEMENT3 %s
|
||||
// CHECK-REPLACEMENT3: <Group>Collection/Array</Group>
|
||||
// CHECK-REPLACEMENT3: func sorted(@noescape isOrderedBefore: @noescape (<Type usr="s:V13cursor_stdlib2S1">S1</Type>
|
||||
// CHECK-REPLACEMENT3: func sorted(isOrderedBefore: @noescape (<Type usr="s:V13cursor_stdlib2S1">S1</Type>
|
||||
// CHECK-REPLACEMENT3: sorted() -> [S1]</RelatedName>
|
||||
// CHECK-REPLACEMENT3: sorted() -> [S1]</RelatedName>
|
||||
// CHECK-REPLACEMENT3: sorted(@noescape isOrderedBefore: @noescape (S1, S1) -> Bool) -> [S1]</RelatedName>
|
||||
// CHECK-REPLACEMENT3: sorted(isOrderedBefore: @noescape (S1, S1) -> Bool) -> [S1]</RelatedName>
|
||||
|
||||
// RUN: %sourcekitd-test -req=cursor -pos=18:8 %s -- %s %mcp_opt %clang-importer-sdk | FileCheck -check-prefix=CHECK-REPLACEMENT4 %s
|
||||
// CHECK-REPLACEMENT4: <Group>Collection/Array</Group>
|
||||
|
||||
Reference in New Issue
Block a user