[kotlin] Migrate 'resolveCallOld()' to 'resolveToCall()'

^KT-67996

GitOrigin-RevId: 3731b499d35bcc1080e61c40c163eb509d9c417d
This commit is contained in:
Yan Zhulanow
2024-06-23 02:05:53 +09:00
committed by intellij-monorepo-bot
parent 8cb74d5c63
commit 069893e215
109 changed files with 184 additions and 199 deletions

View File

@@ -164,7 +164,7 @@ private val ARRAY_OF_FUNCTION_NAMES: Set<Name> = setOf(ArrayFqNames.ARRAY_OF_FUN
context(KaSession)
fun isArrayOfCall(callElement: KtCallElement): Boolean {
val resolvedCall = callElement.resolveCallOld()?.singleFunctionCallOrNull() ?: return false
val resolvedCall = callElement.resolveToCall()?.singleFunctionCallOrNull() ?: return false
val callableId = resolvedCall.partiallyAppliedSymbol.signature.callableId ?: return false
return callableId.packageName == StandardNames.BUILT_INS_PACKAGE_FQ_NAME && callableId.callableName in ARRAY_OF_FUNCTION_NAMES
}