Don't indent closing parenthesis of a destructuring declaration

#KT-20758 Fixed
This commit is contained in:
Dmitry Jemerov
2017-11-17 13:42:25 +01:00
parent 4068b3d9b9
commit 26d47a034e
3 changed files with 17 additions and 1 deletions
@@ -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")
+8
View File
@@ -4,4 +4,12 @@ fun test() {
val (c, d)
= Pair(true, false)
val (
distributor,
items,
shippingMethods,
addresses,
preferredAddressId
) = argument
}
+8
View File
@@ -4,4 +4,12 @@ fun test() {
val (c, d)
= Pair(true, false)
val (
distributor,
items,
shippingMethods,
addresses,
preferredAddressId
) = argument
}