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