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:
+7
@@ -0,0 +1,7 @@
|
||||
fun foo(x: Int, y: Int, comment: String) {
|
||||
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo(24, <spot>y = 42, comment = "Hello"</spot>)
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
fun foo(x: Int, y: Int, comment: String) {
|
||||
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo(24, <spot>42, "Hello"</spot>)
|
||||
}
|
||||
+6
@@ -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>
|
||||
Reference in New Issue
Block a user