mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
[kotlin] KTIJ-36371 Return the SimplifiableCallChainInspection back
GitOrigin-RevId: 47cc5bd6d2d2ad90b6891f2c738214d1681672db
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ef66a1399e
commit
2044713648
+17
@@ -0,0 +1,17 @@
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package org.jetbrains.kotlin.idea.k2.codeinsight.inspections
|
||||
|
||||
import org.jetbrains.kotlin.idea.base.resources.KotlinBundle
|
||||
import org.jetbrains.kotlin.idea.codeinsights.impl.base.quickFix.CallChainConversion
|
||||
import org.jetbrains.kotlin.idea.codeinsights.impl.base.quickFix.CallChainConversions
|
||||
import org.jetbrains.kotlin.idea.codeinsights.impl.base.quickFix.ConversionId
|
||||
import org.jetbrains.kotlin.psi.KtQualifiedExpression
|
||||
|
||||
internal class SimplifiableCallChainInspection : AbstractSimplifiableCallChainInspection() {
|
||||
override fun getProblemDescription(element: KtQualifiedExpression, context: CallChainConversion): String {
|
||||
return KotlinBundle.message("call.chain.on.collection.type.may.be.simplified")
|
||||
}
|
||||
|
||||
override val potentialConversions: Map<ConversionId, List<CallChainConversion>>
|
||||
get() = CallChainConversions.conversionGroups
|
||||
}
|
||||
Reference in New Issue
Block a user