[FE, IR] Refactor: rename areAnnotationArgumentsEqual parameters

Rename to "expect" and "actual" annotation.
This will be needed in next commit to make it clear that
only expect annotation value needs special handling.

^KTIJ-26700
This commit is contained in:
Roman Efremov
2023-08-23 09:50:00 +02:00
committed by Space Team
parent 77ab13400e
commit 3124cbcbad
5 changed files with 25 additions and 25 deletions
@@ -472,14 +472,14 @@ internal abstract class IrExpectActualMatchingContext(
get() = asIr().annotations.map(::AnnotationCallInfoImpl)
override fun areAnnotationArgumentsEqual(
annotation1: AnnotationCallInfo, annotation2: AnnotationCallInfo,
expectAnnotation: AnnotationCallInfo, actualAnnotation: AnnotationCallInfo,
collectionArgumentsCompatibilityCheckStrategy: ExpectActualCollectionArgumentsCompatibilityCheckStrategy,
): Boolean {
fun AnnotationCallInfo.getIrElement(): IrConstructorCall = (this as AnnotationCallInfoImpl).irElement
return areIrExpressionConstValuesEqual(
annotation1.getIrElement(),
annotation2.getIrElement(),
expectAnnotation.getIrElement(),
actualAnnotation.getIrElement(),
collectionArgumentsCompatibilityCheckStrategy,
)
}