Make formatter put no indent after a line break inside/after a modifier list

This commit is contained in:
Andrey Breslav
2013-09-20 15:22:46 +04:00
parent 8952365ae3
commit 2d01e93fa4
35 changed files with 245 additions and 3 deletions
@@ -0,0 +1,4 @@
[annot]
[foo] fun foo() {
}
@@ -0,0 +1,4 @@
[annot]
[foo] fun foo() {
}
@@ -0,0 +1,4 @@
[annot]
foo() fun foo() {
}
@@ -0,0 +1,4 @@
[annot]
foo() fun foo() {
}
@@ -0,0 +1,4 @@
[annot]
final fun foo() {
}
@@ -0,0 +1,4 @@
[annot]
final fun foo() {
}
@@ -0,0 +1,4 @@
annot()
[foo] fun foo() {
}
@@ -0,0 +1,4 @@
annot()
[foo] fun foo() {
}
@@ -0,0 +1,4 @@
annot()
foo() fun foo() {
}
@@ -0,0 +1,4 @@
annot()
foo() fun foo() {
}
@@ -0,0 +1,4 @@
annot()
final fun foo() {
}
@@ -0,0 +1,4 @@
annot()
final fun foo() {
}
@@ -0,0 +1,4 @@
public
[foo] fun foo() {
}
@@ -0,0 +1,4 @@
public
[foo] fun foo() {
}
@@ -0,0 +1,4 @@
public
foo() fun foo() {
}
@@ -0,0 +1,4 @@
public
foo() fun foo() {
}
@@ -0,0 +1,4 @@
public
final fun foo() {
}
@@ -0,0 +1,4 @@
public
final fun foo() {
}
@@ -0,0 +1,4 @@
private
fun foo() {
}
@@ -0,0 +1,4 @@
private
fun foo() {
}
@@ -0,0 +1,5 @@
class C {
private
fun foo() {
}
}
@@ -0,0 +1,5 @@
class C {
private
fun foo() {
}
}
@@ -0,0 +1,4 @@
class C {
private
val foo = 1
}
@@ -0,0 +1,4 @@
class C {
private
val foo = 1
}
@@ -0,0 +1,4 @@
class C {
private
var foo = 1
}
@@ -0,0 +1,4 @@
class C {
private
var foo = 1
}
@@ -0,0 +1,8 @@
class C {
fun foo0() {
}
private
fun foo() {
}
}
@@ -0,0 +1,7 @@
class C {
fun foo0() {}
private
fun foo() {
}
}
@@ -0,0 +1,7 @@
class C {
fun foo0() {
}
private
val foo = 1
}
@@ -0,0 +1,6 @@
class C {
fun foo0() {}
private
val foo = 1
}
@@ -0,0 +1,7 @@
class C {
fun foo0() {
}
private
var foo = 1
}
@@ -0,0 +1,6 @@
class C {
fun foo0() {}
private
var foo = 1
}