FIR: make declarations marked with 'override' implicitly open

#KT-52236 Fixed
This commit is contained in:
Steven Schäfer
2022-11-18 16:13:01 +01:00
committed by Space Team
parent 9c1a68fcec
commit 6af616d3c3
205 changed files with 638 additions and 10616 deletions
@@ -70,19 +70,19 @@ FILE fqName:<root> fileName:/ImplicitReceiverStack.kt
RETURN type=kotlin.Nothing from='public final fun <get-boundSymbol> (): S of <root>.ImplicitReceiverValue? declared in <root>.ImplicitReceiverValue'
GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:boundSymbol type:S of <root>.ImplicitReceiverValue? visibility:private [final]' type=S of <root>.ImplicitReceiverValue? origin=null
receiver: GET_VAR '<this>: <root>.ImplicitReceiverValue<S of <root>.ImplicitReceiverValue> declared in <root>.ImplicitReceiverValue.<get-boundSymbol>' type=<root>.ImplicitReceiverValue<S of <root>.ImplicitReceiverValue> origin=null
PROPERTY name:type visibility:public modality:FINAL [val]
PROPERTY name:type visibility:public modality:OPEN [val]
overridden:
public abstract type: kotlin.String [val]
FIELD PROPERTY_BACKING_FIELD name:type type:kotlin.String visibility:private [final]
EXPRESSION_BODY
GET_VAR 'type: kotlin.String declared in <root>.ImplicitReceiverValue.<init>' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-type> visibility:public modality:FINAL <> ($this:<root>.ImplicitReceiverValue<S of <root>.ImplicitReceiverValue>) returnType:kotlin.String
correspondingProperty: PROPERTY name:type visibility:public modality:FINAL [val]
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-type> visibility:public modality:OPEN <> ($this:<root>.ImplicitReceiverValue<S of <root>.ImplicitReceiverValue>) returnType:kotlin.String
correspondingProperty: PROPERTY name:type visibility:public modality:OPEN [val]
overridden:
public abstract fun <get-type> (): kotlin.String declared in <root>.ReceiverValue
$this: VALUE_PARAMETER name:<this> type:<root>.ImplicitReceiverValue<S of <root>.ImplicitReceiverValue>
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun <get-type> (): kotlin.String declared in <root>.ImplicitReceiverValue'
RETURN type=kotlin.Nothing from='public open fun <get-type> (): kotlin.String declared in <root>.ImplicitReceiverValue'
GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:type type:kotlin.String visibility:private [final]' type=kotlin.String origin=null
receiver: GET_VAR '<this>: <root>.ImplicitReceiverValue<S of <root>.ImplicitReceiverValue> declared in <root>.ImplicitReceiverValue.<get-type>' type=<root>.ImplicitReceiverValue<S of <root>.ImplicitReceiverValue> origin=null
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
@@ -151,23 +151,23 @@ FILE fqName:<root> fileName:/ImplicitReceiverStack.kt
RETURN type=kotlin.Nothing from='private final fun <get-stack> (): kotlin.collections.List<<root>.ImplicitReceiverValue<*>> declared in <root>.PersistentImplicitReceiverStack'
GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:stack type:kotlin.collections.List<<root>.ImplicitReceiverValue<*>> visibility:private [final]' type=kotlin.collections.List<<root>.ImplicitReceiverValue<*>> origin=null
receiver: GET_VAR '<this>: <root>.PersistentImplicitReceiverStack declared in <root>.PersistentImplicitReceiverStack.<get-stack>' type=<root>.PersistentImplicitReceiverStack origin=null
FUN name:iterator visibility:public modality:FINAL <> ($this:<root>.PersistentImplicitReceiverStack) returnType:kotlin.collections.Iterator<<root>.ImplicitReceiverValue<*>> [operator]
FUN name:iterator visibility:public modality:OPEN <> ($this:<root>.PersistentImplicitReceiverStack) returnType:kotlin.collections.Iterator<<root>.ImplicitReceiverValue<*>> [operator]
overridden:
public abstract fun iterator (): kotlin.collections.Iterator<<root>.ImplicitReceiverValue<*>> [fake_override,operator] declared in <root>.ImplicitReceiverStack
public abstract fun iterator (): kotlin.collections.Iterator<T of kotlin.collections.Iterable> [operator] declared in kotlin.collections.Iterable
$this: VALUE_PARAMETER name:<this> type:<root>.PersistentImplicitReceiverStack
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun iterator (): kotlin.collections.Iterator<<root>.ImplicitReceiverValue<*>> [operator] declared in <root>.PersistentImplicitReceiverStack'
RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.Iterator<<root>.ImplicitReceiverValue<*>> [operator] declared in <root>.PersistentImplicitReceiverStack'
CALL 'public abstract fun iterator (): kotlin.collections.Iterator<E of kotlin.collections.List> [operator] declared in kotlin.collections.List' type=kotlin.collections.Iterator<<root>.ImplicitReceiverValue<*>> origin=null
$this: CALL 'private final fun <get-stack> (): kotlin.collections.List<<root>.ImplicitReceiverValue<*>> declared in <root>.PersistentImplicitReceiverStack' type=kotlin.collections.List<<root>.ImplicitReceiverValue<*>> origin=GET_PROPERTY
$this: GET_VAR '<this>: <root>.PersistentImplicitReceiverStack declared in <root>.PersistentImplicitReceiverStack.iterator' type=<root>.PersistentImplicitReceiverStack origin=null
FUN name:get visibility:public modality:FINAL <> ($this:<root>.PersistentImplicitReceiverStack, name:kotlin.String?) returnType:<root>.ImplicitReceiverValue<*>? [operator]
FUN name:get visibility:public modality:OPEN <> ($this:<root>.PersistentImplicitReceiverStack, name:kotlin.String?) returnType:<root>.ImplicitReceiverValue<*>? [operator]
overridden:
public abstract fun get (name: kotlin.String?): <root>.ImplicitReceiverValue<*>? [operator] declared in <root>.ImplicitReceiverStack
$this: VALUE_PARAMETER name:<this> type:<root>.PersistentImplicitReceiverStack
VALUE_PARAMETER name:name index:0 type:kotlin.String?
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun get (name: kotlin.String?): <root>.ImplicitReceiverValue<*>? [operator] declared in <root>.PersistentImplicitReceiverStack'
RETURN type=kotlin.Nothing from='public open fun get (name: kotlin.String?): <root>.ImplicitReceiverValue<*>? [operator] declared in <root>.PersistentImplicitReceiverStack'
CALL 'public final fun lastOrNull <T> (): T of kotlin.collections.CollectionsKt.lastOrNull? declared in kotlin.collections.CollectionsKt' type=<root>.ImplicitReceiverValue<*>? origin=null
<T>: <root>.ImplicitReceiverValue<*>
$receiver: CALL 'private final fun <get-stack> (): kotlin.collections.List<<root>.ImplicitReceiverValue<*>> declared in <root>.PersistentImplicitReceiverStack' type=kotlin.collections.List<<root>.ImplicitReceiverValue<*>> origin=GET_PROPERTY
@@ -214,7 +214,7 @@ FILE fqName:<root> fileName:/ImplicitReceiverStack.kt
CALL 'public final fun <get-boundSymbol> (): S of <root>.ImplicitReceiverValue? declared in <root>.ImplicitReceiverValue' type=<root>.Symbol<*>? origin=GET_PROPERTY
$this: GET_VAR 'it: <root>.ImplicitReceiverValue<*> declared in <root>.foo.<anonymous>' type=<root>.ImplicitReceiverValue<*> origin=null
CALL 'public final fun bar (s: kotlin.String): kotlin.Unit declared in <root>' type=kotlin.Unit origin=null
s: CALL 'public final fun <get-type> (): kotlin.String declared in <root>.ImplicitReceiverValue' type=kotlin.String origin=GET_PROPERTY
s: CALL 'public open fun <get-type> (): kotlin.String declared in <root>.ImplicitReceiverValue' type=kotlin.String origin=GET_PROPERTY
$this: GET_VAR 'it: <root>.ImplicitReceiverValue<*> declared in <root>.foo.<anonymous>' type=<root>.ImplicitReceiverValue<*> origin=null
FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String
BLOCK_BODY
@@ -235,13 +235,13 @@ FILE fqName:<root> fileName:/ImplicitReceiverStack.kt
stack: GET_VAR 'val stack: <root>.PersistentImplicitReceiverStack [val] declared in <root>.box' type=<root>.PersistentImplicitReceiverStack origin=null
RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in <root>'
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-type> (): kotlin.String declared in <root>.ImplicitReceiverValue' type=kotlin.String origin=GET_PROPERTY
$this: CALL 'public open fun <get-type> (): kotlin.String declared in <root>.ImplicitReceiverValue' type=kotlin.String origin=GET_PROPERTY
$this: CALL 'public final fun first <T> (): T of kotlin.collections.CollectionsKt.first declared in kotlin.collections.CollectionsKt' type=<root>.ImplicitReceiverValue<*> origin=null
<T>: <root>.ImplicitReceiverValue<*>
$receiver: GET_VAR 'val stack: <root>.PersistentImplicitReceiverStack [val] declared in <root>.box' type=<root>.PersistentImplicitReceiverStack origin=null
other: BLOCK type=kotlin.String? origin=SAFE_CALL
VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:<root>.ImplicitReceiverValue<*>? [val]
CALL 'public final fun get (name: kotlin.String?): <root>.ImplicitReceiverValue<*>? [operator] declared in <root>.PersistentImplicitReceiverStack' type=<root>.ImplicitReceiverValue<*>? origin=null
CALL 'public open fun get (name: kotlin.String?): <root>.ImplicitReceiverValue<*>? [operator] declared in <root>.PersistentImplicitReceiverStack' type=<root>.ImplicitReceiverValue<*>? origin=null
$this: GET_VAR 'val stack: <root>.PersistentImplicitReceiverStack [val] declared in <root>.box' type=<root>.PersistentImplicitReceiverStack origin=null
name: CONST Null type=kotlin.Nothing? value=null
WHEN type=kotlin.String? origin=null
@@ -252,5 +252,5 @@ FILE fqName:<root> fileName:/ImplicitReceiverStack.kt
then: CONST Null type=kotlin.Nothing? value=null
BRANCH
if: CONST Boolean type=kotlin.Boolean value=true
then: CALL 'public final fun <get-type> (): kotlin.String declared in <root>.ImplicitReceiverValue' type=kotlin.String origin=GET_PROPERTY
then: CALL 'public open fun <get-type> (): kotlin.String declared in <root>.ImplicitReceiverValue' type=kotlin.String origin=GET_PROPERTY
$this: GET_VAR 'val tmp_0: <root>.ImplicitReceiverValue<*>? [val] declared in <root>.box' type=<root>.ImplicitReceiverValue<*>? origin=null