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.assert<caret>
value = 123;
}
}
@@ -0,0 +1,8 @@
package templates;
public class Foo {
void m(boolean b, int value) {
assert b;<caret>
value = 123;
}
}
@@ -0,0 +1,6 @@
public class Foo {
void m(Boolean x) {
x.assert<caret>
return;
}
}
@@ -0,0 +1,6 @@
public class Foo {
void m(Boolean x) {
assert x;<caret>
return;
}
}
@@ -0,0 +1,7 @@
package templates;
public class Foo {
void m(Object o) {
o instanceof String.assert<caret>
}
}
@@ -0,0 +1,10 @@
package templates;
public class Foo {
boolean m(Object o) {
if (o instanceof T1) return true;
o instanceof T2.assert<caret>
return false;
}
}
@@ -0,0 +1,10 @@
package templates;
public class Foo {
boolean m(Object o) {
if (o instanceof T1) return true;
assert o instanceof T2;<caret>
return false;
}
}
@@ -0,0 +1,7 @@
package templates;
public class Foo {
void m(Object o) {
assert o instanceof String;<caret>
}
}
@@ -0,0 +1,7 @@
package templates;
public class Foo {
void m(boolean[] xs) {
xs.length > 0.assert<caret>
}
}
@@ -0,0 +1,7 @@
package templates;
public class Foo {
void m(boolean[] xs) {
assert xs.length > 0;<caret>
}
}
@@ -0,0 +1,11 @@
package templates;
public class Foo {
void m() {
bar().assert<caret>
}
boolean bar() {
return true;
}
}
@@ -0,0 +1,11 @@
package templates;
public class Foo {
void m() {
assert bar();<caret>
}
boolean bar() {
return true;
}
}
@@ -0,0 +1,8 @@
package templates;
public class Foo {
void m(String b, int value) {
b.assert<caret>
value = 123;
}
}
@@ -0,0 +1,8 @@
package templates;
public class Foo {
void m(String b, int value) {
b.assert <caret>
value = 123;
}
}
@@ -0,0 +1,7 @@
package templates;
public class Foo {
void m(Object arg) {
arg != null.assert<caret>
}
}
@@ -0,0 +1,7 @@
package templates;
public class Foo {
void m(Object arg) {
assert arg != null;<caret>
}
}
@@ -0,0 +1,7 @@
package templates;
public class Foo {
void m(String s) {
s.isEmpty() || s.contains("asas").assert<caret>
}
}
@@ -0,0 +1,7 @@
package templates;
public class Foo {
void m(String s) {
assert s.isEmpty() || s.contains("asas");<caret>
}
}
@@ -0,0 +1,8 @@
package templates;
public class Foo {
void m(int value) {
b.assert<caret>
value = 123;
}
}
@@ -0,0 +1,8 @@
package templates;
public class Foo {
void m(int value) {
b.assert <caret>
value = 123;
}
}