[IR] Normalize temp var names in Kotlin-like dump

^KT-61983 Fixed
This commit is contained in:
Vladimir Sukharev
2023-09-19 21:29:17 +02:00
committed by Space Team
parent 6c519488a6
commit bae8b283c7
199 changed files with 1599 additions and 2273 deletions
@@ -4,13 +4,13 @@ private const val BACKSLASH: Char
private fun Reader.nextChar(): Char? {
return { // BLOCK
val tmp0_safe_receiver: Int? = <this>.read().takeUnless<Int>(predicate = local fun <anonymous>(it: Int): Boolean {
val tmp_0: Int? = <this>.read().takeUnless<Int>(predicate = local fun <anonymous>(it: Int): Boolean {
return EQEQ(arg0 = it, arg1 = -1)
}
)
when {
EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null
else -> tmp0_safe_receiver.toChar()
EQEQ(arg0 = tmp_0, arg1 = null) -> null
else -> tmp_0.toChar()
}
}
}
@@ -23,10 +23,10 @@ fun Reader.consumeRestOfQuotedSequence(sb: StringBuilder, quote: Char) {
}) { // BLOCK
when {
EQEQ(arg0 = ch, arg1 = '\\') -> { // BLOCK
val tmp1_safe_receiver: Char? = <this>.nextChar()
val tmp_1: Char? = <this>.nextChar()
when {
EQEQ(arg0 = tmp1_safe_receiver, arg1 = null) -> null
else -> tmp1_safe_receiver.let<Char, @FlexibleNullability StringBuilder?>(block = local fun <anonymous>(it: Char): @FlexibleNullability StringBuilder? {
EQEQ(arg0 = tmp_1, arg1 = null) -> null
else -> tmp_1.let<Char, @FlexibleNullability StringBuilder?>(block = local fun <anonymous>(it: Char): @FlexibleNullability StringBuilder? {
return sb.append(p0 = it)
}
)