mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
method chains completion
This commit is contained in:
+36
@@ -0,0 +1,36 @@
|
||||
import java.jang.String;
|
||||
|
||||
/**
|
||||
* @author Dmitry Batkovich <dmitry.batkovich@jetbrains.com>
|
||||
*/
|
||||
|
||||
|
||||
|
||||
interface PsiFile extends PsiElement {
|
||||
}
|
||||
|
||||
interface PsiElement {
|
||||
PsiElement findElementAt(int position);
|
||||
}
|
||||
|
||||
class PsiManager {
|
||||
static PsiManager getInstance(Project p) {
|
||||
return null;
|
||||
}
|
||||
|
||||
PsiFile findFile(VirtualFile vf) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
interface VirtualFile {}
|
||||
|
||||
interface Project {}
|
||||
|
||||
|
||||
public class TestCompletion {
|
||||
|
||||
public void method() {
|
||||
PsiElement e = <caret>
|
||||
}
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* @author Dmitry Batkovich <dmitry.batkovich@jetbrains.com>
|
||||
*/
|
||||
public class TestIndex {
|
||||
PsiElement e;
|
||||
|
||||
public void statMethod() {
|
||||
e = PsiManager.getInstance(null).findFile(null).findElementAt(0);
|
||||
e = PsiManager.getInstance(null).findFile(null).findElementAt(0);
|
||||
e = PsiManager.getInstance(null).findFile(null).findElementAt(0);
|
||||
e = PsiManager.getInstance(null).findFile(null).findElementAt(0);
|
||||
e = PsiManager.getInstance(null).findFile(null).findElementAt(0);
|
||||
e = PsiManager.getInstance(null).findFile(null).findElementAt(0);
|
||||
e = PsiManager.getInstance(null).findFile(null).findElementAt(0);
|
||||
e = PsiManager.getInstance(null).findFile(null).findElementAt(0);
|
||||
}
|
||||
}
|
||||
|
||||
interface PsiFile extends PsiElement {
|
||||
}
|
||||
|
||||
interface PsiElement {
|
||||
PsiElement findElementAt(int position);
|
||||
}
|
||||
|
||||
class PsiManager {
|
||||
static PsiManager getInstance(Project p) {
|
||||
return null;
|
||||
}
|
||||
|
||||
PsiFile findFile(VirtualFile vf) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
interface VirtualFile {}
|
||||
|
||||
interface Project {}
|
||||
Reference in New Issue
Block a user