diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-09-09 13:06:47 +0200 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-09-09 13:06:47 +0200 |
commit | 60c915a9d35d8026bd2fc1a193b97b89cbf29621 (patch) | |
tree | c540999dfcaaaf5d3f9239e1dd8455e0cc91107b /src/Kotlin | |
parent | 14030ca5e50914cbe9f2e5db2104eda38d71210b (diff) | |
download | dokka-60c915a9d35d8026bd2fc1a193b97b89cbf29621.tar.gz dokka-60c915a9d35d8026bd2fc1a193b97b89cbf29621.tar.bz2 dokka-60c915a9d35d8026bd2fc1a193b97b89cbf29621.zip |
"annotation" is a modifer now, so don't render it the second time as a keyword
Diffstat (limited to 'src/Kotlin')
-rw-r--r-- | src/Kotlin/KotlinLanguageService.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Kotlin/KotlinLanguageService.kt b/src/Kotlin/KotlinLanguageService.kt index 3efe29c3..a22ba8af 100644 --- a/src/Kotlin/KotlinLanguageService.kt +++ b/src/Kotlin/KotlinLanguageService.kt @@ -228,10 +228,10 @@ class KotlinLanguageService : LanguageService { renderModifiersForNode(node, renderMode) renderAnnotationsForNode(node) when (node.kind) { - DocumentationNode.Kind.Class -> keyword("class ") + DocumentationNode.Kind.Class, + DocumentationNode.Kind.AnnotationClass -> keyword("class ") DocumentationNode.Kind.Interface -> keyword("interface ") DocumentationNode.Kind.Enum -> keyword("enum class ") - DocumentationNode.Kind.AnnotationClass -> keyword("annotation class ") DocumentationNode.Kind.EnumItem -> keyword("enum val ") DocumentationNode.Kind.Object -> keyword("object ") else -> throw IllegalArgumentException("Node $node is not a class-like object") |