aboutsummaryrefslogtreecommitdiff
path: root/src/Kotlin/DocumentationBuilder.kt
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-01-09 20:59:58 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-01-09 20:59:58 +0100
commite17eaa5fbc296bab0f32e8169d50fea06a6de581 (patch)
treee8048ee2dc036209a632966daf5f948984371329 /src/Kotlin/DocumentationBuilder.kt
parent1a4794397f3e5db8dac12d1797edd16c121de21f (diff)
downloaddokka-e17eaa5fbc296bab0f32e8169d50fea06a6de581.tar.gz
dokka-e17eaa5fbc296bab0f32e8169d50fea06a6de581.tar.bz2
dokka-e17eaa5fbc296bab0f32e8169d50fea06a6de581.zip
nice rendering for deprecated members
Diffstat (limited to 'src/Kotlin/DocumentationBuilder.kt')
-rw-r--r--src/Kotlin/DocumentationBuilder.kt6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Kotlin/DocumentationBuilder.kt b/src/Kotlin/DocumentationBuilder.kt
index 844d8290..121c44bf 100644
--- a/src/Kotlin/DocumentationBuilder.kt
+++ b/src/Kotlin/DocumentationBuilder.kt
@@ -127,7 +127,11 @@ class DocumentationBuilder(val session: ResolveSession, val options: Documentati
fun DocumentationNode.appendAnnotations(annotated: Annotated) {
annotated.getAnnotations().forEach {
- it.build()?.let { append(it, DocumentationReference.Kind.Annotation) }
+ val annotationNode = it.build()
+ if (annotationNode != null) {
+ append(annotationNode,
+ if (annotationNode.name == "deprecated") DocumentationReference.Kind.Deprecation else DocumentationReference.Kind.Annotation)
+ }
}
}