mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[devkit] improve performance a little in ContentModuleVisibilityInspection (IJPL-209927)
GitOrigin-RevId: fe4719ff7ba06fdeb38baff8e933c9aa67c62b42
This commit is contained in:
committed by
intellij-monorepo-bot
parent
acb879ca86
commit
8ab60bc079
@@ -34,7 +34,7 @@ import org.jetbrains.idea.devkit.util.DescriptorUtil
|
||||
|
||||
internal class ContentModuleVisibilityInspection : DevKitPluginXmlInspectionBase() {
|
||||
|
||||
private val rootPluginNames = IntelliJPlatformProduct.entries.map { "${it.platformPrefix}Plugin.xml" }
|
||||
private val rootPluginNames by lazy { IntelliJPlatformProduct.entries.mapTo(HashSet()) { "${it.platformPrefix}Plugin.xml" } }
|
||||
|
||||
override fun checkDomElement(element: DomElement, holder: DomElementAnnotationHolder, helper: DomHighlightingHelper) {
|
||||
val dependencyModule = element as? DependencyDescriptor.ModuleDescriptor ?: return
|
||||
|
||||
Reference in New Issue
Block a user