Introduce "add parameter names to following arguments"

This commit also refactors relevant intentions & inspections,
like "add name to argument", "add names to call arguments",
"unnamed boolean literal argument"

#KT-30622 Fixed
This commit is contained in:
Mikhail Glukhikh
2019-05-06 15:45:51 +03:00
parent f26a4e06bd
commit 955bfd6e7b
21 changed files with 189 additions and 77 deletions
@@ -0,0 +1,7 @@
fun foo(x: Int, y: Int, comment: String) {
}
fun test() {
foo(24, <spot>y = 42, comment = "Hello"</spot>)
}
@@ -0,0 +1,7 @@
fun foo(x: Int, y: Int, comment: String) {
}
fun test() {
foo(24, <spot>42, "Hello"</spot>)
}
@@ -0,0 +1,6 @@
<html>
<body>
This intention adds names to all positional arguments of a function call according to the named argument syntax,
starting with the current argument.
</body>
</html>