[JS IR] Improve debug info precision for blocks

Namely:
- Generate debug info for closing braces, which allows the breakpoints
  set on closing braces to be hit
- Generate debug info for 'if' and 'try/catch' statements.

KT-46276
This commit is contained in:
Sergej Jaskiewicz
2022-10-13 19:15:49 +02:00
committed by Space Team
parent a1c61bb9a0
commit a939f9ccd0
129 changed files with 423 additions and 160 deletions
+15 -1
View File
@@ -187,35 +187,49 @@ class O<T>(i: T) {
// EXPECTATIONS JS_IR
// test.kt:4 box
// test.kt:19 <init>
// test.kt:5 box
// test.kt:20 <init>
// test.kt:20 <init>
// test.kt:6 box
// test.kt:22 D_init_$Init$
// test.kt:21 D
// test.kt:7 box
// test.kt:25 E_init_$Init$
// test.kt:24 E
// test.kt:8 box
// test.kt:28 F_init_$Init$
// test.kt:27 F
// test.kt:29 F_init_$Init$
// test.kt:9 box
// test.kt:33 G_init_$Init$
// test.kt:32 G
// test.kt:34 G_init_$Init$
// test.kt:10 box
// test.kt:39 <init>
// test.kt:37 <init>
// test.kt:11 box
// test.kt:42 <init>
// test.kt:44 <init>
// test.kt:42 <init>
// test.kt:12 box
// test.kt:48 L_init_$Init$
// test.kt:53 L
// test.kt:47 L
// test.kt:49 L_init_$Init$
// test.kt:13 box
// test.kt:57 M_init_$Init$
// test.kt:61 M_init_$Init$_0
// test.kt:56 M
// test.kt:58 M_init_$Init$
// test.kt:14 box
// test.kt:65 N_init_$Init$
// test.kt:69 N_init_$Init$_0
// test.kt:64 N
// test.kt:66 N_init_$Init$
// test.kt:15 box
// test.kt:72 <init>
// test.kt:16 box
// test.kt:73 O_init_$Init$
// test.kt:73 O_init_$Init$
// test.kt:72 <init>
// test.kt:17 box