JVM_IR. Remove descriptors from FileClassLowering

This commit is contained in:
Georgy Bronnikov
2018-10-21 11:07:14 +03:00
parent 95fbe29350
commit 0a43054a92
8 changed files with 19 additions and 29 deletions
@@ -35,6 +35,7 @@ interface IrClass : IrSymbolDeclaration<IrClassSymbol>, IrDeclarationWithVisibil
val isData: Boolean
val isExternal: Boolean
val isInline: Boolean
val isFileClass: Boolean
val superTypes: MutableList<IrType>
@@ -44,7 +44,8 @@ class IrClassImpl(
override val isInner: Boolean,
override val isData: Boolean,
override val isExternal: Boolean,
override val isInline: Boolean
override val isInline: Boolean,
override val isFileClass: Boolean = false
) :
IrDeclarationBase(startOffset, endOffset, origin),
IrClass {
@@ -66,6 +66,8 @@ class IrLazyClass(
symbol.bind(this)
}
override val isFileClass = false // file classes are never crated lazily
override val annotations: MutableList<IrCall> = arrayListOf()
override val descriptor: ClassDescriptor get() = symbol.descriptor