[PSI2IR, K/Wasm] Sync start and end offsets on PSI and FIR for primary constructors
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
@0:0..11 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Test1
|
||||
@3:0..4:11 CLASS CLASS name:Test2 modality:FINAL visibility:internal superTypes:[kotlin.Any]
|
||||
@4:0..11 CONSTRUCTOR visibility:public <> () returnType:<root>.Test2 [primary]
|
||||
@3:0..4:11 BLOCK_BODY
|
||||
@4:0..11 BLOCK_BODY
|
||||
@3:0..4:11 DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
|
||||
@3:0..4:11 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test2 modality:FINAL visibility:internal superTypes:[kotlin.Any]'
|
||||
@4:0..11 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||
@@ -44,7 +44,7 @@
|
||||
@13:10..22 VARARG type=kotlin.Array<out kotlin.String> varargElementType=kotlin.String
|
||||
@13:10..22 CONST String type=kotlin.String value="UNUSED_VAR"
|
||||
@14:0..11 CONSTRUCTOR visibility:public <> () returnType:<root>.Test4 [primary]
|
||||
@13:0..14:11 BLOCK_BODY
|
||||
@14:0..11 BLOCK_BODY
|
||||
@13:0..14:11 DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
|
||||
@13:0..14:11 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test4 modality:FINAL visibility:public superTypes:[kotlin.Any]'
|
||||
@14:0..11 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||
@@ -57,7 +57,7 @@
|
||||
@13:0..14:11 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Test4
|
||||
@17:0..18:11 CLASS ENUM_CLASS name:Test5 modality:FINAL visibility:public superTypes:[kotlin.Enum<<root>.Test5>]
|
||||
@18:0..11 CONSTRUCTOR visibility:private <> () returnType:<root>.Test5 [primary]
|
||||
@17:0..18:11 BLOCK_BODY
|
||||
@18:0..11 BLOCK_BODY
|
||||
@17:0..18:11 ENUM_CONSTRUCTOR_CALL 'public constructor <init> (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum'
|
||||
@17:0..18:11 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:Test5 modality:FINAL visibility:public superTypes:[kotlin.Enum<<root>.Test5>]'
|
||||
@17:0..18:11 PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val]
|
||||
@@ -95,7 +95,7 @@
|
||||
@17:0..18:11 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Test5
|
||||
@21:0..22:11 CLASS ANNOTATION_CLASS name:Test6 modality:OPEN visibility:public superTypes:[kotlin.Annotation]
|
||||
@22:0..11 CONSTRUCTOR visibility:public <> () returnType:<root>.Test6 [primary]
|
||||
@21:0..22:11 BLOCK_BODY
|
||||
@22:0..11 BLOCK_BODY
|
||||
@21:0..22:11 DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
|
||||
@21:0..22:11 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Test6 modality:OPEN visibility:public superTypes:[kotlin.Annotation]'
|
||||
@22:0..11 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
@0:0..2:1 CLASS CLASS name:A modality:ABSTRACT visibility:public superTypes:[kotlin.Any]
|
||||
@0:17..18 TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
|
||||
@0:9..2:1 CONSTRUCTOR visibility:public <> () returnType:<root>.A<T of <root>.A> [primary]
|
||||
@0:0..2:1 BLOCK_BODY
|
||||
@0:9..2:1 BLOCK_BODY
|
||||
@0:0..2:1 DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
|
||||
@0:0..2:1 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:ABSTRACT visibility:public superTypes:[kotlin.Any]'
|
||||
@1:4..27 FUN name:foo visibility:public modality:FINAL <> ($this:<root>.A<T of <root>.A>, x:T of <root>.A) returnType:kotlin.Unit
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
@0:0..14:0 FILE fqName:<root> fileName:/primaryConstructors.kt
|
||||
@0:0..23 CLASS CLASS name:Test1 modality:FINAL visibility:public superTypes:[kotlin.Any]
|
||||
@0:0..23 CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:<root>.Test1 [primary]
|
||||
@0:11..23 CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:<root>.Test1 [primary]
|
||||
@0:12..22 VALUE_PARAMETER name:x index:0 type:kotlin.Int
|
||||
@0:0..23 BLOCK_BODY
|
||||
@0:11..23 BLOCK_BODY
|
||||
@0:0..23 DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
|
||||
@0:0..23 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:FINAL visibility:public superTypes:[kotlin.Any]'
|
||||
@0:12..22 PROPERTY name:x visibility:public modality:FINAL [val]
|
||||
@@ -26,7 +26,7 @@
|
||||
@2:0..3:32 CLASS CLASS name:Test2 modality:FINAL visibility:public superTypes:[kotlin.Any]
|
||||
@3:9..32 CONSTRUCTOR visibility:internal <> (x:kotlin.Int) returnType:<root>.Test2 [primary]
|
||||
@3:21..31 VALUE_PARAMETER name:x index:0 type:kotlin.Int
|
||||
@2:0..3:32 BLOCK_BODY
|
||||
@3:9..32 BLOCK_BODY
|
||||
@2:0..3:32 DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
|
||||
@2:0..3:32 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test2 modality:FINAL visibility:public superTypes:[kotlin.Any]'
|
||||
@3:21..31 PROPERTY name:x visibility:public modality:FINAL [val]
|
||||
@@ -50,7 +50,7 @@
|
||||
@5:0..9:23 CLASS CLASS name:Test3 modality:FINAL visibility:public superTypes:[kotlin.Any]
|
||||
@9:0..23 CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:<root>.Test3 [primary]
|
||||
@9:12..22 VALUE_PARAMETER name:x index:0 type:kotlin.Int
|
||||
@5:0..9:23 BLOCK_BODY
|
||||
@9:0..23 BLOCK_BODY
|
||||
@5:0..9:23 DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
|
||||
@5:0..9:23 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test3 modality:FINAL visibility:public superTypes:[kotlin.Any]'
|
||||
@9:12..22 PROPERTY name:x visibility:public modality:FINAL [val]
|
||||
@@ -78,7 +78,7 @@
|
||||
@12:10..27 VARARG type=kotlin.Array<out kotlin.String> varargElementType=kotlin.String
|
||||
@12:10..27 CONST String type=kotlin.String value="UNUSED_VARIABLE"
|
||||
@13:12..22 VALUE_PARAMETER name:x index:0 type:kotlin.Int
|
||||
@11:0..13:23 BLOCK_BODY
|
||||
@13:0..23 BLOCK_BODY
|
||||
@11:0..13:23 DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
|
||||
@11:0..13:23 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test4 modality:FINAL visibility:public superTypes:[kotlin.Any]'
|
||||
@13:12..22 PROPERTY name:x visibility:public modality:FINAL [val]
|
||||
|
||||
+2
-2
@@ -1,10 +1,10 @@
|
||||
@0:0..5:0 FILE fqName:<root> fileName:/synthesizedDataClassMembers.kt
|
||||
@0:0..4:1 CLASS CLASS name:C modality:FINAL visibility:public [data] superTypes:[kotlin.Any]
|
||||
@0:5..4:1 CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.String, z:kotlin.Any) returnType:<root>.C [primary]
|
||||
@0:12..4:1 CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.String, z:kotlin.Any) returnType:<root>.C [primary]
|
||||
@1:8..18 VALUE_PARAMETER name:x index:0 type:kotlin.Int
|
||||
@2:8..21 VALUE_PARAMETER name:y index:1 type:kotlin.String
|
||||
@3:8..18 VALUE_PARAMETER name:z index:2 type:kotlin.Any
|
||||
@0:0..4:1 BLOCK_BODY
|
||||
@0:12..4:1 BLOCK_BODY
|
||||
@0:0..4:1 DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
|
||||
@0:0..4:1 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public [data] superTypes:[kotlin.Any]'
|
||||
@1:8..18 PROPERTY name:x visibility:public modality:FINAL [val]
|
||||
|
||||
Reference in New Issue
Block a user