Skip to content

Commit a63b1a1

Browse files
authored
Merge pull request #341 from tayloraswift/restrict-symbol-dumps
Restrict symbol dumps
2 parents 67e56d1 + 1feb57a commit a63b1a1

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

Sources/SymbolGraphBuilder/Builds/SSGC.PackageBuild.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ extension SSGC.PackageBuild
8989
default: continue
9090
}
9191

92-
modulesToDump[constituent.id] = include
92+
if constituent.module.type.hasSymbols
93+
{
94+
modulesToDump[constituent.id] = include
95+
}
9396
}
9497
}
9598

Sources/SymbolGraphBuilder/Sources/SSGC.DocumentationSources.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ extension SSGC.DocumentationSources
4747
moduleIndexes = try moduleLayouts.map
4848
{
4949
let id:Symbol.Module = $0.id
50-
let constituents:[SSGC.ModuleLayout] = try self.constituents(of: $0)
50+
let constituents:[SSGC.ModuleLayout] = try self.constituents(of: $0).filter(
51+
\.module.type.hasSymbols)
5152

5253
let symbols:
5354
(

Sources/SymbolGraphs/SymbolGraphABI.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import SemanticVersions
33
@frozen public
44
enum SymbolGraphABI
55
{
6-
@inlinable public static var version:PatchVersion { .v(0, 11, 1) }
6+
@inlinable public static var version:PatchVersion { .v(0, 12, 0) }
77
}

0 commit comments

Comments
 (0)