aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2018-05-04 18:31:06 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2018-07-14 23:57:12 +0300
commitcf8b820682cf7af82d15f46f742d63a7766fe95e (patch)
treeb70d8cb4ad63d1aceac88f8241ec94aeaf608701 /core/src/main/kotlin/Kotlin/DocumentationBuilder.kt
parenta50de81d3d0ce88d2fd8e91a55b203ba49e66eb1 (diff)
downloaddokka-cf8b820682cf7af82d15f46f742d63a7766fe95e.tar.gz
dokka-cf8b820682cf7af82d15f46f742d63a7766fe95e.tar.bz2
dokka-cf8b820682cf7af82d15f46f742d63a7766fe95e.zip
KT-24270: Render platform-types with bang
Diffstat (limited to 'core/src/main/kotlin/Kotlin/DocumentationBuilder.kt')
-rw-r--r--core/src/main/kotlin/Kotlin/DocumentationBuilder.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt b/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt
index 88fe7095..c165045d 100644
--- a/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt
+++ b/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt
@@ -242,7 +242,9 @@ class DocumentationBuilder
if (prefix != "") {
node.appendTextNode(prefix, NodeKind.Modifier)
}
- if (kotlinType.isMarkedNullable) {
+ if (kotlinType.isNullabilityFlexible()) {
+ node.appendTextNode("!", NodeKind.NullabilityModifier)
+ } else if (kotlinType.isNullable()) {
node.appendTextNode("?", NodeKind.NullabilityModifier)
}
if (classifierDescriptor != null) {