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:
committed by
Space Team
parent
072757cdde
commit
1d631500f5
@@ -0,0 +1,74 @@
|
||||
@0:0..15:0 FILE fqName:<root> fileName:/kt29862.kt
|
||||
@0:0..3:1 CLASS CLASS name:Test1 modality:ABSTRACT visibility:public superTypes:[kotlin.Any]
|
||||
@0:20..2:1 CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:<root>.Test1 [primary]
|
||||
@1:4..14 VALUE_PARAMETER name:x index:0 type:kotlin.Int
|
||||
@0:20..2:1 BLOCK_BODY
|
||||
@0:0..3:1 DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
|
||||
@0:20..2:1 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:ABSTRACT visibility:public superTypes:[kotlin.Any]'
|
||||
@1:4..14 PROPERTY name:x visibility:public modality:FINAL [val]
|
||||
@1:4..14 FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]
|
||||
@1:4..14 EXPRESSION_BODY
|
||||
@1:4..14 GET_VAR 'x: kotlin.Int declared in <root>.Test1.<init>' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
|
||||
@1:4..14 FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:<root>.Test1) returnType:kotlin.Int
|
||||
@1:4..14 VALUE_PARAMETER name:<this> type:<root>.Test1
|
||||
@1:4..14 BLOCK_BODY
|
||||
@1:4..14 RETURN type=kotlin.Nothing from='public final fun <get-x> (): kotlin.Int declared in <root>.Test1'
|
||||
@1:4..14 GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null
|
||||
@1:4..14 GET_VAR '<this>: <root>.Test1 declared in <root>.Test1.<get-x>' type=<root>.Test1 origin=null
|
||||
@-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
|
||||
@0:0..3:1 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Test1
|
||||
@5:0..14:1 CLASS CLASS name:Test2 modality:ABSTRACT visibility:public superTypes:[kotlin.Any]
|
||||
@7:11..9:1 CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:<root>.Test2 [primary]
|
||||
@8:4..14 VALUE_PARAMETER name:x index:0 type:kotlin.Int
|
||||
@7:11..9:1 BLOCK_BODY
|
||||
@5:0..14:1 DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
|
||||
@7:11..9:1 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test2 modality:ABSTRACT visibility:public superTypes:[kotlin.Any]'
|
||||
@8:4..14 PROPERTY name:x visibility:public modality:FINAL [val]
|
||||
@8:4..14 FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]
|
||||
@8:4..14 EXPRESSION_BODY
|
||||
@8:4..14 GET_VAR 'x: kotlin.Int declared in <root>.Test2.<init>' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
|
||||
@8:4..14 FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:<root>.Test2) returnType:kotlin.Int
|
||||
@8:4..14 VALUE_PARAMETER name:<this> type:<root>.Test2
|
||||
@8:4..14 BLOCK_BODY
|
||||
@8:4..14 RETURN type=kotlin.Nothing from='public final fun <get-x> (): kotlin.Int declared in <root>.Test2'
|
||||
@8:4..14 GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null
|
||||
@8:4..14 GET_VAR '<this>: <root>.Test2 declared in <root>.Test2.<get-x>' type=<root>.Test2 origin=null
|
||||
@10:4..13:5 CLASS CLASS name:TestInner modality:FINAL visibility:public [inner] superTypes:[kotlin.Any]
|
||||
@11:19..13:5 CONSTRUCTOR visibility:public <> ($this:<root>.Test2, x:kotlin.Int) returnType:<root>.Test2.TestInner [primary]
|
||||
@11:19..13:5 VALUE_PARAMETER name:<this> type:<root>.Test2
|
||||
@12:8..18 VALUE_PARAMETER name:x index:0 type:kotlin.Int
|
||||
@11:19..13:5 BLOCK_BODY
|
||||
@10:4..13:5 DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
|
||||
@11:19..13:5 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestInner modality:FINAL visibility:public [inner] superTypes:[kotlin.Any]'
|
||||
@12:8..18 PROPERTY name:x visibility:public modality:FINAL [val]
|
||||
@12:8..18 FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]
|
||||
@12:8..18 EXPRESSION_BODY
|
||||
@12:8..18 GET_VAR 'x: kotlin.Int declared in <root>.Test2.TestInner.<init>' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
|
||||
@12:8..18 FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:<root>.Test2.TestInner) returnType:kotlin.Int
|
||||
@12:8..18 VALUE_PARAMETER name:<this> type:<root>.Test2.TestInner
|
||||
@12:8..18 BLOCK_BODY
|
||||
@12:8..18 RETURN type=kotlin.Nothing from='public final fun <get-x> (): kotlin.Int declared in <root>.Test2.TestInner'
|
||||
@12:8..18 GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null
|
||||
@12:8..18 GET_VAR '<this>: <root>.Test2.TestInner declared in <root>.Test2.TestInner.<get-x>' type=<root>.Test2.TestInner origin=null
|
||||
@-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
|
||||
@10:4..13:5 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Test2.TestInner
|
||||
@-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
|
||||
@5:0..14:1 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Test2
|
||||
Reference in New Issue
Block a user