[FIR LT] Get correct startOffset value for declarations with comments

#KT-56913 Fixed
#KT-56926 Fixed
This commit is contained in:
Ivan Kylchik
2023-03-20 19:47:20 +01:00
committed by Space Team
parent e4591d7af9
commit 2b387e7a10
14 changed files with 414 additions and 6 deletions
@@ -0,0 +1,20 @@
// FILE: test.kt
// Comment before
fun foo(i: Int = 1): Int {
return i
}
fun box() {
foo()
}
// EXPECTATIONS JVM JVM_IR
// test.kt:9 box
// test.kt:5 foo
// test.kt:9 box
// test.kt:10 box
// EXPECTATIONS JS_IR
// test.kt:9 box
// test.kt:10 box