mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Serialization] Use the new group mechanism and update tests accordingly.
This commit is contained in:
@@ -27,10 +27,10 @@ func foo2(var a : [S1]) {
|
||||
|
||||
// RUN: %sourcekitd-test -req=cursor -pos=5:13 %s -- %s %mcp_opt %clang-importer-sdk | FileCheck -check-prefix=CHECK-GENERATOR %s
|
||||
// CHECK-GENERATOR-NOT: _AnyGeneratorBase
|
||||
// CHECK-GENERATOR: <Group>ExistentialCollection</Group>
|
||||
// CHECK-GENERATOR: <Group>Collection</Group>
|
||||
|
||||
// RUN: %sourcekitd-test -req=cursor -pos=8:10 %s -- %s %mcp_opt %clang-importer-sdk | FileCheck -check-prefix=CHECK-REPLACEMENT1 %s
|
||||
// CHECK-REPLACEMENT1: <Group>CollectionAlgorithms</Group>
|
||||
// CHECK-REPLACEMENT1: <Group>Collection</Group>
|
||||
// CHECK-REPLACEMENT1: <Declaration>@warn_unused_result(mutable_variant="sortInPlace") func sort() -> [<Type usr="s:Si">Int</Type>]</Declaration>
|
||||
// CHECK-REPLACEMENT1: RELATED BEGIN
|
||||
// CHECK-REPLACEMENT1: sort(@noescape _: @noescape (Int, Int) -> Bool) -> [Int]</RelatedName>
|
||||
@@ -39,16 +39,16 @@ func foo2(var a : [S1]) {
|
||||
// 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
|
||||
// CHECK-REPLACEMENT2: <Group>Arrays</Group>
|
||||
// CHECK-REPLACEMENT2: <Group>Array</Group>
|
||||
// CHECK-REPLACEMENT2: <Declaration>mutating func append(newElement: <Type usr="s:Si">Int</Type>)</Declaration>
|
||||
|
||||
// RUN: %sourcekitd-test -req=cursor -pos=15:10 %s -- %s %mcp_opt %clang-importer-sdk | FileCheck -check-prefix=CHECK-REPLACEMENT3 %s
|
||||
// CHECK-REPLACEMENT3: <Group>CollectionAlgorithms</Group>
|
||||
// CHECK-REPLACEMENT3: <Group>Collection</Group>
|
||||
// CHECK-REPLACEMENT3: func sort(@noescape isOrderedBefore: @noescape (<Type usr="s:V13cursor_stdlib2S1">S1</Type>
|
||||
// CHECK-REPLACEMENT3: sort() -> [S1]</RelatedName>
|
||||
// CHECK-REPLACEMENT3: sort() -> [S1]</RelatedName>
|
||||
// CHECK-REPLACEMENT3: sort(@noescape _: @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>Arrays</Group>
|
||||
// CHECK-REPLACEMENT4: <Group>Array</Group>
|
||||
// CHECK-REPLACEMENT4: <Declaration>mutating func append(newElement: <Type usr="s:V13cursor_stdlib2S1">S1</Type>)</Declaration>
|
||||
|
||||
Reference in New Issue
Block a user