Add when surrounder

This commit is contained in:
Natalia.Ukhorskaya
2013-02-14 15:50:10 +04:00
parent af0b6df2b4
commit 654fa09fff
11 changed files with 188 additions and 1 deletions
@@ -0,0 +1,9 @@
enum class MyEnum {
FIRST
SECOND
}
fun foo() {
val a = MyEnum.FIRST
<selection>a</selection>
}
@@ -0,0 +1,12 @@
enum class MyEnum {
FIRST
SECOND
}
fun foo() {
val a = MyEnum.FIRST
when(a) {
<caret> -> {
}
}
}
@@ -0,0 +1,4 @@
fun foo() {
val a = "aa"
<selection>a.capitalize()</selection>
}
@@ -0,0 +1,9 @@
fun foo() {
val a = "aa"
when(a.capitalize()) {
<caret> -> {
}
else -> {
}
}
}
@@ -0,0 +1,4 @@
fun foo() {
val a = "aa"
<selection>a</selection>
}
@@ -0,0 +1,9 @@
fun foo() {
val a = "aa"
when(a) {
<caret> -> {
}
else -> {
}
}
}