Improve Create property from Usage

Place generated property next to other properties
 #KT-14886 Fixed
This commit is contained in:
Dmitry Gridin
2019-02-26 18:45:12 +03:00
parent 5d599ee2ff
commit c89d1af9fa
35 changed files with 228 additions and 85 deletions
@@ -1,11 +1,11 @@
private val A.foo: Boolean
get() {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
// "Create extension property 'A.foo'" "true"
class A(val n: Int)
class B {
val A.test: Boolean get() = foo
}
private val A.foo: Boolean
get() {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -1,3 +1,9 @@
private var A.foo: Boolean
get() {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
set() {}
// "Create extension property 'A.foo'" "true"
class A(val n: Int)
@@ -7,10 +13,4 @@ class B {
set(v: Boolean) {
foo = v
}
}
private var A.foo: Boolean
get() {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
set() {}
}