KT-12697 Expand selection action select ": Type" (#898)
This commit is contained in:
committed by
Dmitry Jemerov
parent
b3b83e344b
commit
4669fb3ca7
@@ -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>
|
||||
@@ -0,0 +1,2 @@
|
||||
class Foo : <caret>Bar {
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
class Foo : <selection><caret>Bar</selection> {
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
class Foo <selection>: <caret>Bar</selection> {
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
<selection>class Foo : <caret>Bar {
|
||||
}</selection>
|
||||
@@ -0,0 +1 @@
|
||||
val foo: <caret>Int? = 1
|
||||
@@ -0,0 +1 @@
|
||||
val foo: <selection><caret>Int</selection>? = 1
|
||||
@@ -0,0 +1 @@
|
||||
val foo: <selection><caret>Int?</selection> = 1
|
||||
@@ -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>
|
||||
@@ -0,0 +1,9 @@
|
||||
window.addMouseListener(object : <caret>MouseAdapter() {
|
||||
override fun mouseClicked(e: MouseEvent) {
|
||||
// ...
|
||||
}
|
||||
|
||||
override fun mouseEntered(e: MouseEvent) {
|
||||
// ...
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,9 @@
|
||||
window.addMouseListener(object : <selection><caret>MouseAdapter</selection>() {
|
||||
override fun mouseClicked(e: MouseEvent) {
|
||||
// ...
|
||||
}
|
||||
|
||||
override fun mouseEntered(e: MouseEvent) {
|
||||
// ...
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,9 @@
|
||||
window.addMouseListener(object : <selection><caret>MouseAdapter()</selection> {
|
||||
override fun mouseClicked(e: MouseEvent) {
|
||||
// ...
|
||||
}
|
||||
|
||||
override fun mouseEntered(e: MouseEvent) {
|
||||
// ...
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,9 @@
|
||||
window.addMouseListener(<selection>object : <caret>MouseAdapter() {
|
||||
override fun mouseClicked(e: MouseEvent) {
|
||||
// ...
|
||||
}
|
||||
|
||||
override fun mouseEntered(e: MouseEvent) {
|
||||
// ...
|
||||
}
|
||||
}</selection>)
|
||||
@@ -0,0 +1,2 @@
|
||||
fun foo(a: Array<String>, b: <caret>Int) {
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fun foo(a: Array<String>, b: <selection><caret>Int</selection>) {
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fun foo(a: Array<String>, <selection>b: <caret>Int</selection>) {
|
||||
}
|
||||
Reference in New Issue
Block a user