[JS IR] Generate debug info for JS injections

Also, fix the JS parser to collect the "correct" debug info
(see the note in `translateJsCodeIntoStatementList`)

#KT-53361 Fixed
This commit is contained in:
Sergej Jaskiewicz
2022-08-02 13:32:26 +02:00
committed by Space
parent 746c1b5903
commit d57ddc5f83
12 changed files with 182 additions and 47 deletions
+2 -4
View File
@@ -5,7 +5,5 @@ fun foo() {
println("after: $x")
}
// LINES(JS): 1 6 2 2 3 3 4 4 5 5
// LINES(JS_IR): 2 2 3 3 2 2 5 5
// FIXME: ^^^^^^^
// js function call debug info is incorrect
// LINES(JS): 1 6 2 2 3 3 4 4 5 5
// LINES(JS_IR): 2 2 3 3 4 4 5 5