[FIR] Rename FirArrayOfCall to FirArrayLiteral

This commit is contained in:
Ivan Kochurkin
2023-07-21 20:10:15 +02:00
committed by Space Team
parent f4e4c5e724
commit 2eba7da5eb
49 changed files with 165 additions and 178 deletions
@@ -185,12 +185,12 @@ object FirSerializationPluginClassChecker : FirClassChecker() {
else -> {
val argumentsIfArray1 = when (this) {
is FirVarargArgumentsExpression -> arguments
is FirArrayOfCall -> arguments
is FirArrayLiteral -> arguments
else -> return false
}
val argumentsIfArray2 = when (other) {
is FirVarargArgumentsExpression -> other.arguments
is FirArrayOfCall -> other.arguments
is FirArrayLiteral -> other.arguments
else -> return false
}
argumentsIfArray1.size == argumentsIfArray2.size && argumentsIfArray1.zip(argumentsIfArray2)
@@ -67,7 +67,7 @@ class ContextualSerializersProvider(session: FirSession) : FirExtensionSessionCo
annotationClassId, session
) ?: return emptyList()
val arguments = when (val argument = annotation.argumentMapping.mapping.values.firstOrNull()) {
is FirArrayOfCall -> argument.arguments
is FirArrayLiteral -> argument.arguments
is FirVarargArgumentsExpression -> argument.arguments
else -> return emptyList()
}