[PSI2IR, K/Wasm] Sync start and end offsets on PSI and FIR for primary constructors

This commit is contained in:
Artem Kobzar
2024-02-29 14:42:33 +00:00
committed by Space Team
parent 87e162e052
commit 2e4d02e9f4
126 changed files with 82 additions and 188 deletions
+6 -6
View File
@@ -1,8 +1,8 @@
@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:9..3:1 CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:<root>.Test1 [primary]
@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:0..3:1 BLOCK_BODY
@0:20..2:1 BLOCK_BODY
@0:0..3:1 DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
@0:0..3: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]
@@ -24,9 +24,9 @@
@0:0..3: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:0..14:1 CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:<root>.Test2 [primary]
@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
@5:0..14:1 BLOCK_BODY
@7:11..9:1 BLOCK_BODY
@5:0..14:1 DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
@5:0..14: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]
@@ -40,10 +40,10 @@
@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:4..13:5 CONSTRUCTOR visibility:public <> ($this:<root>.Test2, x:kotlin.Int) returnType:<root>.Test2.TestInner [primary]
@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
@10:4..13:5 BLOCK_BODY
@11:19..13:5 BLOCK_BODY
@10:4..13:5 DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
@10:4..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]