Debugger, BE: Provide Java-like stepping for 'for' loops

- Visit '}' instead of 'for' keyword on post-condition
- Visit 'for' keyword on pre-condition
This commit is contained in:
Yan Zhulanow
2019-11-29 18:55:33 +09:00
parent 8b17718086
commit f115bde682
11 changed files with 46 additions and 13 deletions
@@ -16,5 +16,4 @@ fun box() {
// TestKt:7: map:java.util.Collections$SingletonMap
// TestKt:9: map:java.util.Collections$SingletonMap, a:java.lang.String, b:java.lang.String
// TestKt:7: map:java.util.Collections$SingletonMap
// TestKt:8: map:java.util.Collections$SingletonMap
// TestKt:11: map:java.util.Collections$SingletonMap
+21
View File
@@ -0,0 +1,21 @@
//FILE: test.kt
fun box() {
for (i in 1..3) {
foo(i)
}
}
inline fun foo(n: Int) {}
// LINENUMBERS
// TestKt.box():3
// TestKt.box():4
// TestKt.box():8
// TestKt.box():3
// TestKt.box():4
// TestKt.box():8
// TestKt.box():3
// TestKt.box():4
// TestKt.box():8
// TestKt.box():3
// TestKt.box():6