Create from Usage: Support accessors for local delegated properties
#KT-19730 Fixed
This commit is contained in:
+4
@@ -0,0 +1,4 @@
|
||||
// "Create extension function 'String.getValue'" "true"
|
||||
fun x(parameters: String) {
|
||||
val n by <caret>parameters
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
// "Create extension function 'String.getValue'" "true"
|
||||
fun x(parameters: String) {
|
||||
val n by parameters
|
||||
}
|
||||
|
||||
private operator fun String.getValue(nothing: Nothing?, property: KProperty<*>): Any {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// "Create extension function 'String.getValue', function 'String.setValue'" "true"
|
||||
fun x(parameters: String) {
|
||||
var n by <caret>parameters
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
// "Create extension function 'String.getValue', function 'String.setValue'" "true"
|
||||
fun x(parameters: String) {
|
||||
var n by parameters
|
||||
}
|
||||
|
||||
private operator fun String.setValue(nothing: Nothing?, property: KProperty<*>, any: Any) {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
private operator fun String.getValue(nothing: Nothing?, property: KProperty<*>): Any {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
Reference in New Issue
Block a user