Add space between 'when' and '('

This commit is contained in:
Nikolay Krasko
2014-05-12 14:13:07 +04:00
parent 6b8ab1a604
commit 3d588acd2d
23 changed files with 115 additions and 30 deletions
+25
View File
@@ -3,6 +3,31 @@ fun some(x: Any) {
is Number -> 0
else -> 1
}
when {
}
when {
}
when {
}
when (true) {
}
when (true) {
}
when (true) {
}
when (true) {
}
}
// SET_FALSE: ALIGN_IN_COLUMNS_CASE_BRANCH
+25
View File
@@ -3,6 +3,31 @@ fun some(x: Any) {
is Number -> 0
else -> 1
}
when {
}
when {
}
when {
}
when (true) {
}
when (true) {
}
when (true) {
}
when (true) {
}
}
// SET_FALSE: ALIGN_IN_COLUMNS_CASE_BRANCH
+36
View File
@@ -3,6 +3,42 @@ when (x) {
is Number -> 0
else->1
}
when {
}
when{
}
when
{
}
when (true) {
}
when(true){
}
when
(true)
{
}
when
(true)
{
}
}
// SET_FALSE: ALIGN_IN_COLUMNS_CASE_BRANCH
@@ -1,5 +1,5 @@
fun f() {
when(c) {
when (c) {
a -> {
}
b -> j
@@ -7,7 +7,7 @@ fun f() {
}
}
when(c) {
when (c) {
a -> {
}
b -> j
@@ -15,7 +15,7 @@ fun f() {
}
}
when(c) {
when (c) {
a -> {
}
b -> j
@@ -23,7 +23,7 @@ fun f() {
}
}
when(c) //eol comment
when (c) //eol comment
{
a -> //eol comment
{
@@ -1,6 +1,6 @@
fun f()
{
when(c)
when (c)
{
a ->
{
@@ -11,7 +11,7 @@ fun f()
}
}
when(c)
when (c)
{
a ->
{
@@ -22,7 +22,7 @@ fun f()
}
}
when(c)
when (c)
{
a ->
{
@@ -33,7 +33,7 @@ fun f()
}
}
when(c) //eol comment
when (c) //eol comment
{
a -> //eol comment
{
+4 -4
View File
@@ -1,6 +1,6 @@
fun f()
{
when(c) {
when (c) {
a -> {
}
b -> j
@@ -8,7 +8,7 @@ fun f()
}
}
when(c)
when (c)
{
a ->
{
@@ -19,7 +19,7 @@ fun f()
}
}
when(c)
when (c)
{
a ->
@@ -33,7 +33,7 @@ fun f()
}
}
when(c) //eol comment
when (c) //eol comment
{
a -> //eol comment
{