relevant method chain completion: do not suggest chains qualified with enclosing local variables

This commit is contained in:
Dmitry Batkovich
2017-07-17 16:36:45 +03:00
parent ef9c868677
commit 7b978a1d48
4 changed files with 63 additions and 2 deletions
@@ -0,0 +1,16 @@
public class TestCompletion {
void m() {
PsiElement someVar = get(<caret>);
}
static PsiElement get(Project project) {
return null;
}
}
interface Project {
}
interface PsiElement {
Project getProject();
}
@@ -0,0 +1,18 @@
public class TestIndex {
public void statMethod(PsiElement e) {
e.getProject();
e.getProject();
e.getProject();
e.getProject();
e.getProject();
e.getProject();
e.getProject();
e.getProject();
}
}
interface Project {}
interface PsiElement {
Project getProject();
}