From ac91c6f29205029b751cec527c5691697093457d Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Wed, 9 Sep 2015 15:33:27 +0200 Subject: render annotations before modifiers --- src/Kotlin/KotlinLanguageService.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Kotlin') diff --git a/src/Kotlin/KotlinLanguageService.kt b/src/Kotlin/KotlinLanguageService.kt index d61db546..304a1cf2 100644 --- a/src/Kotlin/KotlinLanguageService.kt +++ b/src/Kotlin/KotlinLanguageService.kt @@ -226,8 +226,8 @@ class KotlinLanguageService : LanguageService { } private fun ContentBlock.renderClass(node: DocumentationNode, renderMode: RenderMode) { - renderModifiersForNode(node, renderMode) renderAnnotationsForNode(node) + renderModifiersForNode(node, renderMode) when (node.kind) { DocumentationNode.Kind.Class, DocumentationNode.Kind.AnnotationClass, @@ -244,8 +244,8 @@ class KotlinLanguageService : LanguageService { } private fun ContentBlock.renderFunction(node: DocumentationNode, renderMode: RenderMode) { - renderModifiersForNode(node, renderMode) renderAnnotationsForNode(node) + renderModifiersForNode(node, renderMode) when (node.kind) { DocumentationNode.Kind.Constructor -> identifier(node.owner!!.name) DocumentationNode.Kind.Function, @@ -282,8 +282,8 @@ class KotlinLanguageService : LanguageService { } private fun ContentBlock.renderProperty(node: DocumentationNode, renderMode: RenderMode) { - renderModifiersForNode(node, renderMode) renderAnnotationsForNode(node) + renderModifiersForNode(node, renderMode) when (node.kind) { DocumentationNode.Kind.Property, DocumentationNode.Kind.CompanionObjectProperty -> keyword("${node.getPropertyKeyword()} ") -- cgit