[Serialization] Use the new group mechanism and update tests accordingly.

This commit is contained in:
Xi Ge
2016-02-19 16:48:26 -08:00
parent 239c803dbb
commit 450391f28f
3 changed files with 24 additions and 23 deletions

View File

@@ -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=&quot;sortInPlace&quot;) func sort() -&gt; [<Type usr="s:Si">Int</Type>]</Declaration>
// CHECK-REPLACEMENT1: RELATED BEGIN
// CHECK-REPLACEMENT1: sort(@noescape _: @noescape (Int, Int) -&gt; Bool) -&gt; [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() -&gt; [S1]</RelatedName>
// CHECK-REPLACEMENT3: sort() -&gt; [S1]</RelatedName>
// CHECK-REPLACEMENT3: sort(@noescape _: @noescape (S1, S1) -&gt; Bool) -&gt; [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>