scopeUtils: support CustomizedScriptModuleInfo info in completion

This commit is contained in:
Pavel V. Talanov
2016-04-07 16:45:07 +03:00
committed by Ilya Chernikov
parent 834bb51643
commit 34f8e9303f
@@ -32,6 +32,7 @@ fun getResolveScope(file: KtFile): GlobalSearchScope {
return when (file.getModuleInfo()) {
is ModuleSourceInfo -> KotlinSourceFilterScope.sourceAndClassFiles(file.resolveScope, file.project)
is CustomizedScriptModuleInfo -> file.getModuleInfo().contentScope()
else -> GlobalSearchScope.EMPTY_SCOPE
}
}