Add surround with not

This commit is contained in:
Natalia.Ukhorskaya
2013-02-12 15:37:58 +04:00
parent 2499bb79ca
commit 09ca020780
19 changed files with 198 additions and 5 deletions
@@ -0,0 +1,3 @@
fun foo() {
<selection>1 == 2</selection>
}
@@ -0,0 +1,3 @@
fun foo() {
!(1 == 2)<caret>
}
@@ -0,0 +1,3 @@
fun foo() {
<caret>1 == 2
}
@@ -0,0 +1,3 @@
fun foo() {
!(1 == 2)<caret>
}
@@ -0,0 +1,3 @@
fun foo() {
if (<selection>1 == 2</selection>) {}
}
@@ -0,0 +1,3 @@
fun foo() {
if (!(1 == 2)<caret>) {}
}
@@ -0,0 +1,3 @@
fun foo() {
<selection>!(1 == 2)</selection>
}
@@ -0,0 +1,3 @@
fun foo() {
!(!(1 == 2))<caret>
}
@@ -0,0 +1,3 @@
fun foo() {
<selection>1 == 2 && 3 != 4</selection>
}
@@ -0,0 +1,3 @@
fun foo() {
!(1 == 2 && 3 != 4)<caret>
}
@@ -0,0 +1,3 @@
fun foo() {
<caret>1 == 2 && 3 != 4
}
@@ -0,0 +1,3 @@
fun foo() {
!(1 == 2 && 3 != 4)<caret>
}
@@ -0,0 +1,5 @@
fun foo() {
val a = ""
<selection>a</selection>
}
@@ -0,0 +1,5 @@
fun foo() {
val a = ""
!(a)<caret>
}