move postfix templates to java-impl

This commit is contained in:
Sergey Ignatov
2013-12-19 12:35:51 +04:00
parent 8286229281
commit dce2c1739c
284 changed files with 284 additions and 241 deletions
@@ -0,0 +1,8 @@
package templates;
public class Foo {
void m(boolean b, int value) {
b.if<caret>
value = 123;
}
}
@@ -0,0 +1,10 @@
package templates;
public class Foo {
void m(boolean b, int value) {
if (b) {
<caret>
}
value = 123;
}
}
@@ -0,0 +1,6 @@
public class Foo {
void m(Boolean x) {
x.if<caret>
return;
}
}
@@ -0,0 +1,8 @@
public class Foo {
void m(Boolean x) {
if (x) {
<caret>
}
return;
}
}
@@ -0,0 +1,7 @@
package templates;
public class Foo {
void m(Object o) {
o instanceof String.if<caret>
}
}
@@ -0,0 +1,10 @@
package templates;
public class Foo {
boolean m(Object o) {
if (o instanceof T1) return true;
o instanceof T2.if<caret>
return false;
}
}
@@ -0,0 +1,12 @@
package templates;
public class Foo {
boolean m(Object o) {
if (o instanceof T1) return true;
if (o instanceof T2) {
<caret>
}
return false;
}
}
@@ -0,0 +1,9 @@
package templates;
public class Foo {
void m(Object o) {
if (o instanceof String) {
<caret>
}
}
}
@@ -0,0 +1,7 @@
package templates;
public class Foo {
void m(boolean[] xs) {
xs.length > 0.if<caret>
}
}
@@ -0,0 +1,9 @@
package templates;
public class Foo {
void m(boolean[] xs) {
if (xs.length > 0) {
<caret>
}
}
}
@@ -0,0 +1,11 @@
package templates;
public class Foo {
void m() {
bar().if<caret>
}
boolean bar() {
return true;
}
}
@@ -0,0 +1,13 @@
package templates;
public class Foo {
void m() {
if (bar()) {
<caret>
}
}
boolean bar() {
return true;
}
}
@@ -0,0 +1,8 @@
package templates;
public class Foo {
void m(String b, int value) {
b.if<caret>
value = 123;
}
}
@@ -0,0 +1,8 @@
package templates;
public class Foo {
void m(String b, int value) {
b.if <caret>
value = 123;
}
}
@@ -0,0 +1,7 @@
package templates;
public class Foo {
void m(String s) {
s.isEmpty() || s.contains("asas").if<caret>
}
}
@@ -0,0 +1,9 @@
package templates;
public class Foo {
void m(String s) {
if (s.isEmpty() || s.contains("asas")) {
<caret>
}
}
}
@@ -0,0 +1,8 @@
package templates;
public class Foo {
void m(int value) {
b.if<caret>
value = 123;
}
}
@@ -0,0 +1,8 @@
package templates;
public class Foo {
void m(int value) {
b.if <caret>
value = 123;
}
}