Improved kotlin decompiler range indexes

Fixed #KT-30628
This commit is contained in:
Igor Yakovlev
2020-01-22 03:50:05 +03:00
parent cb1c0344b8
commit 48db96b66d
27 changed files with 326 additions and 55 deletions
@@ -57,10 +57,7 @@ object MapPsiToAsmDesc {
append(typeDesc(it.type))
}
append(")")
psiMethod.returnType?.let {
append(typeDesc(it))
}
?: return unknownSignature() // TODO: support constructors, there seems to be additional logic in java that doesn't work correctly for compiled kotlin
append(psiMethod.returnType?.let { typeDesc(it) } ?: "V")
}
private fun unknownSignature() = ""