Formatter: support trailing comma in type arguments
#KT-34744
This commit is contained in:
@@ -619,6 +619,10 @@ abstract class KotlinCommonBlock(
|
||||
trailingCommaWrappingStrategyWithMultiLineCheck(LT, GT)(childElement)
|
||||
}
|
||||
|
||||
elementType === TYPE_ARGUMENT_LIST -> return { childElement ->
|
||||
trailingCommaWrappingStrategyWithMultiLineCheck(LT, GT)(childElement)
|
||||
}
|
||||
|
||||
elementType === SUPER_TYPE_LIST -> {
|
||||
val wrap = Wrap.createWrap(commonSettings.EXTENDS_LIST_WRAP, false)
|
||||
return { childElement -> if (childElement.psi is KtSuperTypeListEntry) wrap else null }
|
||||
|
||||
Reference in New Issue
Block a user