Fix refer to classes from default package in SMAP
This commit is contained in:
@@ -117,7 +117,7 @@ public class InlineCodegenUtil {
|
||||
}
|
||||
}, ClassReader.SKIP_FRAMES | (GENERATE_SMAP ? 0 : ClassReader.SKIP_DEBUG));
|
||||
|
||||
SMAP smap = SMAPParser.parseOrCreateDefault(debugInfo[1], debugInfo[0], classId.toString(), lines[0], lines[1]);
|
||||
SMAP smap = SMAPParser.parseOrCreateDefault(debugInfo[1], debugInfo[0], classId.asString(), lines[0], lines[1]);
|
||||
return new SMAPAndMethodNode(node[0], smap);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
fun box(): String {
|
||||
A().foo()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
|
||||
//SMAP
|
||||
//classFromDefaultPackage.1.kt
|
||||
//Kotlin
|
||||
//*S Kotlin
|
||||
//*F
|
||||
//+ 1 classFromDefaultPackage.1.kt
|
||||
//ClassFromDefaultPackage_1Kt
|
||||
//+ 2 classFromDefaultPackage.2.kt
|
||||
//A
|
||||
//*L
|
||||
//1#1,20:1
|
||||
//2#2:21
|
||||
//*E
|
||||
@@ -0,0 +1,3 @@
|
||||
class A {
|
||||
inline fun foo() {}
|
||||
}
|
||||
+6
@@ -1225,6 +1225,12 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
|
||||
doTestMultiFileWithInlineCheck(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("classFromDefaultPackage.1.kt")
|
||||
public void testClassFromDefaultPackage() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/smap/classFromDefaultPackage.1.kt");
|
||||
doTestMultiFileWithInlineCheck(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("oneFile.1.kt")
|
||||
public void testOneFile() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/smap/oneFile.1.kt");
|
||||
|
||||
+6
@@ -1225,6 +1225,12 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
|
||||
doBoxTestWithInlineCheck(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("classFromDefaultPackage.1.kt")
|
||||
public void testClassFromDefaultPackage() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/smap/classFromDefaultPackage.1.kt");
|
||||
doBoxTestWithInlineCheck(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("oneFile.1.kt")
|
||||
public void testOneFile() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/smap/oneFile.1.kt");
|
||||
|
||||
Reference in New Issue
Block a user