[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.
This commit is contained in:
Sergej Jaskiewicz
2023-05-15 19:44:19 +02:00
committed by Space Team
parent b8e868caf6
commit fd76a34277
837 changed files with 11643 additions and 11646 deletions
@@ -5,14 +5,14 @@ FILE fqName:<root> fileName:/delegationInSealed.kt
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.A
CONSTRUCTOR visibility:protected <> () returnType:<root>.A [primary]
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in kotlin.Any'
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:SEALED visibility:public superTypes:[kotlin.CharSequence]'
CLASS CLASS name:B modality:FINAL visibility:public [data] superTypes:[<root>.A; kotlin.CharSequence]
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.A.B
CONSTRUCTOR visibility:public <> (c:kotlin.CharSequence) returnType:<root>.A.B [primary]
VALUE_PARAMETER name:c index:0 type:kotlin.CharSequence
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'protected constructor <init> () [primary] declared in <root>.A'
DELEGATING_CONSTRUCTOR_CALL 'protected constructor <init> () declared in <root>.A'
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public [data] superTypes:[<root>.A; kotlin.CharSequence]'
PROPERTY name:c visibility:public modality:FINAL [val]
FIELD PROPERTY_BACKING_FIELD name:c type:kotlin.CharSequence visibility:private [final]
@@ -27,12 +27,12 @@ FILE fqName:<root> fileName:/delegationInSealed.kt
receiver: GET_VAR '<this>: <root>.A.B declared in <root>.A.B.<get-c>' type=<root>.A.B origin=null
PROPERTY DELEGATED_MEMBER name:length visibility:public modality:OPEN [val]
overridden:
public abstract length: kotlin.Int [fake_override,val]
public abstract length: kotlin.Int [val]
public abstract length: kotlin.Int
public abstract length: kotlin.Int
FUN DELEGATED_MEMBER name:<get-length> visibility:public modality:OPEN <> ($this:<root>.A.B) returnType:kotlin.Int
correspondingProperty: PROPERTY DELEGATED_MEMBER name:length visibility:public modality:OPEN [val]
overridden:
public abstract fun <get-length> (): kotlin.Int [fake_override] declared in <root>.A
public abstract fun <get-length> (): kotlin.Int declared in <root>.A
public abstract fun <get-length> (): kotlin.Int declared in kotlin.CharSequence
$this: VALUE_PARAMETER name:<this> type:<root>.A.B
BLOCK_BODY
@@ -42,19 +42,19 @@ FILE fqName:<root> fileName:/delegationInSealed.kt
receiver: GET_VAR '<this>: <root>.A.B declared in <root>.A.B.<get-length>' type=<root>.A.B origin=null
FUN DELEGATED_MEMBER name:get visibility:public modality:OPEN <> ($this:<root>.A.B, index:kotlin.Int) returnType:kotlin.Char [operator]
overridden:
public abstract fun get (index: kotlin.Int): kotlin.Char [fake_override,operator] declared in <root>.A
public abstract fun get (index: kotlin.Int): kotlin.Char [operator] declared in kotlin.CharSequence
public abstract fun get (index: kotlin.Int): kotlin.Char declared in <root>.A
public abstract fun get (index: kotlin.Int): kotlin.Char declared in kotlin.CharSequence
$this: VALUE_PARAMETER name:<this> type:<root>.A.B
VALUE_PARAMETER name:index index:0 type:kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='public open fun get (index: kotlin.Int): kotlin.Char [operator] declared in <root>.A.B'
CALL 'public abstract fun get (index: kotlin.Int): kotlin.Char [operator] declared in kotlin.CharSequence' type=kotlin.Char origin=null
RETURN type=kotlin.Nothing from='public open fun get (index: kotlin.Int): kotlin.Char declared in <root>.A.B'
CALL 'public abstract fun get (index: kotlin.Int): kotlin.Char declared in kotlin.CharSequence' type=kotlin.Char origin=null
$this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:c type:kotlin.CharSequence visibility:private [final]' type=kotlin.CharSequence origin=null
receiver: GET_VAR '<this>: <root>.A.B declared in <root>.A.B.get' type=<root>.A.B origin=null
index: GET_VAR 'index: kotlin.Int declared in <root>.A.B.get' type=kotlin.Int origin=null
FUN DELEGATED_MEMBER name:subSequence visibility:public modality:OPEN <> ($this:<root>.A.B, startIndex:kotlin.Int, endIndex:kotlin.Int) returnType:kotlin.CharSequence
overridden:
public abstract fun subSequence (startIndex: kotlin.Int, endIndex: kotlin.Int): kotlin.CharSequence [fake_override] declared in <root>.A
public abstract fun subSequence (startIndex: kotlin.Int, endIndex: kotlin.Int): kotlin.CharSequence declared in <root>.A
public abstract fun subSequence (startIndex: kotlin.Int, endIndex: kotlin.Int): kotlin.CharSequence declared in kotlin.CharSequence
$this: VALUE_PARAMETER name:<this> type:<root>.A.B
VALUE_PARAMETER name:startIndex index:0 type:kotlin.Int
@@ -69,7 +69,7 @@ FILE fqName:<root> fileName:/delegationInSealed.kt
FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:<root>.A.B) returnType:kotlin.CharSequence [operator]
$this: VALUE_PARAMETER name:<this> type:<root>.A.B
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.CharSequence [operator] declared in <root>.A.B'
RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.CharSequence declared in <root>.A.B'
GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:c type:kotlin.CharSequence visibility:private [final]' type=kotlin.CharSequence origin=null
receiver: GET_VAR '<this>: <root>.A.B declared in <root>.A.B.component1' type=<root>.A.B origin=null
FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:<root>.A.B, c:kotlin.CharSequence) returnType:<root>.A.B
@@ -80,12 +80,12 @@ FILE fqName:<root> fileName:/delegationInSealed.kt
receiver: GET_VAR '<this>: <root>.A.B declared in <root>.A.B.copy' type=<root>.A.B origin=null
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun copy (c: kotlin.CharSequence): <root>.A.B declared in <root>.A.B'
CONSTRUCTOR_CALL 'public constructor <init> (c: kotlin.CharSequence) [primary] declared in <root>.A.B' type=<root>.A.B origin=null
CONSTRUCTOR_CALL 'public constructor <init> (c: kotlin.CharSequence) declared in <root>.A.B' type=<root>.A.B origin=null
c: GET_VAR 'c: kotlin.CharSequence declared in <root>.A.B.copy' type=kotlin.CharSequence origin=null
FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:<root>.A.B) returnType:kotlin.String
overridden:
public open fun toString (): kotlin.String [fake_override] declared in <root>.A
public open fun toString (): kotlin.String [fake_override] declared in kotlin.CharSequence
public open fun toString (): kotlin.String declared in <root>.A
public open fun toString (): kotlin.String declared in kotlin.CharSequence
$this: VALUE_PARAMETER name:<this> type:<root>.A.B
BLOCK_BODY
RETURN type=kotlin.Nothing from='public open fun toString (): kotlin.String declared in <root>.A.B'
@@ -97,18 +97,18 @@ FILE fqName:<root> fileName:/delegationInSealed.kt
CONST String type=kotlin.String value=")"
FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:<root>.A.B) returnType:kotlin.Int
overridden:
public open fun hashCode (): kotlin.Int [fake_override] declared in <root>.A
public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.CharSequence
public open fun hashCode (): kotlin.Int declared in <root>.A
public open fun hashCode (): kotlin.Int declared in kotlin.CharSequence
$this: VALUE_PARAMETER name:<this> type:<root>.A.B
BLOCK_BODY
RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in <root>.A.B'
CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.CharSequence' type=kotlin.Int origin=null
CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.CharSequence' type=kotlin.Int origin=null
$this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:c type:kotlin.CharSequence visibility:private [final]' type=kotlin.CharSequence origin=null
receiver: GET_VAR '<this>: <root>.A.B declared in <root>.A.B.hashCode' type=<root>.A.B origin=null
FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:<root>.A.B, other:kotlin.Any?) returnType:kotlin.Boolean [operator]
overridden:
public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in <root>.A
public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in kotlin.CharSequence
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.A
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.CharSequence
$this: VALUE_PARAMETER name:<this> type:<root>.A.B
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
BLOCK_BODY
@@ -117,32 +117,32 @@ FILE fqName:<root> fileName:/delegationInSealed.kt
if: CALL 'public final fun EQEQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQEQ
arg0: GET_VAR '<this>: <root>.A.B declared in <root>.A.B.equals' type=<root>.A.B origin=null
arg1: GET_VAR 'other: kotlin.Any? declared in <root>.A.B.equals' type=kotlin.Any? origin=null
then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in <root>.A.B'
then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.A.B'
CONST Boolean type=kotlin.Boolean value=true
WHEN type=kotlin.Unit origin=null
BRANCH
if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=<root>.A.B
GET_VAR 'other: kotlin.Any? declared in <root>.A.B.equals' type=kotlin.Any? origin=null
then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in <root>.A.B'
then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.A.B'
CONST Boolean type=kotlin.Boolean value=false
VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:<root>.A.B [val]
TYPE_OP type=<root>.A.B origin=CAST typeOperand=<root>.A.B
GET_VAR 'other: kotlin.Any? declared in <root>.A.B.equals' type=kotlin.Any? origin=null
WHEN type=kotlin.Unit origin=null
BRANCH
if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ
if: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ
$this: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ
arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:c type:kotlin.CharSequence visibility:private [final]' type=kotlin.CharSequence origin=null
receiver: GET_VAR '<this>: <root>.A.B declared in <root>.A.B.equals' type=<root>.A.B origin=null
arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:c type:kotlin.CharSequence visibility:private [final]' type=kotlin.CharSequence origin=null
receiver: GET_VAR 'val tmp_0: <root>.A.B [val] declared in <root>.A.B.equals' type=<root>.A.B origin=null
then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in <root>.A.B'
receiver: GET_VAR 'val tmp_0: <root>.A.B declared in <root>.A.B.equals' type=<root>.A.B origin=null
then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.A.B'
CONST Boolean type=kotlin.Boolean value=false
RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in <root>.A.B'
RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.A.B'
CONST Boolean type=kotlin.Boolean value=true
PROPERTY FAKE_OVERRIDE name:length visibility:public modality:ABSTRACT [fake_override,val]
overridden:
public abstract length: kotlin.Int [val]
public abstract length: kotlin.Int
FUN FAKE_OVERRIDE name:<get-length> visibility:public modality:ABSTRACT <> ($this:kotlin.CharSequence) returnType:kotlin.Int [fake_override]
correspondingProperty: PROPERTY FAKE_OVERRIDE name:length visibility:public modality:ABSTRACT [fake_override,val]
overridden:
@@ -150,17 +150,17 @@ FILE fqName:<root> fileName:/delegationInSealed.kt
$this: VALUE_PARAMETER name:<this> type:kotlin.CharSequence
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 [fake_override,operator] declared in kotlin.CharSequence
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.CharSequence
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
FUN FAKE_OVERRIDE name:get visibility:public modality:ABSTRACT <> ($this:kotlin.CharSequence, index:kotlin.Int) returnType:kotlin.Char [fake_override,operator]
overridden:
public abstract fun get (index: kotlin.Int): kotlin.Char [operator] declared in kotlin.CharSequence
public abstract fun get (index: kotlin.Int): kotlin.Char declared in kotlin.CharSequence
$this: VALUE_PARAMETER name:<this> type:kotlin.CharSequence
VALUE_PARAMETER name:index index:0 type:kotlin.Int
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
overridden:
public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.CharSequence
public open fun hashCode (): kotlin.Int declared in kotlin.CharSequence
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
FUN FAKE_OVERRIDE name:subSequence visibility:public modality:ABSTRACT <> ($this:kotlin.CharSequence, startIndex:kotlin.Int, endIndex:kotlin.Int) returnType:kotlin.CharSequence [fake_override]
overridden:
@@ -170,5 +170,5 @@ FILE fqName:<root> fileName:/delegationInSealed.kt
VALUE_PARAMETER name:endIndex index:1 type:kotlin.Int
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
overridden:
public open fun toString (): kotlin.String [fake_override] declared in kotlin.CharSequence
public open fun toString (): kotlin.String declared in kotlin.CharSequence
$this: VALUE_PARAMETER name:<this> type:kotlin.Any