Skip to content

Commit

Permalink
Drop redundant fields around AbstractFir2IrLazyFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
mglukhikh authored and udalov committed Nov 24, 2020
1 parent fda5ee7 commit ee40b3a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ee40b3a

Please sign in to comment.