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