Files
kotlin-fork/compiler/testData/ir/sourceRanges/elvis.fir.txt
T
Mikhail Glukhikh 1d631500f5 Test: add K2 version of IR source ranges test
After this commit there are three different versions of
IR source range tests: classic (K1), FIR/PSI (K2), FIR/LT (K2).
Since 5 tests behave differently for FIR/PSI and FIR/LT,
in this commit their test data was set to FIR/LT state,
so relevant 5 tests are failing for FIR/PSI right now.
They will be fixed in two subsequent commits

Related to KT-59864, KT-60111, KT-59584
2023-10-10 13:38:51 +00:00

21 lines
1.5 KiB
Plaintext
Vendored

@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