aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-02-13 16:00:43 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-02-13 16:00:43 +0100
commit0544db0b45826b7666abdf88352ac93a19e80995 (patch)
tree088c8f6801a3251536e9553604773276ff5400fe /src
parent181418c96f8027a196288a4a6dcd19dc468edf4d (diff)
downloaddokka-0544db0b45826b7666abdf88352ac93a19e80995.tar.gz
dokka-0544db0b45826b7666abdf88352ac93a19e80995.tar.bz2
dokka-0544db0b45826b7666abdf88352ac93a19e80995.zip
map array types to Kotlin
Diffstat (limited to 'src')
-rw-r--r--src/Java/JavaDocumentationBuilder.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Java/JavaDocumentationBuilder.kt b/src/Java/JavaDocumentationBuilder.kt
index 1904f621..760a9a3a 100644
--- a/src/Java/JavaDocumentationBuilder.kt
+++ b/src/Java/JavaDocumentationBuilder.kt
@@ -13,6 +13,7 @@ import com.intellij.psi.PsiClassType
import com.intellij.psi.PsiPrimitiveType
import com.intellij.psi.PsiModifierListOwner
import com.intellij.psi.PsiModifier
+import com.intellij.psi.PsiArrayType
public class JavaDocumentationBuilder() {
fun appendFile(file: PsiJavaFile, module: DocumentationModule) {
@@ -100,6 +101,7 @@ public class JavaDocumentationBuilder() {
PsiType.VOID -> "Unit"
is PsiPrimitiveType -> psiType.getCanonicalText().capitalize()
is PsiClassType -> psiType.getClassName()
+ is PsiArrayType -> "Array<${mapTypeName(psiType.getComponentType())}>"
else -> psiType.getCanonicalText()
}
}