diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2018-04-24 20:37:18 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2018-07-14 23:44:40 +0300 |
commit | 27deff9e3f8bb2190115f2e5f68f859f46af11a3 (patch) | |
tree | 042f77e8b3cfe86ef0ada425f927c3d773a40e3b | |
parent | a3f16fd75c200020465f79563ca58b2833236865 (diff) | |
download | dokka-27deff9e3f8bb2190115f2e5f68f859f46af11a3.tar.gz dokka-27deff9e3f8bb2190115f2e5f68f859f46af11a3.tar.bz2 dokka-27deff9e3f8bb2190115f2e5f68f859f46af11a3.zip |
Fix checking belonging to public API
-rw-r--r-- | core/src/main/kotlin/Kotlin/DocumentationBuilder.kt | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt b/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt index 05bd2cc7..8fec0bfb 100644 --- a/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt +++ b/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt @@ -960,12 +960,10 @@ class DocumentationBuilder } -val visibleToDocumentation = setOf(Visibilities.PROTECTED, Visibilities.PUBLIC) - fun DeclarationDescriptor.isDocumented(options: DocumentationOptions): Boolean { return (options.effectivePackageOptions(fqNameSafe).includeNonPublic || this !is MemberDescriptor - || this.visibility in visibleToDocumentation) + || this.visibility.isPublicAPI) && !isDocumentationSuppressed(options) && (!options.effectivePackageOptions(fqNameSafe).skipDeprecated || !isDeprecated()) } |