relevant method chain completion: introduce new field if completion for field initializer is called (EA-103019)

This commit is contained in:
Dmitry Batkovich
2017-06-14 16:53:21 +03:00
parent e8cc55d2c3
commit b1d40b518b
8 changed files with 107 additions and 14 deletions
@@ -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;
}
}
@@ -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;
}
}
@@ -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 {}