[JS IR] Emit original names for local vars to sourcemaps

#KT-35655 Fixed
This commit is contained in:
Sergej Jaskiewicz
2022-11-01 19:19:25 +01:00
committed by Space Team
parent 8efa72ca36
commit 7b7c517dbb
114 changed files with 1970 additions and 376 deletions
@@ -16,7 +16,7 @@ fun box() {
Derived(4, 5)
}
// EXPECTATIONS
// EXPECTATIONS JVM JVM_IR
// test.kt:15 box:
// test.kt:7 <init>: p:int=3:int
// test.kt:6 <init>:
@@ -25,9 +25,8 @@ fun box() {
// test.kt:8 <init>: p:int=3:int
// EXPECTATIONS JVM_IR
// test.kt:9 <init>: p:int=3:int, a:int=2:int
// EXPECTATIONS
// EXPECTATIONS JVM JVM_IR
// test.kt:15 box:
// test.kt:16 box:
// test.kt:11 <init>: p1:int=4:int, p2:int=5:int
// test.kt:6 <init>:
@@ -35,4 +34,18 @@ fun box() {
// test.kt:6 <init>:
// test.kt:11 <init>: p1:int=4:int, p2:int=5:int
// test.kt:16 box:
// test.kt:17 box:
// test.kt:17 box:
// EXPECTATIONS JS_IR
// test.kt:15 box:
// test.kt:7 Derived_init_$Init$: p=3:number
// test.kt:6 <init>:
// test.kt:4 <init>: i=1:number
// test.kt:6 <init>:
// test.kt:8 Derived_init_$Init$: p=3:number
// test.kt:16 box:
// test.kt:11 Derived_init_$Init$: p1=4:number, p2=5:number
// test.kt:6 <init>:
// test.kt:4 <init>: i=1:number
// test.kt:6 <init>:
// test.kt:17 box:
@@ -7,8 +7,14 @@ fun box() {
F("foo")
}
// EXPECTATIONS
// EXPECTATIONS JVM JVM_IR
// test.kt:7 box:
// test.kt:4 <init>: a:java.lang.String="foo":java.lang.String
// test.kt:7 box:
// test.kt:8 box:
// test.kt:8 box:
// EXPECTATIONS JS_IR
// test.kt:7 box:
// test.kt:4 <init>: a="foo":kotlin.String
// test.kt:4 <init>: a="foo":kotlin.String
// test.kt:8 box: