diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2016-01-05 17:43:40 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2016-01-05 17:43:40 +0100 |
commit | 9b9b689d67a20abb52fcde5ed4655d9a5092b8df (patch) | |
tree | f0ac5e76533d4ab911f424adbfb0179e66f47c57 /core/src/main/kotlin/Kotlin | |
parent | efd848a7d5f5f241de4696d34a500d76f51b3cbc (diff) | |
download | dokka-9b9b689d67a20abb52fcde5ed4655d9a5092b8df.tar.gz dokka-9b9b689d67a20abb52fcde5ed4655d9a5092b8df.tar.bz2 dokka-9b9b689d67a20abb52fcde5ed4655d9a5092b8df.zip |
always include type parameters in the signature of a type
Diffstat (limited to 'core/src/main/kotlin/Kotlin')
-rw-r--r-- | core/src/main/kotlin/Kotlin/DocumentationBuilder.kt | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt b/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt index e3de493a..f92d15f9 100644 --- a/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt +++ b/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt @@ -633,10 +633,7 @@ fun CallableMemberDescriptor.parameterSignature(): String { fun KotlinType.signature(): String { val declarationDescriptor = constructor.declarationDescriptor ?: return "<null>" val typeName = DescriptorUtils.getFqName(declarationDescriptor).asString() - if (typeName == "Array" && arguments.size == 1) { - return "Array<" + arguments.first().type.signature() + ">" - } - return typeName + return typeName + arguments.joinToString(prefix = "<", postfix = ">") { it.type.signature() } } fun DeclarationDescriptor.signatureWithSourceLocation(): String { |