[FIR] make FirPropertyAccessor#propertySymbol non-nullable
we need it to restore property accessor by property ^KT-54311
This commit is contained in:
committed by
Space Team
parent
c6bbce986d
commit
a0b814a1b6
+1
-1
@@ -47,7 +47,7 @@ internal class KtFirPropertyGetterSymbol(
|
||||
override val isOverride: Boolean
|
||||
get() = withValidityAssertion {
|
||||
if (firSymbol.isOverride) return@withValidityAssertion true
|
||||
return firSymbol.fir.propertySymbol?.isOverride == true
|
||||
return firSymbol.fir.propertySymbol.isOverride
|
||||
}
|
||||
|
||||
override val hasBody: Boolean get() = withValidityAssertion { firSymbol.fir.body != null }
|
||||
|
||||
+1
-1
@@ -51,7 +51,7 @@ internal class KtFirPropertySetterSymbol(
|
||||
override val isOverride: Boolean
|
||||
get() = withValidityAssertion {
|
||||
if (firSymbol.isOverride) return true
|
||||
val propertySymbol = firSymbol.fir.propertySymbol ?: return@withValidityAssertion false
|
||||
val propertySymbol = firSymbol.fir.propertySymbol
|
||||
if (!propertySymbol.isOverride) return false
|
||||
val session = firResolveSession.useSiteFirSession
|
||||
val containingClassScope = firSymbol.dispatchReceiverType?.scope(
|
||||
|
||||
Reference in New Issue
Block a user