Formatting enum delegations lists

This commit is contained in:
Nikolay Krasko
2014-04-27 01:11:39 +04:00
parent 5839fda22f
commit 2b847cd885
19 changed files with 181 additions and 3 deletions
@@ -23,4 +23,17 @@ object SimpleObject2 : B1(),
A1,
A2, A3
open class C1
open class C2
enum class Test : A1 {
FIRST_ITEM : Test(), C1(),
C2()
SECOND_ITEM :
Test()
THIRD_ITEM : Test(),
C1() FORTH_ITEM : Test()
}
// SET_TRUE: ALIGN_MULTILINE_EXTENDS_LIST
@@ -23,4 +23,17 @@ object SimpleObject2 : B1(),
A1,
A2, A3
open class C1
open class C2
enum class Test : A1 {
FIRST_ITEM : Test(), C1(),
C2()
SECOND_ITEM :
Test()
THIRD_ITEM : Test(),
C1() FORTH_ITEM : Test()
}
// SET_TRUE: ALIGN_MULTILINE_EXTENDS_LIST
+13
View File
@@ -23,4 +23,17 @@ object SimpleObject2: B1(),
A1,
A2, A3
open class C1
open class C2
enum class Test : A1 {
FIRST_ITEM : Test(), C1(),
C2()
SECOND_ITEM :
Test()
THIRD_ITEM : Test(),
C1() FORTH_ITEM : Test()
}
// SET_TRUE: ALIGN_MULTILINE_EXTENDS_LIST
@@ -0,0 +1,10 @@
enum class Test: A {
FIRST: Test()
SECOND:
Test()
THIRD: Test() FORTH: Test()
}
// SET_TRUE: SPACE_BEFORE_EXTEND_COLON
// SET_FALSE: SPACE_AFTER_EXTEND_COLON
@@ -0,0 +1,10 @@
enum class Test :A {
FIRST :Test()
SECOND :
Test()
THIRD :Test() FORTH :Test()
}
// SET_TRUE: SPACE_BEFORE_EXTEND_COLON
// SET_FALSE: SPACE_AFTER_EXTEND_COLON
@@ -0,0 +1,10 @@
enum class Test : A {
FIRST : Test()
SECOND:
Test()
THIRD: Test() FORTH: Test()
}
// SET_TRUE: SPACE_BEFORE_EXTEND_COLON
// SET_FALSE: SPACE_AFTER_EXTEND_COLON