[FIR] Add parameter flattenArrays to FirExpression.unwrapAndFlattenArgument

This commit is contained in:
Kirill Rakhman
2023-11-15 11:16:10 +01:00
committed by Space Team
parent 28a14ebd42
commit ebb6f4c70f
4 changed files with 15 additions and 9 deletions
@@ -144,7 +144,7 @@ private fun <T> FirAnnotation.findFromRawArguments(expectedEnumClass: ClassId, t
if (this@findFromRawArguments is FirAnnotationCall) {
for (arg in argumentList.arguments) {
arg.unwrapAndFlattenArgument().forEach(::addIfMatching)
arg.unwrapAndFlattenArgument(flattenArrays = true).forEach(::addIfMatching)
}
}
}