From aa74bd4293f7a2fb652d6a6491435452be99f3b6 Mon Sep 17 00:00:00 2001 From: "Denis.Zharkov" Date: Thu, 24 Mar 2022 15:00:36 +0300 Subject: [PATCH] FIR: Minor. Drop effectively-always-null `body` parameter --- .../src/org/jetbrains/kotlin/fir/builder/RawFirBuilder.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/compiler/fir/raw-fir/psi2fir/src/org/jetbrains/kotlin/fir/builder/RawFirBuilder.kt b/compiler/fir/raw-fir/psi2fir/src/org/jetbrains/kotlin/fir/builder/RawFirBuilder.kt index 48bbf628a26..982be0573bd 100644 --- a/compiler/fir/raw-fir/psi2fir/src/org/jetbrains/kotlin/fir/builder/RawFirBuilder.kt +++ b/compiler/fir/raw-fir/psi2fir/src/org/jetbrains/kotlin/fir/builder/RawFirBuilder.kt @@ -837,7 +837,6 @@ open class RawFirBuilder( owner = this, containerTypeParameters, containingClassIsExpectClass, - body = null ) container.declarations += firPrimaryConstructor } @@ -852,7 +851,6 @@ open class RawFirBuilder( owner: KtClassOrObject, ownerTypeParameters: List, containingClassIsExpectClass: Boolean, - body: FirBlock? = null ): FirConstructor { val constructorCall = superTypeCallEntry?.toFirSourceElement() val constructorSource = this?.toFirSourceElement() @@ -897,7 +895,7 @@ open class RawFirBuilder( this.contextReceivers.addAll(convertContextReceivers(owner.contextReceivers)) this@toFirConstructor?.extractAnnotationsTo(this) this@toFirConstructor?.extractValueParametersTo(this, ValueParameterDeclaration.PRIMARY_CONSTRUCTOR) - this.body = body + this.body = null }.apply { containingClassForStaticMemberAttr = currentDispatchReceiverType()!!.lookupTag }