TrailingCommaPostFormatProcessor: should be completed in one round

#KT-34744
This commit is contained in:
Dmitry Gridin
2020-01-10 12:59:36 +07:00
parent 8a45d2eb58
commit 9511348497
48 changed files with 782 additions and 913 deletions
@@ -25,23 +25,18 @@ fun foo() {
foofoo
]
testtest[
foofoo,
]
testtest[foofoo]
testtest[foofoo, testtest[testtest[foofoo]]]
testtest[
foofoo, fososos, testtest[testtest[foofoo]],
foofoo, fososos,
testtest[testtest[foofoo]],
]
testtest[foofoo, testtest[testtest[
foofoo,
]], testsa]
testtest[foofoo, testtest[testtest[foofoo]], testsa]
testtest[foofoo, seee, testtest[testtest[
foofoo,
]], testsa]
testtest[foofoo, seee, testtest[testtest[foofoo]], testsa]
useCallable["A", Callable { println["Hello world"] }]
@@ -53,8 +48,12 @@ fun foo() {
useCallable[Callable { println["Hello world"] }]
useCallable[Callable { println["Hello world"] }]
useCallable[
Callable { println["Hello world"] },
Callable {
println["Hello world"]
},
]
useCallable[Callable { println["Hello world"] }
@@ -77,6 +76,8 @@ fun foo() {
useCallable[{ println["Hello world"] }]
useCallable[{ println["Hello world"] }]
useCallable[
{ println["Hello world"] },
]
@@ -103,9 +104,7 @@ fun foo() {
override fun call() {
println["Hello world"]
}
}, foo[
0,
]]
}, foo[0]]
useCallable[object : Callable<Unit> {
override fun call() {
@@ -174,9 +173,7 @@ fun foo() {
foofoo
]
testtest[
foofoo,/**/
]
testtest[foofoo/**/]
testtest[foofoo, foofoo, foofoo, foofoo/*
*/, /* */ bar
@@ -189,9 +186,7 @@ fun foo() {
foofoo
]
testtest[
foofoo,/**/
]
testtest[foofoo/**/]
testtest[
foofoo, fososos,/*
@@ -199,26 +194,16 @@ fun foo() {
testtest[testtest[foofoo]],
]
testtest[foofoo, testtest[testtest[
foofoo,
]], /**/testsa]
testtest[foofoo, testtest[testtest[foofoo]], /**/testsa]
testtest[foofoo, testtest[testtest[
foofoo,
]]/* */, /**/testsa]
testtest[foofoo, testtest[testtest[foofoo]]/* */, /**/testsa]
testtest[foofoo, testtest[testtest[
foofoo,
]]/*
testtest[foofoo, testtest[testtest[foofoo]]/*
*/, testsa]
testtest[foofoo, seee, testtest[testtest[
foofoo,
]], /**/testsa]
testtest[foofoo, seee, testtest[testtest[foofoo]], /**/testsa]
testtest[foofoo, seee, testtest[testtest[
foofoo,
]], /*
testtest[foofoo, seee, testtest[testtest[foofoo]], /*
*/testsa]
useCallable["B", "C", Callable {
@@ -31,35 +31,18 @@ fun foo() {
foofoo,
]
testtest[
foofoo,
]
testtest[foofoo]
testtest[foofoo, testtest[testtest[foofoo]]]
testtest[
foofoo, fososos, testtest[testtest[foofoo]],
foofoo, fososos,
testtest[testtest[foofoo]],
]
testtest[
foofoo,
testtest[
testtest[
foofoo,
],
],
testsa,
]
testtest[foofoo, testtest[testtest[foofoo]], testsa]
testtest[
foofoo, seee,
testtest[
testtest[
foofoo,
],
],
testsa,
]
testtest[foofoo, seee, testtest[testtest[foofoo]], testsa]
useCallable["A", Callable { println["Hello world"] }]
@@ -75,8 +58,12 @@ fun foo() {
useCallable[Callable { println["Hello world"] }]
useCallable[Callable { println["Hello world"] }]
useCallable[
Callable { println["Hello world"] },
Callable {
println["Hello world"]
},
]
useCallable[
@@ -105,6 +92,8 @@ fun foo() {
useCallable[{ println["Hello world"] }]
useCallable[{ println["Hello world"] }]
useCallable[
{ println["Hello world"] },
]
@@ -142,9 +131,7 @@ fun foo() {
println["Hello world"]
}
},
foo[
0,
],
foo[0],
]
useCallable[
@@ -231,9 +218,7 @@ fun foo() {
foofoo,
]
testtest[
foofoo,/**/
]
testtest[foofoo/**/]
testtest[
foofoo, foofoo, foofoo,
@@ -251,9 +236,7 @@ fun foo() {
foofoo,
]
testtest[
foofoo,/**/
]
testtest[foofoo/**/]
testtest[
foofoo, fososos,/*
@@ -261,54 +244,21 @@ fun foo() {
testtest[testtest[foofoo]],
]
testtest[
foofoo,
testtest[
testtest[
foofoo,
],
], /**/
testsa,
]
testtest[foofoo, testtest[testtest[foofoo]], /**/testsa]
testtest[foofoo, testtest[testtest[foofoo]]/* */, /**/testsa]
testtest[
foofoo,
testtest[
testtest[
foofoo,
],
],/* */ /**/
testsa,
]
testtest[
foofoo,
testtest[
testtest[
foofoo,
],
],/*
testtest[testtest[foofoo]],/*
*/
testsa,
]
testtest[
foofoo, seee,
testtest[
testtest[
foofoo,
],
], /**/
testsa,
]
testtest[foofoo, seee, testtest[testtest[foofoo]], /**/testsa]
testtest[
foofoo, seee,
testtest[
testtest[
foofoo,
],
], /*
foofoo, seee, testtest[testtest[foofoo]], /*
*/
testsa,
]
@@ -29,7 +29,8 @@ fun foo() {
testtest[foofoo, testtest[testtest[foofoo]]]
testtest[foofoo, fososos, testtest[testtest[foofoo]],]
testtest[foofoo, fososos,
testtest[testtest[foofoo]],]
testtest[foofoo, testtest[testtest[foofoo,]], testsa]
@@ -47,6 +48,9 @@ fun foo() {
useCallable[Callable { println["Hello world"] },]
useCallable[Callable {
println["Hello world"] },]
useCallable[Callable { println["Hello world"] }
]
@@ -69,6 +73,9 @@ fun foo() {
useCallable[{ println["Hello world"] },]
useCallable[{ println["Hello world"] }
,]
useCallable[{ println["Hello world"] }
]