aboutsummaryrefslogtreecommitdiff
path: root/src/Kotlin/KotlinLanguageService.kt
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2014-12-30 18:47:03 +0100
committerDmitry Jemerov <yole@jetbrains.com>2014-12-30 18:47:03 +0100
commit69dd2988ec98a9fa027fcc805f28efbe8758d476 (patch)
tree84badb429672162a55cb09ab082519b40cba3620 /src/Kotlin/KotlinLanguageService.kt
parent716483c2f20e4af1951342f2acc9a231fcbeab3b (diff)
downloaddokka-69dd2988ec98a9fa027fcc805f28efbe8758d476.tar.gz
dokka-69dd2988ec98a9fa027fcc805f28efbe8758d476.tar.bz2
dokka-69dd2988ec98a9fa027fcc805f28efbe8758d476.zip
support and render annotation parameters
Diffstat (limited to 'src/Kotlin/KotlinLanguageService.kt')
-rw-r--r--src/Kotlin/KotlinLanguageService.kt8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Kotlin/KotlinLanguageService.kt b/src/Kotlin/KotlinLanguageService.kt
index 0538ba74..92d5bf1d 100644
--- a/src/Kotlin/KotlinLanguageService.kt
+++ b/src/Kotlin/KotlinLanguageService.kt
@@ -172,6 +172,14 @@ class KotlinLanguageService : LanguageService {
private fun ContentNode.renderAnnotation(node: DocumentationNode) {
identifier(node.name)
+ val parameters = node.details(DocumentationNode.Kind.Parameter)
+ if (!parameters.isEmpty()) {
+ symbol("(")
+ renderList(parameters) {
+ text(it.detail(DocumentationNode.Kind.Value).name)
+ }
+ symbol(")")
+ }
text(" ")
}