mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
move postfix templates to java-impl
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import java.lang.Object;
|
||||
|
||||
public class Foo {
|
||||
void m() {
|
||||
new Object().<caret>
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import java.lang.Object;
|
||||
|
||||
public class Foo {
|
||||
void m() {
|
||||
new Object().<caret>
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import java.lang.Object;
|
||||
|
||||
public class Foo {
|
||||
void m() {
|
||||
new Object().<caret>
|
||||
}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
package com.<caret>
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import java.lang.Object;
|
||||
|
||||
public class Foo {
|
||||
void m() {
|
||||
new Object().<caret>
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import java.lang.Object;
|
||||
|
||||
public class Foo {
|
||||
void m() {
|
||||
new Object().<caret>
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
import java.lang.Object;
|
||||
|
||||
public class Foo {
|
||||
void m() {
|
||||
new Object().par
|
||||
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import java.lang.Object;
|
||||
|
||||
public class Foo {
|
||||
void m() {
|
||||
new Object().<caret>
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import java.lang.Object;
|
||||
|
||||
public class Foo {
|
||||
void m() {
|
||||
(new Object())
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
public class Foo {
|
||||
void m() {
|
||||
new MyClass().<caret>
|
||||
}
|
||||
|
||||
private class MyClass {
|
||||
public void parents() {}
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import java.lang.Object;
|
||||
|
||||
public class Foo {
|
||||
void m() {
|
||||
new Object().<caret>
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import java.lang.Object;
|
||||
|
||||
public class Foo {
|
||||
void m() {
|
||||
(new Object())
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import java.lang.Object;
|
||||
|
||||
public class Foo {
|
||||
void m() {
|
||||
new Object().<caret>
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import java.lang.Object;
|
||||
|
||||
public class Foo {
|
||||
void m() {
|
||||
(new Object())
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import java.lang.Object;
|
||||
|
||||
public class Foo {
|
||||
void m() {
|
||||
new Object().<caret>
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import java.lang.Object;
|
||||
|
||||
public class Foo {
|
||||
void m() {
|
||||
1.<caret>
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(boolean b, int value) {
|
||||
b.assert<caret>
|
||||
value = 123;
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(boolean b, int value) {
|
||||
assert b;<caret>
|
||||
value = 123;
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
public class Foo {
|
||||
void m(Boolean x) {
|
||||
x.assert<caret>
|
||||
return;
|
||||
}
|
||||
}
|
||||
+6
@@ -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>
|
||||
}
|
||||
}
|
||||
+10
@@ -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;
|
||||
}
|
||||
}
|
||||
+10
@@ -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;
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(Object o) {
|
||||
assert o instanceof String;<caret>
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(boolean[] xs) {
|
||||
xs.length > 0.assert<caret>
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(boolean[] xs) {
|
||||
assert xs.length > 0;<caret>
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m() {
|
||||
bar().assert<caret>
|
||||
}
|
||||
|
||||
boolean bar() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m() {
|
||||
assert bar();<caret>
|
||||
}
|
||||
|
||||
boolean bar() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(String b, int value) {
|
||||
b.assert<caret>
|
||||
value = 123;
|
||||
}
|
||||
}
|
||||
+8
@@ -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>
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(Object arg) {
|
||||
assert arg != null;<caret>
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(String s) {
|
||||
s.isEmpty() || s.contains("asas").assert<caret>
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(String s) {
|
||||
assert s.isEmpty() || s.contains("asas");<caret>
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(int value) {
|
||||
b.assert<caret>
|
||||
value = 123;
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(int value) {
|
||||
b.assert <caret>
|
||||
value = 123;
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
public class Foo {
|
||||
void m(Object o) {
|
||||
o.cast<caret>
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
public class Foo {
|
||||
void m(Object o) {
|
||||
(() o)<caret>
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
public class Foo {
|
||||
void m(Object o) {
|
||||
bar().cast<caret>
|
||||
}
|
||||
|
||||
void bar() {}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
public class Foo {
|
||||
void m(Object o) {
|
||||
bar().cast <caret>
|
||||
}
|
||||
|
||||
void bar() {}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
public class Foo {
|
||||
void m(boolean x, boolean y, boolean z) {
|
||||
x & y && z || x ^ y.else<caret>
|
||||
foo();
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
public class Foo {
|
||||
void m(boolean x, boolean y, boolean z) {
|
||||
foo() & y & z.else<caret>
|
||||
Type t = new Type();
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
public class Foo {
|
||||
void m(boolean x, boolean y, boolean z) {
|
||||
if (!(foo() & y & z)) {
|
||||
<caret>
|
||||
}
|
||||
Type t = new Type();
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
public class Foo {
|
||||
void m(boolean x, boolean y, boolean z) {
|
||||
if ((!(x & y) || !z) && !(x ^ y)) {
|
||||
<caret>
|
||||
}
|
||||
foo();
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package templates.
|
||||
|
||||
public class Foo {
|
||||
void m(boolean x) {
|
||||
x.else<caret>
|
||||
value = dummyAssignment;
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package templates.
|
||||
|
||||
public class Foo {
|
||||
void m(boolean x) {
|
||||
if (!x) {
|
||||
<caret>
|
||||
}
|
||||
value = dummyAssignment;
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
public class Foo {
|
||||
void m(Boolean x) {
|
||||
x.else<caret>
|
||||
return;
|
||||
}
|
||||
}
|
||||
+8
@@ -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>
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package completion;
|
||||
|
||||
public class Foo {
|
||||
void m(Object o) {
|
||||
if (!(o instanceof String)) {
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
public class Foo {
|
||||
Foo[] xs;
|
||||
void m() {
|
||||
xs.length == 0.else<caret>
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
public class Foo {
|
||||
Foo[] xs;
|
||||
void m() {
|
||||
if (xs.length != 0) {
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
public class Foo {
|
||||
void m(boolean x, boolean y, boolean z) {
|
||||
x && y && z.else<caret>
|
||||
value = dummyAssignment;
|
||||
}
|
||||
}
|
||||
+8
@@ -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>
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
public class Foo {
|
||||
void m(Object o) {
|
||||
if (o == null) {
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package templates.
|
||||
|
||||
public class Foo {
|
||||
void m() {
|
||||
x.else<caret>
|
||||
value = dummyAssignment;
|
||||
}
|
||||
}
|
||||
+8
@@ -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>
|
||||
}
|
||||
}
|
||||
+7
@@ -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>
|
||||
}
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
public class Foo {
|
||||
void m() {
|
||||
Byte foo = 100;
|
||||
foo.fori<caret>
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
public class Foo {
|
||||
void m() {
|
||||
Byte foo = 100;
|
||||
for (Byte i = 0; i < foo; i++) {
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
public class Foo {
|
||||
void m() {
|
||||
Integer[] xs = {1, 2, 3};
|
||||
xs.fori<caret>
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
public class Foo {
|
||||
void m() {
|
||||
Integer[] xs = {1, 2, 3};
|
||||
for (int i = 0; i < xs.length; i++) {
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
public class Foo {
|
||||
void m() {
|
||||
Long[] xs = {1, 2, 3};
|
||||
xs.fori<caret>
|
||||
}
|
||||
}
|
||||
+8
@@ -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
Reference in New Issue
Block a user