Add action for collection basic information about Kotlin project (KT-11242)

#KT-11242 Fixed
This commit is contained in:
Nikolay Krasko
2019-03-15 12:24:11 +03:00
parent 3465a30201
commit f1a31652b3
4 changed files with 134 additions and 8 deletions
@@ -285,14 +285,6 @@ fun hasKotlinCommonRuntimeInScope(scope: GlobalSearchScope): Boolean {
return IDEVirtualFileFinder(scope).hasMetadataPackage(KotlinBuiltIns.BUILT_INS_PACKAGE_FQ_NAME)
}
fun hasKotlinFilesOnlyInTests(module: Module): Boolean {
return !hasKotlinFilesInSources(module) && FileTypeIndex.containsFileOfType(KotlinFileType.INSTANCE, module.getModuleScope(true))
}
fun hasKotlinFilesInSources(module: Module): Boolean {
return FileTypeIndex.containsFileOfType(KotlinFileType.INSTANCE, module.getModuleScope(false))
}
class LibraryKindSearchScope(
val module: Module,
val baseScope: GlobalSearchScope,