Don't share instances of JsNameRef nodes to avoid wrong source maps
When to name references to the same name are represented by a shared JS AST node, setting line number of the second usage may override line number of the first usage. Also, supply more JS AST nodes related to default parameters, with corresponding source information.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
fun box(
|
||||
x: Int = 23,
|
||||
y: Int =
|
||||
42
|
||||
) {
|
||||
println(x)
|
||||
println(y)
|
||||
}
|
||||
|
||||
// LINES: 2 2 3 4 6 7
|
||||
Reference in New Issue
Block a user