Drop redundant fields around AbstractFir2IrLazyFunction
This commit is contained in:
committed by
Alexander Udalov
parent
fda5ee7d06
commit
ee40b3a4a4
@@ -59,7 +59,9 @@ abstract class AbstractFir2IrLazyFunction<F : FirMemberDeclaration>(
|
||||
override val isExpect: Boolean
|
||||
get() = fir.isExpect
|
||||
|
||||
override var body: IrBody? = null
|
||||
override var body: IrBody?
|
||||
get() = null
|
||||
set(_) = error("We should never need to store body of external functions.")
|
||||
|
||||
override var visibility: DescriptorVisibility by lazyVar {
|
||||
components.visibilityConverter.convertToDescriptorVisibility(fir.visibility)
|
||||
|
||||
@@ -18,15 +18,15 @@ import org.jetbrains.kotlin.serialization.deserialization.descriptors.Deserializ
|
||||
|
||||
class Fir2IrLazyPropertyAccessor(
|
||||
components: Fir2IrComponents,
|
||||
override val startOffset: Int,
|
||||
override val endOffset: Int,
|
||||
override var origin: IrDeclarationOrigin,
|
||||
startOffset: Int,
|
||||
endOffset: Int,
|
||||
origin: IrDeclarationOrigin,
|
||||
private val firAccessor: FirPropertyAccessor?,
|
||||
private val isSetter: Boolean,
|
||||
private val firParentProperty: FirProperty,
|
||||
firParentClass: FirRegularClass,
|
||||
override val symbol: Fir2IrSimpleFunctionSymbol,
|
||||
override val isFakeOverride: Boolean
|
||||
symbol: Fir2IrSimpleFunctionSymbol,
|
||||
isFakeOverride: Boolean
|
||||
) : AbstractFir2IrLazyFunction<FirMemberDeclaration>(components, startOffset, endOffset, origin, symbol, isFakeOverride) {
|
||||
init {
|
||||
symbol.bind(this)
|
||||
|
||||
@@ -18,13 +18,13 @@ import org.jetbrains.kotlin.serialization.deserialization.descriptors.Deserializ
|
||||
|
||||
class Fir2IrLazySimpleFunction(
|
||||
components: Fir2IrComponents,
|
||||
override val startOffset: Int,
|
||||
override val endOffset: Int,
|
||||
override var origin: IrDeclarationOrigin,
|
||||
startOffset: Int,
|
||||
endOffset: Int,
|
||||
origin: IrDeclarationOrigin,
|
||||
override val fir: FirSimpleFunction,
|
||||
firParent: FirRegularClass,
|
||||
override val symbol: Fir2IrSimpleFunctionSymbol,
|
||||
override val isFakeOverride: Boolean
|
||||
symbol: Fir2IrSimpleFunctionSymbol,
|
||||
isFakeOverride: Boolean
|
||||
) : AbstractFir2IrLazyFunction<FirSimpleFunction>(components, startOffset, endOffset, origin, symbol, isFakeOverride) {
|
||||
init {
|
||||
symbol.bind(this)
|
||||
|
||||
Reference in New Issue
Block a user