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:
committed by
Dmitry Jemerov
parent
b1f84676d1
commit
af941bfdf5
@@ -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>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -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>
|
||||
}
|
||||
|
||||
+1
-1
@@ -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) {}
|
||||
}
|
||||
|
||||
+1
-1
@@ -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>
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,5 +3,5 @@ abstract class Owner {
|
||||
}
|
||||
|
||||
fun Owner.f() {
|
||||
<caret><selection>TODO("not implemented")</selection> //To change body of created functions use File | Settings | File Templates.
|
||||
<caret><selection>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
}
|
||||
+1
-1
@@ -3,4 +3,4 @@ abstract class Owner {
|
||||
}
|
||||
|
||||
val Owner.p: Int
|
||||
get() = <caret><selection>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
|
||||
get() = <caret><selection>TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.</selection>
|
||||
Vendored
+1
-1
@@ -4,4 +4,4 @@ class Owner {
|
||||
}
|
||||
|
||||
val Owner.p: Int
|
||||
get() = <caret><selection>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
|
||||
get() = <caret><selection>TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.</selection>
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ class Owner {
|
||||
}
|
||||
|
||||
var Owner.p: Int
|
||||
get() = <caret><selection>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
|
||||
get() = <caret><selection>TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.</selection>
|
||||
set(value) {
|
||||
TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -6,5 +6,5 @@ class Owner {
|
||||
var Owner.p: Int
|
||||
get() = 1
|
||||
set(value) {
|
||||
<caret><selection>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
|
||||
<caret><selection>TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.</selection>
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,5 +6,5 @@ class Owner {
|
||||
var Owner.p: Int
|
||||
get() { return 1 }
|
||||
set(value) {
|
||||
<caret><selection>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
|
||||
<caret><selection>TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.</selection>
|
||||
}
|
||||
|
||||
+1
-1
@@ -5,5 +5,5 @@ class Owner {
|
||||
}
|
||||
|
||||
var Owner.p: Int
|
||||
get() = <caret><selection>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
|
||||
get() = <caret><selection>TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.</selection>
|
||||
set(v) {}
|
||||
|
||||
+1
-1
@@ -8,5 +8,5 @@ enum class E : T<Int> {
|
||||
A, B, C;
|
||||
|
||||
override val foo: Int
|
||||
get() = <caret><selection>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
|
||||
get() = <caret><selection>TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.</selection>
|
||||
}
|
||||
+1
-1
@@ -8,5 +8,5 @@ enum class E : T<Int> {
|
||||
A, B, C;
|
||||
|
||||
override val foo: Int
|
||||
get() = <caret><selection>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
|
||||
get() = <caret><selection>TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.</selection>
|
||||
}
|
||||
Vendored
+1
-1
@@ -8,7 +8,7 @@ enum class E : T<Int> {
|
||||
A, B, C;
|
||||
|
||||
override val foo: Int
|
||||
get() = <caret><selection>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
|
||||
get() = <caret><selection>TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.</selection>
|
||||
|
||||
val bar = 1
|
||||
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ enum class E(n: Int) {
|
||||
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
|
||||
}, C(3) {
|
||||
override val foo: Int
|
||||
get() = <caret><selection>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
|
||||
get() = <caret><selection>TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.</selection>
|
||||
};
|
||||
|
||||
abstract val foo: Int
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ class U : T<String> {
|
||||
|
||||
class V : T<Int> {
|
||||
override val foo: Int
|
||||
get() = <caret><selection>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
|
||||
get() = <caret><selection>TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.</selection>
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
val s1: String
|
||||
get() = <caret>TODO("not implemented") // after
|
||||
@@ -0,0 +1,2 @@
|
||||
val s1: String
|
||||
get() = <selection><caret>TODO</selection>("not implemented") // after
|
||||
@@ -0,0 +1,2 @@
|
||||
val s1: String
|
||||
get() = <selection><caret>TODO("not implemented")</selection> // after
|
||||
@@ -0,0 +1,2 @@
|
||||
val s1: String
|
||||
get() = <selection><caret>TODO("not implemented") // after</selection>
|
||||
@@ -0,0 +1,2 @@
|
||||
val s1: String
|
||||
<selection>get() = <caret>TODO("not implemented") // after</selection>
|
||||
@@ -0,0 +1,2 @@
|
||||
val s2: String
|
||||
get() = /* before */ <caret>TODO("not implemented")
|
||||
@@ -0,0 +1,2 @@
|
||||
val s2: String
|
||||
get() = /* before */ <selection><caret>TODO</selection>("not implemented")
|
||||
@@ -0,0 +1,2 @@
|
||||
val s2: String
|
||||
get() = /* before */ <selection><caret>TODO("not implemented")</selection>
|
||||
@@ -0,0 +1,2 @@
|
||||
val s2: String
|
||||
get() = <selection>/* before */ <caret>TODO("not implemented")</selection>
|
||||
@@ -0,0 +1,2 @@
|
||||
val s2: String
|
||||
<selection>get() = /* before */ <caret>TODO("not implemented")</selection>
|
||||
@@ -0,0 +1,2 @@
|
||||
val s3: String
|
||||
get() = /* before */ <caret>TODO("not implemented") // after
|
||||
@@ -0,0 +1,2 @@
|
||||
val s3: String
|
||||
get() = /* before */ <selection><caret>TODO</selection>("not implemented") // after
|
||||
@@ -0,0 +1,2 @@
|
||||
val s3: String
|
||||
get() = /* before */ <selection><caret>TODO("not implemented")</selection> // after
|
||||
@@ -0,0 +1,2 @@
|
||||
val s3: String
|
||||
get() = <selection>/* before */ <caret>TODO("not implemented") // after</selection>
|
||||
@@ -0,0 +1,2 @@
|
||||
val s3: String
|
||||
<selection>get() = /* before */ <caret>TODO("not implemented") // after</selection>
|
||||
@@ -0,0 +1,2 @@
|
||||
val s4: String
|
||||
get() = /* before1 */ /* before2 */ <caret>TODO("not implemented") /* after1 */ /* after2 */
|
||||
@@ -0,0 +1,2 @@
|
||||
val s4: String
|
||||
get() = /* before1 */ /* before2 */ <selection><caret>TODO</selection>("not implemented") /* after1 */ /* after2 */
|
||||
@@ -0,0 +1,2 @@
|
||||
val s4: String
|
||||
get() = /* before1 */ /* before2 */ <selection><caret>TODO("not implemented")</selection> /* after1 */ /* after2 */
|
||||
@@ -0,0 +1,2 @@
|
||||
val s4: String
|
||||
get() = <selection>/* before1 */ /* before2 */ <caret>TODO("not implemented") /* after1 */ /* after2 */</selection>
|
||||
@@ -0,0 +1,2 @@
|
||||
val s4: String
|
||||
<selection>get() = /* before1 */ /* before2 */ <caret>TODO("not implemented") /* after1 */ /* after2 */</selection>
|
||||
Reference in New Issue
Block a user