Files
kotlin-fork/compiler/testData/ir/irText/expressions/kt36956.ir.txt
T
Sergej Jaskiewicz fd76a34277 [IR] Don't print flags in declaration references in irText tests
This doesn't reduce the quality of tests, because the flags are still
printed for declarations themselves. We only omit them in references.

However, this makes the tests more compatible with non-JVM backends
(see KT-58605), because flags of referenced stdlib declarations may
differ among target platforms.
2023-05-30 17:26:30 +00:00

80 lines
6.6 KiB
Plaintext
Vendored

FILE fqName:<root> fileName:/kt36956.kt
CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.A<T of <root>.A>
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
CONSTRUCTOR visibility:public <> (value:T of <root>.A) returnType:<root>.A<T of <root>.A> [primary]
VALUE_PARAMETER name:value index:0 type:T of <root>.A
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in kotlin.Any'
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]'
PROPERTY name:value visibility:private modality:FINAL [val]
FIELD PROPERTY_BACKING_FIELD name:value type:T of <root>.A visibility:private [final]
EXPRESSION_BODY
GET_VAR 'value: T of <root>.A declared in <root>.A.<init>' type=T of <root>.A origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-value> visibility:private modality:FINAL <> ($this:<root>.A<T of <root>.A>) returnType:T of <root>.A
correspondingProperty: PROPERTY name:value visibility:private modality:FINAL [val]
$this: VALUE_PARAMETER name:<this> type:<root>.A<T of <root>.A>
BLOCK_BODY
RETURN type=kotlin.Nothing from='private final fun <get-value> (): T of <root>.A declared in <root>.A'
GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:value type:T of <root>.A visibility:private [final]' type=T of <root>.A origin=null
receiver: GET_VAR '<this>: <root>.A<T of <root>.A> declared in <root>.A.<get-value>' type=<root>.A<T of <root>.A> origin=null
FUN name:get visibility:public modality:FINAL <> ($this:<root>.A<T of <root>.A>, i:kotlin.Int) returnType:T of <root>.A [operator]
$this: VALUE_PARAMETER name:<this> type:<root>.A<T of <root>.A>
VALUE_PARAMETER name:i index:0 type:kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun get (i: kotlin.Int): T of <root>.A declared in <root>.A'
CALL 'private final fun <get-value> (): T of <root>.A declared in <root>.A' type=T of <root>.A origin=GET_PROPERTY
$this: GET_VAR '<this>: <root>.A<T of <root>.A> declared in <root>.A.get' type=<root>.A<T of <root>.A> origin=null
FUN name:set visibility:public modality:FINAL <> ($this:<root>.A<T of <root>.A>, i:kotlin.Int, v:T of <root>.A) returnType:kotlin.Unit [operator]
$this: VALUE_PARAMETER name:<this> type:<root>.A<T of <root>.A>
VALUE_PARAMETER name:i index:0 type:kotlin.Int
VALUE_PARAMETER name:v index:1 type:T of <root>.A
BLOCK_BODY
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
overridden:
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
overridden:
public open fun hashCode (): kotlin.Int declared in kotlin.Any
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
overridden:
public open fun toString (): kotlin.String declared in kotlin.Any
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
PROPERTY name:aFloat visibility:public modality:FINAL [val]
FIELD PROPERTY_BACKING_FIELD name:aFloat type:<root>.A<kotlin.Float> visibility:private [final,static]
EXPRESSION_BODY
CONSTRUCTOR_CALL 'public constructor <init> (value: T of <root>.A) declared in <root>.A' type=<root>.A<kotlin.Float> origin=null
<class: T>: kotlin.Float
value: CONST Float type=kotlin.Float value=0.0
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-aFloat> visibility:public modality:FINAL <> () returnType:<root>.A<kotlin.Float>
correspondingProperty: PROPERTY name:aFloat visibility:public modality:FINAL [val]
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun <get-aFloat> (): <root>.A<kotlin.Float> declared in <root>'
GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:aFloat type:<root>.A<kotlin.Float> visibility:private [final,static]' type=<root>.A<kotlin.Float> origin=null
PROPERTY name:aInt visibility:public modality:FINAL [val]
FIELD PROPERTY_BACKING_FIELD name:aInt type:kotlin.Float visibility:private [final,static]
EXPRESSION_BODY
BLOCK type=kotlin.Float origin=POSTFIX_DECR
VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:<root>.A<kotlin.Float> [val]
CALL 'public final fun <get-aFloat> (): <root>.A<kotlin.Float> declared in <root>' type=<root>.A<kotlin.Float> origin=GET_PROPERTY
VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val]
CONST Int type=kotlin.Int value=1
VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.Float [val]
CALL 'public final fun get (i: kotlin.Int): T of <root>.A declared in <root>.A' type=kotlin.Float origin=POSTFIX_DECR
$this: GET_VAR 'val tmp_0: <root>.A<kotlin.Float> declared in <root>.aInt' type=<root>.A<kotlin.Float> origin=null
i: GET_VAR 'val tmp_1: kotlin.Int declared in <root>.aInt' type=kotlin.Int origin=null
CALL 'public final fun set (i: kotlin.Int, v: T of <root>.A): kotlin.Unit declared in <root>.A' type=kotlin.Unit origin=POSTFIX_DECR
$this: GET_VAR 'val tmp_0: <root>.A<kotlin.Float> declared in <root>.aInt' type=<root>.A<kotlin.Float> origin=null
i: GET_VAR 'val tmp_1: kotlin.Int declared in <root>.aInt' type=kotlin.Int origin=null
v: CALL 'public final fun dec (): kotlin.Float declared in kotlin.Float' type=kotlin.Float origin=POSTFIX_DECR
$this: GET_VAR 'val tmp_2: kotlin.Float declared in <root>.aInt' type=kotlin.Float origin=null
GET_VAR 'val tmp_2: kotlin.Float declared in <root>.aInt' type=kotlin.Float origin=null
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-aInt> visibility:public modality:FINAL <> () returnType:kotlin.Float
correspondingProperty: PROPERTY name:aInt visibility:public modality:FINAL [val]
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun <get-aInt> (): kotlin.Float declared in <root>'
GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:aInt type:kotlin.Float visibility:private [final,static]' type=kotlin.Float origin=null