Don't indent closing parenthesis of a destructuring declaration
#KT-20758 Fixed
This commit is contained in:
@@ -471,7 +471,7 @@ private val INDENT_RULES = arrayOf<NodeIndentStrategy>(
|
||||
|
||||
strategy("Indent for parts")
|
||||
.within(KtNodeTypes.PROPERTY, KtNodeTypes.FUN, KtNodeTypes.DESTRUCTURING_DECLARATION, KtNodeTypes.SECONDARY_CONSTRUCTOR)
|
||||
.notForType(KtNodeTypes.BLOCK, FUN_KEYWORD, VAL_KEYWORD, VAR_KEYWORD, CONSTRUCTOR_KEYWORD)
|
||||
.notForType(KtNodeTypes.BLOCK, FUN_KEYWORD, VAL_KEYWORD, VAR_KEYWORD, CONSTRUCTOR_KEYWORD, KtTokens.RPAR)
|
||||
.set(Indent.getContinuationWithoutFirstIndent()),
|
||||
|
||||
strategy("Chained calls")
|
||||
|
||||
@@ -4,4 +4,12 @@ fun test() {
|
||||
|
||||
val (c, d)
|
||||
= Pair(true, false)
|
||||
|
||||
val (
|
||||
distributor,
|
||||
items,
|
||||
shippingMethods,
|
||||
addresses,
|
||||
preferredAddressId
|
||||
) = argument
|
||||
}
|
||||
+8
@@ -4,4 +4,12 @@ fun test() {
|
||||
|
||||
val (c, d)
|
||||
= Pair(true, false)
|
||||
|
||||
val (
|
||||
distributor,
|
||||
items,
|
||||
shippingMethods,
|
||||
addresses,
|
||||
preferredAddressId
|
||||
) = argument
|
||||
}
|
||||
Reference in New Issue
Block a user