LineIndentProvider: fix for do-while

Part of #KT-22211
This commit is contained in:
Dmitry Gridin
2020-06-04 13:26:21 +07:00
parent 7a58a59114
commit acc15e5fad
17 changed files with 178 additions and 16 deletions
+4
View File
@@ -0,0 +1,4 @@
fun some() {
do println() while (true)
<caret>
}
+3
View File
@@ -0,0 +1,3 @@
fun some() {
do println() while (true)<caret>
}
+4
View File
@@ -0,0 +1,4 @@
fun some() {
do do println() while (true) while (true)
<caret>
}
+3
View File
@@ -0,0 +1,3 @@
fun some() {
do do println() while (true) while (true)<caret>
}
+6
View File
@@ -0,0 +1,6 @@
fun some() {
do {
while (true) println()
} while (true)
<caret>
}
+5
View File
@@ -0,0 +1,5 @@
fun some() {
do {
while (true) println()
} while (true)<caret>
}
+4
View File
@@ -0,0 +1,4 @@
fun some() {
while (true)
<caret>
}
+3
View File
@@ -0,0 +1,3 @@
fun some() {
while (true)<caret>
}
+5
View File
@@ -0,0 +1,5 @@
fun some() {
while (true)
while (true)
<caret>
}
+4
View File
@@ -0,0 +1,4 @@
fun some() {
while (true)
while (true)<caret>
}
+8
View File
@@ -0,0 +1,8 @@
fun some() {
while (true) {
println()
}
while (true)
<caret>
}
+7
View File
@@ -0,0 +1,7 @@
fun some() {
while (true) {
println()
}
while (true)<caret>
}
+6
View File
@@ -0,0 +1,6 @@
fun some() {
do println() while (true)
println()
while (true)
<caret>
}
+5
View File
@@ -0,0 +1,5 @@
fun some() {
do println() while (true)
println()
while (true)<caret>
}