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

Commit 6103cf0

Browse files
Add possibility to include private symbols. (#266)
* Add possibility to include private symbols. * Add changelog entry for #266.
1 parent fdbdb64 commit 6103cf0

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- Added support for generating documentation for
13+
private symbols.
14+
#266 by @Lukas-Stuehrk
15+
1016
### Fixed
1117

1218
- Fixed bug that caused prefix and postfix operators to be omitted

Sources/swift-doc/Supporting Types/AccessLevel.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@ import SwiftDoc
44
enum AccessLevel: String, ExpressibleByArgument {
55
case `public`
66
case `internal`
7+
case `private`
78

89
func includes(symbol: Symbol) -> Bool {
910
switch self {
1011
case .public:
1112
return symbol.isPublic
1213
case .internal:
1314
return symbol.isPublic || symbol.isInternal
15+
case .private:
16+
return true
1417
}
1518
}
1619
}

0 commit comments

Comments
 (0)