Try loading PSI from descriptor in OtherOrigin constructor
To simplify several call sites
This commit is contained in:
+3
-6
@@ -365,11 +365,8 @@ private val Modality.flags: Int
|
||||
private val Visibility.flags: Int
|
||||
get() = AsmUtil.getVisibilityAccessFlag(this) ?: throw AssertionError("Unsupported visibility $this")
|
||||
|
||||
private val IrField.OtherOrigin: JvmDeclarationOrigin
|
||||
get() = OtherOrigin(descriptor.psiElement, this.descriptor)
|
||||
|
||||
internal val IrFunction.OtherOrigin: JvmDeclarationOrigin
|
||||
get() = OtherOrigin(descriptor.psiElement, this.descriptor)
|
||||
internal val IrDeclaration.OtherOrigin: JvmDeclarationOrigin
|
||||
get() = OtherOrigin(descriptor)
|
||||
|
||||
private fun IrClass.getSuperClassInfo(typeMapper: IrTypeMapper): IrSuperClassInfo {
|
||||
if (isInterface) {
|
||||
@@ -384,4 +381,4 @@ private fun IrClass.getSuperClassInfo(typeMapper: IrTypeMapper): IrSuperClassInf
|
||||
}
|
||||
|
||||
return IrSuperClassInfo(AsmTypes.OBJECT_TYPE, null)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user