mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
move postfix templates to java-impl
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(boolean b, int value) {
|
||||
b.if<caret>
|
||||
value = 123;
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(boolean b, int value) {
|
||||
if (b) {
|
||||
<caret>
|
||||
}
|
||||
value = 123;
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
public class Foo {
|
||||
void m(Boolean x) {
|
||||
x.if<caret>
|
||||
return;
|
||||
}
|
||||
}
|
||||
+8
@@ -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>
|
||||
}
|
||||
}
|
||||
+10
@@ -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;
|
||||
}
|
||||
}
|
||||
+12
@@ -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;
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(Object o) {
|
||||
if (o instanceof String) {
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(boolean[] xs) {
|
||||
xs.length > 0.if<caret>
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(boolean[] xs) {
|
||||
if (xs.length > 0) {
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m() {
|
||||
bar().if<caret>
|
||||
}
|
||||
|
||||
boolean bar() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m() {
|
||||
if (bar()) {
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
|
||||
boolean bar() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(String b, int value) {
|
||||
b.if<caret>
|
||||
value = 123;
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(String b, int value) {
|
||||
b.if <caret>
|
||||
value = 123;
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(String s) {
|
||||
s.isEmpty() || s.contains("asas").if<caret>
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(String s) {
|
||||
if (s.isEmpty() || s.contains("asas")) {
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(int value) {
|
||||
b.if<caret>
|
||||
value = 123;
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(int value) {
|
||||
b.if <caret>
|
||||
value = 123;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user