[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
@@ -7,7 +7,7 @@ FILE fqName:<root> fileName:/InnerClassInAnonymous.kt
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.box.<no name provided>
CONSTRUCTOR visibility:public <> () returnType:<root>.box.<no name provided> [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:<no name provided> modality:FINAL visibility:local superTypes:[kotlin.Any]'
PROPERTY name:end visibility:public modality:FINAL [val]
FIELD PROPERTY_BACKING_FIELD name:end type:kotlin.String visibility:private [final]
@@ -25,7 +25,7 @@ FILE fqName:<root> fileName:/InnerClassInAnonymous.kt
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun foo (): kotlin.String declared in <root>.box.<no name provided>'
CALL 'public final fun bar (): kotlin.String declared in <root>.box.<no name provided>.Some' type=kotlin.String origin=null
$this: CONSTRUCTOR_CALL 'public constructor <init> (s: kotlin.String) [primary] declared in <root>.box.<no name provided>.Some' type=<root>.box.<no name provided>.Some origin=null
$this: CONSTRUCTOR_CALL 'public constructor <init> (s: kotlin.String) declared in <root>.box.<no name provided>.Some' type=<root>.box.<no name provided>.Some origin=null
$outer: GET_VAR '<this>: <root>.box.<no name provided> declared in <root>.box.<no name provided>.foo' type=<root>.box.<no name provided> origin=null
s: CONST String type=kotlin.String value="O"
CLASS CLASS name:Some modality:FINAL visibility:local [inner] superTypes:[<root>.box.<no name provided>.Base]
@@ -34,7 +34,7 @@ FILE fqName:<root> fileName:/InnerClassInAnonymous.kt
$outer: VALUE_PARAMETER name:<this> type:<root>.box.<no name provided>
VALUE_PARAMETER name:s index:0 type:kotlin.String
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> (s: kotlin.String) [primary] declared in <root>.box.<no name provided>.Base'
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> (s: kotlin.String) declared in <root>.box.<no name provided>.Base'
$this: GET_VAR '<this>: <root>.box.<no name provided> declared in <root>.box.<no name provided>' type=<root>.box.<no name provided> origin=null
s: GET_VAR 's: kotlin.String declared in <root>.box.<no name provided>.Some.<init>' type=kotlin.String origin=null
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Some modality:FINAL visibility:local [inner] superTypes:[<root>.box.<no name provided>.Base]'
@@ -42,14 +42,14 @@ FILE fqName:<root> fileName:/InnerClassInAnonymous.kt
$this: VALUE_PARAMETER name:<this> type:<root>.box.<no name provided>.Some
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun bar (): kotlin.String declared in <root>.box.<no name provided>.Some'
CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS
$this: CALL 'public final fun <get-s> (): kotlin.String [fake_override] declared in <root>.box.<no name provided>.Some' type=kotlin.String origin=GET_PROPERTY
CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS
$this: CALL 'public final fun <get-s> (): kotlin.String declared in <root>.box.<no name provided>.Some' type=kotlin.String origin=GET_PROPERTY
$this: GET_VAR '<this>: <root>.box.<no name provided>.Some declared in <root>.box.<no name provided>.Some.bar' type=<root>.box.<no name provided>.Some origin=null
other: CALL 'public final fun <get-end> (): kotlin.String declared in <root>.box.<no name provided>' type=kotlin.String origin=GET_PROPERTY
$this: GET_VAR '<this>: <root>.box.<no name provided> declared in <root>.box.<no name provided>' type=<root>.box.<no name provided> origin=null
PROPERTY FAKE_OVERRIDE name:s visibility:public modality:FINAL [fake_override,val]
overridden:
public final s: kotlin.String [val]
public final s: kotlin.String
FUN FAKE_OVERRIDE name:<get-s> visibility:public modality:FINAL <> ($this:<root>.box.<no name provided>.Base) returnType:kotlin.String [fake_override]
correspondingProperty: PROPERTY FAKE_OVERRIDE name:s visibility:public modality:FINAL [fake_override,val]
overridden:
@@ -57,16 +57,16 @@ FILE fqName:<root> fileName:/InnerClassInAnonymous.kt
$this: VALUE_PARAMETER name:<this> type:<root>.box.<no name provided>.Base
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 <root>.box.<no name provided>.Base
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.box.<no name provided>.Base
$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 [fake_override] declared in <root>.box.<no name provided>.Base
public open fun hashCode (): kotlin.Int declared in <root>.box.<no name provided>.Base
$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 [fake_override] declared in <root>.box.<no name provided>.Base
public open fun toString (): kotlin.String declared in <root>.box.<no name provided>.Base
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
CLASS CLASS name:Base modality:OPEN visibility:local [inner] superTypes:[kotlin.Any]
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.box.<no name provided>.Base
@@ -74,7 +74,7 @@ FILE fqName:<root> fileName:/InnerClassInAnonymous.kt
$outer: VALUE_PARAMETER name:<this> type:<root>.box.<no name provided>
VALUE_PARAMETER name:s index:0 type:kotlin.String
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:Base modality:OPEN visibility:local [inner] superTypes:[kotlin.Any]'
PROPERTY name:s visibility:public modality:FINAL [val]
FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.String visibility:private [final]
@@ -89,7 +89,7 @@ FILE fqName:<root> fileName:/InnerClassInAnonymous.kt
receiver: GET_VAR '<this>: <root>.box.<no name provided>.Base declared in <root>.box.<no name provided>.Base.<get-s>' type=<root>.box.<no name provided>.Base 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 [operator] declared in kotlin.Any
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]
@@ -102,7 +102,7 @@ FILE fqName:<root> fileName:/InnerClassInAnonymous.kt
$this: VALUE_PARAMETER name:<this> type: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 [operator] declared in kotlin.Any
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]
@@ -113,7 +113,7 @@ FILE fqName:<root> fileName:/InnerClassInAnonymous.kt
overridden:
public open fun toString (): kotlin.String declared in kotlin.Any
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in <root>.box.<no name provided>' type=<root>.box.<no name provided> origin=OBJECT_LITERAL
CONSTRUCTOR_CALL 'public constructor <init> () declared in <root>.box.<no name provided>' type=<root>.box.<no name provided> origin=OBJECT_LITERAL
RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in <root>'
CALL 'public final fun foo (): kotlin.String declared in <root>.box.<no name provided>' type=kotlin.String origin=null
$this: GET_VAR 'val obj: <root>.box.<no name provided> [val] declared in <root>.box' type=<root>.box.<no name provided> origin=null
$this: GET_VAR 'val obj: <root>.box.<no name provided> declared in <root>.box' type=<root>.box.<no name provided> origin=null