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,6 @@
public class Foo {
void m(Object o) {
Foo foo = new Foo() {
};<caret>
}
}
@@ -0,0 +1,5 @@
public class Foo {
void m(Object o) {
new Foo() { }.<caret>
}
}
@@ -0,0 +1,5 @@
public class Foo {
void m() {
int foo = 2 + 2;<caret>
}
}
@@ -0,0 +1,5 @@
public class Foo {
void m() {
2 + 2.<caret>
}
}
@@ -0,0 +1,5 @@
public class Foo {
void m() {
Foo foo = new Foo();<caret>
}
}
@@ -0,0 +1,5 @@
public class Foo {
void m() {
Foo.<caret>
}
}
@@ -0,0 +1,6 @@
public class Foo {
void m() {
unresolved.var
<caret>
}
}
@@ -0,0 +1,5 @@
public class Foo {
void m() {
unresolved.<caret>
}
}
@@ -0,0 +1,7 @@
public class Foo {
Foo m() {
Foo foo = m().m();
foo<caret>.m();
return null;
}
}
@@ -0,0 +1,6 @@
public class Foo {
Foo m() {
m().m().<caret>.m();
return null;
}
}
@@ -0,0 +1,5 @@
public class Foo {
void m() {
boolean foo = true && false;<caret>
}
}
@@ -0,0 +1,5 @@
public class Foo {
void m() {
true && false.<caret>
}
}
@@ -0,0 +1,6 @@
public class Foo {
void m(boolean b) {
boolean foo = b && false;
m(foo<caret>);
}
}
@@ -0,0 +1,5 @@
public class Foo {
void m(boolean b) {
m(b && false.<caret>);
}
}
@@ -0,0 +1,5 @@
public class Foo<T> {
void m() {
Foo<Foo> foo = new Foo<Foo>();<caret>
}
}
@@ -0,0 +1,5 @@
public class Foo<T> {
void m() {
Foo<Foo>.<caret>;
}
}
@@ -0,0 +1,8 @@
public class Foo {
Foo f;
Foo m() {
Foo foo = m().m().f;<caret>
m();
return null;
}
}
@@ -0,0 +1,7 @@
public class Foo {
Foo f;
Foo m() {
m().m().f.<caret>m();
return null;
}
}
@@ -0,0 +1,6 @@
public class Foo {
void m() {
int foo = 1;
foo<caret> + 2 /* comment */; // comment2
}
}
@@ -0,0 +1,5 @@
public class Foo {
void m() {
1.<caret> + 2 /* comment */; // comment2
}
}
@@ -0,0 +1,8 @@
public class Foo {
Foo f;
Foo m() {
Foo foo = m().m().f;<caret>
blah();
return null;
}
}
@@ -0,0 +1,7 @@
public class Foo {
Foo f;
Foo m() {
m().m().f.v<caret>blah();
return null;
}
}
@@ -0,0 +1,5 @@
public class Foo {
void m() {
int foo = 1;<caret>
}
}
@@ -0,0 +1,5 @@
public class Foo {
void m() {
1.<caret>
}
}
@@ -0,0 +1,6 @@
public class Foo {
void m() {
int foo = 2 * 2;
foo<caret> + 2 * 2; /* boo */
}
}
@@ -0,0 +1,5 @@
public class Foo {
void m() {
2 * 2.<caret> + 2 * 2; /* boo */
}
}
@@ -0,0 +1,6 @@
public class Foo {
void m() {
int foo = 2;
int i = foo<caret> + 2 /**/ ;
}
}
@@ -0,0 +1,5 @@
public class Foo {
void m() {
int i = 2.<caret> + 2 /**/ ;
}
}
@@ -0,0 +1,6 @@
public class Foo {
void m() {
int foo = 2 + 3;
int i = foo<caret> * 4; // blah
}
}
@@ -0,0 +1,5 @@
public class Foo {
void m() {
int i = 2 + 3.<caret> * 4; // blah
}
}
@@ -0,0 +1,7 @@
import java.lang.Object;
public class Foo {
void m() {
new Object().<caret>
}
}
@@ -0,0 +1,7 @@
import java.lang.Object;
public class Foo {
void m() {
new Object().<caret>
}
}
@@ -0,0 +1,7 @@
import java.lang.Object;
public class Foo {
void m() {
new Object().<caret>
}
}
@@ -0,0 +1,7 @@
import java.lang.Object;
public class Foo {
void m() {
new Object().<caret>
}
}
@@ -0,0 +1,7 @@
import java.lang.Object;
public class Foo {
void m() {
new Object().<caret>
}
}
@@ -0,0 +1,8 @@
import java.lang.Object;
public class Foo {
void m() {
new Object().par
}
}
@@ -0,0 +1,7 @@
import java.lang.Object;
public class Foo {
void m() {
new Object().<caret>
}
}
@@ -0,0 +1,7 @@
import java.lang.Object;
public class Foo {
void m() {
(new Object())
}
}
@@ -0,0 +1,9 @@
public class Foo {
void m() {
new MyClass().<caret>
}
private class MyClass {
public void parents() {}
}
}
@@ -0,0 +1,7 @@
import java.lang.Object;
public class Foo {
void m() {
new Object().<caret>
}
}
@@ -0,0 +1,7 @@
import java.lang.Object;
public class Foo {
void m() {
(new Object())
}
}
@@ -0,0 +1,7 @@
import java.lang.Object;
public class Foo {
void m() {
new Object().<caret>
}
}
@@ -0,0 +1,7 @@
import java.lang.Object;
public class Foo {
void m() {
(new Object())
}
}
@@ -0,0 +1,7 @@
import java.lang.Object;
public class Foo {
void m() {
new Object().<caret>
}
}
@@ -0,0 +1,7 @@
import java.lang.Object;
public class Foo {
void m() {
1.<caret>
}
}
@@ -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;
}
}
@@ -0,0 +1,5 @@
public class Foo {
void m(Object o) {
o.cast<caret>
}
}
@@ -0,0 +1,5 @@
public class Foo {
void m(Object o) {
(() o)<caret>
}
}
@@ -0,0 +1,7 @@
public class Foo {
void m(Object o) {
bar().cast<caret>
}
void bar() {}
}
@@ -0,0 +1,7 @@
public class Foo {
void m(Object o) {
bar().cast <caret>
}
void bar() {}
}
@@ -0,0 +1,6 @@
public class Foo {
void m(boolean x, boolean y, boolean z) {
x & y && z || x ^ y.else<caret>
foo();
}
}
@@ -0,0 +1,6 @@
public class Foo {
void m(boolean x, boolean y, boolean z) {
foo() & y & z.else<caret>
Type t = new Type();
}
}
@@ -0,0 +1,8 @@
public class Foo {
void m(boolean x, boolean y, boolean z) {
if (!(foo() & y & z)) {
<caret>
}
Type t = new Type();
}
}
@@ -0,0 +1,8 @@
public class Foo {
void m(boolean x, boolean y, boolean z) {
if ((!(x & y) || !z) && !(x ^ y)) {
<caret>
}
foo();
}
}
@@ -0,0 +1,8 @@
package templates.
public class Foo {
void m(boolean x) {
x.else<caret>
value = dummyAssignment;
}
}
@@ -0,0 +1,10 @@
package templates.
public class Foo {
void m(boolean x) {
if (!x) {
<caret>
}
value = dummyAssignment;
}
}
@@ -0,0 +1,6 @@
public class Foo {
void m(Boolean x) {
x.else<caret>
return;
}
}
@@ -0,0 +1,8 @@
public class Foo {
void m(Boolean x) {
if (!x) {
<caret>
}
return;
}
}
@@ -0,0 +1,7 @@
package completion;
public class Foo {
void m(Object o) {
o instanceof String.else<caret>
}
}
@@ -0,0 +1,9 @@
package completion;
public class Foo {
void m(Object o) {
if (!(o instanceof String)) {
<caret>
}
}
}
@@ -0,0 +1,6 @@
public class Foo {
Foo[] xs;
void m() {
xs.length == 0.else<caret>
}
}
@@ -0,0 +1,8 @@
public class Foo {
Foo[] xs;
void m() {
if (xs.length != 0) {
<caret>
}
}
}
@@ -0,0 +1,6 @@
public class Foo {
void m(boolean x, boolean y, boolean z) {
x && y && z.else<caret>
value = dummyAssignment;
}
}
@@ -0,0 +1,8 @@
public class Foo {
void m(boolean x, boolean y, boolean z) {
if (!x || !y || !z) {
<caret>
}
value = dummyAssignment;
}
}
@@ -0,0 +1,5 @@
public class Foo {
void m(Object o) {
o != null.else<caret>
}
}
@@ -0,0 +1,7 @@
public class Foo {
void m(Object o) {
if (o == null) {
<caret>
}
}
}
@@ -0,0 +1,8 @@
package templates.
public class Foo {
void m() {
x.else<caret>
value = dummyAssignment;
}
}
@@ -0,0 +1,8 @@
package templates.
public class Foo {
void m() {
x.else <caret>
value = dummyAssignment;
}
}
@@ -0,0 +1,5 @@
public class Foo {
public void bar(Foo arg) {
arg.field<caret>
}
}
@@ -0,0 +1,7 @@
public class Foo {
private Foo foo;
public void bar(Foo arg) {
foo = arg;<caret>
}
}
@@ -0,0 +1,5 @@
public class Foo {
public Foo(int arg) {
arg.field<caret>
}
}
@@ -0,0 +1,7 @@
public class Foo {
private int foo;
public Foo(int arg) {
foo = arg;<caret>
}
}
@@ -0,0 +1,6 @@
public class Foo {
void m() {
int[] xs = {1, 2, 3};
xs.for<caret>
}
}
@@ -0,0 +1,8 @@
public class Foo {
void m() {
int[] xs = {1, 2, 3};
for (int x : xs) {
<caret>
}
}
}
@@ -0,0 +1,6 @@
public class Foo {
void m() {
Byte foo = 100;
foo.fori<caret>
}
}
@@ -0,0 +1,8 @@
public class Foo {
void m() {
Byte foo = 100;
for (Byte i = 0; i < foo; i++) {
<caret>
}
}
}
@@ -0,0 +1,6 @@
public class Foo {
void m() {
Integer[] xs = {1, 2, 3};
xs.fori<caret>
}
}
@@ -0,0 +1,8 @@
public class Foo {
void m() {
Integer[] xs = {1, 2, 3};
for (int i = 0; i < xs.length; i++) {
<caret>
}
}
}
@@ -0,0 +1,6 @@
public class Foo {
void m() {
Long[] xs = {1, 2, 3};
xs.fori<caret>
}
}
@@ -0,0 +1,8 @@
public class Foo {
void m() {
Long[] xs = {1, 2, 3};
for (int i = 0; i < xs.length; i++) {
<caret>
}
}
}

Some files were not shown because too many files have changed in this diff Show More