RAW FIR: use special name for default setter parameter

FE1.0 descpritor, PSI2IR, and JVM IR backend use that.
FIR2IR is also using that, which implies name "value" in RAW FIR
maybe has not been used anywhere.
This commit is contained in:
Jinseong Jeon
2022-03-25 23:33:07 -07:00
committed by Ilya Kirillov
parent 3778b1fde1
commit 2763b58cdd
4 changed files with 5 additions and 6 deletions
@@ -25,6 +25,7 @@ import org.jetbrains.kotlin.fir.symbols.impl.FirValueParameterSymbol
import org.jetbrains.kotlin.fir.types.ConeSimpleKotlinType
import org.jetbrains.kotlin.fir.types.FirTypeRef
import org.jetbrains.kotlin.fir.types.impl.FirImplicitUnitTypeRef
import org.jetbrains.kotlin.name.SpecialNames
@OptIn(FirImplementationDetail::class)
abstract class FirDefaultPropertyAccessor(
@@ -143,7 +144,7 @@ class FirDefaultPropertySetter(
this@builder.moduleData = moduleData
this@builder.origin = origin
this@builder.returnTypeRef = propertyTypeRef
this@builder.symbol = FirValueParameterSymbol(StandardNames.DEFAULT_VALUE_PARAMETER)
this@builder.symbol = FirValueParameterSymbol(SpecialNames.IMPLICIT_SET_PARAMETER)
this@builder.annotations += parameterAnnotations
}
),