Files
kotlin-fork/compiler/testData/ir/sourceRanges/declarations/primaryConstructors.txt
T
Dmitry Petrov 7dd906db44 KT-28324 More exact startOffset for function/constructor declarations
Function/constructor declaration start offset is the start offset of the
corresponding declaration token, if available.
2018-11-22 10:09:31 +03:00

98 lines
7.7 KiB
Plaintext
Vendored

@0:0..13:23 FILE fqName:<root> fileName:/primaryConstructors.kt
@0:0..23 CLASS CLASS name:Test1 modality:FINAL visibility:public flags: superTypes:[kotlin.Any]
@0:0..23 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:Test1 flags:
@0:0..23 CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:Test1 flags:primary
@0:12..22 VALUE_PARAMETER name:x index:0 type:kotlin.Int flags:
@0:0..23 BLOCK_BODY
@0:0..23 DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@0:0..23 INSTANCE_INITIALIZER_CALL classDescriptor='Test1'
@0:12..22 PROPERTY name:x visibility:public modality:FINAL flags:val
@0:12..22 FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public flags:final
@0:12..22 EXPRESSION_BODY
@0:12..22 GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
@0:12..22 FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:Test1) returnType:kotlin.Int flags:
@0:12..22 VALUE_PARAMETER name:<this> type:Test1 flags:
@0:12..22 BLOCK_BODY
@0:12..22 RETURN type=kotlin.Nothing from='<get-x>(): Int'
@0:12..22 GET_FIELD 'x: Int' type=kotlin.Int origin=null
@0:12..22 GET_VAR 'this@Test1: Test1' type=Test1 origin=null
@0:0..23 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:
@0:0..23 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@0:0..23 VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:
@0:0..23 FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:
@0:0..23 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@0:0..23 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:
@0:0..23 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@2:0..3:32 CLASS CLASS name:Test2 modality:FINAL visibility:public flags: superTypes:[kotlin.Any]
@2:0..3:32 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:Test2 flags:
@3:9..32 CONSTRUCTOR visibility:internal <> (x:kotlin.Int) returnType:Test2 flags:primary
@3:21..31 VALUE_PARAMETER name:x index:0 type:kotlin.Int flags:
@2:0..3:32 BLOCK_BODY
@2:0..3:32 DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@2:0..3:32 INSTANCE_INITIALIZER_CALL classDescriptor='Test2'
@3:21..31 PROPERTY name:x visibility:public modality:FINAL flags:val
@3:21..31 FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public flags:final
@3:21..31 EXPRESSION_BODY
@3:21..31 GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
@3:21..31 FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:Test2) returnType:kotlin.Int flags:
@3:21..31 VALUE_PARAMETER name:<this> type:Test2 flags:
@3:21..31 BLOCK_BODY
@3:21..31 RETURN type=kotlin.Nothing from='<get-x>(): Int'
@3:21..31 GET_FIELD 'x: Int' type=kotlin.Int origin=null
@3:21..31 GET_VAR 'this@Test2: Test2' type=Test2 origin=null
@2:0..3:32 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:
@2:0..3:32 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@2:0..3:32 VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:
@2:0..3:32 FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:
@2:0..3:32 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@2:0..3:32 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:
@2:0..3:32 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@5:0..9:23 CLASS CLASS name:Test3 modality:FINAL visibility:public flags: superTypes:[kotlin.Any]
@5:0..9:23 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:Test3 flags:
@9:0..23 CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:Test3 flags:primary
@9:12..22 VALUE_PARAMETER name:x index:0 type:kotlin.Int flags:
@5:0..9:23 BLOCK_BODY
@5:0..9:23 DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@5:0..9:23 INSTANCE_INITIALIZER_CALL classDescriptor='Test3'
@9:12..22 PROPERTY name:x visibility:public modality:FINAL flags:val
@9:12..22 FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public flags:final
@9:12..22 EXPRESSION_BODY
@9:12..22 GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
@9:12..22 FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:Test3) returnType:kotlin.Int flags:
@9:12..22 VALUE_PARAMETER name:<this> type:Test3 flags:
@9:12..22 BLOCK_BODY
@9:12..22 RETURN type=kotlin.Nothing from='<get-x>(): Int'
@9:12..22 GET_FIELD 'x: Int' type=kotlin.Int origin=null
@9:12..22 GET_VAR 'this@Test3: Test3' type=Test3 origin=null
@5:0..9:23 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:
@5:0..9:23 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@5:0..9:23 VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:
@5:0..9:23 FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:
@5:0..9:23 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@5:0..9:23 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:
@5:0..9:23 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@11:0..13:23 CLASS CLASS name:Test4 modality:FINAL visibility:public flags: superTypes:[kotlin.Any]
@11:0..13:23 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:Test4 flags:
@13:0..23 CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:Test4 flags:primary
@13:12..22 VALUE_PARAMETER name:x index:0 type:kotlin.Int flags:
@11:0..13:23 BLOCK_BODY
@11:0..13:23 DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@11:0..13:23 INSTANCE_INITIALIZER_CALL classDescriptor='Test4'
@13:12..22 PROPERTY name:x visibility:public modality:FINAL flags:val
@13:12..22 FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public flags:final
@13:12..22 EXPRESSION_BODY
@13:12..22 GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
@13:12..22 FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:Test4) returnType:kotlin.Int flags:
@13:12..22 VALUE_PARAMETER name:<this> type:Test4 flags:
@13:12..22 BLOCK_BODY
@13:12..22 RETURN type=kotlin.Nothing from='<get-x>(): Int'
@13:12..22 GET_FIELD 'x: Int' type=kotlin.Int origin=null
@13:12..22 GET_VAR 'this@Test4: Test4' type=Test4 origin=null
@11:0..13:23 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:
@11:0..13:23 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@11:0..13:23 VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:
@11:0..13:23 FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:
@11:0..13:23 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@11:0..13:23 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:
@11:0..13:23 VALUE_PARAMETER name:<this> type:kotlin.Any flags: