aboutsummaryrefslogtreecommitdiff
path: root/src/Kotlin/DocumentationBuilder.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/Kotlin/DocumentationBuilder.kt')
-rw-r--r--src/Kotlin/DocumentationBuilder.kt5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Kotlin/DocumentationBuilder.kt b/src/Kotlin/DocumentationBuilder.kt
index d8933087..3b7f25d6 100644
--- a/src/Kotlin/DocumentationBuilder.kt
+++ b/src/Kotlin/DocumentationBuilder.kt
@@ -224,13 +224,16 @@ class DocumentationBuilder(val session: ResolveSession,
return
val classifierDescriptor = jetType.getConstructor().getDeclarationDescriptor()
val name = when (classifierDescriptor) {
- is Named -> classifierDescriptor.getName().asString() + if (jetType.isMarkedNullable()) "?" else ""
+ is Named -> classifierDescriptor.getName().asString()
else -> "<anonymous>"
}
val node = DocumentationNode(name, Content.Empty, kind)
if (prefix != "") {
node.appendTextNode(prefix, Kind.Modifier)
}
+ if (jetType.isMarkedNullable()) {
+ node.appendTextNode("?", Kind.NullabilityModifier)
+ }
if (classifierDescriptor != null && !classifierDescriptor.isBoringBuiltinClass()) {
link(node, classifierDescriptor)
}