aboutsummaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorPaweł Marks <pmarks@virtuslab.com>2020-03-04 14:07:57 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-03-04 14:28:14 +0100
commit1ed877e8b51ec586a2976e8088e34d17de82fc52 (patch)
treea1cfe422a3cd659a35fa5dea924d9da99afb7c71 /core/src
parentad8d1e01a8d4f1f6066c74f89466f3b33c948f87 (diff)
downloaddokka-1ed877e8b51ec586a2976e8088e34d17de82fc52.tar.gz
dokka-1ed877e8b51ec586a2976e8088e34d17de82fc52.tar.bz2
dokka-1ed877e8b51ec586a2976e8088e34d17de82fc52.zip
Now signature provider uses new visibility model
Diffstat (limited to 'core/src')
-rw-r--r--core/src/main/kotlin/model/Documentable.kt22
1 files changed, 11 insertions, 11 deletions
diff --git a/core/src/main/kotlin/model/Documentable.kt b/core/src/main/kotlin/model/Documentable.kt
index aeb10bee..9116b6e6 100644
--- a/core/src/main/kotlin/model/Documentable.kt
+++ b/core/src/main/kotlin/model/Documentable.kt
@@ -351,19 +351,19 @@ fun Documentable.dfs(predicate: (Documentable) -> Boolean): Documentable? =
this.children.asSequence().mapNotNull { it.dfs(predicate) }.firstOrNull()
}
-sealed class Visibility
-sealed class KotlinVisibility : Visibility() {
- object Public : KotlinVisibility()
- object Private : KotlinVisibility()
- object Protected : KotlinVisibility()
- object Internal : KotlinVisibility()
+sealed class Visibility(val name: String)
+sealed class KotlinVisibility(name: String) : Visibility(name) {
+ object Public : KotlinVisibility("public")
+ object Private : KotlinVisibility("private")
+ object Protected : KotlinVisibility("protected")
+ object Internal : KotlinVisibility("internal")
}
-sealed class JavaVisibility : Visibility() {
- object Public : JavaVisibility()
- object Private : JavaVisibility()
- object Protected : JavaVisibility()
- object Default : JavaVisibility()
+sealed class JavaVisibility(name: String) : Visibility(name) {
+ object Public : JavaVisibility("public")
+ object Private : JavaVisibility("private")
+ object Protected : JavaVisibility("protected")
+ object Default : JavaVisibility("")
}
fun <T> PlatformDependent<T>?.orEmpty(): PlatformDependent<T> = this ?: PlatformDependent.empty()