KT-18158 Expand selection should select the comment after expression getter on the same line (#1122)

* Expand selection should select the comment after expression getter on the same line #KT-18158 Fixed

* Fixed expand selection behavior for the declaration with comment #KT-18158

* Remove redundant code #KT-18158
This commit is contained in:
Toshiaki Kameyama
2017-06-14 19:28:56 +09:00
committed by Dmitry Jemerov
parent b1f84676d1
commit af941bfdf5
44 changed files with 104 additions and 30 deletions
@@ -6,7 +6,7 @@ interface A {
fun some() : A {
return object : A {
override val method: () -> Unit?
get() = <selection><caret>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
get() = <selection><caret>TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.</selection>
}
}
@@ -4,5 +4,5 @@ interface A {
class B : A {
override val String.prop: Int
get() = <selection><caret>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
get() = <selection><caret>TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.</selection>
}
@@ -4,6 +4,6 @@ interface A {
class B : A {
override var Int.foo: Double
get() = <selection><caret>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
get() = <selection><caret>TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.</selection>
set(value) {}
}
@@ -11,7 +11,7 @@ interface T {
class C : T {
override val a1: Byte
get() = <selection><caret>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
get() = <selection><caret>TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.</selection>
override val a2: Short
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
override val a3: Int
@@ -4,5 +4,5 @@ interface T {
class GC() : T {
override val v: Int
get() = <selection><caret>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
get() = <selection><caret>TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.</selection>
}