[FIR] Fix line number differences between psi2ir and fir2ir.

This commit is contained in:
Mads Ager
2021-10-28 09:28:54 +02:00
committed by Mikhail Glukhikh
parent 8a8c38cc48
commit 41aa0a7c7f
4 changed files with 26 additions and 7 deletions
@@ -6,7 +6,8 @@ FILE fqName:<root> fileName:/tryCatch.kt
CATCH parameter=val e: kotlin.Throwable [val] declared in <root>.test1
VAR name:e type:kotlin.Throwable [val]
CALL 'public final fun println (): kotlin.Unit [inline] declared in kotlin.io.ConsoleKt' type=kotlin.Unit origin=null
finally: CALL 'public final fun println (): kotlin.Unit [inline] declared in kotlin.io.ConsoleKt' type=kotlin.Unit origin=null
finally: BLOCK type=kotlin.Unit origin=null
CALL 'public final fun println (): kotlin.Unit [inline] declared in kotlin.io.ConsoleKt' type=kotlin.Unit origin=null
FUN name:test2 visibility:public modality:FINAL <> () returnType:kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun test2 (): kotlin.Int declared in <root>'
@@ -1,7 +1,9 @@
fun test1() {
try println()
catch (e: Throwable)println()
finally println()
finally { // BLOCK
println()
}
}
fun test2(): Int {
@@ -18,3 +20,4 @@ fun test2(): Int {
555
}
}