Add intentions to put arguments / parameters on one line #KT-23266 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
96581f1ecb
commit
03902030ed
@@ -0,0 +1 @@
|
||||
org.jetbrains.kotlin.idea.intentions.JoinParameterListIntention
|
||||
@@ -0,0 +1,2 @@
|
||||
fun test(<caret>
|
||||
a: Int, b: Int, c: Int) {}
|
||||
+1
@@ -0,0 +1 @@
|
||||
fun test(a: Int, b: Int, c: Int) {}
|
||||
@@ -0,0 +1,7 @@
|
||||
// INTENTION_TEXT: "Put parameters on one line"
|
||||
|
||||
fun test(
|
||||
a: Int,
|
||||
b: Int,<caret>
|
||||
c: Int
|
||||
) {}
|
||||
@@ -0,0 +1,3 @@
|
||||
// INTENTION_TEXT: "Put parameters on one line"
|
||||
|
||||
fun test(a: Int, b: Int, c: Int) {}
|
||||
@@ -0,0 +1,3 @@
|
||||
// IS_APPLICABLE: false
|
||||
|
||||
fun test(a: Int, b: Int, c: Int<caret>) {}
|
||||
@@ -0,0 +1,3 @@
|
||||
// IS_APPLICABLE: false
|
||||
|
||||
fun test(<caret>) {}
|
||||
@@ -0,0 +1,3 @@
|
||||
fun test(<caret>
|
||||
a: Int
|
||||
) {}
|
||||
@@ -0,0 +1 @@
|
||||
fun test(a: Int) {}
|
||||
Reference in New Issue
Block a user