Formatter: support trailing comma in lambda value parameters & fix comments in KtParameter
#KT-34744
This commit is contained in:
@@ -609,6 +609,7 @@ abstract class KotlinCommonBlock(
|
||||
node.withTrailingComma,
|
||||
additionalWrap = trailingCommaWrappingStrategyWithMultiLineCheck(LPAR, RPAR)
|
||||
)
|
||||
FUNCTION_TYPE -> return defaultTrailingCommaWrappingStrategy(LPAR, RPAR)
|
||||
FUNCTION_LITERAL -> {
|
||||
if (nodePsi.parent?.safeAs<KtFunctionLiteral>()?.needTrailingComma(settings) == true) {
|
||||
val check = thisOrPrevIsMultiLineElement(COMMA, LBRACE /* not necessary */, ARROW /* not necessary */)
|
||||
|
||||
Reference in New Issue
Block a user