From acd88aebc4e39bdfb8385df27861f9725ff3ca8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20St=C3=BChrk?= Date: Wed, 28 Apr 2021 22:13:49 +0200 Subject: [PATCH 1/2] Add possibility to include private symbols. --- Sources/swift-doc/Supporting Types/AccessLevel.swift | 3 +++ 1 file changed, 3 insertions(+) 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 } } } From c2ceab2f72f2f3550c0535a6c01820410989baab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20St=C3=BChrk?= Date: Thu, 29 Apr 2021 22:30:05 +0200 Subject: [PATCH 2/2] Add changelog entry for #266. --- Changelog.md | 6 ++++++ 1 file changed, 6 insertions(+) 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