[FIR2IR] Properly calculate overridden symbols for lazy declarations
This change affects only mode with IR f/o generator The old way of overridden computation with fir2ir f/o generator relied on the fact that fir2ir generator creates IR for all f/o and fills its caches. But with IR f/o generator enabled, we don't call fir2ir generator, so some caches are missing. And for this mode it's enough to acquire the symbol using the original declaration symbol and the lookup tag of the corresponding supertype Relates to KT-64202
This commit is contained in:
committed by
Space Team
parent
dcd3f3b155
commit
97cf62e291
Vendored
+32
@@ -0,0 +1,32 @@
|
||||
CLASS IR_EXTERNAL_JAVA_DECLARATION_STUB INTERFACE name:JavaInterface modality:ABSTRACT visibility:public superTypes:[<root>.B; <root>.C; <root>.D]
|
||||
$this: VALUE_PARAMETER IR_EXTERNAL_JAVA_DECLARATION_STUB name:<this> type:<root>.JavaInterface
|
||||
FUN IR_EXTERNAL_JAVA_DECLARATION_STUB name:bar visibility:public modality:ABSTRACT <> ($this:<root>.JavaInterface) returnType:kotlin.Unit
|
||||
overridden:
|
||||
public abstract fun bar (): kotlin.Unit [fake_override] declared in <root>.B
|
||||
public abstract fun bar (): kotlin.Unit [fake_override] declared in <root>.C
|
||||
public abstract fun bar (): kotlin.Unit declared in <root>.D
|
||||
$this: VALUE_PARAMETER IR_EXTERNAL_JAVA_DECLARATION_STUB name:<this> type:<root>.JavaInterface
|
||||
FUN IR_EXTERNAL_JAVA_DECLARATION_STUB name:foo visibility:public modality:ABSTRACT <> ($this:<root>.JavaInterface) returnType:kotlin.Unit
|
||||
overridden:
|
||||
public abstract fun foo (): kotlin.Unit [fake_override] declared in <root>.B
|
||||
public abstract fun foo (): kotlin.Unit [fake_override] declared in <root>.C
|
||||
$this: VALUE_PARAMETER IR_EXTERNAL_JAVA_DECLARATION_STUB name:<this> type:<root>.JavaInterface
|
||||
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>.B
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in <root>.C
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in <root>.D
|
||||
$this: VALUE_PARAMETER FAKE_OVERRIDE name:<this> type:kotlin.Any
|
||||
VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB 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>.B
|
||||
public open fun hashCode (): kotlin.Int [fake_override] declared in <root>.C
|
||||
public open fun hashCode (): kotlin.Int [fake_override] declared in <root>.D
|
||||
$this: VALUE_PARAMETER FAKE_OVERRIDE 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>.B
|
||||
public open fun toString (): kotlin.String [fake_override] declared in <root>.C
|
||||
public open fun toString (): kotlin.String [fake_override] declared in <root>.D
|
||||
$this: VALUE_PARAMETER FAKE_OVERRIDE name:<this> type:kotlin.Any
|
||||
Reference in New Issue
Block a user