surround expression with: support for expression's parts (IDEA-73868)

This commit is contained in:
anna
2011-09-08 11:21:17 +02:00
parent d5b25c8bc5
commit 0eb2875056
14 changed files with 90 additions and 9 deletions
@@ -0,0 +1,8 @@
class Test {
void foo() {
String a = "", b = "", c = "";
if (a + <selection>b + c</selection>) {
}
}
}
@@ -0,0 +1,8 @@
class Test {
void foo() {
String a = "", b = "", c = "";
if (a + (() b + c)) {
}
}
}
@@ -0,0 +1,8 @@
class Test {
void foo() {
boolean a = false, b = false, c = false;
if (a && <selection>b && c</selection>) {
}
}
}
@@ -0,0 +1,8 @@
class Test {
void foo() {
boolean a = false, b = false, c = false;
if (a && !(b && c)) {
}
}
}
@@ -0,0 +1,8 @@
class Test {
void foo() {
int a = 0, b = 0, c = 0;
if (a + <selection>b + c</selection>) {
}
}
}
@@ -0,0 +1,8 @@
class Test {
void foo() {
int a = 0, b = 0, c = 0;
if (a + (b + c)) {
}
}
}