Support inline properties in debugger class search

This commit is contained in:
Yan Zhulanow
2017-04-10 18:12:46 +03:00
committed by Yan Zhulanow
parent cb9e90183a
commit 9e61eea758
7 changed files with 154 additions and 40 deletions
@@ -0,0 +1,9 @@
LineBreakpoint created at inlineProperties.kt:8
LineBreakpoint created at inlineProperties.kt:20
Run Java
Connected to the target VM
inlineProperties.kt:8
inlineProperties.kt:20
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,9 @@
LineBreakpoint created at inlinePropertyAccessors.kt:8
LineBreakpoint created at inlinePropertyAccessors.kt:20
Run Java
Connected to the target VM
inlinePropertyAccessors.kt:8
inlinePropertyAccessors.kt:20
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,24 @@
package inlineProperties
fun main(args: Array<String>) {
class A {
inline val a: String
get() {
//Breakpoint!
return System.nanoTime().toString()
}
}
A().apply { a }
B().apply { b }
}
class B {
inline val b: String
get() {
//Breakpoint!
return System.nanoTime().toString()
}
}
// RESUME: 2
@@ -0,0 +1,24 @@
package inlinePropertyAccessors
fun main(args: Array<String>) {
class A {
val a: String
inline get() {
//Breakpoint!
return System.nanoTime().toString()
}
}
A().apply { a }
B().apply { b }
}
class B {
val b: String
inline get() {
//Breakpoint!
return System.nanoTime().toString()
}
}
// RESUME: 2