diff --git a/Changelog.md b/Changelog.md index 538190ea..4d0e6f2d 100644 --- a/Changelog.md +++ b/Changelog.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- Added support for generating documentation for + private symbols. + #266 by @Lukas-Stuehrk + ### Fixed - Fixed bug that caused prefix and postfix operators to be omitted diff --git a/Sources/swift-doc/Supporting Types/AccessLevel.swift b/Sources/swift-doc/Supporting Types/AccessLevel.swift index 30de853f..12fc444a 100644 --- a/Sources/swift-doc/Supporting Types/AccessLevel.swift +++ b/Sources/swift-doc/Supporting Types/AccessLevel.swift @@ -4,6 +4,7 @@ import SwiftDoc enum AccessLevel: String, ExpressibleByArgument { case `public` case `internal` + case `private` func includes(symbol: Symbol) -> Bool { switch self { @@ -11,6 +12,8 @@ enum AccessLevel: String, ExpressibleByArgument { return symbol.isPublic case .internal: return symbol.isPublic || symbol.isInternal + case .private: + return true } } }