Skip to content

Commit b812efa

Browse files
committed
Module groups: Make 'lazy views' a sub-group of the 'collection' group.
1 parent f4ff65e commit b812efa

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed

stdlib/public/core/GroupInfo.json

+17-16
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,4 @@
11
{
2-
"Lazy Views": [
3-
"Algorithm.swift",
4-
"Flatten.swift",
5-
"FlatMap.swift",
6-
"Map.swift",
7-
"Join.swift",
8-
"Zip.swift",
9-
"Filter.swift",
10-
"Reverse.swift",
11-
"Slice.swift",
12-
"SequenceWrapper.swift",
13-
"LazyCollection.swift",
14-
"LazySequence.swift",
15-
"ExistentialCollection.swift"
16-
],
172
"Array": [
183
"ArrayBody.swift",
194
"ArrayBuffer.swift",
@@ -68,7 +53,23 @@
6853
"SequenceAlgorithms.swift",
6954
"RangeReplaceableCollectionType.swift",
7055
"Index.swift",
71-
"Existential.swift"
56+
"Existential.swift",
57+
{
58+
"Lazy Views": [
59+
"Algorithm.swift",
60+
"Flatten.swift",
61+
"FlatMap.swift",
62+
"Map.swift",
63+
"Join.swift",
64+
"Zip.swift",
65+
"Filter.swift",
66+
"Reverse.swift",
67+
"Slice.swift",
68+
"SequenceWrapper.swift",
69+
"LazyCollection.swift",
70+
"LazySequence.swift",
71+
"ExistentialCollection.swift"]
72+
}
7273
],
7374
"C": [
7475
"BridgeObjectiveC.swift",

test/SourceKit/InterfaceGen/gen_stdlib.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ var x: Int
4141

4242
// RUN: %sourcekitd-test -req=module-groups -module Swift | FileCheck -check-prefix=GROUP1 %s
4343
// GROUP1: <GROUPS>
44-
// GROUP1-DAG: Lazy Views
4544
// GROUP1-DAG: Assert
4645
// GROUP1-DAG: String
4746
// GROUP1-DAG: Collection
47+
// GROUP1-DAG: Collection.Lazy Views
4848
// GROUP1-DAG: Bool
4949
// GROUP1-DAG: Math
5050
// GROUP1-DAG: Misc

test/SourceKit/SourceDocInfo/cursor_stdlib.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func foo2(var a : [S1]) {
2727

2828
// RUN: %sourcekitd-test -req=cursor -pos=5:13 %s -- %s %mcp_opt %clang-importer-sdk | FileCheck -check-prefix=CHECK-GENERATOR %s
2929
// CHECK-GENERATOR-NOT: _AnyGeneratorBase
30-
// CHECK-GENERATOR: <Group>Lazy Views</Group>
30+
// CHECK-GENERATOR: <Group>Collection.Lazy Views</Group>
3131

3232
// RUN: %sourcekitd-test -req=cursor -pos=8:10 %s -- %s %mcp_opt %clang-importer-sdk | FileCheck -check-prefix=CHECK-REPLACEMENT1 %s
3333
// CHECK-REPLACEMENT1: <Group>Collection</Group>

0 commit comments

Comments
 (0)