diff --git a/plugins/kotlin/code-insight/fixes-k2/src/org/jetbrains/kotlin/idea/k2/codeinsight/fixes/AddDataModifierFixFactory.kt b/plugins/kotlin/code-insight/fixes-k2/src/org/jetbrains/kotlin/idea/k2/codeinsight/fixes/AddDataModifierFixFactory.kt index df017b18f56e..aaf2bbd3253b 100644 --- a/plugins/kotlin/code-insight/fixes-k2/src/org/jetbrains/kotlin/idea/k2/codeinsight/fixes/AddDataModifierFixFactory.kt +++ b/plugins/kotlin/code-insight/fixes-k2/src/org/jetbrains/kotlin/idea/k2/codeinsight/fixes/AddDataModifierFixFactory.kt @@ -3,17 +3,18 @@ package org.jetbrains.kotlin.idea.k2.codeinsight.fixes import com.intellij.modcommand.ActionContext import com.intellij.modcommand.ModPsiUpdater +import com.intellij.psi.PsiElement +import org.jetbrains.annotations.ApiStatus import org.jetbrains.kotlin.analysis.api.KaExperimentalApi import org.jetbrains.kotlin.analysis.api.KaSession import org.jetbrains.kotlin.analysis.api.fir.diagnostics.KaFirDiagnostic import org.jetbrains.kotlin.analysis.api.resolution.KaCallableMemberCall import org.jetbrains.kotlin.analysis.api.resolution.successfulCallOrNull import org.jetbrains.kotlin.analysis.api.resolution.symbol -import org.jetbrains.kotlin.analysis.api.symbols.KaNamedClassOrObjectSymbol +import org.jetbrains.kotlin.analysis.api.symbols.KaDeclarationSymbol +import org.jetbrains.kotlin.analysis.api.symbols.KaNamedClassSymbol import org.jetbrains.kotlin.analysis.api.symbols.KaSymbolModality -import org.jetbrains.kotlin.analysis.api.symbols.markers.KaSymbolWithVisibility import org.jetbrains.kotlin.analysis.api.types.KaClassType -import org.jetbrains.kotlin.descriptors.Modality import org.jetbrains.kotlin.idea.base.resources.KotlinBundle import org.jetbrains.kotlin.idea.codeinsight.api.applicable.intentions.KotlinPsiUpdateModCommandAction import org.jetbrains.kotlin.idea.codeinsight.api.applicators.fixes.KotlinQuickFixFactory @@ -25,7 +26,7 @@ internal object AddDataModifierFixFactory { val element = diagnostic.psi as? KtExpression ?: return@ModCommandBased emptyList() val callableSymbol = if (element is KtParameter && element.firstChild is KtDestructuringDeclaration) { - (element as? KtParameter)?.getParameterSymbol() + element.symbol } else { element.resolveToCall()?.successfulCallOrNull>()?.symbol } @@ -33,7 +34,7 @@ internal object AddDataModifierFixFactory { val type = (callableSymbol?.returnType as? KaClassType)?.typeArguments?.firstOrNull()?.type ?: callableSymbol?.returnType - val classSymbol = (type as? KaClassType)?.symbol as? KaNamedClassOrObjectSymbol + val classSymbol = (type as? KaClassType)?.symbol as? KaNamedClassSymbol ?: return@ModCommandBased emptyList() val modality = classSymbol.modality @@ -79,8 +80,9 @@ internal object AddDataModifierFixFactory { } context(KaSession) +@ApiStatus.Internal @OptIn(KaExperimentalApi::class) -private fun KaSymbolWithVisibility.isVisible(position: KtElement): Boolean { - val file = position.containingKtFile.getFileSymbol() +fun KaDeclarationSymbol.isVisible(position: PsiElement): Boolean { + val file = (position.containingFile as? KtFile)?.symbol ?: return false return isVisible(this, file, position = position) } \ No newline at end of file diff --git a/plugins/kotlin/code-insight/fixes-k2/src/org/jetbrains/kotlin/idea/k2/codeinsight/fixes/ChangeVisibilityFixFactories.kt b/plugins/kotlin/code-insight/fixes-k2/src/org/jetbrains/kotlin/idea/k2/codeinsight/fixes/ChangeVisibilityFixFactories.kt index 02eb4ad16ade..9ca9541b4613 100644 --- a/plugins/kotlin/code-insight/fixes-k2/src/org/jetbrains/kotlin/idea/k2/codeinsight/fixes/ChangeVisibilityFixFactories.kt +++ b/plugins/kotlin/code-insight/fixes-k2/src/org/jetbrains/kotlin/idea/k2/codeinsight/fixes/ChangeVisibilityFixFactories.kt @@ -1,24 +1,58 @@ // Copyright 2000-2024 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.fixes +import com.intellij.codeInsight.intention.HighPriorityAction import com.intellij.modcommand.ActionContext import com.intellij.modcommand.ModPsiUpdater import com.intellij.modcommand.Presentation +import com.intellij.psi.PsiElement +import com.intellij.psi.util.parentOfTypes +import com.intellij.util.containers.addIfNotNull import org.jetbrains.kotlin.analysis.api.KaSession +import org.jetbrains.kotlin.analysis.api.analyze import org.jetbrains.kotlin.analysis.api.fir.diagnostics.KaFirDiagnostic +import org.jetbrains.kotlin.analysis.api.symbols.KaClassSymbol +import org.jetbrains.kotlin.analysis.api.symbols.KaDeclarationSymbol +import org.jetbrains.kotlin.analysis.api.symbols.KaNamedClassSymbol +import org.jetbrains.kotlin.analysis.api.symbols.KaSymbol +import org.jetbrains.kotlin.analysis.api.symbols.markers.KaNamedSymbol +import org.jetbrains.kotlin.analysis.api.symbols.name +import org.jetbrains.kotlin.analysis.api.types.symbol +import org.jetbrains.kotlin.descriptors.EffectiveVisibility +import org.jetbrains.kotlin.descriptors.Visibilities +import org.jetbrains.kotlin.descriptors.Visibility import org.jetbrains.kotlin.idea.base.resources.KotlinBundle +import org.jetbrains.kotlin.idea.base.util.module import org.jetbrains.kotlin.idea.codeinsight.api.applicable.intentions.KotlinPsiUpdateModCommandAction import org.jetbrains.kotlin.idea.codeinsight.api.applicators.fixes.KotlinQuickFixFactory +import org.jetbrains.kotlin.idea.codeinsight.utils.canBeInternal +import org.jetbrains.kotlin.idea.codeinsight.utils.canBePrivate +import org.jetbrains.kotlin.idea.codeinsight.utils.canBeProtected +import org.jetbrains.kotlin.idea.codeinsight.utils.canBePublic import org.jetbrains.kotlin.idea.codeinsight.utils.isRedundantSetter import org.jetbrains.kotlin.idea.codeinsight.utils.removeRedundantSetter +import org.jetbrains.kotlin.idea.codeinsight.utils.toVisibility import org.jetbrains.kotlin.lexer.KtModifierKeywordToken import org.jetbrains.kotlin.lexer.KtTokens import org.jetbrains.kotlin.name.SpecialNames +import org.jetbrains.kotlin.name.StandardClassIds +import org.jetbrains.kotlin.psi.KtCallableDeclaration import org.jetbrains.kotlin.psi.KtConstructor import org.jetbrains.kotlin.psi.KtDeclaration +import org.jetbrains.kotlin.psi.KtElement +import org.jetbrains.kotlin.psi.KtExpression import org.jetbrains.kotlin.psi.KtNamedDeclaration +import org.jetbrains.kotlin.psi.KtNamedFunction +import org.jetbrains.kotlin.psi.KtParameter +import org.jetbrains.kotlin.psi.KtPrimaryConstructor +import org.jetbrains.kotlin.psi.KtProperty import org.jetbrains.kotlin.psi.KtPropertyAccessor +import org.jetbrains.kotlin.psi.KtTypeParameter +import org.jetbrains.kotlin.psi.psiUtil.containingClass +import org.jetbrains.kotlin.psi.psiUtil.isPrivate +import org.jetbrains.kotlin.psi.psiUtil.parentsWithSelf import org.jetbrains.kotlin.psi.psiUtil.visibilityModifierType +import org.jetbrains.kotlin.utils.addToStdlib.safeAs object ChangeVisibilityFixFactories { @@ -26,7 +60,7 @@ object ChangeVisibilityFixFactories { val elementName: String, ) - private class ChangeVisibilityModCommandAction( + private open class ChangeVisibilityModCommandAction( element: KtDeclaration, elementContext: ElementContext, private val forceUsingExplicitModifier: Boolean, @@ -73,6 +107,18 @@ object ChangeVisibilityFixFactories { } } + private class ChangeToPrivateModCommandAction(element: KtDeclaration, elementName: String): + ChangeVisibilityModCommandAction(element, ElementContext(elementName), false, KtTokens.PRIVATE_KEYWORD), HighPriorityAction + + private class ChangeToInternalModCommandAction(element: KtDeclaration, elementName: String): + ChangeVisibilityModCommandAction(element, ElementContext(elementName), false, KtTokens.INTERNAL_KEYWORD) + + private class ChangeToProtectedModCommandAction(element: KtDeclaration, elementName: String): + ChangeVisibilityModCommandAction(element, ElementContext(elementName), false, KtTokens.PROTECTED_KEYWORD) + + private class ChangeToPublicModCommandAction(element: KtDeclaration, elementName: String, forceUsingExplicitModifier: Boolean = true): + ChangeVisibilityModCommandAction(element, ElementContext(elementName), forceUsingExplicitModifier, KtTokens.PUBLIC_KEYWORD), HighPriorityAction + val noExplicitVisibilityInApiMode = KotlinQuickFixFactory.ModCommandBased { diagnostic: KaFirDiagnostic.NoExplicitVisibilityInApiMode -> createFixForNoExplicitVisibilityInApiMode(diagnostic.psi) @@ -83,6 +129,88 @@ object ChangeVisibilityFixFactories { createFixForNoExplicitVisibilityInApiMode(diagnostic.psi) } + val exposedTypealiasExpandedType = + KotlinQuickFixFactory.ModCommandBased { diagnostic: KaFirDiagnostic.ExposedTypealiasExpandedType -> + createChangeVisibilityFixOnExposure(diagnostic.psi, diagnostic.elementVisibility, diagnostic.restrictingDeclaration, diagnostic.restrictingVisibility) + } + + val exposedFunctionReturnType = + KotlinQuickFixFactory.ModCommandBased { diagnostic: KaFirDiagnostic.ExposedFunctionReturnType -> + createChangeVisibilityFixOnExposure(diagnostic.psi, diagnostic.elementVisibility, diagnostic.restrictingDeclaration, diagnostic.restrictingVisibility) + } + + val exposedReceiverType = + KotlinQuickFixFactory.ModCommandBased { diagnostic: KaFirDiagnostic.ExposedReceiverType -> + createChangeVisibilityFixOnExposure(diagnostic.psi, diagnostic.elementVisibility, diagnostic.restrictingDeclaration, diagnostic.restrictingVisibility) + } + + val exposedPropertyType = + KotlinQuickFixFactory.ModCommandBased { diagnostic: KaFirDiagnostic.ExposedPropertyType -> + createChangeVisibilityFixOnExposure(diagnostic.psi, diagnostic.elementVisibility, diagnostic.restrictingDeclaration, diagnostic.restrictingVisibility) + } + + val exposedPropertyTypeInConstructorError = + KotlinQuickFixFactory.ModCommandBased { diagnostic: KaFirDiagnostic.ExposedPropertyTypeInConstructorError -> + createChangeVisibilityFixOnExposure(diagnostic.psi, diagnostic.elementVisibility, diagnostic.restrictingDeclaration, diagnostic.restrictingVisibility) + } + + val exposedPropertyTypeInConstructorWarning = + KotlinQuickFixFactory.ModCommandBased { diagnostic: KaFirDiagnostic.ExposedPropertyTypeInConstructorWarning -> + createChangeVisibilityFixOnExposure(diagnostic.psi, diagnostic.elementVisibility, diagnostic.restrictingDeclaration, diagnostic.restrictingVisibility) + } + + val exposedParameterType = + KotlinQuickFixFactory.ModCommandBased { diagnostic: KaFirDiagnostic.ExposedParameterType -> + createChangeVisibilityFixOnExposure(diagnostic.psi, diagnostic.elementVisibility, diagnostic.restrictingDeclaration, diagnostic.restrictingVisibility) + } + + val exposedSuperInterface = + KotlinQuickFixFactory.ModCommandBased { diagnostic: KaFirDiagnostic.ExposedSuperInterface -> + createChangeVisibilityFixOnExposure(diagnostic.psi, diagnostic.elementVisibility, diagnostic.restrictingDeclaration, diagnostic.restrictingVisibility) + } + + val exposedSuperClass = + KotlinQuickFixFactory.ModCommandBased { diagnostic: KaFirDiagnostic.ExposedSuperClass -> + createChangeVisibilityFixOnExposure(diagnostic.psi, diagnostic.elementVisibility, diagnostic.restrictingDeclaration, diagnostic.restrictingVisibility) + } + + val exposedTypeParameterBound = + KotlinQuickFixFactory.ModCommandBased { diagnostic: KaFirDiagnostic.ExposedTypeParameterBound -> + createChangeVisibilityFixOnExposure(diagnostic.psi, diagnostic.elementVisibility, diagnostic.restrictingDeclaration, diagnostic.restrictingVisibility) + } + + val invisibleReference = + KotlinQuickFixFactory.ModCommandBased { diagnostic: KaFirDiagnostic.InvisibleReference -> + createChangeVisibilityFixOnInvisibleReference(diagnostic.psi, diagnostic.visible, diagnostic.reference) + } + + val invisibleSetter = + KotlinQuickFixFactory.ModCommandBased { diagnostic: KaFirDiagnostic.InvisibleSetter -> + createChangeVisibilityFixOnInvisibleReference(diagnostic.psi, diagnostic.visibility, diagnostic.property, + declaration = (diagnostic.property.psi as? KtProperty)?.setter) + } + + val superCallFromPublicInline = + KotlinQuickFixFactory.ModCommandBased { diagnostic: KaFirDiagnostic.SuperCallFromPublicInline -> + createChangeVisibilityFixOnSuperCallFromPublicInline(diagnostic.psi, diagnostic.symbol) + } + + val nonPublicCallFromPublicInline = + KotlinQuickFixFactory.ModCommandBased { diagnostic: KaFirDiagnostic.NonPublicCallFromPublicInline -> + createChangeVisibilityFixOnProtectedCallFromPublicInlineError( + diagnostic.referencedDeclaration, + diagnostic.inlineDeclaration + ) + } + + val protectedCallFromPublicInlineError = + KotlinQuickFixFactory.ModCommandBased { diagnostic: KaFirDiagnostic.ProtectedCallFromPublicInlineError -> + createChangeVisibilityFixOnProtectedCallFromPublicInlineError( + diagnostic.referencedDeclaration, + diagnostic.inlineDeclaration + ) + } + context(KaSession) private fun createFixForNoExplicitVisibilityInApiMode( element: KtDeclaration, @@ -93,13 +221,196 @@ object ChangeVisibilityFixFactories { else -> null } ?: return emptyList() - return listOf( - ChangeVisibilityModCommandAction( - element = element, - elementContext = ElementContext(elementName), - forceUsingExplicitModifier = true, - visibilityModifier = KtTokens.PUBLIC_KEYWORD, - ) + return listOf(ChangeToPublicModCommandAction(element, elementName)) + } + + context(KaSession) + private fun createChangeVisibilityFixOnSuperCallFromPublicInline( + element: KtElement, + referencedDeclaration: KaSymbol, + ): List { + val declaration = (element as? KtExpression)?.containingDeclaration() ?: return emptyList() + return listOfNotNull( + createFixToTargetVisibility(referencedDeclaration, declaration, Visibilities.Internal), + createFixToTargetVisibility(referencedDeclaration, declaration, Visibilities.Private), ) } -} \ No newline at end of file + + context(KaSession) + private fun createChangeVisibilityFixOnProtectedCallFromPublicInlineError( + referencedSymbol: KaSymbol, + inlineSymbol: KaSymbol + ): List { + val inlineDeclaration = inlineSymbol.psi as? KtDeclaration ?: return emptyList() + val referencedDeclaration = referencedSymbol.psi as? KtDeclaration + return buildList { + if (referencedDeclaration != null) { + addIfNotNull(createFixToTargetVisibility(referencedSymbol, referencedDeclaration, Visibilities.Private)) + addIfNotNull(createFixToTargetVisibility(referencedSymbol, referencedDeclaration, Visibilities.Internal)) + val visibilityModifierType = referencedDeclaration.visibilityModifierType() ?: KtTokens.PUBLIC_KEYWORD + if (inlineDeclaration is KtPropertyAccessor) { + addIfNotNull(createFixToTargetVisibility(inlineSymbol, inlineDeclaration.property, visibilityModifierType.toVisibility())) + } else { + addIfNotNull(createFixToTargetVisibility(inlineSymbol, inlineDeclaration, visibilityModifierType.toVisibility())) + } + if (visibilityModifierType != KtTokens.PUBLIC_KEYWORD) { + addIfNotNull(createFixToTargetVisibility(referencedSymbol, referencedDeclaration, Visibilities.Public)) + } + } + } + } + + private fun KtExpression.containingDeclaration(): KtCallableDeclaration? { + val declaration = parentOfTypes(KtNamedFunction::class, KtProperty::class) + ?.safeAs() + ?.takeIf { it.hasModifier(KtTokens.INLINE_KEYWORD) } + return declaration?.takeIf { it.name != null } + } + + context(KaSession) + private fun createChangeVisibilityFixOnInvisibleReference( + element: PsiElement, + visibility: Visibility, + reference: KaSymbol, + declaration: KtDeclaration? = reference.psi as? KtDeclaration + ): List { + if (declaration == null) return emptyList() + + if (declaration.hasModifier(KtTokens.SEALED_KEYWORD) && reference is KaClassSymbol) return emptyList() + + val targetVisibilities = when (visibility) { + Visibilities.Private, Visibilities.InvisibleFake -> buildList { + this += Visibilities.Public + if (declaration.module == element.module) this += Visibilities.Internal + (element as? KtElement)?.containingClass()?.let { containingClass -> + val protectedAllowed = analyze(containingClass) { + val classId = + (reference as? KaClassSymbol)?.classId ?: ((reference as? KaNamedSymbol)?.containingSymbol as? KaClassSymbol)?.classId ?: return@analyze false + (containingClass.symbol as? KaNamedClassSymbol)?.defaultType?.allSupertypes + ?.mapNotNull { it.symbol?.classId } + ?.filter { it != StandardClassIds.Any } + ?.any { classId == it } == true + } + if (protectedAllowed) this += Visibilities.Protected + } + } + else -> listOf(Visibilities.Public) + } + + return targetVisibilities.mapNotNull { createFixToTargetVisibility(reference, declaration, it) } + } + + context(KaSession) + private fun createChangeVisibilityFixOnExposure( + element: PsiElement, + elementVisibility: EffectiveVisibility, + restrictingSymbol: KaSymbol, + restrictingVisibility: EffectiveVisibility, + ): List { + val exposedVisibility = restrictingVisibility.toVisibility() + val userVisibility = elementVisibility.toVisibility() + val (targetUserVisibility, targetExposedVisibility) = + if (exposedVisibility.compareTo(userVisibility)?.let { it < 0 } == true) { + exposedVisibility to userVisibility + } else { + Visibilities.Private to Visibilities.Public + } + + val userDeclaration = element.parentsWithSelf.firstOrNull { it is KtDeclaration && it !is KtTypeParameter } as? KtDeclaration + val exposedDeclaration = restrictingSymbol.psi + val protectedAllowed = exposedDeclaration?.parent == userDeclaration?.parent + + val modCommandActions = arrayListOf() + + if (userDeclaration != null && !userDeclaration.isPrivate()) { + if ((restrictingSymbol as? KaDeclarationSymbol)?.isVisible(element) == true) { + addFixToTargetVisibility( + symbol = restrictingSymbol, + declaration = userDeclaration, + targetVisibility = targetUserVisibility, + boundVisibility = Visibilities.Private, + protectedAllowed = protectedAllowed, + modCommandActions = modCommandActions, + ) + } + } + + (restrictingSymbol.psi as? KtDeclaration)?.let { + addFixToTargetVisibility( + restrictingSymbol, + declaration = it, + targetVisibility = targetExposedVisibility, + boundVisibility = Visibilities.Public, + protectedAllowed = protectedAllowed, + modCommandActions = modCommandActions, + ) + } + + return modCommandActions + } + + private fun addFixToTargetVisibility( + symbol: KaSymbol, + declaration: KtDeclaration, + targetVisibility: Visibility, + boundVisibility: Visibility, + protectedAllowed: Boolean, + modCommandActions: MutableList + ) { + val possibleVisibilities = when (targetVisibility) { + Visibilities.Protected -> if (protectedAllowed) listOf(boundVisibility, Visibilities.Protected) else listOf(boundVisibility) + Visibilities.Internal -> listOf(boundVisibility, Visibilities.Internal) + boundVisibility -> listOf(boundVisibility) + else -> listOf() + } + + possibleVisibilities.mapNotNullTo(modCommandActions) { + createFixToTargetVisibility(symbol, declaration, it) + } + } + + private fun createFixToTargetVisibility( + symbol: KaSymbol, + declaration: KtDeclaration, + visibility: Visibility + ): ChangeVisibilityModCommandAction? { + val available: Boolean = when (visibility) { + Visibilities.Private -> declaration.canBePrivate() + Visibilities.Internal -> declaration.canBeInternal() + Visibilities.Protected -> declaration.canBeProtected() + Visibilities.Public -> declaration.canBePublic() && declaration.visibilityModifierType() != KtTokens.DEFAULT_VISIBILITY_KEYWORD + else -> false + } + + if (!available) return null + var name = declaration.asDisplayableName(symbol) ?: return null + + return when (visibility) { + Visibilities.Private -> ChangeToPrivateModCommandAction(declaration, name) + Visibilities.Internal -> ChangeToInternalModCommandAction(declaration, name) + Visibilities.Protected -> ChangeToProtectedModCommandAction(declaration, name) + Visibilities.Public -> ChangeToPublicModCommandAction( + declaration, + name, + forceUsingExplicitModifier = (declaration as? KtParameter)?.hasModifier(KtTokens.OVERRIDE_KEYWORD) == true + ) + + else -> null + } + } + + private fun KtDeclaration.asDisplayableName(symbol: KaSymbol): String? { + return when (this) { + is KtPrimaryConstructor -> SpecialNames.INIT.asString() + is KtPropertyAccessor -> symbol.name?.asString()?.let { + when { + isGetter() -> "" + isSetter() -> "" + else -> null + } + } + else -> name + } + } +} + diff --git a/plugins/kotlin/code-insight/fixes-k2/src/org/jetbrains/kotlin/idea/k2/codeinsight/fixes/KotlinK2QuickFixRegistrar.kt b/plugins/kotlin/code-insight/fixes-k2/src/org/jetbrains/kotlin/idea/k2/codeinsight/fixes/KotlinK2QuickFixRegistrar.kt index ed18cc03b812..ece7b9264ecd 100644 --- a/plugins/kotlin/code-insight/fixes-k2/src/org/jetbrains/kotlin/idea/k2/codeinsight/fixes/KotlinK2QuickFixRegistrar.kt +++ b/plugins/kotlin/code-insight/fixes-k2/src/org/jetbrains/kotlin/idea/k2/codeinsight/fixes/KotlinK2QuickFixRegistrar.kt @@ -375,6 +375,21 @@ class KotlinK2QuickFixRegistrar : KotlinQuickFixRegistrar() { registerFactory(ChangeVisibilityFixFactories.noExplicitVisibilityInApiModeWarning) registerFactory(UseInheritedVisibilityFixFactories.cannotChangeAccessPrivilege) registerFactory(UseInheritedVisibilityFixFactories.cannotWeakenAccessPrivilege) + registerFactory(ChangeVisibilityFixFactories.exposedTypealiasExpandedType) + registerFactory(ChangeVisibilityFixFactories.exposedFunctionReturnType) + registerFactory(ChangeVisibilityFixFactories.exposedReceiverType) + registerFactory(ChangeVisibilityFixFactories.exposedPropertyType) + registerFactory(ChangeVisibilityFixFactories.exposedPropertyTypeInConstructorError) + registerFactory(ChangeVisibilityFixFactories.exposedPropertyTypeInConstructorWarning) + registerFactory(ChangeVisibilityFixFactories.exposedParameterType) + registerFactory(ChangeVisibilityFixFactories.exposedSuperInterface) + registerFactory(ChangeVisibilityFixFactories.exposedSuperClass) + registerFactory(ChangeVisibilityFixFactories.exposedTypeParameterBound) + registerFactory(ChangeVisibilityFixFactories.invisibleReference) + registerFactory(ChangeVisibilityFixFactories.invisibleSetter) + registerFactory(ChangeVisibilityFixFactories.superCallFromPublicInline) + registerFactory(ChangeVisibilityFixFactories.protectedCallFromPublicInlineError) + registerFactory(ChangeVisibilityFixFactories.nonPublicCallFromPublicInline) } private val other = KtQuickFixesListBuilder.registerPsiQuickFix { diff --git a/plugins/kotlin/code-insight/fixes-k2/tests/test/org/jetbrains/kotlin/idea/k2/codeinsight/fixes/HighLevelQuickFixTestGenerated.java b/plugins/kotlin/code-insight/fixes-k2/tests/test/org/jetbrains/kotlin/idea/k2/codeinsight/fixes/HighLevelQuickFixTestGenerated.java index 8b4bc3cd7a5e..072fb96dac6e 100644 --- a/plugins/kotlin/code-insight/fixes-k2/tests/test/org/jetbrains/kotlin/idea/k2/codeinsight/fixes/HighLevelQuickFixTestGenerated.java +++ b/plugins/kotlin/code-insight/fixes-k2/tests/test/org/jetbrains/kotlin/idea/k2/codeinsight/fixes/HighLevelQuickFixTestGenerated.java @@ -6448,7 +6448,131 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/callFromPublicInline") + public abstract static class CallFromPublicInline extends AbstractHighLevelQuickFixTest { + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/callFromPublicInline/nonPublic") + public static class NonPublic extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("internalFunction.kt") + public void testInternalFunction() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction.kt"); + } + + @TestMetadata("internalFunction2.kt") + public void testInternalFunction2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction2.kt"); + } + + @TestMetadata("internalFunction3.kt") + public void testInternalFunction3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction3.kt"); + } + + @TestMetadata("privateProperty.kt") + public void testPrivateProperty() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty.kt"); + } + + @TestMetadata("privateProperty2.kt") + public void testPrivateProperty2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty2.kt"); + } + + @TestMetadata("privateProperty3.kt") + public void testPrivateProperty3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty3.kt"); + } + + @TestMetadata("reifiedTypeParameter.kt") + public void testReifiedTypeParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/nonPublic/reifiedTypeParameter.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/callFromPublicInline/protected") + public static class Protected extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("infix.kt") + public void testInfix() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/protected/infix.kt"); + } + + @TestMetadata("protectedFunction.kt") + public void testProtectedFunction() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction.kt"); + } + + @TestMetadata("protectedFunction2.kt") + public void testProtectedFunction2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction2.kt"); + } + + @TestMetadata("protectedFunction3.kt") + public void testProtectedFunction3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction3.kt"); + } + + @TestMetadata("reifiedTypeParameter.kt") + public void testReifiedTypeParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/protected/reifiedTypeParameter.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/callFromPublicInline/super") + public static class Super extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("reifiedTypeParameter.kt") + public void testReifiedTypeParameter() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/super/reifiedTypeParameter.kt"); + } + + @TestMetadata("superFunction.kt") + public void testSuperFunction() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/super/superFunction.kt"); + } + + @TestMetadata("superFunction2.kt") + public void testSuperFunction2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/super/superFunction2.kt"); + } + + @TestMetadata("superFunction3.kt") + public void testSuperFunction3() throws Exception { + runTest("../../../idea/tests/testData/quickfix/callFromPublicInline/super/superFunction3.kt"); + } + } + } @@ -6720,7 +6844,89 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/decreaseVisibility") + public static class DecreaseVisibility extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("exposedParameterType.kt") + public void testExposedParameterType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedParameterType.kt"); + } + + @TestMetadata("exposedPropertyType.kt") + public void testExposedPropertyType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedPropertyType.kt"); + } + + @TestMetadata("exposedReceiverType.kt") + public void testExposedReceiverType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedReceiverType.kt"); + } + + @TestMetadata("exposedReceiverTypeInternal.kt") + public void testExposedReceiverTypeInternal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedReceiverTypeInternal.kt"); + } + + @TestMetadata("exposedReceiverTypePrivate.kt") + public void testExposedReceiverTypePrivate() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedReceiverTypePrivate.kt"); + } + + @TestMetadata("exposedReturnType.kt") + public void testExposedReturnType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedReturnType.kt"); + } + + @TestMetadata("exposedSuperClass.kt") + public void testExposedSuperClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClass.kt"); + } + + @TestMetadata("exposedSuperClassProtectedBase.kt") + public void testExposedSuperClassProtectedBase() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedBase.kt"); + } + + @TestMetadata("exposedSuperClassProtectedInAnother.kt") + public void testExposedSuperClassProtectedInAnother() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedInAnother.kt"); + } + + @TestMetadata("exposedSuperInterface.kt") + public void testExposedSuperInterface() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterface.kt"); + } + + @TestMetadata("exposedSuperInterfacePrivate.kt") + public void testExposedSuperInterfacePrivate() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterfacePrivate.kt"); + } + + @TestMetadata("exposedTypeInAnnotation.kt") + public void testExposedTypeInAnnotation() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedTypeInAnnotation.kt"); + } + + @TestMetadata("exposedTypeParameterBound.kt") + public void testExposedTypeParameterBound() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedTypeParameterBound.kt"); + } + + @TestMetadata("exposedTypeParameterBoundNested.kt") + public void testExposedTypeParameterBoundNested() throws Exception { + runTest("../../../idea/tests/testData/quickfix/decreaseVisibility/exposedTypeParameterBoundNested.kt"); + } + } @@ -8182,7 +8388,202 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/increaseVisibility") + public abstract static class IncreaseVisibility extends AbstractHighLevelQuickFixTest { + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake") + public static class InvisibleFake extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("methodToInternal.kt") + public void testMethodToInternal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToInternal.kt"); + } + + @TestMetadata("methodToNotProtected.kt") + public void testMethodToNotProtected() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToNotProtected.kt"); + } + + @TestMetadata("methodToProtected.kt") + public void testMethodToProtected() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToProtected.kt"); + } + + @TestMetadata("methodToProtected2.kt") + public void testMethodToProtected2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToProtected2.kt"); + } + + @TestMetadata("methodToPublic.kt") + public void testMethodToPublic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToPublic.kt"); + } + + @TestMetadata("propertyToInternal.kt") + public void testPropertyToInternal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToInternal.kt"); + } + + @TestMetadata("propertyToNotProtected.kt") + public void testPropertyToNotProtected() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToNotProtected.kt"); + } + + @TestMetadata("propertyToProtected.kt") + public void testPropertyToProtected() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToProtected.kt"); + } + + @TestMetadata("propertyToProtected2.kt") + public void testPropertyToProtected2() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToProtected2.kt"); + } + + @TestMetadata("propertyToPublic.kt") + public void testPropertyToPublic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToPublic.kt"); + } + } + + @RunWith(JUnit3RunnerWithInners.class) + @TestMetadata("../../../idea/tests/testData/quickfix/increaseVisibility") + public static class Uncategorized extends AbstractHighLevelQuickFixTest { + @java.lang.Override + @org.jetbrains.annotations.NotNull + public final KotlinPluginMode getPluginMode() { + return KotlinPluginMode.K2; + } + + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("exposedParameterType.kt") + public void testExposedParameterType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedParameterType.kt"); + } + + @TestMetadata("exposedParameterTypePublic.kt") + public void testExposedParameterTypePublic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedParameterTypePublic.kt"); + } + + @TestMetadata("exposedPropertyType.kt") + public void testExposedPropertyType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedPropertyType.kt"); + } + + @TestMetadata("exposedReceiverType.kt") + public void testExposedReceiverType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedReceiverType.kt"); + } + + @TestMetadata("exposedReturnType.kt") + public void testExposedReturnType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedReturnType.kt"); + } + + @TestMetadata("exposedSuperClass.kt") + public void testExposedSuperClass() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedSuperClass.kt"); + } + + @TestMetadata("exposedSuperClassProtectedBase.kt") + public void testExposedSuperClassProtectedBase() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedBase.kt"); + } + + @TestMetadata("exposedSuperClassProtectedInAnother.kt") + public void testExposedSuperClassProtectedInAnother() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedInAnother.kt"); + } + + @TestMetadata("exposedSuperClassProtectedInAnotherFromPrivate.kt") + public void testExposedSuperClassProtectedInAnotherFromPrivate() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedInAnotherFromPrivate.kt"); + } + + @TestMetadata("exposedSuperInterface.kt") + public void testExposedSuperInterface() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedSuperInterface.kt"); + } + + @TestMetadata("exposedTypeParameterBound.kt") + public void testExposedTypeParameterBound() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBound.kt"); + } + + @TestMetadata("exposedTypeParameterBoundNested.kt") + public void testExposedTypeParameterBoundNested() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBoundNested.kt"); + } + + @TestMetadata("invalidSealedClassInheritance.kt") + public void testInvalidSealedClassInheritance() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/invalidSealedClassInheritance.kt"); + } + + @TestMetadata("overriddenProtectedMemberToPublicSingleFile.kt") + public void testOverriddenProtectedMemberToPublicSingleFile() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/overriddenProtectedMemberToPublicSingleFile.kt"); + } + + @TestMetadata("privateEmptyPrimaryConstructorToPublic.kt") + public void testPrivateEmptyPrimaryConstructorToPublic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/privateEmptyPrimaryConstructorToPublic.kt"); + } + + @TestMetadata("privateInFileExposesPrivateInFile.kt") + public void testPrivateInFileExposesPrivateInFile() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/privateInFileExposesPrivateInFile.kt"); + } + + @TestMetadata("privateMemberToInternalSingleFile.kt") + public void testPrivateMemberToInternalSingleFile() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/privateMemberToInternalSingleFile.kt"); + } + + @TestMetadata("privateMemberToInternalWithExposed.kt") + public void testPrivateMemberToInternalWithExposed() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/privateMemberToInternalWithExposed.kt"); + } + + @TestMetadata("privateMemberToPublicSingleFile.kt") + public void testPrivateMemberToPublicSingleFile() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/privateMemberToPublicSingleFile.kt"); + } + + @TestMetadata("privateSealedClassInheritance.kt") + public void testPrivateSealedClassInheritance() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/privateSealedClassInheritance.kt"); + } + + @TestMetadata("privateSetterToInternal.kt") + public void testPrivateSetterToInternal() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/privateSetterToInternal.kt"); + } + + @TestMetadata("privateSetterToPublic.kt") + public void testPrivateSetterToPublic() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/privateSetterToPublic.kt"); + } + + @TestMetadata("protectedMemberToPublicSingleFile.kt") + public void testProtectedMemberToPublicSingleFile() throws Exception { + runTest("../../../idea/tests/testData/quickfix/increaseVisibility/protectedMemberToPublicSingleFile.kt"); + } + } + } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction.kt b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction.kt index 0a53fb66c04b..34c9b60ecc5c 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction.kt @@ -8,4 +8,5 @@ class C { } } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction.kt.after index 505549c7bd6f..d0f1bb5fa39a 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction.kt.after @@ -8,4 +8,5 @@ class C { } } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction2.kt b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction2.kt index b78ada5481a3..c4193968d376 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction2.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction2.kt @@ -8,4 +8,5 @@ class C { } } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToInternalModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction2.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction2.kt.after index b7a4e5dd752e..a1de5c5fa872 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction2.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction2.kt.after @@ -8,4 +8,5 @@ class C { } } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToInternalModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction3.kt b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction3.kt index f5658a38b482..aae9b990e773 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction3.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction3.kt @@ -8,4 +8,6 @@ class C { } } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.RemoveModifierFixBase \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.RemoveModifierFixBase +// TODO: KTIJ-30589 +/* IGNORE_K2 */ \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction3.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction3.kt.after index 57cbbf81ef77..a35cb31d6107 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction3.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/internalFunction3.kt.after @@ -8,4 +8,6 @@ class C { } } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.RemoveModifierFixBase \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.RemoveModifierFixBase +// TODO: KTIJ-30589 +/* IGNORE_K2 */ \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty.kt b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty.kt index 3292341d8caa..ecea4e6e304b 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty.kt @@ -8,4 +8,5 @@ class C { } } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty.kt.after index 91dcf6350820..28e30a5e4c9c 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty.kt.after @@ -8,4 +8,5 @@ class C { } } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty2.kt b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty2.kt index 2f2d4e68a8b3..35172104e938 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty2.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty2.kt @@ -8,4 +8,5 @@ class C { } } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPrivateModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty2.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty2.kt.after index 45d5db1b2753..ea4afbcfefa5 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty2.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty2.kt.after @@ -8,4 +8,5 @@ class C { } } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPrivateModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty3.kt b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty3.kt index 052f99cf2cf9..da2f60292942 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty3.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty3.kt @@ -8,4 +8,6 @@ class C { } } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.RemoveModifierFixBase \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.RemoveModifierFixBase +// TODO: KTIJ-30589 +/* IGNORE_K2 */ \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty3.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty3.kt.after index 1229a23e14eb..1a93a6010f99 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty3.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/nonPublic/privateProperty3.kt.after @@ -8,4 +8,6 @@ class C { } } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.RemoveModifierFixBase \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.RemoveModifierFixBase +// TODO: KTIJ-30589 +/* IGNORE_K2 */ \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/infix.kt b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/infix.kt index bcee4e3321b3..6bbc7b4f27d0 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/infix.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/infix.kt @@ -8,4 +8,5 @@ open class A { } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/infix.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/infix.kt.after index 8b1635299f55..21b0a7513c32 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/infix.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/infix.kt.after @@ -8,4 +8,5 @@ open class A { } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction.kt b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction.kt index 70d561be5295..9cf583645ae6 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction.kt @@ -7,4 +7,5 @@ open class Foo { } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction.kt.after index bd6fe629705b..3fa2e9f3cf15 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction.kt.after @@ -7,4 +7,5 @@ open class Foo { } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction2.kt b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction2.kt index fb3e96c4b715..a30c93b42e1d 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction2.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction2.kt @@ -9,4 +9,5 @@ open class Foo { } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToProtectedModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction2.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction2.kt.after index eb77026c4f7d..ec71a1c2f5ec 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction2.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction2.kt.after @@ -9,4 +9,5 @@ open class Foo { } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToProtectedModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction3.kt b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction3.kt index 273f79c7369a..30fe3f0b6717 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction3.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction3.kt @@ -9,4 +9,6 @@ open class Foo { } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.RemoveModifierFixBase \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.RemoveModifierFixBase +// TODO: KTIJ-30589 +/* IGNORE_K2 */ \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction3.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction3.kt.after index d7d600281246..51c841e30fe4 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction3.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/protected/protectedFunction3.kt.after @@ -9,4 +9,6 @@ open class Foo { } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.RemoveModifierFixBase \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.RemoveModifierFixBase +// TODO: KTIJ-30589 +/* IGNORE_K2 */ \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/super/superFunction.kt b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/super/superFunction.kt index 7bf514748a13..980c8002c8cf 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/super/superFunction.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/super/superFunction.kt @@ -8,4 +8,5 @@ open class Derived : Base() { super.baseFun("123") } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToInternalModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/super/superFunction.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/super/superFunction.kt.after index d346e7d3ca33..0bee6f625aeb 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/super/superFunction.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/super/superFunction.kt.after @@ -8,4 +8,5 @@ open class Derived : Base() { super.baseFun("123") } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToInternalModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/super/superFunction2.kt b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/super/superFunction2.kt index f4b7e3bef6fe..6a5afdbd19d6 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/super/superFunction2.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/super/superFunction2.kt @@ -9,4 +9,5 @@ open class Derived : Base() { super.baseFun("123") } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPrivateModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/super/superFunction2.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/super/superFunction2.kt.after index 0baf7aba924a..24b0bd486122 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/super/superFunction2.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/super/superFunction2.kt.after @@ -9,4 +9,5 @@ open class Derived : Base() { super.baseFun("123") } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPrivateModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/super/superFunction3.kt b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/super/superFunction3.kt index 3df954c40487..07444c817ba9 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/super/superFunction3.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/super/superFunction3.kt @@ -9,4 +9,6 @@ open class Derived : Base() { super.baseFun("123") } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.RemoveModifierFixBase \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.RemoveModifierFixBase +// TODO: KTIJ-30589 +/* IGNORE_K2 */ \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/super/superFunction3.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/super/superFunction3.kt.after index e6479842a5d0..c1df0b01583d 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/super/superFunction3.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/callFromPublicInline/super/superFunction3.kt.after @@ -9,4 +9,6 @@ open class Derived : Base() { super.baseFun("123") } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.RemoveModifierFixBase \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.RemoveModifierFixBase +// TODO: KTIJ-30589 +/* IGNORE_K2 */ \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedPropertyType.kt b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedPropertyType.kt index 4aeffe4e5936..fe1119229c03 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedPropertyType.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedPropertyType.kt @@ -16,4 +16,5 @@ class First { val foo = Data(13) } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPrivateFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPrivateFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPrivateModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedPropertyType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedPropertyType.kt.after index d124383fc1f2..4f4aa50bc550 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedPropertyType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedPropertyType.kt.after @@ -16,4 +16,5 @@ class First { private val foo = Data(13) } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPrivateFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPrivateFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPrivateModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReceiverTypeInternal.kt b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReceiverTypeInternal.kt index 07e4cf9db4fe..03e4638da90e 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReceiverTypeInternal.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReceiverTypeInternal.kt @@ -2,4 +2,5 @@ internal class A fun A.foo() {} -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToInternalModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReceiverTypeInternal.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReceiverTypeInternal.kt.after index e0cf449b2a69..24fc8b9c5cd4 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReceiverTypeInternal.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReceiverTypeInternal.kt.after @@ -2,4 +2,5 @@ internal class A internal fun A.foo() {} -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToInternalModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReceiverTypePrivate.kt b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReceiverTypePrivate.kt index 7a09c0415ce4..b5a658fabce4 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReceiverTypePrivate.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReceiverTypePrivate.kt @@ -2,4 +2,5 @@ internal class A fun A.foo() {} -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPrivateFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPrivateFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPrivateModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReceiverTypePrivate.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReceiverTypePrivate.kt.after index 020962335663..6b2af6b4e110 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReceiverTypePrivate.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReceiverTypePrivate.kt.after @@ -2,4 +2,5 @@ internal class A private fun A.foo() {} -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPrivateFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPrivateFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPrivateModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReturnType.kt b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReturnType.kt index 99987a4233d5..9cfac7395b45 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReturnType.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReturnType.kt @@ -14,4 +14,5 @@ class First { internal fun bar(x: Int) = Data(x) } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPrivateFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPrivateFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPrivateModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReturnType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReturnType.kt.after index 235d59150d7b..11b836956a09 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReturnType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReturnType.kt.after @@ -14,4 +14,5 @@ class First { private fun bar(x: Int) = Data(x) } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPrivateFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPrivateFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPrivateModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClass.kt b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClass.kt index 0059b1d20950..926100f6a601 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClass.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClass.kt @@ -12,4 +12,5 @@ class Outer { protected class First : Data(42) } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPrivateFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPrivateFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPrivateModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClass.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClass.kt.after index f1ec8b1c3925..5356dced10f3 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClass.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClass.kt.after @@ -12,4 +12,5 @@ class Outer { private class First : Data(42) } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPrivateFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPrivateFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPrivateModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedBase.kt b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedBase.kt index 9b73b3b3c915..0f995e05352b 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedBase.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedBase.kt @@ -10,4 +10,5 @@ private open class Data(val x: Int) class Outer { protected class First : Data(42) } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPrivateFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPrivateFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPrivateModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedBase.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedBase.kt.after index cc7eedd348b7..6e769aa7dd1f 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedBase.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedBase.kt.after @@ -10,4 +10,5 @@ private open class Data(val x: Int) class Outer { private class First : Data(42) } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPrivateFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPrivateFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPrivateModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedInAnother.kt b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedInAnother.kt index 498e8f41f5f4..b09d970f603a 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedInAnother.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedInAnother.kt @@ -12,4 +12,5 @@ class Other { class Another { protected class First : Other.Data(42) } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPrivateFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPrivateFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPrivateModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedInAnother.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedInAnother.kt.after index 495853ff7e39..9584c4a15506 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedInAnother.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedInAnother.kt.after @@ -12,4 +12,5 @@ class Other { class Another { private class First : Other.Data(42) } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPrivateFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPrivateFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPrivateModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterface.kt b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterface.kt index fb23ee4c3150..5a1452980a07 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterface.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterface.kt @@ -15,4 +15,5 @@ internal class Outer { class Container { interface Derived : Base } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToInternalModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterface.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterface.kt.after index 8e9f0e394fa7..381b464e1543 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterface.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterface.kt.after @@ -15,4 +15,5 @@ internal class Outer { class Container { internal interface Derived : Base } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToInternalModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterfacePrivate.kt b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterfacePrivate.kt index 4ff1562ef6da..b2127257bf24 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterfacePrivate.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterfacePrivate.kt @@ -15,4 +15,5 @@ internal class Outer { class Container { interface Derived : Base } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPrivateFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPrivateFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPrivateModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterfacePrivate.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterfacePrivate.kt.after index c8707a1b2cae..f69c9e9d4c5b 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterfacePrivate.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterfacePrivate.kt.after @@ -15,4 +15,5 @@ internal class Outer { class Container { private interface Derived : Base } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPrivateFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPrivateFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPrivateModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedTypeParameterBound.kt b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedTypeParameterBound.kt index 31d4bbe31748..7316699161a5 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedTypeParameterBound.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedTypeParameterBound.kt @@ -9,4 +9,5 @@ internal open class InternalString class UserUser, R> -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToInternalModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedTypeParameterBound.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedTypeParameterBound.kt.after index c3b0226211f5..e5989a9496ae 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedTypeParameterBound.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedTypeParameterBound.kt.after @@ -9,4 +9,5 @@ internal open class InternalString internal class User, R> -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToInternalModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedParameterType.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedParameterType.kt index b2684db63f8e..19d456629e00 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedParameterType.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedParameterType.kt @@ -12,4 +12,5 @@ class Outer { class Generic internal fun foo(arg: Generic) {} -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToInternalModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedParameterType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedParameterType.kt.after index e8c78455c6f7..491e82297f17 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedParameterType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedParameterType.kt.after @@ -12,4 +12,5 @@ class Outer { class Generic internal fun foo(arg: Generic) {} -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToInternalModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedParameterTypePublic.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedParameterTypePublic.kt index f9ab9a0de974..1fcfe3975068 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedParameterTypePublic.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedParameterTypePublic.kt @@ -12,4 +12,5 @@ class Outer { class Generic internal fun foo(arg: Generic) {} -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedParameterTypePublic.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedParameterTypePublic.kt.after index 5972059b4a83..4ab0d98f4486 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedParameterTypePublic.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedParameterTypePublic.kt.after @@ -12,4 +12,5 @@ class Outer { class Generic internal fun foo(arg: Generic) {} -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedPropertyType.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedPropertyType.kt index 4636bbf42d9f..f908ccc843ef 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedPropertyType.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedPropertyType.kt @@ -16,4 +16,5 @@ class First { val foo = Data(13) } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedPropertyType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedPropertyType.kt.after index cb13e5c5fced..1e5473b9a68e 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedPropertyType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedPropertyType.kt.after @@ -16,4 +16,5 @@ class First { val foo = Data(13) } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedReceiverType.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedReceiverType.kt index 63e901c4261f..500ea799a81b 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedReceiverType.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedReceiverType.kt @@ -11,4 +11,5 @@ abstract class My { abstract protected fun Receiver.foo() } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToProtectedFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToProtectedFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToProtectedModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedReceiverType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedReceiverType.kt.after index 347f656cf876..45fa6a3ac22d 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedReceiverType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedReceiverType.kt.after @@ -11,4 +11,5 @@ abstract class My { abstract protected fun Receiver.foo() } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToProtectedFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToProtectedFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToProtectedModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedReturnType.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedReturnType.kt index e7e82dacf3dc..6a541b0010e6 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedReturnType.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedReturnType.kt @@ -14,4 +14,5 @@ class First { internal fun bar(x: Int) = Data(x) } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToInternalModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedReturnType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedReturnType.kt.after index 3a9bf0249264..d166f2adfd50 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedReturnType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedReturnType.kt.after @@ -14,4 +14,5 @@ class First { internal fun bar(x: Int) = Data(x) } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToInternalModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClass.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClass.kt index 7fea6345da8c..5f698a1f4cca 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClass.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClass.kt @@ -12,4 +12,5 @@ class Outer { protected class First : Data(42) } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToProtectedFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToProtectedFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToProtectedModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClass.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClass.kt.after index 1efd041c4faa..20d8edad95e2 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClass.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClass.kt.after @@ -12,4 +12,5 @@ class Outer { protected class First : Data(42) } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToProtectedFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToProtectedFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToProtectedModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedBase.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedBase.kt index 03e0c0c47236..530edd21d592 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedBase.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedBase.kt @@ -10,4 +10,5 @@ private open class Data(val x: Int) class Outer { protected class First : Data(42) } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedBase.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedBase.kt.after index 97060976147e..2c3c829b7a49 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedBase.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedBase.kt.after @@ -10,4 +10,5 @@ open class Data(val x: Int) class Outer { protected class First : Data(42) } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedInAnother.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedInAnother.kt index 457504a61f86..606fe6889633 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedInAnother.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedInAnother.kt @@ -12,4 +12,5 @@ class Other { class Another { protected class First : Other.Data(42) } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedInAnother.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedInAnother.kt.after index 54b21b60b514..3753ebee3d3a 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedInAnother.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedInAnother.kt.after @@ -12,4 +12,5 @@ class Other { class Another { protected class First : Other.Data(42) } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedInAnotherFromPrivate.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedInAnotherFromPrivate.kt index 757787ab29f7..bfd4ae8101d8 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedInAnotherFromPrivate.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedInAnotherFromPrivate.kt @@ -7,4 +7,5 @@ class Other { class Another { protected class First : Other.Data(42) } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedInAnotherFromPrivate.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedInAnotherFromPrivate.kt.after index 4a03756087a8..b70990e40e12 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedInAnotherFromPrivate.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedInAnotherFromPrivate.kt.after @@ -7,4 +7,5 @@ class Other { class Another { protected class First : Other.Data(42) } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperInterface.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperInterface.kt index b11d4531e30d..d129888661ff 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperInterface.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperInterface.kt @@ -15,4 +15,6 @@ internal class Outer { class Container { interface Derived : Base } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// TODO: KT-69794 +/* IGNORE_K2 */ \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperInterface.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperInterface.kt.after index bbfe77182bd0..9a49eabc5d73 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperInterface.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperInterface.kt.after @@ -15,4 +15,6 @@ class Outer { class Container { interface Derived : Base } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// TODO: KT-69794 +/* IGNORE_K2 */ \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBound.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBound.kt index f1f6045d57bb..f7ad043ac68b 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBound.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBound.kt @@ -9,4 +9,5 @@ internal open class InternalString class UserUser, R> -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBound.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBound.kt.after index 7cd9eebffb80..483dbc595ef0 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBound.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBound.kt.after @@ -9,4 +9,5 @@ open class InternalString class User, R> -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBoundNested.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBoundNested.kt index e8f303a53fd5..c065a6fb95c8 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBoundNested.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBoundNested.kt @@ -13,3 +13,4 @@ private class PrivateInFileClassPrivateInFileClass.PrivateInnerClass } // FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBoundNested.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBoundNested.kt.after index 110504423eaf..8927d199a396 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBoundNested.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBoundNested.kt.after @@ -13,3 +13,4 @@ private class PrivateInFileClassPrivateInFileClass.PrivateInnerClass } // FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToInternal.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToInternal.kt index 33872204ec82..895a2518f709 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToInternal.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToInternal.kt @@ -10,4 +10,5 @@ class B : A() { doSth() } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToInternalModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToInternal.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToInternal.kt.after index 5f0df7634822..7789a94cb490 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToInternal.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToInternal.kt.after @@ -10,4 +10,5 @@ class B : A() { doSth() } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToInternalModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToProtected.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToProtected.kt index 0c95def11193..321bf3fe23e5 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToProtected.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToProtected.kt @@ -10,4 +10,5 @@ class B : A() { doSth() } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToProtectedFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToProtectedFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToProtectedModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToProtected.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToProtected.kt.after index 3c7033246c3e..9cac7bb09933 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToProtected.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToProtected.kt.after @@ -10,4 +10,5 @@ class B : A() { doSth() } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToProtectedFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToProtectedFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToProtectedModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToProtected2.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToProtected2.kt index 41a7ca5371df..72284f9c9867 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToProtected2.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToProtected2.kt @@ -12,4 +12,5 @@ class C : B() { doSth() } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToProtectedFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToProtectedFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToProtectedModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToProtected2.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToProtected2.kt.after index 1bc849bf9543..be6a4505add3 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToProtected2.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToProtected2.kt.after @@ -12,4 +12,5 @@ class C : B() { doSth() } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToProtectedFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToProtectedFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToProtectedModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToPublic.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToPublic.kt index da0b4bb40681..d9de90c61c91 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToPublic.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToPublic.kt @@ -10,4 +10,5 @@ class B : A() { doSth() } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToPublic.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToPublic.kt.after index 432e7c1093a1..d83b0415fa69 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToPublic.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/methodToPublic.kt.after @@ -10,4 +10,5 @@ class B : A() { doSth() } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToInternal.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToInternal.kt index 9008330ca2bc..2f99a501717d 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToInternal.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToInternal.kt @@ -9,4 +9,5 @@ class B : A() { foo } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToInternalModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToInternal.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToInternal.kt.after index 5579d17e090f..4fc991bee1f8 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToInternal.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToInternal.kt.after @@ -9,4 +9,5 @@ class B : A() { foo } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToInternalModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToProtected.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToProtected.kt index 21351ff9e4e6..51837d070f13 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToProtected.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToProtected.kt @@ -9,4 +9,5 @@ class B : A() { foo } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToProtectedFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToProtectedFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToProtectedModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToProtected.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToProtected.kt.after index 9b1b18a13458..756db5e7dfa1 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToProtected.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToProtected.kt.after @@ -9,4 +9,5 @@ class B : A() { foo } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToProtectedFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToProtectedFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToProtectedModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToProtected2.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToProtected2.kt index c6b57a3fbc4d..5344f772b2fb 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToProtected2.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToProtected2.kt @@ -11,4 +11,5 @@ class C : B() { foo } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToProtectedFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToProtectedFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToProtectedModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToProtected2.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToProtected2.kt.after index 4f61efbc0046..cb7940ae761d 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToProtected2.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToProtected2.kt.after @@ -11,4 +11,5 @@ class C : B() { foo } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToProtectedFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToProtectedFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToProtectedModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToPublic.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToPublic.kt index 6967467d2488..b0cc6884ba1d 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToPublic.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToPublic.kt @@ -9,4 +9,5 @@ class B : A() { foo } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToPublic.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToPublic.kt.after index d00a364a4b8e..2f954f04d2ec 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToPublic.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/invisibleFake/propertyToPublic.kt.after @@ -9,4 +9,5 @@ class B : A() { foo } } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/overriddenProtectedMemberToPublicSingleFile.fir.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/overriddenProtectedMemberToPublicSingleFile.fir.kt new file mode 100644 index 000000000000..ad26fceb9b3e --- /dev/null +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/overriddenProtectedMemberToPublicSingleFile.fir.kt @@ -0,0 +1,12 @@ +// "Make 'x' public explicitly" "true" + +open class Base(protected open val x: Int) + +class First(override val x: Int) : Base(x) + +class Second(f: First) { + val y = f.x +} + +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/overriddenProtectedMemberToPublicSingleFile.fir.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/overriddenProtectedMemberToPublicSingleFile.fir.kt.after new file mode 100644 index 000000000000..be7cea9432de --- /dev/null +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/overriddenProtectedMemberToPublicSingleFile.fir.kt.after @@ -0,0 +1,12 @@ +// "Make 'x' public explicitly" "true" + +open class Base(protected open val x: Int) + +class First(public override val x: Int) : Base(x) + +class Second(f: First) { + val y = f.x +} + +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateEmptyPrimaryConstructorToPublic.fir.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateEmptyPrimaryConstructorToPublic.fir.kt.after new file mode 100644 index 000000000000..4e14a643506b --- /dev/null +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateEmptyPrimaryConstructorToPublic.fir.kt.after @@ -0,0 +1,10 @@ +// "Make '' public" "true" + +private class Marker() + +fun foo(): Any { + return Marker() +} + +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateEmptyPrimaryConstructorToPublic.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateEmptyPrimaryConstructorToPublic.kt index d0f4b869db0c..a7be8e2cf996 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateEmptyPrimaryConstructorToPublic.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateEmptyPrimaryConstructorToPublic.kt @@ -6,4 +6,5 @@ fun foo(): Any { return Marker() } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateEmptyPrimaryConstructorToPublic.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateEmptyPrimaryConstructorToPublic.kt.after index a3dafd1cc5ba..3680860c8c7b 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateEmptyPrimaryConstructorToPublic.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateEmptyPrimaryConstructorToPublic.kt.after @@ -6,4 +6,5 @@ fun foo(): Any { return Marker() } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateInFileExposesPrivateInFile.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateInFileExposesPrivateInFile.kt index 9d5c8facc638..d6110913ab35 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateInFileExposesPrivateInFile.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateInFileExposesPrivateInFile.kt @@ -4,4 +4,5 @@ private interface I2 { private class Private fun pp() = Private() } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateInFileExposesPrivateInFile.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateInFileExposesPrivateInFile.kt.after index 72b3ee7c4703..c12fb7607ff7 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateInFileExposesPrivateInFile.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateInFileExposesPrivateInFile.kt.after @@ -4,4 +4,5 @@ private interface I2 { class Private fun pp() = Private() } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateMemberToInternalSingleFile.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateMemberToInternalSingleFile.kt index 1c8b8c9e4bd1..efb166616695 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateMemberToInternalSingleFile.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateMemberToInternalSingleFile.kt @@ -5,4 +5,5 @@ class Second(f: First) { val y = f.x } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToInternalModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateMemberToInternalSingleFile.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateMemberToInternalSingleFile.kt.after index ad32e495b81b..0efbbd16b5d8 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateMemberToInternalSingleFile.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateMemberToInternalSingleFile.kt.after @@ -5,4 +5,5 @@ class Second(f: First) { val y = f.x } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToInternalModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateMemberToPublicSingleFile.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateMemberToPublicSingleFile.kt index 4aa2250690f6..a2c3b2b1d82f 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateMemberToPublicSingleFile.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateMemberToPublicSingleFile.kt @@ -5,4 +5,5 @@ class Second(f: First) { val y = f.x } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateMemberToPublicSingleFile.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateMemberToPublicSingleFile.kt.after index f77c16612a87..17c119c965fc 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateMemberToPublicSingleFile.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateMemberToPublicSingleFile.kt.after @@ -5,4 +5,5 @@ class Second(f: First) { val y = f.x } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSealedClassInheritance.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSealedClassInheritance.kt index 48bcef9c1c4c..41e676ebafc9 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSealedClassInheritance.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSealedClassInheritance.kt @@ -7,4 +7,5 @@ private sealed class SealedClass class Test : SealedClass() -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSealedClassInheritance.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSealedClassInheritance.kt.after index af9a625329f8..aa9602a15e4b 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSealedClassInheritance.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSealedClassInheritance.kt.after @@ -7,4 +7,5 @@ sealed class SealedClass class Test : SealedClass() -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSetterToInternal.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSetterToInternal.kt index c6b0b1881f4c..c4174e3a1089 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSetterToInternal.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSetterToInternal.kt @@ -12,4 +12,5 @@ fun main() { val c = Demo() c.attribute = "test" } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToInternalModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSetterToInternal.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSetterToInternal.kt.after index e322adb55c3f..f809a91dd4a7 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSetterToInternal.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSetterToInternal.kt.after @@ -12,4 +12,5 @@ fun main() { val c = Demo() c.attribute = "test" } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToInternalFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToInternalModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSetterToPublic.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSetterToPublic.kt index 4caf04d12034..317b2545579c 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSetterToPublic.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSetterToPublic.kt @@ -12,4 +12,5 @@ fun main() { val c = Demo() c.attribute = "test" } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSetterToPublic.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSetterToPublic.kt.after index 48941f33dacd..1e5f337c86ac 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSetterToPublic.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSetterToPublic.kt.after @@ -11,4 +11,5 @@ fun main() { val c = Demo() c.attribute = "test" } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/protectedMemberToPublicSingleFile.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/protectedMemberToPublicSingleFile.kt index 91105dd6e6e1..9806a9c92b93 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/protectedMemberToPublicSingleFile.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/protectedMemberToPublicSingleFile.kt @@ -5,4 +5,5 @@ class Second(f: First) { val y = f.x } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/protectedMemberToPublicSingleFile.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/protectedMemberToPublicSingleFile.kt.after index f77c16612a87..17c119c965fc 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/protectedMemberToPublicSingleFile.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/protectedMemberToPublicSingleFile.kt.after @@ -5,4 +5,5 @@ class Second(f: First) { val y = f.x } -// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix \ No newline at end of file +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/class.kt b/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/class.kt index e89eac1d7c6f..5aa43dce844c 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/class.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/class.kt @@ -5,4 +5,4 @@ class Foo1() {} // FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicExplicitlyFix -// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeVisibilityModCommandAction \ No newline at end of file +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/class.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/class.kt.after index b2dde6fb4b95..aaa5be31e1e9 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/class.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/class.kt.after @@ -5,4 +5,4 @@ public class Foo1() {} // FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicExplicitlyFix -// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeVisibilityModCommandAction \ No newline at end of file +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/companion.kt b/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/companion.kt index 727da94bd11e..f3588287807d 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/companion.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/companion.kt @@ -7,4 +7,4 @@ public class Foo1() { // FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicExplicitlyFix -// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeVisibilityModCommandAction \ No newline at end of file +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/companion.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/companion.kt.after index b1a8900c1097..d7e8912af6ec 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/companion.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/companion.kt.after @@ -7,4 +7,4 @@ public class Foo1() { // FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicExplicitlyFix -// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeVisibilityModCommandAction \ No newline at end of file +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/constructor.kt b/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/constructor.kt index be1c2e9e97b4..066c4b50047e 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/constructor.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/constructor.kt @@ -7,4 +7,4 @@ public class Foo5 { // FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicExplicitlyFix -// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeVisibilityModCommandAction \ No newline at end of file +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/constructor.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/constructor.kt.after index 596a5650b0f3..6308fe9adef3 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/constructor.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/constructor.kt.after @@ -7,4 +7,4 @@ public class Foo5 { // FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicExplicitlyFix -// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeVisibilityModCommandAction \ No newline at end of file +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/method.kt b/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/method.kt index c416dd5f06b1..d9944aa088fd 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/method.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/method.kt @@ -6,4 +6,4 @@ public class Foo2() { } // FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicExplicitlyFix -// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeVisibilityModCommandAction \ No newline at end of file +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/method.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/method.kt.after index 280443af9566..e183fe59f0e1 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/method.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/method.kt.after @@ -6,4 +6,4 @@ public class Foo2() { } // FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicExplicitlyFix -// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeVisibilityModCommandAction \ No newline at end of file +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/property.kt b/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/property.kt index 358edc1c8071..02b2e73f6b98 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/property.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/property.kt @@ -5,4 +5,4 @@ public class Foo(val bar: Int, private var bar2: String, internal var bar // FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicExplicitlyFix -// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeVisibilityModCommandAction \ No newline at end of file +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/property.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/property.kt.after index 27e1458ea1a5..92b1f922824f 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/property.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/specifyVisibilityInExplicitApiMode/property.kt.after @@ -5,4 +5,4 @@ public class Foo(public val bar: Int, private var bar2: String, internal var bar // FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeVisibilityFix$ChangeToPublicExplicitlyFix -// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeVisibilityModCommandAction \ No newline at end of file +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeVisibilityFixFactories$ChangeToPublicModCommandAction \ No newline at end of file diff --git a/plugins/kotlin/util/test-generator-fir/test/org/jetbrains/kotlin/fir/testGenerator/codeinsight/GenerateK2QuickFixTests.kt b/plugins/kotlin/util/test-generator-fir/test/org/jetbrains/kotlin/fir/testGenerator/codeinsight/GenerateK2QuickFixTests.kt index 574e8e0aff18..07941aa5718d 100644 --- a/plugins/kotlin/util/test-generator-fir/test/org/jetbrains/kotlin/fir/testGenerator/codeinsight/GenerateK2QuickFixTests.kt +++ b/plugins/kotlin/util/test-generator-fir/test/org/jetbrains/kotlin/fir/testGenerator/codeinsight/GenerateK2QuickFixTests.kt @@ -92,7 +92,7 @@ internal fun MutableTWorkspace.generateK2FixTests() { model("$idea/quickfix/addUnsafeVarianceAnnotation", pattern = pattern, isIgnored = true) model("$idea/quickfix/addVarianceModifier", pattern = pattern, isIgnored = true) model("$idea/quickfix/assignToProperty", pattern = pattern, isIgnored = true) - model("$idea/quickfix/callFromPublicInline", pattern = pattern, isIgnored = true) + model("$idea/quickfix/callFromPublicInline", pattern = pattern) model("$idea/quickfix/canBeParameter", pattern = pattern, isIgnored = true) model("$idea/quickfix/canBePrimaryConstructorProperty", pattern = pattern, isIgnored = true) model("$idea/quickfix/castDueToProgressionResolveChange", pattern = pattern, isIgnored = true) @@ -113,7 +113,7 @@ internal fun MutableTWorkspace.generateK2FixTests() { model("$idea/quickfix/createLabel", pattern = pattern, isIgnored = true) model("$idea/quickfix/declarationCantBeInlined", pattern = pattern, isIgnored = true) model("$idea/quickfix/declaringJavaClass", pattern = pattern, isIgnored = true) - model("$idea/quickfix/decreaseVisibility", pattern = pattern, isIgnored = true) + model("$idea/quickfix/decreaseVisibility", pattern = pattern) model("$idea/quickfix/deprecatedJavaAnnotation", pattern = pattern, isIgnored = true) model("$idea/quickfix/deprecatedSymbolUsage", pattern = pattern, isIgnored = false, excludedDirectories = listOf("classUsages", "publishedApi", "wholeProject")) model("$idea/quickfix/equalityNotApplicable", pattern = pattern) @@ -122,7 +122,7 @@ internal fun MutableTWorkspace.generateK2FixTests() { model("$idea/quickfix/functionWithLambdaExpressionBody", pattern = pattern, isIgnored = true) model("$idea/quickfix/implement", pattern = pattern) model("$idea/quickfix/importAlias", pattern = pattern, isIgnored = true) - model("$idea/quickfix/increaseVisibility", pattern = pattern, isIgnored = true) + model("$idea/quickfix/increaseVisibility", pattern = pattern) model("$idea/quickfix/initializeWithConstructorParameter", pattern = pattern, isIgnored = true) model("$idea/quickfix/inlineClass", pattern = pattern, isIgnored = true) model("$idea/quickfix/inlineTypeParameterFix", pattern = pattern, isIgnored = true)