0fec50135f
This is the first implementation of a control flow graph facade for the extract function IDE refactoring. The exact contents of 'KtDataFlowExitPointSnapshot' will be refined later. ^KT-65762 Fixed
16 lines
266 B
Kotlin
Vendored
16 lines
266 B
Kotlin
Vendored
fun test() {
|
|
while (cond()) {
|
|
<expr>if (foo() == 5) {
|
|
break
|
|
} else if (foo() == 6) {
|
|
continue
|
|
}</expr>
|
|
consume("foo")
|
|
}
|
|
}
|
|
|
|
fun cond(): Boolean = true
|
|
|
|
fun foo(): Int = 0
|
|
|
|
fun consume(text: String?) = {} |