Intentions: Implement 'Add val/var to primary constructor parameter' intention

#KT-4038 In Progress
This commit is contained in:
Alexey Sedunov
2015-12-23 15:03:19 +03:00
parent 5dcf531048
commit 6978d842fb
16 changed files with 174 additions and 10 deletions
+1
View File
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.intentions.AddValVarToConstructorParameterIntention
+3
View File
@@ -0,0 +1,3 @@
class Foo(<caret>x: Int, y: Int) {
}
+3
View File
@@ -0,0 +1,3 @@
class Foo(val<caret> x: Int, y: Int) {
}
+4
View File
@@ -0,0 +1,4 @@
// IS_APPLICABLE: false
fun foo(<caret>x: Int, y: Int) {
}
+4
View File
@@ -0,0 +1,4 @@
// IS_APPLICABLE: false
class Foo(val <caret>x: Int, y: Int) {
}
+4
View File
@@ -0,0 +1,4 @@
// IS_APPLICABLE: false
class Foo(var <caret>x: Int, y: Int) {
}
+4
View File
@@ -0,0 +1,4 @@
// IS_APPLICABLE: false
class Foo(x: <caret>Int, y: Int) {
}
@@ -0,0 +1,4 @@
// IS_APPLICABLE: false
class Foo {
constructor(<caret>x: Int, y: Int)
}