aboutsummaryrefslogtreecommitdiff
path: root/src/Kotlin/KotlinLanguageService.kt
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-09-10 12:55:31 +0200
committerDmitry Jemerov <yole@jetbrains.com>2015-09-10 12:55:31 +0200
commitaace0f39335c7428ffcfd44cbe1371ecc32ddd08 (patch)
tree61693de9f39ee841023bf771c0a8b75d069d5a30 /src/Kotlin/KotlinLanguageService.kt
parent1f3dc2a8dd2c8019513a61216f96c198cea0a3ef (diff)
downloaddokka-aace0f39335c7428ffcfd44cbe1371ecc32ddd08.tar.gz
dokka-aace0f39335c7428ffcfd44cbe1371ecc32ddd08.tar.bz2
dokka-aace0f39335c7428ffcfd44cbe1371ecc32ddd08.zip
don't render annotations in summary mod
Diffstat (limited to 'src/Kotlin/KotlinLanguageService.kt')
-rw-r--r--src/Kotlin/KotlinLanguageService.kt16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/Kotlin/KotlinLanguageService.kt b/src/Kotlin/KotlinLanguageService.kt
index 304a1cf2..bd98579a 100644
--- a/src/Kotlin/KotlinLanguageService.kt
+++ b/src/Kotlin/KotlinLanguageService.kt
@@ -155,7 +155,9 @@ class KotlinLanguageService : LanguageService {
}
private fun ContentBlock.renderParameter(node: DocumentationNode, renderMode: RenderMode) {
- renderAnnotationsForNode(node)
+ if (renderMode == RenderMode.FULL) {
+ renderAnnotationsForNode(node)
+ }
renderModifiersForNode(node, renderMode)
identifier(node.name, IdentifierKind.ParameterName)
symbol(":")
@@ -226,7 +228,9 @@ class KotlinLanguageService : LanguageService {
}
private fun ContentBlock.renderClass(node: DocumentationNode, renderMode: RenderMode) {
- renderAnnotationsForNode(node)
+ if (renderMode == RenderMode.FULL) {
+ renderAnnotationsForNode(node)
+ }
renderModifiersForNode(node, renderMode)
when (node.kind) {
DocumentationNode.Kind.Class,
@@ -244,7 +248,9 @@ class KotlinLanguageService : LanguageService {
}
private fun ContentBlock.renderFunction(node: DocumentationNode, renderMode: RenderMode) {
- renderAnnotationsForNode(node)
+ if (renderMode == RenderMode.FULL) {
+ renderAnnotationsForNode(node)
+ }
renderModifiersForNode(node, renderMode)
when (node.kind) {
DocumentationNode.Kind.Constructor -> identifier(node.owner!!.name)
@@ -282,7 +288,9 @@ class KotlinLanguageService : LanguageService {
}
private fun ContentBlock.renderProperty(node: DocumentationNode, renderMode: RenderMode) {
- renderAnnotationsForNode(node)
+ if (renderMode == RenderMode.FULL) {
+ renderAnnotationsForNode(node)
+ }
renderModifiersForNode(node, renderMode)
when (node.kind) {
DocumentationNode.Kind.Property,