From 86a4e17dc4587c09917ad489748aaf7664765800 Mon Sep 17 00:00:00 2001 From: Anton Bannykh Date: Tue, 24 Dec 2019 22:22:48 +0300 Subject: [PATCH] LocalDelegatedProperties --- .../kotlin/backend/common/lower/PropertiesLowering.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/PropertiesLowering.kt b/compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/PropertiesLowering.kt index eb0a695267b..44609409a71 100644 --- a/compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/PropertiesLowering.kt +++ b/compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/PropertiesLowering.kt @@ -9,6 +9,7 @@ import org.jetbrains.kotlin.backend.common.* import org.jetbrains.kotlin.ir.IrElement import org.jetbrains.kotlin.ir.IrStatement import org.jetbrains.kotlin.ir.declarations.* +import org.jetbrains.kotlin.ir.expressions.IrBody import org.jetbrains.kotlin.ir.expressions.impl.IrBlockImpl import org.jetbrains.kotlin.ir.util.isEffectivelyExternal import org.jetbrains.kotlin.ir.visitors.* @@ -59,9 +60,10 @@ class PropertiesLowering : DeclarationTransformer { } } -class LocalDelegatedPropertiesLowering : IrElementTransformerVoid(), FileLoweringPass { - override fun lower(irFile: IrFile) { - irFile.accept(this, null) +class LocalDelegatedPropertiesLowering : IrElementTransformerVoid(), BodyLoweringPass { + + override fun lower(irBody: IrBody, container: IrDeclaration) { + irBody.accept(this, null) } override fun visitLocalDelegatedProperty(declaration: IrLocalDelegatedProperty): IrStatement {