FIR Java: fix exception during synthetic property enhancement
This commit is contained in:
+8
-5
@@ -107,9 +107,14 @@ class FirSignatureEnhancement(
|
|||||||
}
|
}
|
||||||
is FirSyntheticProperty -> {
|
is FirSyntheticProperty -> {
|
||||||
val accessorSymbol = firElement.symbol
|
val accessorSymbol = firElement.symbol
|
||||||
val enhancedFunctionSymbol = enhanceMethod(
|
val getterDelegate = firElement.getter.delegate
|
||||||
firElement.getter.delegate, accessorSymbol.accessorId, accessorSymbol.accessorId.callableName
|
val enhancedFunctionSymbol = if (getterDelegate is FirJavaMethod) {
|
||||||
)
|
enhanceMethod(
|
||||||
|
getterDelegate, accessorSymbol.accessorId, accessorSymbol.accessorId.callableName
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
getterDelegate.symbol
|
||||||
|
}
|
||||||
return buildSyntheticProperty {
|
return buildSyntheticProperty {
|
||||||
session = this@FirSignatureEnhancement.session
|
session = this@FirSignatureEnhancement.session
|
||||||
this.name = name
|
this.name = name
|
||||||
@@ -324,8 +329,6 @@ class FirSignatureEnhancement(
|
|||||||
return signatureParts.type
|
return signatureParts.type
|
||||||
}
|
}
|
||||||
|
|
||||||
private val overrideBindCache = mutableMapOf<Name, Map<FirCallableSymbol<*>?, List<FirCallableSymbol<*>>>>()
|
|
||||||
|
|
||||||
private sealed class TypeInSignature {
|
private sealed class TypeInSignature {
|
||||||
abstract fun getTypeRef(member: FirCallableMemberDeclaration<*>): FirTypeRef
|
abstract fun getTypeRef(member: FirCallableMemberDeclaration<*>): FirTypeRef
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user