LineIndentProvider: support control flow constructions

Part of #KT-22211
This commit is contained in:
Dmitry Gridin
2020-06-03 16:15:49 +07:00
parent 201b115ee0
commit e72fb755a0
92 changed files with 900 additions and 52 deletions
+2 -2
View File
@@ -4,11 +4,11 @@ fun f() {
for (i in array(1, 2)) {
}
for
(i in array(1, 2)) {
(i in array(1, 2)) {
}
for
(i in array(1, 2)) {
(i in array(1, 2)) {
}
for (i in array(1, 2)) continue
+1 -1
View File
@@ -10,7 +10,7 @@ fun foo() {
}
for
(i in 0..42) {
(i in 0..42) {
}
}
+2 -2
View File
@@ -22,14 +22,14 @@ fun some(x: Any) {
}
when
(true) {
(true) {
}
when
(true) {
(true) {
}
+2 -2
View File
@@ -22,14 +22,14 @@ fun some(x: Any) {
}
when
(true) {
(true) {
}
when
(true) {
(true) {
}
+1 -1
View File
@@ -12,7 +12,7 @@ fun test() {
}
when (var i = 2
) {
) {
}