IR: Compute IrBasedDescriptor.isExpect where possible
This commit is contained in:
committed by
TeamCityServer
parent
f4ddbb5e71
commit
b79e9c9f90
@@ -409,7 +409,7 @@ open class IrBasedSimpleFunctionDescriptor(owner: IrSimpleFunction) : SimpleFunc
|
|||||||
override fun isTailrec() = owner.isTailrec
|
override fun isTailrec() = owner.isTailrec
|
||||||
override fun isInline() = owner.isInline
|
override fun isInline() = owner.isInline
|
||||||
|
|
||||||
override fun isExpect() = false
|
override fun isExpect() = owner.isExpect
|
||||||
override fun isActual() = false
|
override fun isActual() = false
|
||||||
override fun isInfix() = false
|
override fun isInfix() = false
|
||||||
override fun isOperator() = false
|
override fun isOperator() = false
|
||||||
@@ -532,7 +532,7 @@ open class IrBasedClassConstructorDescriptor(owner: IrConstructor) : ClassConstr
|
|||||||
|
|
||||||
override fun isPrimary() = owner.isPrimary
|
override fun isPrimary() = owner.isPrimary
|
||||||
|
|
||||||
override fun isExpect() = false
|
override fun isExpect() = owner.isExpect
|
||||||
|
|
||||||
override fun isTailrec() = false
|
override fun isTailrec() = false
|
||||||
|
|
||||||
@@ -630,7 +630,7 @@ open class IrBasedClassDescriptor(owner: IrClass) : ClassDescriptor, IrBasedDecl
|
|||||||
|
|
||||||
override fun getOriginal() = this
|
override fun getOriginal() = this
|
||||||
|
|
||||||
override fun isExpect() = false
|
override fun isExpect() = owner.isExpect
|
||||||
|
|
||||||
override fun substitute(substitutor: TypeSubstitutor): ClassifierDescriptorWithTypeParameters =
|
override fun substitute(substitutor: TypeSubstitutor): ClassifierDescriptorWithTypeParameters =
|
||||||
throw UnsupportedOperationException("IrBased descriptors SHOULD NOT be substituted")
|
throw UnsupportedOperationException("IrBased descriptors SHOULD NOT be substituted")
|
||||||
@@ -850,7 +850,7 @@ open class IrBasedPropertyDescriptor(owner: IrProperty) :
|
|||||||
|
|
||||||
override fun getOriginal() = this
|
override fun getOriginal() = this
|
||||||
|
|
||||||
override fun isExpect() = false
|
override fun isExpect() = owner.isExpect
|
||||||
|
|
||||||
override fun substitute(substitutor: TypeSubstitutor): PropertyDescriptor =
|
override fun substitute(substitutor: TypeSubstitutor): PropertyDescriptor =
|
||||||
throw UnsupportedOperationException("IrBased descriptors SHOULD NOT be substituted")
|
throw UnsupportedOperationException("IrBased descriptors SHOULD NOT be substituted")
|
||||||
|
|||||||
Reference in New Issue
Block a user