aboutsummaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2018-10-29 17:15:09 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2018-10-29 17:15:09 +0300
commita18952be525f9683b23fc05a489cefc86a0bd11f (patch)
treef3ff9d147b713da9ed500dcf97d3607ac492417b /core/src
parent8afbc009483636adbc8562b0707439b595d59242 (diff)
downloaddokka-a18952be525f9683b23fc05a489cefc86a0bd11f.tar.gz
dokka-a18952be525f9683b23fc05a489cefc86a0bd11f.tar.bz2
dokka-a18952be525f9683b23fc05a489cefc86a0bd11f.zip
Exclude `internal` visibility modifier from summary, fix exclusion logic
Diffstat (limited to 'core/src')
-rw-r--r--core/src/main/kotlin/Kotlin/KotlinLanguageService.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/main/kotlin/Kotlin/KotlinLanguageService.kt b/core/src/main/kotlin/Kotlin/KotlinLanguageService.kt
index 6088d3a5..f57708ed 100644
--- a/core/src/main/kotlin/Kotlin/KotlinLanguageService.kt
+++ b/core/src/main/kotlin/Kotlin/KotlinLanguageService.kt
@@ -11,7 +11,7 @@ class KotlinLanguageService : CommonLanguageService() {
}
private val fullOnlyModifiers =
- setOf("public", "protected", "private", "inline", "noinline", "crossinline", "reified")
+ setOf("public", "protected", "private", "internal", "inline", "noinline", "crossinline", "reified")
override fun render(node: DocumentationNode, renderMode: RenderMode): ContentNode {
return content {
@@ -201,7 +201,7 @@ class KotlinLanguageService : CommonLanguageService() {
"final", "public", "var" -> {
}
else -> {
- if (node.name !in fullOnlyModifiers || renderMode == RenderMode.FULL) {
+ if (showModifierInSummary(node) || renderMode == RenderMode.FULL) {
super.renderModifier(block, node, renderMode, nowrap)
}
}