KT-12697 Expand selection action select ": Type" (#898)

This commit is contained in:
Yoshinori Isogai
2016-08-22 19:35:23 +09:00
committed by Dmitry Jemerov
parent b3b83e344b
commit 4669fb3ca7
33 changed files with 191 additions and 9 deletions
@@ -0,0 +1,2 @@
class Foo : Bar(), <caret>Bar2<Bar3>?, Bar4 {
}
@@ -0,0 +1,2 @@
class Foo : Bar(), <selection><caret>Bar2</selection><Bar3>?, Bar4 {
}
@@ -0,0 +1,2 @@
class Foo : Bar(), <selection><caret>Bar2<Bar3></selection>?, Bar4 {
}
@@ -0,0 +1,2 @@
class Foo : Bar(), <selection><caret>Bar2<Bar3>?</selection>, Bar4 {
}
@@ -0,0 +1,2 @@
class Foo : <selection>Bar(), <caret>Bar2<Bar3>?, Bar4</selection> {
}
@@ -0,0 +1,2 @@
class Foo <selection>: Bar(), <caret>Bar2<Bar3>?, Bar4</selection> {
}
@@ -0,0 +1,2 @@
<selection>class Foo : Bar(), <caret>Bar2<Bar3>?, Bar4 {
}</selection>
+2
View File
@@ -0,0 +1,2 @@
class Foo : <caret>Bar {
}
+2
View File
@@ -0,0 +1,2 @@
class Foo : <selection><caret>Bar</selection> {
}
+2
View File
@@ -0,0 +1,2 @@
class Foo <selection>: <caret>Bar</selection> {
}
+2
View File
@@ -0,0 +1,2 @@
<selection>class Foo : <caret>Bar {
}</selection>
+1
View File
@@ -0,0 +1 @@
val foo: <caret>Int? = 1
+1
View File
@@ -0,0 +1 @@
val foo: <selection><caret>Int</selection>? = 1
+1
View File
@@ -0,0 +1 @@
val foo: <selection><caret>Int?</selection> = 1
+1
View File
@@ -0,0 +1 @@
val foo<selection>: <caret>Int?</selection> = 1
@@ -1,4 +1,4 @@
<selection>fun a() : <caret>Int {}</selection> // fun a
fun a() <selection>: <caret>Int</selection> {} // fun a
fun b() : Short {
f()
@@ -1,4 +1,4 @@
<selection>fun a() : <caret>Int {} // fun a</selection>
<selection>fun a() : <caret>Int {}</selection> // fun a
fun b() : Short {
f()
@@ -1,5 +1,5 @@
<selection>fun a() : <caret>Int {} // fun a
</selection>
<selection>fun a() : <caret>Int {} // fun a</selection>
fun b() : Short {
f()
}
@@ -0,0 +1,5 @@
<selection>fun a() : <caret>Int {} // fun a
</selection>
fun b() : Short {
f()
}
@@ -1,7 +1,6 @@
fun a() : Int {}
// TODO: Refactor
<selection>fun b() : <caret>Short {
fun b() <selection>: <caret>Short</selection> {
f()
}
</selection>
@@ -1,7 +1,7 @@
fun a() : Int {}
<selection>// TODO: Refactor
fun b() : <caret>Short {
// TODO: Refactor
<selection>fun b() : <caret>Short {
f()
}
</selection>
</selection>
@@ -0,0 +1,7 @@
fun a() : Int {}
<selection>// TODO: Refactor
fun b() : <caret>Short {
f()
}
</selection>
+9
View File
@@ -0,0 +1,9 @@
window.addMouseListener(object : <caret>MouseAdapter() {
override fun mouseClicked(e: MouseEvent) {
// ...
}
override fun mouseEntered(e: MouseEvent) {
// ...
}
})
+9
View File
@@ -0,0 +1,9 @@
window.addMouseListener(object : <selection><caret>MouseAdapter</selection>() {
override fun mouseClicked(e: MouseEvent) {
// ...
}
override fun mouseEntered(e: MouseEvent) {
// ...
}
})
+9
View File
@@ -0,0 +1,9 @@
window.addMouseListener(object : <selection><caret>MouseAdapter()</selection> {
override fun mouseClicked(e: MouseEvent) {
// ...
}
override fun mouseEntered(e: MouseEvent) {
// ...
}
})
+9
View File
@@ -0,0 +1,9 @@
window.addMouseListener(<selection>object : <caret>MouseAdapter() {
override fun mouseClicked(e: MouseEvent) {
// ...
}
override fun mouseEntered(e: MouseEvent) {
// ...
}
}</selection>)
+2
View File
@@ -0,0 +1,2 @@
fun foo(a: Array<String>, b: <caret>Int) {
}
+2
View File
@@ -0,0 +1,2 @@
fun foo(a: Array<String>, b: <selection><caret>Int</selection>) {
}
+2
View File
@@ -0,0 +1,2 @@
fun foo(a: Array<String>, <selection>b: <caret>Int</selection>) {
}