aboutsummaryrefslogtreecommitdiff
path: root/src/Kotlin
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-09-09 15:33:27 +0200
committerDmitry Jemerov <yole@jetbrains.com>2015-09-09 15:33:27 +0200
commitac91c6f29205029b751cec527c5691697093457d (patch)
tree963472b32a0a008439c111bc93d2758857997714 /src/Kotlin
parentcdd7c6b4cf76ee798084af893fb75c46b9c8e5a5 (diff)
downloaddokka-ac91c6f29205029b751cec527c5691697093457d.tar.gz
dokka-ac91c6f29205029b751cec527c5691697093457d.tar.bz2
dokka-ac91c6f29205029b751cec527c5691697093457d.zip
render annotations before modifiers
Diffstat (limited to 'src/Kotlin')
-rw-r--r--src/Kotlin/KotlinLanguageService.kt6
1 files changed, 3 insertions, 3 deletions
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()} ")