Fix indent in constructor delegate call (KT-7718)
(cherry picked from commit 5699b14) #KT-7718 Fixed
This commit is contained in:
committed by
Nikolay Krasko
parent
5f2ba70745
commit
c3c5805a5f
@@ -337,8 +337,8 @@ private val INDENT_RULES = arrayOf<NodeIndentStrategy>(
|
|||||||
.set(Indent.getNormalIndent()),
|
.set(Indent.getNormalIndent()),
|
||||||
|
|
||||||
strategy("Indent for parts")
|
strategy("Indent for parts")
|
||||||
.`in`(KtNodeTypes.PROPERTY, KtNodeTypes.FUN, KtNodeTypes.DESTRUCTURING_DECLARATION)
|
.`in`(KtNodeTypes.PROPERTY, KtNodeTypes.FUN, KtNodeTypes.DESTRUCTURING_DECLARATION, KtNodeTypes.SECONDARY_CONSTRUCTOR)
|
||||||
.notForType(KtNodeTypes.BLOCK, FUN_KEYWORD, VAL_KEYWORD, VAR_KEYWORD)
|
.notForType(KtNodeTypes.BLOCK, FUN_KEYWORD, VAL_KEYWORD, VAR_KEYWORD, CONSTRUCTOR_KEYWORD)
|
||||||
.set(Indent.getContinuationWithoutFirstIndent()),
|
.set(Indent.getContinuationWithoutFirstIndent()),
|
||||||
|
|
||||||
strategy("Chained calls")
|
strategy("Chained calls")
|
||||||
|
|||||||
@@ -66,4 +66,16 @@ class A {
|
|||||||
|
|
||||||
constructor() : super() {
|
constructor() : super() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
constructor() :
|
||||||
|
this()
|
||||||
|
|
||||||
|
constructor()
|
||||||
|
: this()
|
||||||
|
|
||||||
|
constructor() :
|
||||||
|
super()
|
||||||
|
|
||||||
|
constructor()
|
||||||
|
: super()
|
||||||
}
|
}
|
||||||
@@ -36,4 +36,16 @@ constructor():this() {}
|
|||||||
constructor(): this ()
|
constructor(): this ()
|
||||||
|
|
||||||
constructor(): super(){}
|
constructor(): super(){}
|
||||||
|
|
||||||
|
constructor():
|
||||||
|
this()
|
||||||
|
|
||||||
|
constructor()
|
||||||
|
:this()
|
||||||
|
|
||||||
|
constructor():
|
||||||
|
super()
|
||||||
|
|
||||||
|
constructor()
|
||||||
|
:super()
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user