diff --git a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/ConversionUtils.kt b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/ConversionUtils.kt index 730ddf598da..be46ba6f3c7 100644 --- a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/ConversionUtils.kt +++ b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/ConversionUtils.kt @@ -22,7 +22,7 @@ import org.jetbrains.kotlin.fir.references.FirResolvedNamedReference import org.jetbrains.kotlin.fir.references.FirThisReference import org.jetbrains.kotlin.fir.references.impl.FirPropertyFromParameterResolvedNamedReference import org.jetbrains.kotlin.fir.resolve.* -import org.jetbrains.kotlin.fir.resolve.calls.SyntheticPropertySymbol +import org.jetbrains.kotlin.fir.resolve.calls.FirSyntheticPropertySymbol import org.jetbrains.kotlin.fir.resolve.calls.originalConstructorIfTypeAlias import org.jetbrains.kotlin.fir.resolve.providers.FirProvider import org.jetbrains.kotlin.fir.scopes.* @@ -176,7 +176,7 @@ fun FirReference.toSymbolForCall( private fun FirCallableSymbol<*>.toSymbolForCall(declarationStorage: Fir2IrDeclarationStorage, preferGetter: Boolean): IrSymbol? = when (this) { is FirFunctionSymbol<*> -> declarationStorage.getIrFunctionSymbol(this) - is SyntheticPropertySymbol -> { + is FirSyntheticPropertySymbol -> { (fir as? FirSyntheticProperty)?.let { syntheticProperty -> val delegateSymbol = if (preferGetter) { syntheticProperty.getter.delegate.symbol @@ -393,7 +393,7 @@ internal fun FirReference.statementOrigin(): IrStatementOrigin? { return when (this) { is FirPropertyFromParameterResolvedNamedReference -> IrStatementOrigin.INITIALIZE_PROPERTY_FROM_PARAMETER is FirResolvedNamedReference -> when (val symbol = resolvedSymbol) { - is AccessorSymbol, is SyntheticPropertySymbol -> IrStatementOrigin.GET_PROPERTY + is AccessorSymbol, is FirSyntheticPropertySymbol -> IrStatementOrigin.GET_PROPERTY is FirNamedFunctionSymbol -> when { symbol.callableId.isInvoke() -> IrStatementOrigin.INVOKE diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/Synthetics.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/Synthetics.kt index 60112007ddf..a1cab4f171e 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/Synthetics.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/Synthetics.kt @@ -23,7 +23,7 @@ import org.jetbrains.kotlin.fir.unwrapFakeOverrides import org.jetbrains.kotlin.name.Name import org.jetbrains.kotlin.types.AbstractTypeChecker -class SyntheticPropertySymbol( +class FirSyntheticPropertySymbol( callableId: CallableId, override val accessorId: CallableId ) : FirAccessorSymbol(callableId, accessorId), SyntheticSymbol @@ -109,7 +109,7 @@ class FirSyntheticPropertiesScope( val property = buildSyntheticProperty { session = this@FirSyntheticPropertiesScope.session name = propertyName - symbol = SyntheticPropertySymbol( + symbol = FirSyntheticPropertySymbol( accessorId = getterSymbol.callableId, callableId = CallableId(packageName, className, propertyName) ) diff --git a/idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/references/FirReferenceResolveHelper.kt b/idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/references/FirReferenceResolveHelper.kt index 37824acdd3a..971f33dd7d9 100644 --- a/idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/references/FirReferenceResolveHelper.kt +++ b/idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/references/FirReferenceResolveHelper.kt @@ -14,7 +14,7 @@ import org.jetbrains.kotlin.fir.declarations.synthetic.FirSyntheticProperty import org.jetbrains.kotlin.fir.expressions.* import org.jetbrains.kotlin.fir.psi import org.jetbrains.kotlin.fir.references.* -import org.jetbrains.kotlin.fir.resolve.calls.SyntheticPropertySymbol +import org.jetbrains.kotlin.fir.resolve.calls.FirSyntheticPropertySymbol import org.jetbrains.kotlin.fir.resolve.diagnostics.ConeAmbiguityError import org.jetbrains.kotlin.fir.resolve.diagnostics.ConeInapplicableCandidateError import org.jetbrains.kotlin.fir.resolve.diagnostics.ConeOperatorAmbiguityError @@ -86,7 +86,7 @@ internal object FirReferenceResolveHelper { } is FirResolvedNamedReference -> { val fir = when (val symbol = resolvedSymbol) { - is SyntheticPropertySymbol -> { + is FirSyntheticPropertySymbol -> { val syntheticProperty = symbol.fir as FirSyntheticProperty if (syntheticProperty.getter.delegate.symbol.callableId == symbol.accessorId) { syntheticProperty.getter.delegate