FIR2IR: use elvis temporary variable name closer to PSI2IR
Related to KT-61983
This commit is contained in:
committed by
Space Team
parent
dcfc20f1ff
commit
13ae4abe52
-20
@@ -1,20 +0,0 @@
|
||||
@0:0..3:0 FILE fqName:<root> fileName:/elvis.kt
|
||||
@0:0..23 FUN name:intN visibility:public modality:FINAL <> () returnType:kotlin.Int?
|
||||
@0:19..23 BLOCK_BODY
|
||||
@0:23..23 RETURN type=kotlin.Nothing from='public final fun intN (): kotlin.Int? declared in <root>'
|
||||
@0:19..23 CONST Null type=kotlin.Nothing? value=null
|
||||
@2:0..24 FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Int
|
||||
@2:13..24 BLOCK_BODY
|
||||
@2:24..24 RETURN type=kotlin.Nothing from='public final fun test (): kotlin.Int declared in <root>'
|
||||
@2:13..24 BLOCK type=kotlin.Int origin=ELVIS
|
||||
@2:13..24 VAR IR_TEMPORARY_VARIABLE name:<elvis> type:kotlin.Int? [val]
|
||||
@2:13..19 CALL 'public final fun intN (): kotlin.Int? declared in <root>' type=kotlin.Int? origin=null
|
||||
@2:13..24 WHEN type=kotlin.Int origin=null
|
||||
@2:13..24 BRANCH
|
||||
@2:13..24 CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ
|
||||
@2:13..24 GET_VAR 'val <elvis>: kotlin.Int? [val] declared in <root>.test' type=kotlin.Int? origin=null
|
||||
@2:13..24 CONST Null type=kotlin.Nothing? value=null
|
||||
@2:23..24 CONST Int type=kotlin.Int value=1
|
||||
@2:13..24 BRANCH
|
||||
@2:13..24 CONST Boolean type=kotlin.Boolean value=true
|
||||
@2:13..24 GET_VAR 'val <elvis>: kotlin.Int? [val] declared in <root>.test' type=kotlin.Int? origin=null
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
fun intN(): Int? = null
|
||||
|
||||
fun test() = intN() ?: 1
|
||||
|
||||
// FIR_IDENTICAL
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
@0:0..3:0 FILE fqName:<root> fileName:/elvis.kt
|
||||
@0:0..5:0 FILE fqName:<root> fileName:/elvis.kt
|
||||
@0:0..23 FUN name:intN visibility:public modality:FINAL <> () returnType:kotlin.Int?
|
||||
@0:19..23 BLOCK_BODY
|
||||
@0:23..23 RETURN type=kotlin.Nothing from='public final fun intN (): kotlin.Int? declared in <root>'
|
||||
|
||||
Reference in New Issue
Block a user