Minor: cleanup IrLazyProperty
This commit is contained in:
@@ -35,7 +35,7 @@ class IrLazyProperty(
|
|||||||
override val isLateinit: Boolean,
|
override val isLateinit: Boolean,
|
||||||
override val isDelegated: Boolean,
|
override val isDelegated: Boolean,
|
||||||
override val isExternal: Boolean,
|
override val isExternal: Boolean,
|
||||||
private val stubGenerator: DeclarationStubGenerator,
|
stubGenerator: DeclarationStubGenerator,
|
||||||
typeTranslator: TypeTranslator,
|
typeTranslator: TypeTranslator,
|
||||||
private val bindingContext: BindingContext? = null
|
private val bindingContext: BindingContext? = null
|
||||||
) :
|
) :
|
||||||
@@ -74,18 +74,18 @@ class IrLazyProperty(
|
|||||||
override var backingField: IrField? by lazyVar {
|
override var backingField: IrField? by lazyVar {
|
||||||
if (descriptor.hasBackingField(bindingContext)) {
|
if (descriptor.hasBackingField(bindingContext)) {
|
||||||
stubGenerator.generateFieldStub(descriptor).apply {
|
stubGenerator.generateFieldStub(descriptor).apply {
|
||||||
correspondingProperty = this@IrLazyProperty
|
correspondingPropertySymbol = this@IrLazyProperty.symbol
|
||||||
}
|
}
|
||||||
} else null
|
} else null
|
||||||
}
|
}
|
||||||
override var getter: IrSimpleFunction? by lazyVar {
|
override var getter: IrSimpleFunction? by lazyVar {
|
||||||
descriptor.getter?.let { stubGenerator.generateFunctionStub(it, createPropertyIfNeeded = false) }?.apply {
|
descriptor.getter?.let { stubGenerator.generateFunctionStub(it, createPropertyIfNeeded = false) }?.apply {
|
||||||
correspondingProperty = this@IrLazyProperty
|
correspondingPropertySymbol = this@IrLazyProperty.symbol
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
override var setter: IrSimpleFunction? by lazyVar {
|
override var setter: IrSimpleFunction? by lazyVar {
|
||||||
descriptor.setter?.let { stubGenerator.generateFunctionStub(it, createPropertyIfNeeded = false) }?.apply {
|
descriptor.setter?.let { stubGenerator.generateFunctionStub(it, createPropertyIfNeeded = false) }?.apply {
|
||||||
correspondingProperty = this@IrLazyProperty
|
correspondingPropertySymbol = this@IrLazyProperty.symbol
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user