[Tests] Use stable order for ir/kotlinLike dumps
^KT-65406
This commit is contained in:
committed by
Space Team
parent
0fa42a9c11
commit
e6f4d6e6fa
@@ -1,11 +1,6 @@
|
||||
FILE fqName:foo fileName:/main.kt
|
||||
CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:foo.A
|
||||
CONSTRUCTOR visibility:public <> (s:kotlin.String) returnType:foo.A [primary]
|
||||
VALUE_PARAMETER name:s index:0 type:kotlin.String
|
||||
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:s visibility:public modality:FINAL [val]
|
||||
FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.String visibility:private [final]
|
||||
EXPRESSION_BODY
|
||||
@@ -17,6 +12,11 @@ FILE fqName:foo fileName:/main.kt
|
||||
RETURN type=kotlin.Nothing from='public final fun <get-s> (): kotlin.String declared in foo.A'
|
||||
GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.String visibility:private [final]' type=kotlin.String origin=null
|
||||
receiver: GET_VAR '<this>: foo.A declared in foo.A.<get-s>' type=foo.A origin=null
|
||||
CONSTRUCTOR visibility:public <> (s:kotlin.String) returnType:foo.A [primary]
|
||||
VALUE_PARAMETER name:s index:0 type:kotlin.String
|
||||
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]'
|
||||
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
|
||||
@@ -36,29 +36,6 @@ FILE fqName:foo fileName:/main.kt
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in bar.Base'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Derived modality:FINAL visibility:public superTypes:[bar.Base]'
|
||||
FUN name:foo visibility:protected modality:OPEN <> ($this:foo.Derived) returnType:kotlin.Unit
|
||||
overridden:
|
||||
protected/*protected and package*/ open fun foo (): kotlin.Unit declared in bar.Base
|
||||
$this: VALUE_PARAMETER name:<this> type:foo.Derived
|
||||
BLOCK_BODY
|
||||
CALL 'public open fun set (p0: @[FlexibleNullability] kotlin.Any?, p1: @[FlexibleNullability] kotlin.Any?): kotlin.Unit declared in java.lang.reflect.Field' type=kotlin.Unit origin=EQ
|
||||
$this: CALL 'public final fun CHECK_NOT_NULL <T0> (arg0: T0 of kotlin.internal.ir.CHECK_NOT_NULL?): {T0 of kotlin.internal.ir.CHECK_NOT_NULL & Any} declared in kotlin.internal.ir' type=java.lang.reflect.Field origin=EXCLEXCL
|
||||
<T0>: java.lang.reflect.Field
|
||||
arg0: CALL 'public final fun <get-javaField> (): java.lang.reflect.Field? declared in kotlin.reflect.jvm' type=java.lang.reflect.Field? origin=GET_PROPERTY
|
||||
$receiver: PROPERTY_REFERENCE 'protected/*protected and package*/ final a' field='FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:a type:@[FlexibleNullability] foo.A? visibility:protected/*protected and package*/' getter=null setter=null type=kotlin.reflect.KMutableProperty1<foo.Derived, @[FlexibleNullability] foo.A?> origin=null
|
||||
p0: GET_VAR '<this>: foo.Derived declared in foo.Derived.foo' type=foo.Derived origin=null
|
||||
p1: CONSTRUCTOR_CALL 'public constructor <init> (s: kotlin.String) declared in foo.A' type=foo.A origin=null
|
||||
s: CONST String type=kotlin.String value="OK"
|
||||
FUN name:box visibility:public modality:FINAL <> ($this:foo.Derived) returnType:kotlin.String
|
||||
$this: VALUE_PARAMETER name:<this> type:foo.Derived
|
||||
BLOCK_BODY
|
||||
CALL 'protected open fun foo (): kotlin.Unit declared in foo.Derived' type=kotlin.Unit origin=null
|
||||
$this: GET_VAR '<this>: foo.Derived declared in foo.Derived.box' type=foo.Derived origin=null
|
||||
RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in foo.Derived'
|
||||
CALL 'public final fun <get-s> (): kotlin.String declared in foo.A' type=kotlin.String origin=GET_PROPERTY
|
||||
$this: TYPE_OP type=foo.A origin=IMPLICIT_NOTNULL typeOperand=foo.A
|
||||
GET_FIELD 'FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:a type:@[FlexibleNullability] foo.A? visibility:protected/*protected and package*/' type=@[FlexibleNullability] foo.A? origin=null
|
||||
receiver: GET_VAR '<this>: foo.Derived declared in foo.Derived.box' type=foo.Derived origin=null
|
||||
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 bar.Base
|
||||
@@ -72,6 +49,29 @@ FILE fqName:foo fileName:/main.kt
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in bar.Base
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN name:box visibility:public modality:FINAL <> ($this:foo.Derived) returnType:kotlin.String
|
||||
$this: VALUE_PARAMETER name:<this> type:foo.Derived
|
||||
BLOCK_BODY
|
||||
CALL 'protected open fun foo (): kotlin.Unit declared in foo.Derived' type=kotlin.Unit origin=null
|
||||
$this: GET_VAR '<this>: foo.Derived declared in foo.Derived.box' type=foo.Derived origin=null
|
||||
RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in foo.Derived'
|
||||
CALL 'public final fun <get-s> (): kotlin.String declared in foo.A' type=kotlin.String origin=GET_PROPERTY
|
||||
$this: TYPE_OP type=foo.A origin=IMPLICIT_NOTNULL typeOperand=foo.A
|
||||
GET_FIELD 'FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:a type:@[FlexibleNullability] foo.A? visibility:protected/*protected and package*/' type=@[FlexibleNullability] foo.A? origin=null
|
||||
receiver: GET_VAR '<this>: foo.Derived declared in foo.Derived.box' type=foo.Derived origin=null
|
||||
FUN name:foo visibility:protected modality:OPEN <> ($this:foo.Derived) returnType:kotlin.Unit
|
||||
overridden:
|
||||
protected/*protected and package*/ open fun foo (): kotlin.Unit declared in bar.Base
|
||||
$this: VALUE_PARAMETER name:<this> type:foo.Derived
|
||||
BLOCK_BODY
|
||||
CALL 'public open fun set (p0: @[FlexibleNullability] kotlin.Any?, p1: @[FlexibleNullability] kotlin.Any?): kotlin.Unit declared in java.lang.reflect.Field' type=kotlin.Unit origin=EQ
|
||||
$this: CALL 'public final fun CHECK_NOT_NULL <T0> (arg0: T0 of kotlin.internal.ir.CHECK_NOT_NULL?): {T0 of kotlin.internal.ir.CHECK_NOT_NULL & Any} declared in kotlin.internal.ir' type=java.lang.reflect.Field origin=EXCLEXCL
|
||||
<T0>: java.lang.reflect.Field
|
||||
arg0: CALL 'public final fun <get-javaField> (): java.lang.reflect.Field? declared in kotlin.reflect.jvm' type=java.lang.reflect.Field? origin=GET_PROPERTY
|
||||
$receiver: PROPERTY_REFERENCE 'protected/*protected and package*/ final a' field='FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:a type:@[FlexibleNullability] foo.A? visibility:protected/*protected and package*/' getter=null setter=null type=kotlin.reflect.KMutableProperty1<foo.Derived, @[FlexibleNullability] foo.A?> origin=null
|
||||
p0: GET_VAR '<this>: foo.Derived declared in foo.Derived.foo' type=foo.Derived origin=null
|
||||
p1: CONSTRUCTOR_CALL 'public constructor <init> (s: kotlin.String) declared in foo.A' type=foo.A origin=null
|
||||
s: CONST String type=kotlin.String value="OK"
|
||||
PROPERTY FAKE_OVERRIDE name:a visibility:protected/*protected and package*/ modality:FINAL [fake_override,var]
|
||||
overridden:
|
||||
protected/*protected and package*/ final a: @[FlexibleNullability] foo.A?
|
||||
|
||||
Reference in New Issue
Block a user