mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
selection after methods chains completion and checking parameters in context
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
interface PsiElement {
|
||||
|
||||
}
|
||||
|
||||
interface PsiFile {
|
||||
PsiElement findElementAt(int index);
|
||||
}
|
||||
|
||||
interface VirtualFile {
|
||||
|
||||
}
|
||||
|
||||
class PsiManager {
|
||||
PsiFile findFile(VirtualFile vf) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static PsiManager getInstance() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
interface UnknownParameter {
|
||||
}
|
||||
|
||||
class SomeManager {
|
||||
PsiFile findFile(UnknownParameter parameter) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static SomeManager getInstance() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
class SomeManager1 {
|
||||
PsiFile findFile(UnknownParameter parameter) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static SomeManager1 getInstance() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
class SomeManager2 {
|
||||
PsiFile findFile(UnknownParameter parameter) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static SomeManager2 getInstance() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
class SomeManager3 {
|
||||
PsiFile findFile(UnknownParameter parameter) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static SomeManager3 getInstance() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
class SomeManager4 {
|
||||
PsiFile findFile(UnknownParameter parameter) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static SomeManager4 getInstance() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public class TestCompletion {
|
||||
|
||||
public void method(VirtualFile f) {
|
||||
PsiElement element = <caret>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
public class TestIndex {
|
||||
|
||||
public void m1(VirtualFile f) {
|
||||
PsiManager.getInstance().findFile(f).findElementAt(0);
|
||||
PsiManager.getInstance().findFile(f).findElementAt(0);
|
||||
PsiManager.getInstance().findFile(f).findElementAt(0);
|
||||
PsiManager.getInstance().findFile(f).findElementAt(0);
|
||||
}
|
||||
|
||||
public void m2(UnknownParameter p) {
|
||||
SomeManager1.getInstance().findFile(p).findElementAt(0);
|
||||
SomeManager1.getInstance().findFile(p).findElementAt(0);
|
||||
SomeManager1.getInstance().findFile(p).findElementAt(0);
|
||||
SomeManager1.getInstance().findFile(p).findElementAt(0);
|
||||
|
||||
SomeManager2.getInstance().findFile(p).findElementAt(0);
|
||||
SomeManager2.getInstance().findFile(p).findElementAt(0);
|
||||
SomeManager2.getInstance().findFile(p).findElementAt(0);
|
||||
SomeManager2.getInstance().findFile(p).findElementAt(0);
|
||||
|
||||
SomeManager3.getInstance().findFile(p).findElementAt(0);
|
||||
SomeManager3.getInstance().findFile(p).findElementAt(0);
|
||||
SomeManager3.getInstance().findFile(p).findElementAt(0);
|
||||
SomeManager3.getInstance().findFile(p).findElementAt(0);
|
||||
|
||||
SomeManager4.getInstance().findFile(p).findElementAt(0);
|
||||
SomeManager4.getInstance().findFile(p).findElementAt(0);
|
||||
SomeManager4.getInstance().findFile(p).findElementAt(0);
|
||||
SomeManager4.getInstance().findFile(p).findElementAt(0);
|
||||
}
|
||||
}
|
||||
|
||||
interface PsiElement {
|
||||
|
||||
}
|
||||
|
||||
interface PsiFile {
|
||||
PsiElement findElementAt(int index);
|
||||
}
|
||||
|
||||
interface VirtualFile {
|
||||
|
||||
}
|
||||
|
||||
class PsiManager {
|
||||
PsiFile findFile(VirtualFile vf) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static PsiManager getInstance() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
interface UnknownParameter {
|
||||
}
|
||||
|
||||
class SomeManager {
|
||||
PsiFile findFile(UnknownParameter parameter) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static SomeManager getInstance() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
class SomeManager1 {
|
||||
PsiFile findFile(UnknownParameter parameter) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static SomeManager1 getInstance() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
class SomeManager2 {
|
||||
PsiFile findFile(UnknownParameter parameter) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static SomeManager2 getInstance() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
class SomeManager3 {
|
||||
PsiFile findFile(UnknownParameter parameter) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static SomeManager3 getInstance() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
class SomeManager4 {
|
||||
PsiFile findFile(UnknownParameter parameter) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static SomeManager4 getInstance() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user