[FIR generator] Don't print extra space in the where clause

This commit is contained in:
Sergej Jaskiewicz
2023-09-15 15:47:33 +02:00
committed by Space Team
parent 1d0785e246
commit 88c308dfd3
7 changed files with 332 additions and 332 deletions
@@ -153,7 +153,7 @@ fun Field.call(): String = if (nullable) "?." else "."
fun Element.multipleUpperBoundsList(): String { fun Element.multipleUpperBoundsList(): String {
return typeArguments.filterIsInstance<TypeArgumentWithMultipleUpperBounds>().takeIf { it.isNotEmpty() }?.let { arguments -> return typeArguments.filterIsInstance<TypeArgumentWithMultipleUpperBounds>().takeIf { it.isNotEmpty() }?.let { arguments ->
val upperBoundsList = arguments.joinToString(", ", postfix = " ") { argument -> val upperBoundsList = arguments.joinToString(", ") { argument ->
argument.upperBounds.joinToString(", ") { upperBound -> "${argument.name} : ${upperBound.typeWithArguments}" } argument.upperBounds.joinToString(", ") { upperBound -> "${argument.name} : ${upperBound.typeWithArguments}" }
} }
" where $upperBoundsList" " where $upperBoundsList"