Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 3af57a6

Browse files
committed
Filter non-public symbols
Fixes #15
1 parent a47f178 commit 3af57a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftDoc/Module.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public class Module: Codable {
9595
public init(name: String = "Anonymous", sourceFiles: [SourceFile]) {
9696
self.name = name
9797
self.sourceFiles = sourceFiles
98-
self.symbols = sourceFiles.flatMap { $0.symbols }
98+
self.symbols = sourceFiles.flatMap { $0.symbols }.filter { $0.isPublic }
9999
}
100100

101101
// MARK: -

0 commit comments

Comments
 (0)