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
|
override val isExpect: Boolean
|
||||||
get() = fir.isExpect
|
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 {
|
override var visibility: DescriptorVisibility by lazyVar {
|
||||||
components.visibilityConverter.convertToDescriptorVisibility(fir.visibility)
|
components.visibilityConverter.convertToDescriptorVisibility(fir.visibility)
|
||||||
|
|||||||
@@ -18,15 +18,15 @@ import org.jetbrains.kotlin.serialization.deserialization.descriptors.Deserializ
|
|||||||
|
|
||||||
class Fir2IrLazyPropertyAccessor(
|
class Fir2IrLazyPropertyAccessor(
|
||||||
components: Fir2IrComponents,
|
components: Fir2IrComponents,
|
||||||
override val startOffset: Int,
|
startOffset: Int,
|
||||||
override val endOffset: Int,
|
endOffset: Int,
|
||||||
override var origin: IrDeclarationOrigin,
|
origin: IrDeclarationOrigin,
|
||||||
private val firAccessor: FirPropertyAccessor?,
|
private val firAccessor: FirPropertyAccessor?,
|
||||||
private val isSetter: Boolean,
|
private val isSetter: Boolean,
|
||||||
private val firParentProperty: FirProperty,
|
private val firParentProperty: FirProperty,
|
||||||
firParentClass: FirRegularClass,
|
firParentClass: FirRegularClass,
|
||||||
override val symbol: Fir2IrSimpleFunctionSymbol,
|
symbol: Fir2IrSimpleFunctionSymbol,
|
||||||
override val isFakeOverride: Boolean
|
isFakeOverride: Boolean
|
||||||
) : AbstractFir2IrLazyFunction<FirMemberDeclaration>(components, startOffset, endOffset, origin, symbol, isFakeOverride) {
|
) : AbstractFir2IrLazyFunction<FirMemberDeclaration>(components, startOffset, endOffset, origin, symbol, isFakeOverride) {
|
||||||
init {
|
init {
|
||||||
symbol.bind(this)
|
symbol.bind(this)
|
||||||
|
|||||||
@@ -18,13 +18,13 @@ import org.jetbrains.kotlin.serialization.deserialization.descriptors.Deserializ
|
|||||||
|
|
||||||
class Fir2IrLazySimpleFunction(
|
class Fir2IrLazySimpleFunction(
|
||||||
components: Fir2IrComponents,
|
components: Fir2IrComponents,
|
||||||
override val startOffset: Int,
|
startOffset: Int,
|
||||||
override val endOffset: Int,
|
endOffset: Int,
|
||||||
override var origin: IrDeclarationOrigin,
|
origin: IrDeclarationOrigin,
|
||||||
override val fir: FirSimpleFunction,
|
override val fir: FirSimpleFunction,
|
||||||
firParent: FirRegularClass,
|
firParent: FirRegularClass,
|
||||||
override val symbol: Fir2IrSimpleFunctionSymbol,
|
symbol: Fir2IrSimpleFunctionSymbol,
|
||||||
override val isFakeOverride: Boolean
|
isFakeOverride: Boolean
|
||||||
) : AbstractFir2IrLazyFunction<FirSimpleFunction>(components, startOffset, endOffset, origin, symbol, isFakeOverride) {
|
) : AbstractFir2IrLazyFunction<FirSimpleFunction>(components, startOffset, endOffset, origin, symbol, isFakeOverride) {
|
||||||
init {
|
init {
|
||||||
symbol.bind(this)
|
symbol.bind(this)
|
||||||
|
|||||||
Reference in New Issue
Block a user