mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
method chains completion
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* @author Dmitry Batkovich <dmitry.batkovich@jetbrains.com>
|
||||
*/
|
||||
|
||||
class LocalFileSystem {
|
||||
public LocalFileSystem returnSelf() {
|
||||
return this;
|
||||
}
|
||||
|
||||
public static LocalFileSystem getInstance() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public class TestCompletion {
|
||||
public void method(LocalFileSystem lfs) {
|
||||
LocalFileSystem anotherLfs = <caret>
|
||||
}
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* @author Dmitry Batkovich <dmitry.batkovich@jetbrains.com>
|
||||
*/
|
||||
public class TestIndex {
|
||||
|
||||
public void statMethod(LocalFileSystemAware lfsa) {
|
||||
lfsa.returnLFS();
|
||||
lfsa.returnLFS();
|
||||
lfsa.returnLFS();
|
||||
lfsa.returnLFS();
|
||||
LocalFileSystem.getInstance();
|
||||
LocalFileSystem.getInstance();
|
||||
}
|
||||
}
|
||||
|
||||
class LocalFileSystem {
|
||||
public static LocalFileSystem getInstance() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
class LocalFileSystemAware {
|
||||
public LocalFileSystem returnLFS() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user