IR: minor, make IrClass.companionObject return IrClass
This commit is contained in:
@@ -100,7 +100,8 @@ val IrDeclaration.fileEntry: SourceManager.FileEntry
|
||||
}
|
||||
}
|
||||
|
||||
fun IrClass.companionObject() = this.declarations.singleOrNull {it is IrClass && it.isCompanion }
|
||||
fun IrClass.companionObject(): IrClass? =
|
||||
this.declarations.singleOrNull { it is IrClass && it.isCompanion } as IrClass?
|
||||
|
||||
val IrDeclaration.isGetter get() = this is IrSimpleFunction && this == this.correspondingPropertySymbol?.owner?.getter
|
||||
|
||||
|
||||
Reference in New Issue
Block a user