java smart completion sorting: split getter kind into 3 kinds with different priority (getter should have a higher priority then any relevant method chain)

This commit is contained in:
Dmitry Batkovich
2017-07-04 11:17:59 +03:00
parent 3a8d9002e4
commit d55416e473
4 changed files with 81 additions and 10 deletions
@@ -0,0 +1,26 @@
class EditorFactory {
static EditorFactory getInstance() {
return null;
}
Editor getEditor() {
return null;
}
}
class Editor {
}
class Main {
void stats() {
Editor e = <caret>
}
Editor getEditor() {
return null;
}
}
@@ -0,0 +1,28 @@
class EditorFactory {
static EditorFactory getInstance() {
return null;
}
Editor getEditor() {
return null;
}
}
class Editor {
}
class Main {
void stats() {
EditorFactory.getInstance().getEditor();
EditorFactory.getInstance().getEditor();
EditorFactory.getInstance().getEditor();
EditorFactory.getInstance().getEditor();
EditorFactory.getInstance().getEditor();
EditorFactory.getInstance().getEditor();
EditorFactory.getInstance().getEditor();
}
}