Performance optimization in completion: do not analyze all extensions available from imports - use index

This commit is contained in:
Valentin Kipyatkov
2015-10-28 16:47:13 +03:00
parent 9f9217b9c3
commit be5569d31a
5 changed files with 102 additions and 60 deletions
@@ -304,7 +304,7 @@ class ReferenceVariantsHelper(
if (kindFilter.excludes.contains(DescriptorKindExclude.Extensions)) return
fun process(extension: CallableDescriptor) {
if (nameFilter(extension.name) && kindFilter.accepts(extension)) {
if (kindFilter.accepts(extension) && nameFilter(extension.name)) {
addAll(extension.substituteExtensionIfCallable(receiverTypes, callType))
}
}