Fix indent in constructor delegate call (KT-7718)

(cherry picked from commit 5699b14)

 #KT-7718 Fixed
This commit is contained in:
Dmitry Neverov
2016-10-16 15:48:08 +03:00
committed by Nikolay Krasko
parent 5f2ba70745
commit c3c5805a5f
3 changed files with 26 additions and 2 deletions
@@ -337,8 +337,8 @@ private val INDENT_RULES = arrayOf<NodeIndentStrategy>(
.set(Indent.getNormalIndent()),
strategy("Indent for parts")
.`in`(KtNodeTypes.PROPERTY, KtNodeTypes.FUN, KtNodeTypes.DESTRUCTURING_DECLARATION)
.notForType(KtNodeTypes.BLOCK, FUN_KEYWORD, VAL_KEYWORD, VAR_KEYWORD)
.`in`(KtNodeTypes.PROPERTY, KtNodeTypes.FUN, KtNodeTypes.DESTRUCTURING_DECLARATION, KtNodeTypes.SECONDARY_CONSTRUCTOR)
.notForType(KtNodeTypes.BLOCK, FUN_KEYWORD, VAL_KEYWORD, VAR_KEYWORD, CONSTRUCTOR_KEYWORD)
.set(Indent.getContinuationWithoutFirstIndent()),
strategy("Chained calls")
+12
View File
@@ -66,4 +66,16 @@ class A {
constructor() : super() {
}
constructor() :
this()
constructor()
: this()
constructor() :
super()
constructor()
: super()
}
+12
View File
@@ -36,4 +36,16 @@ constructor():this() {}
constructor(): this ()
constructor(): super(){}
constructor():
this()
constructor()
:this()
constructor():
super()
constructor()
:super()
}