JVM: move synthetic line number generation to the inliner

This makes the behavior of JVM and JVM_IR the same without having to
deal with PSI nodes.
This commit is contained in:
pyos
2020-04-23 14:34:13 +02:00
committed by max-kammerer
parent 91b6daeacc
commit deecb6a28e
7 changed files with 70 additions and 30 deletions
@@ -3386,6 +3386,16 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
runTest("compiler/testData/codegen/bytecodeText/lineNumbers/singleThen.kt");
}
@TestMetadata("stdlibInlineOnly.kt")
public void testStdlibInlineOnly() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/lineNumbers/stdlibInlineOnly.kt");
}
@TestMetadata("stdlibInlineOnlyOneLine.kt")
public void testStdlibInlineOnlyOneLine() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/lineNumbers/stdlibInlineOnlyOneLine.kt");
}
@TestMetadata("tryCatch.kt")
public void testTryCatch() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/lineNumbers/tryCatch.kt");