[FIR] Remove symbol.fir from FirNativeObjCOverrideInitChecker

This commit is contained in:
Nikolay Lunyak
2024-01-11 15:48:52 +02:00
committed by Space Team
parent 95989fc3e2
commit 3afed72027
2 changed files with 2 additions and 5 deletions
@@ -48,8 +48,8 @@ class FirNativeOverrideChecker(private val session: FirSession) : FirOverrideChe
if (this.name != baseDeclaration.name) { if (this.name != baseDeclaration.name) {
return null return null
} }
val superInfo = baseDeclaration.decodeObjCMethodAnnotation(session) ?: return null val superInfo = baseDeclaration.symbol.decodeObjCMethodAnnotation(session) ?: return null
val subInfo = decodeObjCMethodAnnotation(session) val subInfo = symbol.decodeObjCMethodAnnotation(session)
return if (subInfo != null) { return if (subInfo != null) {
// Overriding Objective-C method by Objective-C method in interop stubs. // Overriding Objective-C method by Objective-C method in interop stubs.
// Don't even check method signatures, so this check is weaker than the standard one // Don't even check method signatures, so this check is weaker than the standard one
@@ -77,9 +77,6 @@ internal fun List<FirAnnotation>.decodeObjCMethodAnnotation(session: FirSession)
) )
} }
internal fun FirFunction.decodeObjCMethodAnnotation(session: FirSession): ObjCMethodInfo? =
annotations.decodeObjCMethodAnnotation(session)
internal fun FirFunctionSymbol<*>.decodeObjCMethodAnnotation(session: FirSession): ObjCMethodInfo? = internal fun FirFunctionSymbol<*>.decodeObjCMethodAnnotation(session: FirSession): ObjCMethodInfo? =
annotations.decodeObjCMethodAnnotation(session) annotations.decodeObjCMethodAnnotation(session)