[kotlin] change signature from usage

KTIJ-27376

GitOrigin-RevId: a8982144c280f55027b278cb9db2da6350406a00
This commit is contained in:
Anna Kozlova
2023-10-26 13:19:05 +00:00
committed by intellij-monorepo-bot
parent 9b0548f1ba
commit 6796e2b1e5
143 changed files with 981 additions and 203 deletions
@@ -149,6 +149,7 @@ internal class BaseKotlinApplicatorImpl<PSI : PsiElement, INPUT : KotlinApplicat
internal val isApplicableByPsi: (PSI) -> Boolean,
internal val getActionName: (PSI, INPUT) -> @IntentionName String,
internal val getFamilyName: () -> @IntentionFamilyName String,
internal val getStartInWriteAction: () -> Boolean = { true },
) : BaseKotlinApplicator<PSI, INPUT>() {
override fun applyToImpl(psi: PSI, input: INPUT, project: Project, editor: Editor?) {
applyTo.invoke(psi, input, project, editor)
@@ -165,6 +166,10 @@ internal class BaseKotlinApplicatorImpl<PSI : PsiElement, INPUT : KotlinApplicat
override fun getSubstitutedClass(): Class<*> =
reportingClass
override fun startInWriteAction(): Boolean {
return getStartInWriteAction()
}
}
internal class KotlinModCommandApplicatorImpl<PSI : PsiElement, INPUT : KotlinApplicatorInput>(
@@ -173,6 +178,7 @@ internal class KotlinModCommandApplicatorImpl<PSI : PsiElement, INPUT : KotlinAp
internal val isApplicableByPsi: (PSI) -> Boolean,
internal val getActionName: (PSI, INPUT) -> @IntentionName String,
internal val getFamilyName: () -> @IntentionFamilyName String,
internal val getStartInWriteAction: () -> Boolean = { true },
) : KotlinModCommandApplicator<PSI, INPUT>() {
override fun applyToImpl(psi: PSI, input: INPUT, context: ActionContext, updater: ModPsiUpdater) {
applyTo.invoke(psi, input, context, updater)
@@ -190,13 +196,18 @@ internal class KotlinModCommandApplicatorImpl<PSI : PsiElement, INPUT : KotlinAp
override fun getSubstitutedClass(): Class<*> =
reportingClass
override fun startInWriteAction(): Boolean {
return getStartInWriteAction()
}
}
abstract class AbstractKotlinApplicatorBuilder<PSI : PsiElement, INPUT : KotlinApplicatorInput> internal constructor(
internal val reportingClass: Class<*>,
internal var isApplicableByPsi: ((PSI) -> Boolean)? = null,
internal var getActionName: ((PSI, INPUT) -> @IntentionName String)? = null,
internal var getFamilyName: (() -> @IntentionFamilyName String)? = null
internal var getFamilyName: (() -> @IntentionFamilyName String)? = null,
internal var getStartInWriteAction: () -> Boolean = { true },
) {
fun familyName(getName: () -> @IntentionFamilyName String) {
getFamilyName = getName
@@ -219,6 +230,10 @@ abstract class AbstractKotlinApplicatorBuilder<PSI : PsiElement, INPUT : KotlinA
this.isApplicableByPsi = isApplicable
}
fun startInWriteAction(getStartInWriteAction: () -> Boolean) {
this.getStartInWriteAction = getStartInWriteAction
}
}
class KotlinApplicatorBuilder<PSI : PsiElement, INPUT : KotlinApplicatorInput> internal constructor(
@@ -227,8 +242,9 @@ class KotlinApplicatorBuilder<PSI : PsiElement, INPUT : KotlinApplicatorInput> i
var applyTo: ((PSI, INPUT, Project, Editor?) -> Unit)? = null,
isApplicableByPsi: ((PSI) -> Boolean)? = null,
getActionName: ((PSI, INPUT) -> @IntentionName String)? = null,
getFamilyName: (() -> @IntentionFamilyName String)? = null
): AbstractKotlinApplicatorBuilder<PSI, INPUT>(reportingClass, isApplicableByPsi, getActionName, getFamilyName) {
getFamilyName: (() -> @IntentionFamilyName String)? = null,
getStartInWriteAction: () -> Boolean = { true },
): AbstractKotlinApplicatorBuilder<PSI, INPUT>(reportingClass, isApplicableByPsi, getActionName, getFamilyName, getStartInWriteAction) {
@OptIn(PrivateForInline::class)
fun applyToWithEditorRequired(doApply: (PSI, INPUT, Project, Editor) -> Unit) {
@@ -265,7 +281,8 @@ class KotlinApplicatorBuilder<PSI : PsiElement, INPUT : KotlinApplicatorInput> i
applyTo = applyTo,
isApplicableByPsi = isApplicableByPsi,
getActionName = getActionName,
getFamilyName = getFamilyName
getFamilyName = getFamilyName,
getStartInWriteAction = getStartInWriteAction
)
}
}
@@ -7,6 +7,7 @@ import org.jetbrains.kotlin.idea.fir.invalidateCaches
import org.jetbrains.kotlin.idea.quickfix.AbstractQuickFixTest
import org.jetbrains.kotlin.idea.test.KotlinLightProjectDescriptor
import org.jetbrains.kotlin.idea.test.KotlinWithJdkAndRuntimeLightProjectDescriptor
import java.io.File
abstract class AbstractK2QuickFixTest : AbstractQuickFixTest() {
override fun isFirPlugin() = true
@@ -26,4 +27,13 @@ abstract class AbstractK2QuickFixTest : AbstractQuickFixTest() {
get() = ".k2Inspection"
override fun checkForUnexpectedErrors() {}
override fun getAfterFileName(beforeFileName: String): String {
val firAfterFile = File(dataFilePath(beforeFileName.replace(".kt", ".fir.kt.after")))
return if (firAfterFile.exists()) {
firAfterFile.name
} else {
super.getAfterFileName(beforeFileName)
}
}
}
@@ -106,6 +106,324 @@ public abstract class K2QuickFixTestGenerated extends AbstractK2QuickFixTest {
}
}
@RunWith(JUnit3RunnerWithInners.class)
@TestMetadata("../../../idea/tests/testData/quickfix/changeSignature")
public static class ChangeSignature extends AbstractK2QuickFixTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
@TestMetadata("addConstructorParameter.kt")
public void testAddConstructorParameter() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addConstructorParameter.kt");
}
@TestMetadata("addConstructorParameterDataClassForConstantTypeMismatch.kt")
public void testAddConstructorParameterDataClassForConstantTypeMismatch() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addConstructorParameterDataClassForConstantTypeMismatch.kt");
}
@TestMetadata("addConstructorParameterForConstantTypeMismatch.kt")
public void testAddConstructorParameterForConstantTypeMismatch() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addConstructorParameterForConstantTypeMismatch.kt");
}
@TestMetadata("addConstructorParameterForInlineClass.kt")
public void testAddConstructorParameterForInlineClass() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addConstructorParameterForInlineClass.kt");
}
@TestMetadata("addConstructorParameterForValueClass.kt")
public void testAddConstructorParameterForValueClass() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addConstructorParameterForValueClass.kt");
}
@TestMetadata("addEnumConstructorParameter.kt")
public void testAddEnumConstructorParameter() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addEnumConstructorParameter.kt");
}
@TestMetadata("addEnumConstructorParameter2.kt")
public void testAddEnumConstructorParameter2() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addEnumConstructorParameter2.kt");
}
@TestMetadata("addEnumConstructorParameter3.kt")
public void testAddEnumConstructorParameter3() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addEnumConstructorParameter3.kt");
}
@TestMetadata("addEnumConstructorParameter4.kt")
public void testAddEnumConstructorParameter4() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addEnumConstructorParameter4.kt");
}
@TestMetadata("addEnumConstructorParameter5.kt")
public void testAddEnumConstructorParameter5() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addEnumConstructorParameter5.kt");
}
@TestMetadata("addExtensionFunctionParameterForTypeMismatch.kt")
public void testAddExtensionFunctionParameterForTypeMismatch() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addExtensionFunctionParameterForTypeMismatch.kt");
}
@TestMetadata("addForItParameter.kt")
public void testAddForItParameter() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addForItParameter.kt");
}
@TestMetadata("addFunctionParameter.kt")
public void testAddFunctionParameter() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addFunctionParameter.kt");
}
@TestMetadata("addFunctionParameter2.kt")
public void testAddFunctionParameter2() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addFunctionParameter2.kt");
}
@TestMetadata("addFunctionParameter3.kt")
public void testAddFunctionParameter3() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addFunctionParameter3.kt");
}
@TestMetadata("addFunctionParameterAndChangeTypes.kt")
public void testAddFunctionParameterAndChangeTypes() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addFunctionParameterAndChangeTypes.kt");
}
@TestMetadata("addFunctionParameterAndChangeTypesWithReceiver.kt")
public void testAddFunctionParameterAndChangeTypesWithReceiver() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addFunctionParameterAndChangeTypesWithReceiver.kt");
}
@TestMetadata("addFunctionParameterForConstantTypeMismatch.kt")
public void testAddFunctionParameterForConstantTypeMismatch() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addFunctionParameterForConstantTypeMismatch.kt");
}
@TestMetadata("addFunctionParameterForNullForNotnullType.kt")
public void testAddFunctionParameterForNullForNotnullType() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addFunctionParameterForNullForNotnullType.kt");
}
@TestMetadata("addFunctionParameterForReferencedArgument.kt")
public void testAddFunctionParameterForReferencedArgument() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addFunctionParameterForReferencedArgument.kt");
}
@TestMetadata("addFunctionParameterForReferencedArgument2.kt")
public void testAddFunctionParameterForReferencedArgument2() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addFunctionParameterForReferencedArgument2.kt");
}
@TestMetadata("addFunctionParameterForReferencedArgument3.kt")
public void testAddFunctionParameterForReferencedArgument3() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addFunctionParameterForReferencedArgument3.kt");
}
@TestMetadata("addFunctionParameterForReferencedArgument4.kt")
public void testAddFunctionParameterForReferencedArgument4() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addFunctionParameterForReferencedArgument4.kt");
}
@TestMetadata("addFunctionParameterForReferencedArgument5.kt")
public void testAddFunctionParameterForReferencedArgument5() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addFunctionParameterForReferencedArgument5.kt");
}
@TestMetadata("addFunctionParameterForTypeMismatch1.kt")
public void testAddFunctionParameterForTypeMismatch1() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addFunctionParameterForTypeMismatch1.kt");
}
@TestMetadata("addFunctionParameterForTypeMismatch2.kt")
public void testAddFunctionParameterForTypeMismatch2() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addFunctionParameterForTypeMismatch2.kt");
}
@TestMetadata("addFunctionParameterForTypeMismatch3.kt")
public void testAddFunctionParameterForTypeMismatch3() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addFunctionParameterForTypeMismatch3.kt");
}
@TestMetadata("addFunctionParameterForTypeMismatch4.kt")
public void testAddFunctionParameterForTypeMismatch4() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addFunctionParameterForTypeMismatch4.kt");
}
@TestMetadata("addFunctionParameterForTypeMismatch5.kt")
public void testAddFunctionParameterForTypeMismatch5() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addFunctionParameterForTypeMismatch5.kt");
}
@TestMetadata("addFunctionParameterForTypeMismatchWithLambdaArgument.kt")
public void testAddFunctionParameterForTypeMismatchWithLambdaArgument() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addFunctionParameterForTypeMismatchWithLambdaArgument.kt");
}
@TestMetadata("addFunctionParameterLongNameRuntime.kt")
public void testAddFunctionParameterLongNameRuntime() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addFunctionParameterLongNameRuntime.kt");
}
@TestMetadata("addFunctionParameterWithAnonymousFunction.kt")
public void testAddFunctionParameterWithAnonymousFunction() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addFunctionParameterWithAnonymousFunction.kt");
}
@TestMetadata("addFunctionParameterWithFunctionReference.kt")
public void testAddFunctionParameterWithFunctionReference() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addFunctionParameterWithFunctionReference.kt");
}
@TestMetadata("addFunctionParameterWithLambda.kt")
public void testAddFunctionParameterWithLambda() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addFunctionParameterWithLambda.kt");
}
@TestMetadata("addFunctionParameterWithSmartCast.kt")
public void testAddFunctionParameterWithSmartCast() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addFunctionParameterWithSmartCast.kt");
}
@TestMetadata("addFunctionParameterWithSmartcastedArgument.kt")
public void testAddFunctionParameterWithSmartcastedArgument() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addFunctionParameterWithSmartcastedArgument.kt");
}
@TestMetadata("addFunctionParameterWithSuspendFunctionReference.kt")
public void testAddFunctionParameterWithSuspendFunctionReference() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addFunctionParameterWithSuspendFunctionReference.kt");
}
@TestMetadata("addNothingReturnType.kt")
public void testAddNothingReturnType() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addNothingReturnType.kt");
}
@TestMetadata("addParameterNotAvailableForBuiltins.kt")
public void testAddParameterNotAvailableForBuiltins() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addParameterNotAvailableForBuiltins.kt");
}
@TestMetadata("addParameterNotAvailableForLibrary.kt")
public void testAddParameterNotAvailableForLibrary() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addParameterNotAvailableForLibrary.kt");
}
@TestMetadata("addParameterToFakeOverride.kt")
public void testAddParameterToFakeOverride() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/addParameterToFakeOverride.kt");
}
@TestMetadata("changeAnnotationClassConstructor.kt")
public void testChangeAnnotationClassConstructor() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/changeAnnotationClassConstructor.kt");
}
@TestMetadata("changeClassConstructor.kt")
public void testChangeClassConstructor() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/changeClassConstructor.kt");
}
@TestMetadata("changeDataClassConstructor.kt")
public void testChangeDataClassConstructor() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/changeDataClassConstructor.kt");
}
@TestMetadata("changeFunctionLiteralParameters1.kt")
public void testChangeFunctionLiteralParameters1() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/changeFunctionLiteralParameters1.kt");
}
@TestMetadata("changeFunctionLiteralParameters2.kt")
public void testChangeFunctionLiteralParameters2() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/changeFunctionLiteralParameters2.kt");
}
@TestMetadata("changeFunctionLiteralParameters3.kt")
public void testChangeFunctionLiteralParameters3() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/changeFunctionLiteralParameters3.kt");
}
@TestMetadata("changeFunctionLiteralParameters4.kt")
public void testChangeFunctionLiteralParameters4() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/changeFunctionLiteralParameters4.kt");
}
@TestMetadata("complexHierarchy.kt")
public void testComplexHierarchy() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/complexHierarchy.kt");
}
@TestMetadata("complexHierarchyHead.kt")
public void testComplexHierarchyHead() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/complexHierarchyHead.kt");
}
@TestMetadata("complexHierarchyTail.kt")
public void testComplexHierarchyTail() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/complexHierarchyTail.kt");
}
@TestMetadata("fixExtensionLambdaSignature.kt")
public void testFixExtensionLambdaSignature() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/fixExtensionLambdaSignature.kt");
}
@TestMetadata("linearHierarchy.kt")
public void testLinearHierarchy() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/linearHierarchy.kt");
}
@TestMetadata("notAvailableForSynthesized.kt")
public void testNotAvailableForSynthesized() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/notAvailableForSynthesized.kt");
}
@TestMetadata("notEditable.kt")
public void testNotEditable() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/notEditable.kt");
}
@TestMetadata("removeConstructorParameter.kt")
public void testRemoveConstructorParameter() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/removeConstructorParameter.kt");
}
@TestMetadata("removeFunctionFirstParameter.kt")
public void testRemoveFunctionFirstParameter() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/removeFunctionFirstParameter.kt");
}
@TestMetadata("removeFunctionSecondParameter1.kt")
public void testRemoveFunctionSecondParameter1() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/removeFunctionSecondParameter1.kt");
}
@TestMetadata("removeFunctionSecondParameter2.kt")
public void testRemoveFunctionSecondParameter2() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/removeFunctionSecondParameter2.kt");
}
@TestMetadata("removeNamedParameter.kt")
public void testRemoveNamedParameter() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/removeNamedParameter.kt");
}
@TestMetadata("removeParameterFromFakeOverride.kt")
public void testRemoveParameterFromFakeOverride() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/removeParameterFromFakeOverride.kt");
}
@TestMetadata("removeParameterNotAvailableForBuiltins.kt")
public void testRemoveParameterNotAvailableForBuiltins() throws Exception {
runTest("../../../idea/tests/testData/quickfix/changeSignature/removeParameterNotAvailableForBuiltins.kt");
}
}
@RunWith(JUnit3RunnerWithInners.class)
@TestMetadata("../../../idea/tests/testData/quickfix/redundantModalityModifier")
public static class RedundantModalityModifier extends AbstractK2QuickFixTest {
@@ -3195,11 +3195,6 @@ public abstract class K1QuickFixTestGenerated extends AbstractK1QuickFixTest {
runTest("testData/quickfix/changeSignature/removeFunctionFirstParameter.kt");
}
@TestMetadata("removeFunctionLastLambdaParameter.kt")
public void testRemoveFunctionLastLambdaParameter() throws Exception {
runTest("testData/quickfix/changeSignature/removeFunctionLastLambdaParameter.kt");
}
@TestMetadata("removeFunctionSecondParameter1.kt")
public void testRemoveFunctionSecondParameter1() throws Exception {
runTest("testData/quickfix/changeSignature/removeFunctionSecondParameter1.kt");
@@ -3215,11 +3210,6 @@ public abstract class K1QuickFixTestGenerated extends AbstractK1QuickFixTest {
runTest("testData/quickfix/changeSignature/removeNamedParameter.kt");
}
@TestMetadata("removeParameterFromExtension.kt")
public void testRemoveParameterFromExtension() throws Exception {
runTest("testData/quickfix/changeSignature/removeParameterFromExtension.kt");
}
@TestMetadata("removeParameterFromFakeOverride.kt")
public void testRemoveParameterFromFakeOverride() throws Exception {
runTest("testData/quickfix/changeSignature/removeParameterFromFakeOverride.kt");
@@ -3229,116 +3219,6 @@ public abstract class K1QuickFixTestGenerated extends AbstractK1QuickFixTest {
public void testRemoveParameterNotAvailableForBuiltins() throws Exception {
runTest("testData/quickfix/changeSignature/removeParameterNotAvailableForBuiltins.kt");
}
@TestMetadata("removeUnusedConstructorParameterWithUsage.kt")
public void testRemoveUnusedConstructorParameterWithUsage() throws Exception {
runTest("testData/quickfix/changeSignature/removeUnusedConstructorParameterWithUsage.kt");
}
@TestMetadata("removeUnusedExtensionParameter.kt")
public void testRemoveUnusedExtensionParameter() throws Exception {
runTest("testData/quickfix/changeSignature/removeUnusedExtensionParameter.kt");
}
@TestMetadata("removeUnusedInternalConstructorParameter.kt")
public void testRemoveUnusedInternalConstructorParameter() throws Exception {
runTest("testData/quickfix/changeSignature/removeUnusedInternalConstructorParameter.kt");
}
@TestMetadata("removeUnusedParameter.kt")
public void testRemoveUnusedParameter() throws Exception {
runTest("testData/quickfix/changeSignature/removeUnusedParameter.kt");
}
@TestMetadata("removeUnusedParameterOfPropertySetter.kt")
public void testRemoveUnusedParameterOfPropertySetter() throws Exception {
runTest("testData/quickfix/changeSignature/removeUnusedParameterOfPropertySetter.kt");
}
@TestMetadata("removeUnusedParameterWithComments.kt")
public void testRemoveUnusedParameterWithComments() throws Exception {
runTest("testData/quickfix/changeSignature/removeUnusedParameterWithComments.kt");
}
@TestMetadata("removeUnusedParameterWithComments2.kt")
public void testRemoveUnusedParameterWithComments2() throws Exception {
runTest("testData/quickfix/changeSignature/removeUnusedParameterWithComments2.kt");
}
@TestMetadata("removeUnusedParameterWithComments3.kt")
public void testRemoveUnusedParameterWithComments3() throws Exception {
runTest("testData/quickfix/changeSignature/removeUnusedParameterWithComments3.kt");
}
@TestMetadata("removeUnusedParameterWithComments4.kt")
public void testRemoveUnusedParameterWithComments4() throws Exception {
runTest("testData/quickfix/changeSignature/removeUnusedParameterWithComments4.kt");
}
@TestMetadata("removeUnusedParameterWithLongQualifier.kt")
public void testRemoveUnusedParameterWithLongQualifier() throws Exception {
runTest("testData/quickfix/changeSignature/removeUnusedParameterWithLongQualifier.kt");
}
@TestMetadata("removeUnusedParameterWithTypeParameter.kt")
public void testRemoveUnusedParameterWithTypeParameter() throws Exception {
runTest("testData/quickfix/changeSignature/removeUnusedParameterWithTypeParameter.kt");
}
@TestMetadata("removeUnusedParameterWithTypeParameter2.kt")
public void testRemoveUnusedParameterWithTypeParameter2() throws Exception {
runTest("testData/quickfix/changeSignature/removeUnusedParameterWithTypeParameter2.kt");
}
@TestMetadata("removeUnusedParameterWithTypeParameter3.kt")
public void testRemoveUnusedParameterWithTypeParameter3() throws Exception {
runTest("testData/quickfix/changeSignature/removeUnusedParameterWithTypeParameter3.kt");
}
@TestMetadata("removeUnusedParameterWithTypeParameter4.kt")
public void testRemoveUnusedParameterWithTypeParameter4() throws Exception {
runTest("testData/quickfix/changeSignature/removeUnusedParameterWithTypeParameter4.kt");
}
@TestMetadata("removeUnusedParameterWithTypeParameter5.kt")
public void testRemoveUnusedParameterWithTypeParameter5() throws Exception {
runTest("testData/quickfix/changeSignature/removeUnusedParameterWithTypeParameter5.kt");
}
@TestMetadata("removeUnusedParameterWithTypeParameter6.kt")
public void testRemoveUnusedParameterWithTypeParameter6() throws Exception {
runTest("testData/quickfix/changeSignature/removeUnusedParameterWithTypeParameter6.kt");
}
@TestMetadata("removeUnusedParameterWithTypeParameter7.kt")
public void testRemoveUnusedParameterWithTypeParameter7() throws Exception {
runTest("testData/quickfix/changeSignature/removeUnusedParameterWithTypeParameter7.kt");
}
@TestMetadata("removeUnusedParameterWithTypeParameterAndTypeConstraint.kt")
public void testRemoveUnusedParameterWithTypeParameterAndTypeConstraint() throws Exception {
runTest("testData/quickfix/changeSignature/removeUnusedParameterWithTypeParameterAndTypeConstraint.kt");
}
@TestMetadata("removeUnusedParameterWithTypeParameterAndTypeConstraint2.kt")
public void testRemoveUnusedParameterWithTypeParameterAndTypeConstraint2() throws Exception {
runTest("testData/quickfix/changeSignature/removeUnusedParameterWithTypeParameterAndTypeConstraint2.kt");
}
@TestMetadata("removeUnusedPrimaryConstructorParameter.kt")
public void testRemoveUnusedPrimaryConstructorParameter() throws Exception {
runTest("testData/quickfix/changeSignature/removeUnusedPrimaryConstructorParameter.kt");
}
@TestMetadata("removeUnusedPrimaryConstructorParameter2.kt")
public void testRemoveUnusedPrimaryConstructorParameter2() throws Exception {
runTest("testData/quickfix/changeSignature/removeUnusedPrimaryConstructorParameter2.kt");
}
@TestMetadata("removeUnusedPrimaryConstructorParameterWithComments.kt")
public void testRemoveUnusedPrimaryConstructorParameterWithComments() throws Exception {
runTest("testData/quickfix/changeSignature/removeUnusedPrimaryConstructorParameterWithComments.kt");
}
}
@RunWith(JUnit3RunnerWithInners.class)
@@ -13071,6 +12951,134 @@ public abstract class K1QuickFixTestGenerated extends AbstractK1QuickFixTest {
}
}
@RunWith(JUnit3RunnerWithInners.class)
@TestMetadata("testData/quickfix/removeUnusedParameter")
public static class RemoveUnusedParameter extends AbstractK1QuickFixTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
@TestMetadata("removeFunctionLastLambdaParameter.kt")
public void testRemoveFunctionLastLambdaParameter() throws Exception {
runTest("testData/quickfix/removeUnusedParameter/removeFunctionLastLambdaParameter.kt");
}
@TestMetadata("removeParameterFromExtension.kt")
public void testRemoveParameterFromExtension() throws Exception {
runTest("testData/quickfix/removeUnusedParameter/removeParameterFromExtension.kt");
}
@TestMetadata("removeUnusedConstructorParameterWithUsage.kt")
public void testRemoveUnusedConstructorParameterWithUsage() throws Exception {
runTest("testData/quickfix/removeUnusedParameter/removeUnusedConstructorParameterWithUsage.kt");
}
@TestMetadata("removeUnusedExtensionParameter.kt")
public void testRemoveUnusedExtensionParameter() throws Exception {
runTest("testData/quickfix/removeUnusedParameter/removeUnusedExtensionParameter.kt");
}
@TestMetadata("removeUnusedInternalConstructorParameter.kt")
public void testRemoveUnusedInternalConstructorParameter() throws Exception {
runTest("testData/quickfix/removeUnusedParameter/removeUnusedInternalConstructorParameter.kt");
}
@TestMetadata("removeUnusedParameter.kt")
public void testRemoveUnusedParameter() throws Exception {
runTest("testData/quickfix/removeUnusedParameter/removeUnusedParameter.kt");
}
@TestMetadata("removeUnusedParameterOfPropertySetter.kt")
public void testRemoveUnusedParameterOfPropertySetter() throws Exception {
runTest("testData/quickfix/removeUnusedParameter/removeUnusedParameterOfPropertySetter.kt");
}
@TestMetadata("removeUnusedParameterWithComments.kt")
public void testRemoveUnusedParameterWithComments() throws Exception {
runTest("testData/quickfix/removeUnusedParameter/removeUnusedParameterWithComments.kt");
}
@TestMetadata("removeUnusedParameterWithComments2.kt")
public void testRemoveUnusedParameterWithComments2() throws Exception {
runTest("testData/quickfix/removeUnusedParameter/removeUnusedParameterWithComments2.kt");
}
@TestMetadata("removeUnusedParameterWithComments3.kt")
public void testRemoveUnusedParameterWithComments3() throws Exception {
runTest("testData/quickfix/removeUnusedParameter/removeUnusedParameterWithComments3.kt");
}
@TestMetadata("removeUnusedParameterWithComments4.kt")
public void testRemoveUnusedParameterWithComments4() throws Exception {
runTest("testData/quickfix/removeUnusedParameter/removeUnusedParameterWithComments4.kt");
}
@TestMetadata("removeUnusedParameterWithLongQualifier.kt")
public void testRemoveUnusedParameterWithLongQualifier() throws Exception {
runTest("testData/quickfix/removeUnusedParameter/removeUnusedParameterWithLongQualifier.kt");
}
@TestMetadata("removeUnusedParameterWithTypeParameter.kt")
public void testRemoveUnusedParameterWithTypeParameter() throws Exception {
runTest("testData/quickfix/removeUnusedParameter/removeUnusedParameterWithTypeParameter.kt");
}
@TestMetadata("removeUnusedParameterWithTypeParameter2.kt")
public void testRemoveUnusedParameterWithTypeParameter2() throws Exception {
runTest("testData/quickfix/removeUnusedParameter/removeUnusedParameterWithTypeParameter2.kt");
}
@TestMetadata("removeUnusedParameterWithTypeParameter3.kt")
public void testRemoveUnusedParameterWithTypeParameter3() throws Exception {
runTest("testData/quickfix/removeUnusedParameter/removeUnusedParameterWithTypeParameter3.kt");
}
@TestMetadata("removeUnusedParameterWithTypeParameter4.kt")
public void testRemoveUnusedParameterWithTypeParameter4() throws Exception {
runTest("testData/quickfix/removeUnusedParameter/removeUnusedParameterWithTypeParameter4.kt");
}
@TestMetadata("removeUnusedParameterWithTypeParameter5.kt")
public void testRemoveUnusedParameterWithTypeParameter5() throws Exception {
runTest("testData/quickfix/removeUnusedParameter/removeUnusedParameterWithTypeParameter5.kt");
}
@TestMetadata("removeUnusedParameterWithTypeParameter6.kt")
public void testRemoveUnusedParameterWithTypeParameter6() throws Exception {
runTest("testData/quickfix/removeUnusedParameter/removeUnusedParameterWithTypeParameter6.kt");
}
@TestMetadata("removeUnusedParameterWithTypeParameter7.kt")
public void testRemoveUnusedParameterWithTypeParameter7() throws Exception {
runTest("testData/quickfix/removeUnusedParameter/removeUnusedParameterWithTypeParameter7.kt");
}
@TestMetadata("removeUnusedParameterWithTypeParameterAndTypeConstraint.kt")
public void testRemoveUnusedParameterWithTypeParameterAndTypeConstraint() throws Exception {
runTest("testData/quickfix/removeUnusedParameter/removeUnusedParameterWithTypeParameterAndTypeConstraint.kt");
}
@TestMetadata("removeUnusedParameterWithTypeParameterAndTypeConstraint2.kt")
public void testRemoveUnusedParameterWithTypeParameterAndTypeConstraint2() throws Exception {
runTest("testData/quickfix/removeUnusedParameter/removeUnusedParameterWithTypeParameterAndTypeConstraint2.kt");
}
@TestMetadata("removeUnusedPrimaryConstructorParameter.kt")
public void testRemoveUnusedPrimaryConstructorParameter() throws Exception {
runTest("testData/quickfix/removeUnusedParameter/removeUnusedPrimaryConstructorParameter.kt");
}
@TestMetadata("removeUnusedPrimaryConstructorParameter2.kt")
public void testRemoveUnusedPrimaryConstructorParameter2() throws Exception {
runTest("testData/quickfix/removeUnusedParameter/removeUnusedPrimaryConstructorParameter2.kt");
}
@TestMetadata("removeUnusedPrimaryConstructorParameterWithComments.kt")
public void testRemoveUnusedPrimaryConstructorParameterWithComments() throws Exception {
runTest("testData/quickfix/removeUnusedParameter/removeUnusedPrimaryConstructorParameterWithComments.kt");
}
}
@RunWith(JUnit3RunnerWithInners.class)
@TestMetadata("testData/quickfix/removeUnusedReceiver")
public static class RemoveUnusedReceiver extends AbstractK1QuickFixTest {
@@ -11,4 +11,5 @@ open class Base(var x: Int) {
open class Inherited(x: Int) : Base(1, <caret>2.5) {}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -11,4 +11,5 @@ open class Base(var x: Int, d: Double) {
open class Inherited(x: Int) : Base(1, 2.5) {}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -5,4 +5,5 @@ data class Foo(val name: String)
fun test() {
val foo = Foo(<caret>1, "name")
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// IGNORE_K2
@@ -5,4 +5,5 @@ class Foo(val name: String)
fun test() {
val foo = Foo(<caret>1, "name")
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// IGNORE_K2
@@ -8,4 +8,9 @@
// ACTION: Remove argument
inline class Foo(val i: Int)
val foo = Foo(10, 20<caret>)
val foo = Foo(10, 20<caret>)
// IGNORE_K2
// Note: K2 does not support all of inspections, intentions, and quickfixes yet. When enabling K2,
// this test fails because the last two actions are missing at this moment. After implementing all
// inspections/intentions/quickfixes based on K2, we should remove the above "IGNORE_K2" directive.
@@ -9,4 +9,9 @@
@JvmInline
value class Foo(val i: Int)
val foo = Foo(10, 20<caret>)
val foo = Foo(10, 20<caret>)
// IGNORE_K2
// Note: K2 does not support all of inspections, intentions, and quickfixes yet. When enabling K2,
// this test fails because the last two actions are missing at this moment. After implementing all
// inspections/intentions/quickfixes based on K2, we should remove the above "IGNORE_K2" directive.
@@ -4,4 +4,5 @@ enum class Foo {
A("A"<caret>),
B("B")
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// IGNORE_K2
@@ -4,4 +4,5 @@ enum class Foo {
A("A"),
B("B"<caret>)
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// IGNORE_K2
@@ -7,4 +7,5 @@ enum class Foo(n: Int) {
D(),
E
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// IGNORE_K2
@@ -7,4 +7,5 @@ enum class Foo {
D(),
E
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// IGNORE_K2
@@ -7,4 +7,5 @@ enum class Foo {
D,
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// IGNORE_K2
@@ -6,4 +6,5 @@ private fun Foo.bar(s: String, i: Int) {}
fun test(foo: Foo, b: Boolean) {
foo.bar("", b<caret>, 0)
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// IGNORE_K2
@@ -6,4 +6,5 @@ class Foo
fun test(name: String) {
name.also { Foo(it<caret>) }
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// IGNORE_K2
@@ -7,4 +7,5 @@ fun foo(x: Int) {
foo(1, 4<caret>);
foo(2, 3, sdsd);
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -7,4 +7,5 @@ fun foo(x: Int, i: Int) {
foo(1, 4);
foo(2, 3, sdsd);
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -8,4 +8,5 @@ fun caller() {
}
fun called() {}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -8,4 +8,5 @@ fun caller() {
}
fun called(of: Set<Int>) {}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -8,4 +8,5 @@ fun caller() {
fun called() {}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -8,4 +8,5 @@ fun caller() {
fun called(of: Set<Int>) {}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -8,4 +8,5 @@ fun foo(x: Int, i: Double) {
foo(1.5, 4, <caret>5, 6);
foo(2, 3, sdsd);
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// IGNORE_K2
@@ -5,4 +5,5 @@ fun String.withReceiver(i: Int) {}
private fun test(s: String, q: Boolean) {
s.withReceiver(q, <caret>2)
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// IGNORE_K2
@@ -5,4 +5,5 @@ fun foo(name: String) = Unit
fun test() {
val foo = foo(<caret>1, "name")
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// IGNORE_K2
@@ -4,4 +4,5 @@ fun foo(s : String) = Unit
fun test() {
foo(<caret>null, "")
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// IGNORE_K2
@@ -5,4 +5,5 @@ fun foo() {}
fun test(isObject: Boolean) {
foo(isObject<caret>)
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -5,4 +5,5 @@ fun foo(isObject: Boolean) {}
fun test(isObject: Boolean) {
foo(isObject)
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -5,4 +5,5 @@ fun bar(isObject: Boolean) {}
fun test(isObject: Boolean) {
bar(true, isObject<caret>)
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -5,4 +5,5 @@ fun bar(isObject: Boolean, isObject1: Boolean) {}
fun test(isObject: Boolean) {
bar(true, isObject)
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -5,4 +5,5 @@ fun foo() {}
fun test(isObject: Boolean) {
foo((isObject)<caret>)
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -5,4 +5,5 @@ fun foo(isObject: Boolean) {}
fun test(isObject: Boolean) {
foo((isObject))
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -0,0 +1,15 @@
// "Add parameter to function 'foo'" "true"
// DISABLE-ERRORS
fun foo(string: String) {}
fun bar(f: (String) -> Unit) {}
fun test() {
bar {
foo(it)
}
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -11,4 +11,5 @@ fun test() {
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -11,4 +11,5 @@ fun test() {
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.codeinsight.api.applicators.fixes.KotlinApplicatorBasedQuickFix
@@ -0,0 +1,13 @@
// "Add parameter to function 'foo'" "true"
// DISABLE-ERRORS
fun foo(string: String) {}
class Test {
val x: String = ""
get() {
foo(field)
return field
}
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -9,4 +9,5 @@ class Test {
return field
}
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -9,4 +9,5 @@ class Test {
return field
}
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.codeinsight.api.applicators.fixes.KotlinApplicatorBasedQuickFix
@@ -5,4 +5,5 @@ fun foo(i1: Int, i2: Int, i3: Int, i4: Int) {
fun test() {
foo(<caret>"", 2, 3, 4, 5)
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// IGNORE_K2
@@ -5,4 +5,5 @@ fun foo(i1: Int, i2: Int, i3: Int, i4: Int) {
fun test() {
foo(1, <caret>"", 3, 4, 5)
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// IGNORE_K2
@@ -5,4 +5,5 @@ fun foo(i1: Int, i2: Int, i3: Int, i4: Int) {
fun test() {
foo(1, 2, <caret>"", 4, 5)
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// IGNORE_K2
@@ -5,4 +5,5 @@ fun foo(i1: Int, i2: Int, i3: Int, i4: Int) {
fun test() {
foo(1, 2, 3, <caret>"", 5)
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// IGNORE_K2
@@ -12,3 +12,5 @@ fun foo(i1: Int, i2: Int, i3: Int, i4: Int) {
fun test() {
foo(<caret>"", "", 3, 4, 5)
}
// IGNORE_K2
@@ -4,4 +4,5 @@ fun foo(f: () -> Unit) {}
fun test() {
foo(""<caret>) {}
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// IGNORE_K2
@@ -0,0 +1,12 @@
import java.util.LinkedHashSet
// "Add parameter to function 'foo'" "true"
// DISABLE-ERRORS
fun foo(x: Int, linkedHashSet: LinkedHashSet<Int>) {
foo(, java.util.LinkedHashSet<Int>());
foo(1, java.util.LinkedHashSet<Int>());
foo(2, java.util.LinkedHashSet<Int>());
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -6,4 +6,5 @@ fun foo(x: Int) {
foo(1);
foo(2, java.util.LinkedHashSet<Int>()<caret>);
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -4,4 +4,5 @@ fun baz() {}
fun foo() {
baz(fun(i: Int): String { return i.toString() }<caret>)
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -4,4 +4,5 @@ fun baz(function: (Int) -> String) {}
fun foo() {
baz(fun(i: Int): String { return i.toString() }<caret>)
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -0,0 +1,10 @@
// "Add parameter to function 'baz'" "true"
fun bar(): Int = 42
fun baz(function: () -> Int) {}
fun foo() {
baz(::bar)
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -6,4 +6,5 @@ fun baz() {}
fun foo() {
baz(::bar<caret>)
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -6,4 +6,5 @@ fun baz(kFunction0: () -> Int) {}
fun foo() {
baz(::bar)
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.codeinsight.api.applicators.fixes.KotlinApplicatorBasedQuickFix
@@ -0,0 +1,8 @@
// "Add parameter to function 'baz'" "true"
fun baz(function: (Int) -> String) {}
fun foo() {
baz() { i: Int -> i.toString() }<caret>
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -4,4 +4,5 @@ fun baz() {}
fun foo() {
baz { i: Int -> i.toString() }<caret>
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -4,4 +4,5 @@ fun baz(function: (Int) -> String) {}
fun foo() {
baz { i: Int -> i.toString() }<caret>
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.codeinsight.api.applicators.fixes.KotlinApplicatorBasedQuickFix
@@ -0,0 +1,15 @@
// "Add parameter to function 'fooFun'" "true"
sealed class Foo {
class SubFoo : Foo()
class Sub2Foo : Foo()
}
fun fooFun(subFoo1: Foo.SubFoo): Int = 1
val subFoo: Foo = Foo.SubFoo()
val bar = when(subFoo){
is Foo.SubFoo -> fooFun(<caret>subFoo)
else -> 0
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -11,4 +11,5 @@ val bar = when(subFoo){
is Foo.SubFoo -> fooFun(<caret>subFoo)
else -> 0
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -11,4 +11,5 @@ val bar = when(subFoo){
is Foo.SubFoo -> fooFun(<caret>subFoo)
else -> 0
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.codeinsight.api.applicators.fixes.KotlinApplicatorBasedQuickFix
@@ -12,4 +12,5 @@ fun foobar(parent: Parent) {
}
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -12,4 +12,5 @@ fun foobar(parent: Parent) {
}
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -0,0 +1,10 @@
// "Add parameter to function 'baz'" "true"
suspend fun bar(): Int = 42
suspend fun baz(function: suspend () -> Int) {}
suspend fun foo() {
baz(::bar)
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -6,4 +6,5 @@ suspend fun baz() {}
suspend fun foo() {
baz(::bar<caret>)
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -6,4 +6,5 @@ suspend fun baz(kSuspendFunction0: suspend () -> Int) {}
suspend fun foo() {
baz(::bar)
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.codeinsight.api.applicators.fixes.KotlinApplicatorBasedQuickFix
@@ -1,4 +1,5 @@
// "Specify return type explicitly" "true"
// WITH_STDLIB
<caret>fun foo() = throw IllegalArgumentException()
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.SpecifyTypeExplicitlyIntention
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.SpecifyTypeExplicitlyIntention
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.intentions.SpecifyTypeExplicitlyIntention
@@ -1,4 +1,5 @@
// "Specify return type explicitly" "true"
// WITH_STDLIB
fun foo(): Nothing = throw IllegalArgumentException()
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.SpecifyTypeExplicitlyIntention
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.SpecifyTypeExplicitlyIntention
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.intentions.SpecifyTypeExplicitlyIntention
@@ -17,4 +17,5 @@ interface ZZZZ : ZZZ {
fun usage(z: ZZZ) {
z.f(<caret>3)
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// IGNORE_K2
@@ -4,4 +4,5 @@ private annotation class AnnParClass(val p1: Int, val p2: Int)
@AnnParClass(1, 2, <caret>3)
private val vac = 3
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -4,4 +4,5 @@ private annotation class AnnParClass(val p1: Int, val p2: Int, val i: Int)
@AnnParClass(1, 2, <caret>3)
private val vac = 3
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -5,4 +5,5 @@ fun test() {
val foo = FooBar(1, <caret>"name")
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// IGNORE_K2
@@ -5,4 +5,5 @@ fun test() {
val foo = FooBar(1, <caret>"name")
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// IGNORE_K2
@@ -5,4 +5,5 @@ fun f(x: Int, y: Int, z : () -> Int) {
f(1, 2, {x: Int, y: Int<caret> -> 42});
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionLiteralSignatureFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionLiteralSignatureFix
// IGNORE_K2
@@ -5,4 +5,5 @@ fun f(x: Int, y: Int, z : (Int, Int?, Any) -> Int) {
f(1, 2, {<caret>x: Int -> 42});
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionLiteralSignatureFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionLiteralSignatureFix
// IGNORE_K2
@@ -6,4 +6,5 @@ fun f(x: Int, y: Int, z : () -> Int) {
f(1, 2, {x: Int, y: Int<caret> -> x});
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionLiteralSignatureFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionLiteralSignatureFix
// IGNORE_K2
@@ -6,4 +6,5 @@ fun f(x: Int, y: Int, z : (Int, Int?, Any) -> Int) {
f(1, 2, {<caret>x: Int -> x});
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionLiteralSignatureFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionLiteralSignatureFix
// IGNORE_K2
@@ -57,4 +57,5 @@ fun usage(o: OOOB) {
o.f(3)
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// IGNORE_K2
@@ -57,4 +57,5 @@ fun usage(o: OOOB) {
o.f(3)
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionSignatureFix$Companion$RemoveParameterFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionSignatureFix$Companion$RemoveParameterFix
// IGNORE_K2
@@ -57,4 +57,5 @@ fun usage(o: OOOB) {
o.f(3, <caret>"asdv")
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// IGNORE_K2
@@ -7,4 +7,5 @@ fun foo(f: Int.(Int, Int) -> Int) {
fun test() {
foo { <caret>a: Int -> 0 }
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionLiteralSignatureFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionLiteralSignatureFix
// IGNORE_K2
@@ -24,4 +24,5 @@ fun usage(o: OOO) {
o.f(3)
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix
// IGNORE_K2
@@ -11,4 +11,5 @@ open class Base(var x: Int) {
open class Inherited(x: Int) : Base(<caret>) {}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionSignatureFix$Companion$RemoveParameterFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionSignatureFix$Companion$RemoveParameterFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -11,4 +11,5 @@ open class Base() {
open class Inherited(x: Int) : Base() {}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionSignatureFix$Companion$RemoveParameterFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionSignatureFix$Companion$RemoveParameterFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -7,4 +7,5 @@ fun foo(x: Int, y: Int) {
foo(1, 2);
foo(2, 3, sdsd);
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionSignatureFix$Companion$RemoveParameterFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionSignatureFix$Companion$RemoveParameterFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -7,4 +7,5 @@ fun foo(y: Int) {
foo(2);
foo(2, 3, sdsd);
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionSignatureFix$Companion$RemoveParameterFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionSignatureFix$Companion$RemoveParameterFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -7,4 +7,5 @@ fun foo(x: Int, y: Int) {
foo(1, 2);
foo(2, 3, sdsd);
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionSignatureFix$Companion$RemoveParameterFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionSignatureFix$Companion$RemoveParameterFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -7,4 +7,5 @@ fun foo(x: Int) {
foo(1);
foo(2, 3, sdsd);
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionSignatureFix$Companion$RemoveParameterFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionSignatureFix$Companion$RemoveParameterFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -7,4 +7,5 @@ fun foo(x: Int, y: Int) {
foo(1, 2);
foo(2, 3, sdsd);
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionSignatureFix$Companion$RemoveParameterFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionSignatureFix$Companion$RemoveParameterFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -7,4 +7,5 @@ fun foo(x: Int) {
foo(1);
foo(2, 3, sdsd);
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionSignatureFix$Companion$RemoveParameterFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionSignatureFix$Companion$RemoveParameterFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -7,4 +7,5 @@ fun foo(x: Int, y: Int) {
foo(1, 2);
foo(2, 3, sdsd);
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionSignatureFix$Companion$RemoveParameterFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionSignatureFix$Companion$RemoveParameterFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -7,4 +7,5 @@ fun foo(y: Int) {
foo(2);
foo(2, 3, sdsd);
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionSignatureFix$Companion$RemoveParameterFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionSignatureFix$Companion$RemoveParameterFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.refactoring.changeSignature.quickFix.ChangeSignatureFixFactory$applicator$1
@@ -17,4 +17,5 @@ interface ZZZZ : ZZZ {
fun usage(z: ZZZ) {
z.f(<caret>)
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionSignatureFix$Companion$RemoveParameterFix
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeFunctionSignatureFix$Companion$RemoveParameterFix
// IGNORE_K2

Some files were not shown because too many files have changed in this diff Show More