aboutsummaryrefslogtreecommitdiff
path: root/core/src/main
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2018-04-24 20:37:18 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2018-07-14 23:44:40 +0300
commit27deff9e3f8bb2190115f2e5f68f859f46af11a3 (patch)
tree042f77e8b3cfe86ef0ada425f927c3d773a40e3b /core/src/main
parenta3f16fd75c200020465f79563ca58b2833236865 (diff)
downloaddokka-27deff9e3f8bb2190115f2e5f68f859f46af11a3.tar.gz
dokka-27deff9e3f8bb2190115f2e5f68f859f46af11a3.tar.bz2
dokka-27deff9e3f8bb2190115f2e5f68f859f46af11a3.zip
Fix checking belonging to public API
Diffstat (limited to 'core/src/main')
-rw-r--r--core/src/main/kotlin/Kotlin/DocumentationBuilder.kt4
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())
}