Keep JS AST source information after refreshing local names

This commit is contained in:
Alexey Andreev
2017-05-05 23:16:22 +03:00
parent ad89e5906f
commit 89e3fb7592
4 changed files with 22 additions and 4 deletions
@@ -0,0 +1,12 @@
inline fun foo(x: Int) {
val y = x > 23
if (y) {
println("foo")
}
}
fun bar() {
foo(42)
}
// LINES: 2 3 4 * 2 9 2 3 4
+1 -1
View File
@@ -21,4 +21,4 @@ fun bar(x: Int) {
println("%")
}
// LINES: 2 3 4 7 9 10 11 14 16 * 20 * 2 3 3 7 9 10 10 14 16 20 21
// LINES: 2 3 4 7 9 10 11 14 16 * 20 * 2 3 4 3 7 9 10 11 10 14 16 20 21