Reformat PluginDeclarationProviderFactory

This commit is contained in:
Simon Ogorodnik
2019-04-02 15:46:38 +03:00
parent f3268c99df
commit dc84e8fce5
@@ -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
}