mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
smart primitive constant completion to work in binary expressions like |
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
class Foo {
|
||||
public static final int FOO_FOO;
|
||||
public static final int FOO_BAR;
|
||||
|
||||
Foo(int a) {}
|
||||
|
||||
void foo(int x);
|
||||
}
|
||||
|
||||
public class Bar {
|
||||
|
||||
{
|
||||
new Foo(2 | Foo.FOO_BAR<caret>)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
class Foo {
|
||||
public static final int FOO_FOO;
|
||||
public static final int FOO_BAR;
|
||||
|
||||
Foo(int a) {}
|
||||
|
||||
void foo(int x);
|
||||
}
|
||||
|
||||
public class Bar {
|
||||
|
||||
{
|
||||
new Foo(2 | FB<caret>)
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
class Foo {
|
||||
public static final int FOO_FOO;
|
||||
public static final int FOO_BAR;
|
||||
|
||||
Foo(int a) {}
|
||||
|
||||
void foo(int x);
|
||||
}
|
||||
|
||||
public class Bar {
|
||||
|
||||
{
|
||||
new Foo(2 + Foo.FOO_BAR<caret>)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
class Foo {
|
||||
public static final int FOO_FOO;
|
||||
public static final int FOO_BAR;
|
||||
|
||||
Foo(int a) {}
|
||||
|
||||
void foo(int x);
|
||||
}
|
||||
|
||||
public class Bar {
|
||||
|
||||
{
|
||||
new Foo(2 + FB<caret>)
|
||||
}
|
||||
}
|
||||
+2
@@ -636,6 +636,8 @@ public class SmartTypeCompletionTest extends LightCompletionTestCase {
|
||||
public void testUseIntConstantsFromTargetClass() throws Throwable { doTest(); }
|
||||
public void testUseIntConstantsFromTargetClassReturnValue() throws Throwable { doTest(); }
|
||||
public void testUseIntConstantsFromConstructedClass() throws Throwable { doTest(); }
|
||||
public void testUseIntConstantsInPlus() throws Throwable { doTest(); }
|
||||
public void testUseIntConstantsInOr() throws Throwable { doTest(); }
|
||||
|
||||
public void testExtraSemicolonAfterMethodParam() throws Throwable {
|
||||
CodeStyleSettings styleSettings = CodeStyleSettingsManager.getSettings(getProject());
|
||||
|
||||
Reference in New Issue
Block a user