@@ -13,14 +13,14 @@ import org.jetbrains.kotlin.load.kotlin.JvmPackagePartSource
1313// Adapted from Kotlin's interpreter/Utils.kt function 'internalName'
1414// Translates class names into their JLS section 13.1 binary name,
1515// and declarations within them into the parent class' JLS 13.1 name as
16- // specified above, followed by a `$` separator and then a unique identifier
17- // for `that`, consisting of its short name followed by any supplied signature .
18- fun getIrDeclBinaryName (that : IrDeclaration , signature : String ): String {
16+ // specified above, followed by a `$` separator and then the short name
17+ // for `that`.
18+ fun getIrDeclBinaryName (that : IrDeclaration ): String {
1919 val shortName = when (that) {
2020 is IrDeclarationWithName -> that.name.asString()
2121 else -> " (unknown-name)"
2222 }
23- val internalName = StringBuilder (shortName + signature );
23+ val internalName = StringBuilder (shortName);
2424 generateSequence(that.parent) { (it as ? IrDeclaration )?.parent }
2525 .forEach {
2626 when (it) {
@@ -75,5 +75,5 @@ fun getRawIrClassBinaryPath(irClass: IrClass) =
7575fun getIrClassBinaryPath (irClass : IrClass ): String {
7676 return getRawIrClassBinaryPath(irClass)
7777 // Otherwise, make up a fake location:
78- ? : " /!unknown-binary-location/${getIrDeclBinaryName(irClass, " " ).replace(" ." , " /" )} .class"
78+ ? : " /!unknown-binary-location/${getIrDeclBinaryName(irClass).replace(" ." , " /" )} .class"
7979}
0 commit comments