Collect nested classes from all 4 builtin packages.

This commit is contained in:
Ilya Gorbunov
2015-12-23 23:58:53 +03:00
parent e500e4bdf4
commit 1129cee0ff
3 changed files with 18 additions and 8 deletions
@@ -44,9 +44,11 @@ class AllClassesCompletion(private val parameters: CompletionParameters,
//TODO: this is a temporary solution until we have built-ins in indices
// we need only nested classes because top-level built-ins are all added through default imports
collectClassesFromScope(resolutionFacade.moduleDescriptor.builtIns.builtInsPackageScope) {
if (it.containingDeclaration is ClassDescriptor) {
classDescriptorCollector(it)
for (builtinPackage in resolutionFacade.moduleDescriptor.builtIns.builtinsPackageFragments) {
collectClassesFromScope(builtinPackage.getMemberScope()) {
if (it.containingDeclaration is ClassDescriptor) {
classDescriptorCollector(it)
}
}
}