aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-11-04 21:20:15 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-11-04 21:20:15 +0100
commit449a61cd6c46f196855cdb9375593fb04b38709a (patch)
treecab7a556dd0e8ff62ef07075a2f4f02cf80ebbb3 /src
parent970af572c55f5535485f955f2219a94f73e696d4 (diff)
downloaddokka-449a61cd6c46f196855cdb9375593fb04b38709a.tar.gz
dokka-449a61cd6c46f196855cdb9375593fb04b38709a.tar.bz2
dokka-449a61cd6c46f196855cdb9375593fb04b38709a.zip
revert array handling
Diffstat (limited to 'src')
-rw-r--r--src/Java/JavaPsiDocumentationBuilder.kt7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Java/JavaPsiDocumentationBuilder.kt b/src/Java/JavaPsiDocumentationBuilder.kt
index 72f398ce..3c9875cd 100644
--- a/src/Java/JavaPsiDocumentationBuilder.kt
+++ b/src/Java/JavaPsiDocumentationBuilder.kt
@@ -20,9 +20,9 @@ private fun PsiType.typeSignature(): String = when(this) {
private fun mapTypeName(psiType: PsiType): String = when (psiType) {
is PsiPrimitiveType -> psiType.canonicalText
- is PsiClassType -> psiType.className
+ is PsiClassType -> psiType.resolve()?.qualifiedName ?: psiType.className
is PsiEllipsisType -> mapTypeName(psiType.componentType)
- is PsiArrayType -> mapTypeName(psiType.componentType) + "[]"
+ is PsiArrayType -> "Array"
else -> psiType.canonicalText
}
@@ -243,6 +243,9 @@ class JavaPsiDocumentationBuilder : JavaDocumentationBuilder {
node.appendDetails(parameters) { build(Kind.Type) }
link(node, resolve())
}
+ if (this is PsiArrayType && this !is PsiEllipsisType) {
+ node.append(componentType.build(Kind.Type), DocumentationReference.Kind.Detail)
+ }
return node
}