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
This commit is contained in:
Mikhail Glukhikh
2023-09-28 15:20:08 +02:00
committed by Space Team
parent 072757cdde
commit 1d631500f5
22 changed files with 1483 additions and 0 deletions
@@ -0,0 +1,30 @@
@0:0..24:0 FILE fqName:test fileName:/classFuns.kt
@3:0..23:1 CLASS CLASS name:Test modality:FINAL visibility:public superTypes:[kotlin.Any]
@3:0..23:1 CONSTRUCTOR visibility:public <> () returnType:test.Test [primary]
@3:0..23:1 BLOCK_BODY
@3:0..23:1 DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
@3:0..23:1 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test modality:FINAL visibility:public superTypes:[kotlin.Any]'
@5:4..18 FUN name:test0 visibility:public modality:FINAL <> ($this:test.Test) returnType:kotlin.Unit
@5:4..18 VALUE_PARAMETER name:<this> type:test.Test
@5:16..18 BLOCK_BODY
@11:4..18 FUN name:test1 visibility:public modality:FINAL <> ($this:test.Test) returnType:kotlin.Unit
@11:4..18 VALUE_PARAMETER name:<this> type:test.Test
@11:16..18 BLOCK_BODY
@14:4..17:18 FUN name:test2 visibility:public modality:FINAL <> ($this:test.Test) returnType:kotlin.Unit
annotations:
@14:4..16:5 CONSTRUCTOR_CALL 'public constructor <init> (vararg names: kotlin.String) [primary] declared in kotlin.Suppress' type=kotlin.Suppress origin=null
@15:8..25 VARARG type=kotlin.Array<out kotlin.String> varargElementType=kotlin.String
@15:8..25 CONST String type=kotlin.String value="UNUSED_VARIABLE"
@14:4..17:18 VALUE_PARAMETER name:<this> type:test.Test
@17:16..18 BLOCK_BODY
@20:4..21:18 FUN name:test3 visibility:private modality:FINAL <> ($this:test.Test) returnType:kotlin.Unit
@20:4..21:18 VALUE_PARAMETER name:<this> type:test.Test
@21:16..18 BLOCK_BODY
@-1:-1..-1 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
@-1:-1..-1 VALUE_PARAMETER name:<this> type:kotlin.Any
@-1:-1..-1 VALUE_PARAMETER name:other index:0 type:kotlin.Any?
@-1:-1..-1 FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
@-1:-1..-1 VALUE_PARAMETER name:<this> type:kotlin.Any
@-1:-1..-1 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
@-1:-1..-1 VALUE_PARAMETER name:<this> type:kotlin.Any
@3:0..23:1 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:test.Test