Reformat PluginDeclarationProviderFactory
This commit is contained in:
+4
-5
@@ -101,7 +101,8 @@ class PluginDeclarationProviderFactory(
|
||||
val packageExists = PackageIndexUtil.packageExists(fqName, indexedFilesScope, project)
|
||||
val spiPackageExists = subpackagesIndex.packageExists(fqName)
|
||||
val oldPackageExists = oldPackageExists(fqName)
|
||||
val cachedPackageExists = moduleSourceInfo?.let { ServiceManager.getService(project, PerModulePackageCacheService::class.java).packageExists(fqName, it) }
|
||||
val cachedPackageExists =
|
||||
moduleSourceInfo?.let { ServiceManager.getService(project, PerModulePackageCacheService::class.java).packageExists(fqName, it) }
|
||||
val moduleModificationCount = moduleSourceInfo?.createModificationTracker()?.modificationCount
|
||||
|
||||
val common = """
|
||||
@@ -124,8 +125,7 @@ class PluginDeclarationProviderFactory(
|
||||
|$common,
|
||||
|packageFqNameByTree = '${file.packageFqNameByTree}', packageDirectiveText = '${file.packageDirective?.text}'
|
||||
""".trimMargin()
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
"""
|
||||
|Cannot find package fragment '$fqName' for unspecified file:
|
||||
|nonIndexedFiles = $nonIndexedFiles,
|
||||
@@ -163,8 +163,7 @@ class PluginDeclarationProviderFactory(
|
||||
false
|
||||
}
|
||||
result
|
||||
}
|
||||
catch (e: Throwable) {
|
||||
} catch (e: Throwable) {
|
||||
null
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user