introduce quickfix for change visiblity from private to internal for private top-level declarations

This commit is contained in:
Michael Nedzelsky
2015-09-02 15:35:43 +03:00
parent 93776b711e
commit 9f5bbf94d3
19 changed files with 161 additions and 0 deletions
@@ -0,0 +1,3 @@
package test
internal fun f(): Int = 10
@@ -0,0 +1,7 @@
// "Make f internal" "true"
package test
fun foo() {
val x = f()
}
@@ -0,0 +1,3 @@
package test
private fun f(): Int = 10
@@ -0,0 +1,7 @@
// "Make f internal" "true"
package test
fun foo() {
val x = <caret>f()
}
@@ -0,0 +1,3 @@
package test
internal val prop: Int = 10
@@ -0,0 +1,7 @@
// "Make prop internal" "true"
package test
fun foo() {
val x = prop
}
@@ -0,0 +1,3 @@
package test
private val prop: Int = 10
@@ -0,0 +1,7 @@
// "Make prop internal" "true"
package test
fun foo() {
val x = <caret>prop
}
@@ -0,0 +1,3 @@
package test
internal var prop: Int = 10
@@ -0,0 +1,7 @@
// "Make prop internal" "true"
package test
fun foo() {
prop = 20
}
@@ -0,0 +1,3 @@
package test
private var prop: Int = 10
@@ -0,0 +1,7 @@
// "Make prop internal" "true"
package test
fun foo() {
<caret>prop = 20
}
@@ -0,0 +1,4 @@
package test
var prop: Int = 10
internal set(value: Int) {}
@@ -0,0 +1,7 @@
// "Make <set-prop> internal" "true"
package test
fun foo() {
prop = 20
}
@@ -0,0 +1,4 @@
package test
var prop: Int = 10
private set(value: Int) {}
@@ -0,0 +1,7 @@
// "Make <set-prop> internal" "true"
package test
fun foo() {
<caret>prop = 20
}