Smart completion: refactored all code into a class to avoid passing the same data into many functions
This commit is contained in:
@@ -143,8 +143,8 @@ class CompletionSession {
|
|||||||
return isVisibleDescriptor(descriptor);
|
return isVisibleDescriptor(descriptor);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Collection<LookupElement> elements = CompletionPackage.buildSmartCompletionData(
|
SmartCompletion completion = new SmartCompletion(jetReference.getExpression(), getResolveSession(), visibilityFilter);
|
||||||
jetReference.getExpression(), getResolveSession(), descriptors, visibilityFilter);
|
Collection<LookupElement> elements = completion.buildLookupElements(descriptors);
|
||||||
if (elements != null) {
|
if (elements != null) {
|
||||||
for (LookupElement element : elements) {
|
for (LookupElement element : elements) {
|
||||||
jetResult.addElement(element);
|
jetResult.addElement(element);
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user