Formatter: fix continuation indent in call chain

#KT-37545 Fixed
This commit is contained in:
Dmitry Gridin
2020-03-18 12:37:28 +00:00
parent 2c06503311
commit 7a3f6f5312
4 changed files with 380 additions and 14 deletions
+175
View File
@@ -0,0 +1,175 @@
import X.combine
class IndentationIssue {
fun method() {
X.Y.combine(
1,
1
)
.let {
"zzz"
}
X.Y.combine(
1,
1
).let {
"zzz"
}
X.Y./*
comment
*/combine(
1,
1
)
.let {
"zzz"
}
X.Y./*
comment
*/combine(
1,
1
).let {
"zzz"
}
(X.Y.combine(
1,
1
)
).let {
"zzz"
}
X.Y
.combine(
1,
1
)
.let { "zzz" }
X.Y
.combine(
1,
1
).let {
"zzz"
}
X
.Y
.combine(
1,
1
)
.let { "zzz" }
X
.Y.combine(
1,
1
)
.let { "zzz" }
combine(
1,
1
)
.let { "zzz" }
combine(
1,
2
).let {
"zzz"
}.let {
"zzz"
}
(combine(
1,
2
).let {
"zzz"
}).let {
"zzz"
}
(combine(
1,
2
)
.let {
"zzz"
}).let {
"zzz"
}
combine(
1,
2
).let {
"zzz"
}!!.let {
"zzz"
}
combine(
1,
2
)
.let {
"zzz"
}!!.let {
"zzz"
}
(combine(
1,
2
)
.let {
"zzz"
})!!.let {
"zzz"
}
((combine(
1,
2
)
).let {
"zzz"
}!!)!!.let {
"zzz"
}
((combine(
1,
2
)).let {
"zzz"
}!!)!!.let {
"zzz"
}
((combine(
1,
2
)).let {
"zzz"
}!!
)!!.let {
"zzz"
}
}
}
object X {
fun <L, R, T> combine(x: L, y: R): T = TODO()
val Y get() = this
}
+175
View File
@@ -0,0 +1,175 @@
import X.combine
class IndentationIssue {
fun method() {
X.Y.combine(
1,
1
)
.let {
"zzz"
}
X.Y.combine(
1,
1
).let {
"zzz"
}
X.Y./*
comment
*/combine(
1,
1
)
.let {
"zzz"
}
X.Y./*
comment
*/combine(
1,
1
).let {
"zzz"
}
(X.Y.combine(
1,
1
)
).let {
"zzz"
}
X.Y
.combine(
1,
1
)
.let { "zzz" }
X.Y
.combine(
1,
1
).let {
"zzz"
}
X
.Y
.combine(
1,
1
)
.let { "zzz" }
X
.Y.combine(
1,
1
)
.let { "zzz" }
combine(
1,
1
)
.let { "zzz" }
combine(
1,
2
).let {
"zzz"
}.let {
"zzz"
}
(combine(
1,
2
).let {
"zzz"
}).let {
"zzz"
}
(combine(
1,
2
)
.let {
"zzz"
}).let {
"zzz"
}
combine(
1,
2
).let {
"zzz"
}!!.let {
"zzz"
}
combine(
1,
2
)
.let {
"zzz"
}!!.let {
"zzz"
}
(combine(
1,
2
)
.let {
"zzz"
})!!.let {
"zzz"
}
((combine(
1,
2
)
).let {
"zzz"
}!!)!!.let {
"zzz"
}
((combine(
1,
2
)).let {
"zzz"
}!!)!!.let {
"zzz"
}
((combine(
1,
2
)).let {
"zzz"
}!!
)!!.let {
"zzz"
}
}
}
object X {
fun <L, R, T> combine(x: L, y: R): T = TODO()
val Y get() = this
}