aboutsummaryrefslogtreecommitdiff
path: root/src/Kotlin
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-10-28 11:38:40 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-10-29 11:57:21 +0100
commit0efda36cc309e117641f2226a451cf98e42c421e (patch)
treee6a0c8c2c228c27bc9ef02d116d5416a85152aee /src/Kotlin
parentae2ff5b82931666fc908750d39e31bd6dc39359f (diff)
downloaddokka-0efda36cc309e117641f2226a451cf98e42c421e.tar.gz
dokka-0efda36cc309e117641f2226a451cf98e42c421e.tar.bz2
dokka-0efda36cc309e117641f2226a451cf98e42c421e.zip
exclude 'inline', 'noinline' and 'crossinline' from summary report; fix tests
Diffstat (limited to 'src/Kotlin')
-rw-r--r--src/Kotlin/KotlinLanguageService.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Kotlin/KotlinLanguageService.kt b/src/Kotlin/KotlinLanguageService.kt
index 038ade9c..513e1a58 100644
--- a/src/Kotlin/KotlinLanguageService.kt
+++ b/src/Kotlin/KotlinLanguageService.kt
@@ -6,7 +6,7 @@ import org.jetbrains.dokka.LanguageService.RenderMode
* Implements [LanguageService] and provides rendering of symbols in Kotlin language
*/
class KotlinLanguageService : LanguageService {
- private val visibilityModifiers = setOf("public", "protected", "private")
+ private val fullOnlyModifiers = setOf("public", "protected", "private", "inline", "noinline", "crossinline")
override fun render(node: DocumentationNode, renderMode: RenderMode): ContentNode {
return content {
@@ -258,7 +258,7 @@ class KotlinLanguageService : LanguageService {
for (it in modifiers) {
if (node.kind == org.jetbrains.dokka.DocumentationNode.Kind.Interface && it.name == "abstract")
continue
- if (renderMode == RenderMode.SUMMARY && it.name in visibilityModifiers) {
+ if (renderMode == RenderMode.SUMMARY && it.name in fullOnlyModifiers) {
continue
}
renderModifier(it)