Add parentheses surrounder

This commit is contained in:
Natalia.Ukhorskaya
2013-02-14 13:37:20 +04:00
parent eeb158a5c8
commit 856bffb324
11 changed files with 130 additions and 1 deletions
@@ -0,0 +1,3 @@
fun foo() {
<caret>true
}
@@ -0,0 +1,3 @@
fun foo() {
(true)<caret>
}
@@ -0,0 +1,5 @@
fun foo() {
val a = "test"
if (<selection>a == "t"</selection>) {}
}
@@ -0,0 +1,5 @@
fun foo() {
val a = "test"
if ((a == "t")<caret>) {}
}
@@ -0,0 +1,3 @@
fun foo() {
val a = <selection>1 + 2</selection>
}
@@ -0,0 +1,3 @@
fun foo() {
val a = (1 + 2)<caret>
}