diff --git a/compiler/fir/raw-fir/light-tree2fir/src/org/jetbrains/kotlin/fir/lightTree/fir/DestructuringDeclaration.kt b/compiler/fir/raw-fir/light-tree2fir/src/org/jetbrains/kotlin/fir/lightTree/fir/DestructuringDeclaration.kt index fbacbd5bb76..e1c2b7dec4e 100644 --- a/compiler/fir/raw-fir/light-tree2fir/src/org/jetbrains/kotlin/fir/lightTree/fir/DestructuringDeclaration.kt +++ b/compiler/fir/raw-fir/light-tree2fir/src/org/jetbrains/kotlin/fir/lightTree/fir/DestructuringDeclaration.kt @@ -12,6 +12,7 @@ import org.jetbrains.kotlin.fir.expressions.FirExpression import org.jetbrains.kotlin.fir.generateTemporaryVariable import org.jetbrains.kotlin.fir.lightTree.converter.generateDestructuringBlock import org.jetbrains.kotlin.fir.lightTree.fir.modifier.Modifier +import org.jetbrains.kotlin.name.SpecialNames data class DestructuringDeclaration( val isVar: Boolean, @@ -24,9 +25,9 @@ data class DestructuringDeclaration( val baseVariable = generateTemporaryVariable( moduleData, source, - "destruct", + SpecialNames.DESTRUCT, initializer, - modifier.annotations + extractedAnnotations = modifier.annotations ) return generateDestructuringBlock(moduleData, this, baseVariable, tmpVariable = true) } diff --git a/compiler/fir/raw-fir/raw-fir.common/src/org/jetbrains/kotlin/fir/builder/BaseFirBuilder.kt b/compiler/fir/raw-fir/raw-fir.common/src/org/jetbrains/kotlin/fir/builder/BaseFirBuilder.kt index 4518c1e3f38..bd964a3722f 100644 --- a/compiler/fir/raw-fir/raw-fir.common/src/org/jetbrains/kotlin/fir/builder/BaseFirBuilder.kt +++ b/compiler/fir/raw-fir/raw-fir.common/src/org/jetbrains/kotlin/fir/builder/BaseFirBuilder.kt @@ -631,7 +631,7 @@ abstract class BaseFirBuilder(val baseSession: FirSession, val context: Conte val resultVar = generateTemporaryVariable( baseModuleData, desugaredSource, - Name.special(""), + SpecialNames.UNARY_RESULT, resultInitializer ) diff --git a/core/compiler.common/src/org/jetbrains/kotlin/name/SpecialNames.kt b/core/compiler.common/src/org/jetbrains/kotlin/name/SpecialNames.kt index 2de9e0de059..61ec5e42293 100644 --- a/core/compiler.common/src/org/jetbrains/kotlin/name/SpecialNames.kt +++ b/core/compiler.common/src/org/jetbrains/kotlin/name/SpecialNames.kt @@ -40,6 +40,9 @@ object SpecialNames { @JvmField val UNARY = Name.special("") + @JvmField + val UNARY_RESULT = Name.special("") + @JvmField val THIS = Name.special("")