[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:
committed by
Space Team
parent
b8e868caf6
commit
fd76a34277
+11
-11
@@ -4,7 +4,7 @@ FILE fqName:<root> fileName:/lambdaInEnumEntryConstructorCall.kt
|
||||
CONSTRUCTOR visibility:public <> (baseUrl:kotlin.String) returnType:<root>.Wrapper [primary]
|
||||
VALUE_PARAMETER name:baseUrl 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:Wrapper modality:FINAL visibility:public superTypes:[kotlin.Any]'
|
||||
PROPERTY name:baseUrl visibility:public modality:FINAL [var]
|
||||
FIELD PROPERTY_BACKING_FIELD name:baseUrl type:kotlin.String visibility:private
|
||||
@@ -27,7 +27,7 @@ FILE fqName:<root> fileName:/lambdaInEnumEntryConstructorCall.kt
|
||||
value: GET_VAR '<set-?>: kotlin.String declared in <root>.Wrapper.<set-baseUrl>' type=kotlin.String 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]
|
||||
@@ -48,10 +48,10 @@ FILE fqName:<root> fileName:/lambdaInEnumEntryConstructorCall.kt
|
||||
VALUE_PARAMETER name:value index:0 type:kotlin.String
|
||||
VALUE_PARAMETER name:nc index:1 type:<root>.Wrapper
|
||||
BLOCK_BODY
|
||||
CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null
|
||||
message: 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 plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS
|
||||
$this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS
|
||||
CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null
|
||||
message: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS
|
||||
$this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS
|
||||
$this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS
|
||||
$this: CONST String type=kotlin.String value="Base url updated from config parameters "
|
||||
other: CALL 'public final fun <get-baseUrl> (): kotlin.String declared in <root>.Wrapper' type=kotlin.String origin=GET_PROPERTY
|
||||
$this: GET_VAR 'nc: <root>.Wrapper declared in <root>.ConfigurationParameter.<anonymous>' type=<root>.Wrapper origin=null
|
||||
@@ -63,14 +63,14 @@ FILE fqName:<root> fileName:/lambdaInEnumEntryConstructorCall.kt
|
||||
CONSTRUCTOR visibility:private <> (apply:kotlin.Function2<kotlin.String, <root>.Wrapper, kotlin.Unit>) returnType:<root>.ConfigurationParameter
|
||||
VALUE_PARAMETER name:apply index:0 type:kotlin.Function2<kotlin.String, <root>.Wrapper, kotlin.Unit>
|
||||
BLOCK_BODY
|
||||
ENUM_CONSTRUCTOR_CALL 'public constructor <init> (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum'
|
||||
ENUM_CONSTRUCTOR_CALL 'public constructor <init> (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum'
|
||||
<E>: <root>.ConfigurationParameter
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:ConfigurationParameter modality:FINAL visibility:public superTypes:[kotlin.Enum<<root>.ConfigurationParameter>]'
|
||||
PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val]
|
||||
annotations:
|
||||
IntrinsicConstEvaluation
|
||||
overridden:
|
||||
public final name: kotlin.String [val]
|
||||
public final name: kotlin.String
|
||||
FUN FAKE_OVERRIDE name:<get-name> visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.ConfigurationParameter>) returnType:kotlin.String [fake_override]
|
||||
correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val]
|
||||
overridden:
|
||||
@@ -78,7 +78,7 @@ FILE fqName:<root> fileName:/lambdaInEnumEntryConstructorCall.kt
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.ConfigurationParameter>
|
||||
PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val]
|
||||
overridden:
|
||||
public final ordinal: kotlin.Int [val]
|
||||
public final ordinal: kotlin.Int
|
||||
FUN FAKE_OVERRIDE name:<get-ordinal> visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.ConfigurationParameter>) returnType:kotlin.Int [fake_override]
|
||||
correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val]
|
||||
overridden:
|
||||
@@ -90,12 +90,12 @@ FILE fqName:<root> fileName:/lambdaInEnumEntryConstructorCall.kt
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.ConfigurationParameter>
|
||||
FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.ConfigurationParameter>, other:<root>.ConfigurationParameter) returnType:kotlin.Int [fake_override,operator]
|
||||
overridden:
|
||||
public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum
|
||||
public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.ConfigurationParameter>
|
||||
VALUE_PARAMETER name:other index:0 type:<root>.ConfigurationParameter
|
||||
FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.ConfigurationParameter>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||
overridden:
|
||||
public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum
|
||||
public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.ConfigurationParameter>
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<<root>.ConfigurationParameter>) returnType:kotlin.Unit [fake_override]
|
||||
|
||||
Reference in New Issue
Block a user