aboutsummaryrefslogtreecommitdiff
path: root/plugins/base
diff options
context:
space:
mode:
authorVadim Mishenev <vad-mishenev@yandex.ru>2022-08-24 15:23:08 +0300
committerGitHub <noreply@github.com>2022-08-24 15:23:08 +0300
commit98fc184da7c31588b92adda50257cddb99fab649 (patch)
tree0c87bc552a14cb2042a69c5513dd01a4f9f05d22 /plugins/base
parent97628db0d7622140158ed6679b67b4e2e4355194 (diff)
downloaddokka-98fc184da7c31588b92adda50257cddb99fab649.tar.gz
dokka-98fc184da7c31588b92adda50257cddb99fab649.tar.bz2
dokka-98fc184da7c31588b92adda50257cddb99fab649.zip
Support privateToThis visibility (#2639)
Diffstat (limited to 'plugins/base')
-rw-r--r--plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt2
-rw-r--r--plugins/base/src/test/kotlin/filter/VisibilityFilterTest.kt3
2 files changed, 3 insertions, 2 deletions
diff --git a/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt b/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt
index 43b8c544..c52fbd37 100644
--- a/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt
+++ b/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt
@@ -1206,7 +1206,7 @@ private class DokkaDescriptorVisitor(
Visibilities.Public -> KotlinVisibility.Public
Visibilities.Protected -> KotlinVisibility.Protected
Visibilities.Internal -> KotlinVisibility.Internal
- Visibilities.Private -> KotlinVisibility.Private
+ Visibilities.Private, Visibilities.PrivateToThis -> KotlinVisibility.Private
JavaVisibilities.ProtectedAndPackage -> KotlinVisibility.Protected
JavaVisibilities.ProtectedStaticVisibility -> KotlinVisibility.Protected
JavaVisibilities.PackageVisibility -> JavaVisibility.Default
diff --git a/plugins/base/src/test/kotlin/filter/VisibilityFilterTest.kt b/plugins/base/src/test/kotlin/filter/VisibilityFilterTest.kt
index c89234f8..e1bd94ba 100644
--- a/plugins/base/src/test/kotlin/filter/VisibilityFilterTest.kt
+++ b/plugins/base/src/test/kotlin/filter/VisibilityFilterTest.kt
@@ -43,7 +43,8 @@ class VisibilityFilterTest : BaseAbstractTest() {
fun `should document public`() {
testVisibility(
"""
- | class TestClass {
+ | class TestClass<out V> {
+ | private var privateToThisVisibility: V? = null
| val publicProperty: String = "publicProperty"
| internal val noise: String = "noise"
|