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

Commit 82bb27a

Browse files
TunousMaxDesiatov
andauthored
Inline access checking closure
Co-authored-by: Max Desiatov <max@desiatov.com>
1 parent c62b1bf commit 82bb27a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/SwiftDoc/Symbol.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,9 @@ public final class Symbol {
4444
if let `extension` = `extension`,
4545
`extension`.modifiers.contains(where: { $0.name == "public" }) {
4646

47-
let isNotLimitedAccessModifier = { (modifier: Modifier) in
47+
return api.modifiers.allSatisfy { modifier in
4848
modifier.name != "internal" && modifier.name != "fileprivate" && modifier.name != "private"
4949
}
50-
return api.modifiers.allSatisfy(isNotLimitedAccessModifier)
5150
}
5251

5352
if let symbol = context.compactMap({ $0 as? Symbol }).last,

0 commit comments

Comments
 (0)