[FIR] Rename FirArrayOfCall to FirArrayLiteral
This commit is contained in:
committed by
Space Team
parent
f4e4c5e724
commit
2eba7da5eb
+2
-2
@@ -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)
|
||||
|
||||
+1
-1
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user