diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-01-09 20:59:58 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-01-09 20:59:58 +0100 |
commit | e17eaa5fbc296bab0f32e8169d50fea06a6de581 (patch) | |
tree | e8048ee2dc036209a632966daf5f948984371329 /src/Kotlin/DocumentationBuilder.kt | |
parent | 1a4794397f3e5db8dac12d1797edd16c121de21f (diff) | |
download | dokka-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.kt | 6 |
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) + } } } |