[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:
committed by
Space Team
parent
77ab13400e
commit
3124cbcbad
+3
-3
@@ -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,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user