Stepping: do not write line numbers for call arguments

#KT-3080 Fixed
This commit is contained in:
Natalia Ukhorskaya
2014-12-16 10:27:30 +03:00
parent c66af565f6
commit e35b960eb5
16 changed files with 219 additions and 17 deletions
@@ -0,0 +1,17 @@
class A {
fun foo(a: A) = a
}
fun bar(a: A) = A()
fun foo() {
val a = A()
bar(
bar(
bar(a)
)
)
}
// 2 5 8 9 15
@@ -0,0 +1,15 @@
class A {
fun foo() = this
inline fun bar() = this
}
fun foo() {
val a = A()
a
.foo()
a
.bar()
}
// 2 3 7 8 9 11 12 13
@@ -0,0 +1,15 @@
class A {
fun foo() = this
inline fun bar() = this
}
fun foo() {
val a = A()
a.foo()
.foo()
a.bar()
.bar()
}
// 2 3 7 8 9 11 12 13
@@ -0,0 +1,12 @@
fun test() {
foo()
bar()
}
fun foo(i: Int = 1) {
}
inline fun bar(i: Int = 1) {
}
// 2 3 4 7 6 10 9
@@ -0,0 +1,16 @@
fun foo() {
foo({
val a = 1
})
foo() {
val a = 1
}
}
inline fun foo(f: () -> Unit) {
val a = 1
f()
}
// 2 3 6 7 9 12 13 14
@@ -0,0 +1,15 @@
fun foo() {
foo({
val a = 1
})
foo() {
val a = 1
}
}
fun foo(f: () -> Unit) {
f()
}
// 2 6 9 12 13 3 7
@@ -0,0 +1,10 @@
fun foo() {
foo(
1 + 1
)
}
fun foo(i: Int) {
}
// 2 5 8
@@ -0,0 +1,9 @@
fun foo() {
1 foo
1
}
fun Int.foo(i: Int) {
}
// 2 4 7