From aace0f39335c7428ffcfd44cbe1371ecc32ddd08 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Thu, 10 Sep 2015 12:55:31 +0200 Subject: don't render annotations in summary mod --- src/Kotlin/KotlinLanguageService.kt | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'src/Kotlin') 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, -- cgit