method chain completion: suggest chains for collection of elements

This commit is contained in:
Dmitry Batkovich
2017-04-20 18:46:21 +03:00
parent e3fbc7dd42
commit af57b8414a
6 changed files with 62 additions and 12 deletions
@@ -0,0 +1,18 @@
import java.jang.String;
import java.util.*;
class PsiMethod {
}
interface PsiClass {
List<PsiMethod> getMethods();
}
public class TestCompletion {
PsiClass c;
public void method() {
Collection<PsiMethod> m = <caret>
}
}
@@ -0,0 +1,23 @@
import java.util.*;
public class TestIndex {
public void statMethod(PsiClass c) {
c.getMethods();
c.getMethods();
c.getMethods();
c.getMethods();
c.getMethods();
c.getMethods();
c.getMethods();
c.getMethods();
}
}
class PsiMethod {
}
interface PsiClass {
Collection<PsiMethod> getMethods();
}