aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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,