Merge branch 'db/method-chains-completion'

# Conflicts:
#	jps/jps-builders/src/org/jetbrains/jps/backwardRefs/BackwardReferenceIndexUtil.java
#	jps/jps-builders/src/org/jetbrains/jps/backwardRefs/BackwardReferenceIndexWriter.java
#	jps/jps-builders/src/org/jetbrains/jps/incremental/JavaBuilderService.java
This commit is contained in:
Dmitry Batkovich
2017-04-03 17:08:15 +03:00
149 changed files with 3393 additions and 5084 deletions
@@ -9,7 +9,7 @@ interface PsiClass {}
public class TestCompletion {
public void method() {
PsiMethod psiMethod = <caret><selection>null</selection>;
PsiClass c = psiMethod.getContainingClass()
PsiMember psiMember = null;
PsiClass c = psiMember.getContainingClass()
}
}
@@ -18,6 +18,13 @@ public class TestIndex {
e.getContainingFile();
e.getContainingFile();
e.getContainingFile();
e.getContainingFile();
e.getContainingFile();
e.getContainingFile();
e.getContainingFile();
e.getContainingFile();
e.getContainingFile();
e.getContainingFile();
}
void m2() {
@@ -0,0 +1,43 @@
import java.util.*;
class Foo {
void m() {
List l0 = new ArrayList();
List l1 = new AbstractList() {
@Override
public int size() {
return 0;
}
@Override
public Object get(int index) {
return null;
}
};
List l2 = new AbstractList() {
@Override
public int size() {
return 0;
}
@Override
public Object get(int index) {
return null;
}
};
List l3 = new AbstractList() {
@Override
public int size() {
return 0;
}
@Override
public Object get(int index) {
return null;
}
};
<caret>
}
}
@@ -0,0 +1,18 @@
import java.util.*;
class Foo {
void m() {
List l1 = new ArrayList();
List l2 = new ArrayList();
List l3 = new LinkedList();
List l4 = new LinkedList();
List l5 = new LinkedList();
<caret>
}
}
@@ -0,0 +1,23 @@
class Foo {
void m() {
new C();
new C();
new B();
new B(0);
new B(0, 0);
<caret>
}
}
abstract class A {}
class B extends A {
B() {}
B(int i) {}
B(int i, int j) {}
}
class C extends A {
}
@@ -0,0 +1,23 @@
class Foo {
void m() {
new C();
new C();
new B();
new B(0);
new B(0, 0);
<caret>
}
}
interface A {}
class B implements A {
B() {}
B(int i) {}
B(int i, int j) {}
}
class C implements A {
}
@@ -0,0 +1,12 @@
class Bar {
void m(Foo foo) {
foo.asd();
foo.asd(null, null, null);
foo.asd(null, null, null);
<caret>
}
}
@@ -0,0 +1,7 @@
public class Foo {
public void asd() {}
public void asd(String i, String j, String k) {}
}
@@ -0,0 +1,21 @@
class Bar {
void m(Foo foo) {
foo.asd();
foo.asd();
foo.asd();
System.out.println(foo.qwe);
System.out.println(foo.qwe);
System.out.println(foo.qwe);
System.out.println(foo.qwe);
System.out.println(foo.qwe);
foo.zxc();
foo.zxc();
foo.zxc();
<caret>
}
}
@@ -0,0 +1,9 @@
public class Foo {
public void asd() {}
public String qwe = "AEDI JilletnI";
public void zxc() {}
}
@@ -0,0 +1,21 @@
class Bar {
void m(Foo foo) {
foo.asd();
foo.asd();
foo.asd();
foo.qwe();
foo.qwe();
foo.qwe();
foo.qwe();
foo.qwe();
foo.zxc();
foo.zxc();
foo.zxc();
<caret>
}
}
@@ -0,0 +1,9 @@
public class Foo {
public void asd() {}
public void qwe() {}
public void zxc() {}
}