KotlinLikeLangLineIndentProvider: fix options for parentheses

Part of #KT-22211
Part of #KT-39353
This commit is contained in:
Dmitry Gridin
2020-06-10 19:06:58 +07:00
parent 306abc79ed
commit 9d6ea3c073
10 changed files with 101 additions and 1 deletions
@@ -0,0 +1,9 @@
fun a(): () -> () -> Unit = { { } }
fun t() {
a()()(
<caret>
)
}
// SET_FALSE: ALIGN_MULTILINE_METHOD_BRACKETS
@@ -0,0 +1,7 @@
fun a(): () -> () -> Unit = { { } }
fun t() {
a()()(<caret>)
}
// SET_FALSE: ALIGN_MULTILINE_METHOD_BRACKETS
@@ -0,0 +1,9 @@
fun a(): () -> () -> Unit = { { } }
fun t() {
a()()(
<caret>
)
}
// SET_FALSE: ALIGN_MULTILINE_BINARY_OPERATION
@@ -0,0 +1,9 @@
fun a(): () -> () -> Unit = { { } }
fun t() {
a()()(
<caret>
)
}
// SET_FALSE: ALIGN_MULTILINE_BINARY_OPERATION
@@ -0,0 +1,7 @@
fun a(): () -> () -> Unit = { { } }
fun t() {
a()()(<caret>)
}
// SET_FALSE: ALIGN_MULTILINE_BINARY_OPERATION
@@ -0,0 +1,10 @@
fun a(): () -> () -> Unit = { { } }
fun t() {
a()()(
<caret>
)
}
// SET_TRUE: ALIGN_MULTILINE_METHOD_BRACKETS
// IGNORE_FORMATTER
@@ -0,0 +1,8 @@
fun a(): () -> () -> Unit = { { } }
fun t() {
a()()(<caret>)
}
// SET_TRUE: ALIGN_MULTILINE_METHOD_BRACKETS
// IGNORE_FORMATTER