mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
relevant method chain completion: introduce new field if completion for field initializer is called (EA-103019)
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
import java.jang.String;
|
||||
|
||||
interface PsiClass {
|
||||
PsiMethod getMethod();
|
||||
}
|
||||
|
||||
interface PsiMethod {}
|
||||
|
||||
public class TestCompletion {
|
||||
|
||||
private static PsiClass psiClass;
|
||||
static Object f = get(psiClass.getMethod());
|
||||
|
||||
static Object get(PsiMethod m) {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
import java.jang.String;
|
||||
|
||||
interface PsiClass {
|
||||
PsiMethod getMethod();
|
||||
}
|
||||
|
||||
interface PsiMethod {}
|
||||
|
||||
public class TestCompletion {
|
||||
|
||||
static Object f = get(<caret>);
|
||||
|
||||
static Object get(PsiMethod m) {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
public class TestIndex {
|
||||
|
||||
Object o;
|
||||
|
||||
public void statMethod(PsiClass c) {
|
||||
c.getMethod();
|
||||
c.getMethod();
|
||||
c.getMethod();
|
||||
c.getMethod();
|
||||
c.getMethod();
|
||||
c.getMethod();
|
||||
c.getMethod();
|
||||
c.getMethod();
|
||||
c.getMethod();
|
||||
c.getMethod();
|
||||
}
|
||||
}
|
||||
|
||||
interface PsiClass {
|
||||
PsiMethod getMethod();
|
||||
}
|
||||
|
||||
interface PsiMethod {}
|
||||
Reference in New Issue
Block a user