[IR] Normalize temp var names in Kotlin-like dump
^KT-61983 Fixed
This commit is contained in:
committed by
Space Team
parent
6c519488a6
commit
bae8b283c7
+18
-18
@@ -1,10 +1,10 @@
|
||||
fun test1(c: Boolean?) {
|
||||
L@ while (true) { // BLOCK
|
||||
L2@ while ({ // BLOCK
|
||||
val <elvis>: Boolean? = c
|
||||
val tmp_0: Boolean? = c
|
||||
when {
|
||||
EQEQ(arg0 = <elvis>, arg1 = null) -> break@L
|
||||
else -> <elvis>
|
||||
EQEQ(arg0 = tmp_0, arg1 = null) -> break@L
|
||||
else -> tmp_0
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -13,10 +13,10 @@ fun test1(c: Boolean?) {
|
||||
fun test2(c: Boolean?) {
|
||||
L@ while (true) { // BLOCK
|
||||
L2@ while ({ // BLOCK
|
||||
val <elvis>: Boolean? = c
|
||||
val tmp_1: Boolean? = c
|
||||
when {
|
||||
EQEQ(arg0 = <elvis>, arg1 = null) -> continue@L
|
||||
else -> <elvis>
|
||||
EQEQ(arg0 = tmp_1, arg1 = null) -> continue@L
|
||||
else -> tmp_1
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -25,15 +25,15 @@ fun test2(c: Boolean?) {
|
||||
fun test3(ss: List<String>?) {
|
||||
L@ while (true) { // BLOCK
|
||||
{ // BLOCK
|
||||
val <iterator>: Iterator<String> = { // BLOCK
|
||||
val <elvis>: List<String>? = ss
|
||||
val tmp_2: Iterator<String> = { // BLOCK
|
||||
val tmp_3: List<String>? = ss
|
||||
when {
|
||||
EQEQ(arg0 = <elvis>, arg1 = null) -> continue@L
|
||||
else -> <elvis>
|
||||
EQEQ(arg0 = tmp_3, arg1 = null) -> continue@L
|
||||
else -> tmp_3
|
||||
}
|
||||
}.iterator()
|
||||
L2@ while (<iterator>.hasNext()) { // BLOCK
|
||||
val s: String = <iterator>.next()
|
||||
L2@ while (tmp_2.hasNext()) { // BLOCK
|
||||
val s: String = tmp_2.next()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -42,15 +42,15 @@ fun test3(ss: List<String>?) {
|
||||
fun test4(ss: List<String>?) {
|
||||
L@ while (true) { // BLOCK
|
||||
{ // BLOCK
|
||||
val <iterator>: Iterator<String> = { // BLOCK
|
||||
val <elvis>: List<String>? = ss
|
||||
val tmp_4: Iterator<String> = { // BLOCK
|
||||
val tmp_5: List<String>? = ss
|
||||
when {
|
||||
EQEQ(arg0 = <elvis>, arg1 = null) -> break@L
|
||||
else -> <elvis>
|
||||
EQEQ(arg0 = tmp_5, arg1 = null) -> break@L
|
||||
else -> tmp_5
|
||||
}
|
||||
}.iterator()
|
||||
L2@ while (<iterator>.hasNext()) { // BLOCK
|
||||
val s: String = <iterator>.next()
|
||||
L2@ while (tmp_4.hasNext()) { // BLOCK
|
||||
val s: String = tmp_4.next()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user