diff --git a/plugins/kotlin/idea/tests/testData/quickfix/addExclExclCall/typeMismatch/smartcastImpossibleForReceiver.kt b/plugins/kotlin/idea/tests/testData/quickfix/addExclExclCall/typeMismatch/smartcastImpossibleForReceiver.kt index 2516be0aff08..d35929fdd0de 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/addExclExclCall/typeMismatch/smartcastImpossibleForReceiver.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/addExclExclCall/typeMismatch/smartcastImpossibleForReceiver.kt @@ -1,5 +1,9 @@ // "Add non-null asserted (!!) call" "true" -// ACTION: Cast expression 'a' to 'Foo' +// ACTION: Add non-null asserted (!!) call +// ACTION: Convert to run +// ACTION: Convert to with +// ACTION: Remove braces from 'if' statement +// ACTION: Replace 'if' expression with safe access expression interface Foo { fun bar() diff --git a/plugins/kotlin/idea/tests/testData/quickfix/addExclExclCall/typeMismatch/smartcastImpossibleForReceiver.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/addExclExclCall/typeMismatch/smartcastImpossibleForReceiver.kt.after index f6785c8cff20..467769193a32 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/addExclExclCall/typeMismatch/smartcastImpossibleForReceiver.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/addExclExclCall/typeMismatch/smartcastImpossibleForReceiver.kt.after @@ -1,5 +1,9 @@ // "Add non-null asserted (!!) call" "true" -// ACTION: Cast expression 'a' to 'Foo' +// ACTION: Add non-null asserted (!!) call +// ACTION: Convert to run +// ACTION: Convert to with +// ACTION: Remove braces from 'if' statement +// ACTION: Replace 'if' expression with safe access expression interface Foo { fun bar() diff --git a/plugins/kotlin/idea/tests/testData/quickfix/autoImports/notExcludedFromImportWhenInternalUse.kt b/plugins/kotlin/idea/tests/testData/quickfix/autoImports/notExcludedFromImportWhenInternalUse.kt index 9ed0b0e8b42b..43957a94ea4c 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/autoImports/notExcludedFromImportWhenInternalUse.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/autoImports/notExcludedFromImportWhenInternalUse.kt @@ -1,9 +1,15 @@ // "Import" "true" // WITH_STDLIB +// ACTION: Compiler warning 'UNUSED_EXPRESSION' options +// ACTION: Create annotation 'FunctionReference' +// ACTION: Create class 'FunctionReference' +// ACTION: Create enum 'FunctionReference' +// ACTION: Create interface 'FunctionReference' // ACTION: Create local variable 'FunctionReference' // ACTION: Create object 'FunctionReference' // ACTION: Create parameter 'FunctionReference' // ACTION: Create property 'FunctionReference' +// ACTION: Import // ACTION: Introduce local variable // ACTION: Rename reference diff --git a/plugins/kotlin/idea/tests/testData/quickfix/autoImports/notExcludedFromImportWhenInternalUse.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/autoImports/notExcludedFromImportWhenInternalUse.kt.after index cdce7a100356..1dab4c73bc14 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/autoImports/notExcludedFromImportWhenInternalUse.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/autoImports/notExcludedFromImportWhenInternalUse.kt.after @@ -1,9 +1,15 @@ // "Import" "true" // WITH_STDLIB +// ACTION: Compiler warning 'UNUSED_EXPRESSION' options +// ACTION: Create annotation 'FunctionReference' +// ACTION: Create class 'FunctionReference' +// ACTION: Create enum 'FunctionReference' +// ACTION: Create interface 'FunctionReference' // ACTION: Create local variable 'FunctionReference' // ACTION: Create object 'FunctionReference' // ACTION: Create parameter 'FunctionReference' // ACTION: Create property 'FunctionReference' +// ACTION: Import // ACTION: Introduce local variable // ACTION: Rename reference diff --git a/plugins/kotlin/idea/tests/testData/quickfix/changeToLabeledReturn/multipleInner.kt b/plugins/kotlin/idea/tests/testData/quickfix/changeToLabeledReturn/multipleInner.kt index 99d949d9a824..c2dbc8860bc0 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/changeToLabeledReturn/multipleInner.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/changeToLabeledReturn/multipleInner.kt @@ -1,6 +1,6 @@ // "Change to 'return@forEach'" "true" // ACTION: Change to 'return@foo' -// ACTION: Introduce local variable +// ACTION: Change to 'return@forEach' // ERROR: The integer literal does not conform to the expected type Unit // WITH_STDLIB // COMPILER_ARGUMENTS: -XXLanguage:-NewInference diff --git a/plugins/kotlin/idea/tests/testData/quickfix/changeToLabeledReturn/multipleInner.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/changeToLabeledReturn/multipleInner.kt.after index bbbf2f137add..3bde170e4190 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/changeToLabeledReturn/multipleInner.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/changeToLabeledReturn/multipleInner.kt.after @@ -1,6 +1,6 @@ // "Change to 'return@forEach'" "true" // ACTION: Change to 'return@foo' -// ACTION: Introduce local variable +// ACTION: Change to 'return@forEach' // ERROR: The integer literal does not conform to the expected type Unit // WITH_STDLIB // COMPILER_ARGUMENTS: -XXLanguage:-NewInference diff --git a/plugins/kotlin/idea/tests/testData/quickfix/changeToLabeledReturn/multipleOuter.kt b/plugins/kotlin/idea/tests/testData/quickfix/changeToLabeledReturn/multipleOuter.kt index 706ad972a344..95c175d2951e 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/changeToLabeledReturn/multipleOuter.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/changeToLabeledReturn/multipleOuter.kt @@ -1,6 +1,6 @@ // "Change to 'return@foo'" "true" +// ACTION: Change to 'return@foo' // ACTION: Change to 'return@forEach' -// ACTION: Introduce local variable // WITH_STDLIB fun foo(f:()->Int){} diff --git a/plugins/kotlin/idea/tests/testData/quickfix/changeToLabeledReturn/multipleOuter.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/changeToLabeledReturn/multipleOuter.kt.after index ee0bf280b199..8edc8ae21966 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/changeToLabeledReturn/multipleOuter.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/changeToLabeledReturn/multipleOuter.kt.after @@ -1,6 +1,6 @@ // "Change to 'return@foo'" "true" +// ACTION: Change to 'return@foo' // ACTION: Change to 'return@forEach' -// ACTION: Introduce local variable // WITH_STDLIB fun foo(f:()->Int){} diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperClassFromSuperTypeEntry2.kt b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperClassFromSuperTypeEntry2.kt index 9d86e7e6ab5b..40c0b4a4f5db 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperClassFromSuperTypeEntry2.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperClassFromSuperTypeEntry2.kt @@ -1,4 +1,5 @@ // "Create class 'Unknown'" "true" +// ACTION: Create class 'Unknown' // ACTION: Create interface 'Unknown' // ACTION: Create type parameter 'Unknown' in class 'A' // DISABLE-ERRORS diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperClassFromSuperTypeEntry2.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperClassFromSuperTypeEntry2.kt.after index 22ad44a5bc1f..d5e7e36c2bdf 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperClassFromSuperTypeEntry2.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperClassFromSuperTypeEntry2.kt.after @@ -1,4 +1,5 @@ // "Create class 'Unknown'" "true" +// ACTION: Create class 'Unknown' // ACTION: Create interface 'Unknown' // ACTION: Create type parameter 'Unknown' in class 'A' // DISABLE-ERRORS diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperClassFromSuperTypeEntry3.kt b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperClassFromSuperTypeEntry3.kt index 260ec4f2ac50..a646d79f28ac 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperClassFromSuperTypeEntry3.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperClassFromSuperTypeEntry3.kt @@ -1,4 +1,5 @@ // "Create class 'Unknown'" "true" +// ACTION: Create class 'Unknown' // ACTION: Create interface 'Unknown' // ACTION: Create type parameter 'Unknown' in class 'A' // DISABLE-ERRORS diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperClassFromSuperTypeEntry3.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperClassFromSuperTypeEntry3.kt.after index 3401f0e5310a..0512befcfe1c 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperClassFromSuperTypeEntry3.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createClass/delegationSpecifier/createSuperClassFromSuperTypeEntry3.kt.after @@ -1,4 +1,5 @@ // "Create class 'Unknown'" "true" +// ACTION: Create class 'Unknown' // ACTION: Create interface 'Unknown' // ACTION: Create type parameter 'Unknown' in class 'A' // DISABLE-ERRORS diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inAccessor.kt b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inAccessor.kt index 71fd9a2490f8..36f9af8536b2 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inAccessor.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inAccessor.kt @@ -1,5 +1,8 @@ // "Create local variable 'foo'" "true" -// ACTION: Create parameter 'foo' +// ACTION: Create local variable 'foo' +// ACTION: Create property 'foo' +// ACTION: Create property 'foo' as constructor parameter +// ACTION: Rename reference class A { val t: Int get() { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inAccessor.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inAccessor.kt.after index 5f208b20a493..65a80e601f9f 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inAccessor.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inAccessor.kt.after @@ -1,5 +1,8 @@ // "Create local variable 'foo'" "true" -// ACTION: Create parameter 'foo' +// ACTION: Create local variable 'foo' +// ACTION: Create property 'foo' +// ACTION: Create property 'foo' as constructor parameter +// ACTION: Rename reference class A { val t: Int get() { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inAccessorWithExpressionBody.kt b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inAccessorWithExpressionBody.kt index b5fd14d8c09b..a59b688409e8 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inAccessorWithExpressionBody.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inAccessorWithExpressionBody.kt @@ -1,5 +1,10 @@ // "Create local variable 'foo'" "true" -// ACTION: Create parameter 'foo' +// ACTION: Convert property getter to initializer +// ACTION: Convert to block body +// ACTION: Create local variable 'foo' +// ACTION: Create property 'foo' +// ACTION: Create property 'foo' as constructor parameter +// ACTION: Rename reference class A { val t: Int get() = foo diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inAccessorWithExpressionBody.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inAccessorWithExpressionBody.kt.after index 5f208b20a493..bb5312cb484a 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inAccessorWithExpressionBody.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inAccessorWithExpressionBody.kt.after @@ -1,5 +1,10 @@ // "Create local variable 'foo'" "true" -// ACTION: Create parameter 'foo' +// ACTION: Convert property getter to initializer +// ACTION: Convert to block body +// ACTION: Create local variable 'foo' +// ACTION: Create property 'foo' +// ACTION: Create property 'foo' as constructor parameter +// ACTION: Rename reference class A { val t: Int get() { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inDefaultValueLocalFun.kt b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inDefaultValueLocalFun.kt index 7ccb42353ed9..2670deb5d602 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inDefaultValueLocalFun.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inDefaultValueLocalFun.kt @@ -1,8 +1,7 @@ // "Create local variable 'abc'" "true" // ACTION: Add '@JvmOverloads' annotation to function 'testMethod' +// ACTION: Create local variable 'abc' // ACTION: Create parameter 'abc' -// ACTION: Create property 'abc' -// ACTION: Create property 'abc' as constructor parameter // ACTION: Enable a trailing comma by default in the formatter // ACTION: Rename reference // WITH_STDLIB diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inDefaultValueLocalFun.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inDefaultValueLocalFun.kt.after index 6b05aab4078b..117d300df882 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inDefaultValueLocalFun.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inDefaultValueLocalFun.kt.after @@ -1,8 +1,7 @@ // "Create local variable 'abc'" "true" // ACTION: Add '@JvmOverloads' annotation to function 'testMethod' +// ACTION: Create local variable 'abc' // ACTION: Create parameter 'abc' -// ACTION: Create property 'abc' -// ACTION: Create property 'abc' as constructor parameter // ACTION: Enable a trailing comma by default in the formatter // ACTION: Rename reference // WITH_STDLIB diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inFun.kt b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inFun.kt index 70019a3d5617..819c6d3e344e 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inFun.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inFun.kt @@ -1,5 +1,8 @@ // "Create local variable 'foo'" "true" +// ACTION: Create local variable 'foo' // ACTION: Create parameter 'foo' +// ACTION: Create property 'foo' +// ACTION: Rename reference fun test(): Int { return foo diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inFun.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inFun.kt.after index d7c90a85f559..2deec2fc5b33 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inFun.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inFun.kt.after @@ -1,5 +1,8 @@ // "Create local variable 'foo'" "true" +// ACTION: Create local variable 'foo' // ACTION: Create parameter 'foo' +// ACTION: Create property 'foo' +// ACTION: Rename reference fun test(): Int { val foo = 0 diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inFunWithExpressionBody.kt b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inFunWithExpressionBody.kt index 61bccabe9091..8ebfd8816d9b 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inFunWithExpressionBody.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inFunWithExpressionBody.kt @@ -1,4 +1,8 @@ // "Create local variable 'foo'" "true" +// ACTION: Convert to block body +// ACTION: Create local variable 'foo' // ACTION: Create parameter 'foo' +// ACTION: Create property 'foo' +// ACTION: Rename reference fun test(): Int = foo \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inFunWithExpressionBody.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inFunWithExpressionBody.kt.after index d7c90a85f559..d94db3bf79fa 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inFunWithExpressionBody.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inFunWithExpressionBody.kt.after @@ -1,5 +1,9 @@ // "Create local variable 'foo'" "true" +// ACTION: Convert to block body +// ACTION: Create local variable 'foo' // ACTION: Create parameter 'foo' +// ACTION: Create property 'foo' +// ACTION: Rename reference fun test(): Int { val foo = 0 diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inLambdaNoParams.kt b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inLambdaNoParams.kt index c5645330ad44..acd9ccdffc15 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inLambdaNoParams.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inLambdaNoParams.kt @@ -1,5 +1,11 @@ // "Create local variable 'foo'" "true" +// ACTION: Convert to multi-line lambda +// ACTION: Create local variable 'foo' // ACTION: Create parameter 'foo' +// ACTION: Create property 'foo' +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Rename reference +// ACTION: Specify explicit lambda signature fun test(n: Int) { val f: () -> Int = { foo } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inLambdaNoParams.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inLambdaNoParams.kt.after index b857cce82d71..8cbb8f849cf9 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inLambdaNoParams.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inLambdaNoParams.kt.after @@ -1,5 +1,11 @@ // "Create local variable 'foo'" "true" +// ACTION: Convert to multi-line lambda +// ACTION: Create local variable 'foo' // ACTION: Create parameter 'foo' +// ACTION: Create property 'foo' +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Rename reference +// ACTION: Specify explicit lambda signature fun test(n: Int) { val f: () -> Int = { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inLambdaWithParams.kt b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inLambdaWithParams.kt index 407a08fa8237..ae6bfd362809 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inLambdaWithParams.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inLambdaWithParams.kt @@ -1,5 +1,11 @@ // "Create local variable 'foo'" "true" +// ACTION: Convert to multi-line lambda +// ACTION: Create local variable 'foo' // ACTION: Create parameter 'foo' +// ACTION: Create property 'foo' +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Rename reference +// ACTION: Specify explicit lambda signature fun test(n: Int) { val f: (Int, Int) -> Int = { a, b -> foo } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inLambdaWithParams.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inLambdaWithParams.kt.after index 1613113087c5..bbfa8df643c4 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inLambdaWithParams.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inLambdaWithParams.kt.after @@ -1,5 +1,11 @@ // "Create local variable 'foo'" "true" +// ACTION: Convert to multi-line lambda +// ACTION: Create local variable 'foo' // ACTION: Create parameter 'foo' +// ACTION: Create property 'foo' +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Rename reference +// ACTION: Specify explicit lambda signature fun test(n: Int) { val f: (Int, Int) -> Int = { a, b -> diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inMultiLineLambdaNoParams.kt b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inMultiLineLambdaNoParams.kt index 54abae7bb8bd..b9d05ec3ce3c 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inMultiLineLambdaNoParams.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inMultiLineLambdaNoParams.kt @@ -1,5 +1,11 @@ // "Create local variable 'foo'" "true" +// ACTION: Convert to single-line lambda +// ACTION: Create local variable 'foo' // ACTION: Create parameter 'foo' +// ACTION: Create property 'foo' +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Rename reference +// ACTION: Specify explicit lambda signature fun test(n: Int) { val f: () -> Int = { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inMultiLineLambdaNoParams.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inMultiLineLambdaNoParams.kt.after index b857cce82d71..a6e57905221b 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inMultiLineLambdaNoParams.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inMultiLineLambdaNoParams.kt.after @@ -1,5 +1,11 @@ // "Create local variable 'foo'" "true" +// ACTION: Convert to single-line lambda +// ACTION: Create local variable 'foo' // ACTION: Create parameter 'foo' +// ACTION: Create property 'foo' +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Rename reference +// ACTION: Specify explicit lambda signature fun test(n: Int) { val f: () -> Int = { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inMultiLineLambdaWithParams.kt b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inMultiLineLambdaWithParams.kt index fdeead6efebf..da045055be3d 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inMultiLineLambdaWithParams.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inMultiLineLambdaWithParams.kt @@ -1,5 +1,11 @@ // "Create local variable 'foo'" "true" +// ACTION: Convert to single-line lambda +// ACTION: Create local variable 'foo' // ACTION: Create parameter 'foo' +// ACTION: Create property 'foo' +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Rename reference +// ACTION: Specify explicit lambda signature fun test(n: Int) { val f: (Int, Int) -> Int = { a, b -> diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inMultiLineLambdaWithParams.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inMultiLineLambdaWithParams.kt.after index 1613113087c5..275be6aa5ed0 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inMultiLineLambdaWithParams.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/inMultiLineLambdaWithParams.kt.after @@ -1,5 +1,11 @@ // "Create local variable 'foo'" "true" +// ACTION: Convert to single-line lambda +// ACTION: Create local variable 'foo' // ACTION: Create parameter 'foo' +// ACTION: Create property 'foo' +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Rename reference +// ACTION: Specify explicit lambda signature fun test(n: Int) { val f: (Int, Int) -> Int = { a, b -> diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/localWithPackageName.kt b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/localWithPackageName.kt index c7f20c5493af..14f670882ef0 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/localWithPackageName.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/localWithPackageName.kt @@ -1,5 +1,8 @@ // "Create local variable 'foo'" "true" +// ACTION: Create local variable 'foo' // ACTION: Create parameter 'foo' +// ACTION: Create property 'foo' +// ACTION: Rename reference package foo diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/localWithPackageName.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/localWithPackageName.kt.after index 3b56a27c0af2..98b2ce20de34 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/localWithPackageName.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/localWithPackageName.kt.after @@ -1,5 +1,8 @@ // "Create local variable 'foo'" "true" +// ACTION: Create local variable 'foo' // ACTION: Create parameter 'foo' +// ACTION: Create property 'foo' +// ACTION: Rename reference package foo diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/unitTypedInFun.kt b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/unitTypedInFun.kt index acde1167f25a..0548d00e02cf 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/unitTypedInFun.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/unitTypedInFun.kt @@ -1,5 +1,10 @@ // "Create local variable 'foo'" "true" +// ACTION: Create local variable 'foo' +// ACTION: Create object 'foo' // ACTION: Create parameter 'foo' +// ACTION: Create property 'foo' +// ACTION: Rename reference +// ACTION: Split property declaration fun test() { val u: Unit = foo diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/unitTypedInFun.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/unitTypedInFun.kt.after index e78f3374d24e..abb74f8507d5 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/unitTypedInFun.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/unitTypedInFun.kt.after @@ -1,5 +1,10 @@ // "Create local variable 'foo'" "true" +// ACTION: Create local variable 'foo' +// ACTION: Create object 'foo' // ACTION: Create parameter 'foo' +// ACTION: Create property 'foo' +// ACTION: Rename reference +// ACTION: Split property declaration fun test() { val foo = Unit diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaNoParams.kt b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaNoParams.kt index d645badecf1b..1bd93f888d3e 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaNoParams.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaNoParams.kt @@ -1,5 +1,11 @@ // "Create parameter 'foo'" "true" +// ACTION: Convert to multi-line lambda // ACTION: Create local variable 'foo' +// ACTION: Create parameter 'foo' +// ACTION: Create property 'foo' +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Rename reference +// ACTION: Specify explicit lambda signature fun test(n: Int) { val f: () -> Int = { foo } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaNoParams.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaNoParams.kt.after index b2b757cc02e8..ac1c9b497355 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaNoParams.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaNoParams.kt.after @@ -1,5 +1,11 @@ // "Create parameter 'foo'" "true" +// ACTION: Convert to multi-line lambda // ACTION: Create local variable 'foo' +// ACTION: Create parameter 'foo' +// ACTION: Create property 'foo' +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Rename reference +// ACTION: Specify explicit lambda signature fun test(n: Int, foo: Int) { val f: () -> Int = { foo } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithIt.kt b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithIt.kt index 14d7f8e3ddb6..137107c7a919 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithIt.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithIt.kt @@ -1,5 +1,11 @@ // "Create parameter 'foo'" "true" +// ACTION: Convert to multi-line lambda // ACTION: Create local variable 'foo' +// ACTION: Create parameter 'foo' +// ACTION: Create property 'foo' +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Rename reference +// ACTION: Specify explicit lambda signature fun test(n: Int) { val f: (Int) -> Int = { foo } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithIt.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithIt.kt.after index 2361d71a0fed..613aea182ac6 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithIt.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithIt.kt.after @@ -1,5 +1,11 @@ // "Create parameter 'foo'" "true" +// ACTION: Convert to multi-line lambda // ACTION: Create local variable 'foo' +// ACTION: Create parameter 'foo' +// ACTION: Create property 'foo' +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Rename reference +// ACTION: Specify explicit lambda signature fun test(n: Int, foo: Int) { val f: (Int) -> Int = { foo } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithParams.kt b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithParams.kt index fb7d0575c15d..f632a4d6d154 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithParams.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithParams.kt @@ -1,5 +1,11 @@ // "Create parameter 'foo'" "true" +// ACTION: Convert to multi-line lambda // ACTION: Create local variable 'foo' +// ACTION: Create parameter 'foo' +// ACTION: Create property 'foo' +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Rename reference +// ACTION: Specify explicit lambda signature fun test(n: Int) { val f: (Int, Int) -> Int = { a, b -> foo } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithParams.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithParams.kt.after index a4c69e87dbdf..eb6ba5d01e3d 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithParams.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithParams.kt.after @@ -1,5 +1,11 @@ // "Create parameter 'foo'" "true" +// ACTION: Convert to multi-line lambda // ACTION: Create local variable 'foo' +// ACTION: Create parameter 'foo' +// ACTION: Create property 'foo' +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Rename reference +// ACTION: Specify explicit lambda signature fun test(n: Int, foo: Int) { val f: (Int, Int) -> Int = { a, b -> foo } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithTypedParams.kt b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithTypedParams.kt index 221882d04b76..ae2dfb1f9f0b 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithTypedParams.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithTypedParams.kt @@ -1,5 +1,11 @@ // "Create parameter 'foo'" "true" +// ACTION: Convert to multi-line lambda // ACTION: Create local variable 'foo' +// ACTION: Create object 'foo' +// ACTION: Create parameter 'foo' +// ACTION: Create property 'foo' +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Rename reference fun test(n: Int) { val f = { a: Int, b: Int -> foo } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithTypedParams.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithTypedParams.kt.after index 0ca3baca88b8..436a8d49e758 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithTypedParams.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inLambdaWithTypedParams.kt.after @@ -1,5 +1,11 @@ // "Create parameter 'foo'" "true" +// ACTION: Convert to multi-line lambda // ACTION: Create local variable 'foo' +// ACTION: Create object 'foo' +// ACTION: Create parameter 'foo' +// ACTION: Create property 'foo' +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Rename reference fun test(n: Int, foo: Any) { val f = { a: Int, b: Int -> foo } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inMultiLineLambdaNoParams.kt b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inMultiLineLambdaNoParams.kt index f4fe98cdd726..ae3770ebc75e 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inMultiLineLambdaNoParams.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inMultiLineLambdaNoParams.kt @@ -1,5 +1,11 @@ // "Create parameter 'foo'" "true" +// ACTION: Convert to single-line lambda // ACTION: Create local variable 'foo' +// ACTION: Create parameter 'foo' +// ACTION: Create property 'foo' +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Rename reference +// ACTION: Specify explicit lambda signature fun test(n: Int) { val f: () -> Int = { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inMultiLineLambdaNoParams.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inMultiLineLambdaNoParams.kt.after index 1939b0731974..f3c17b39219c 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inMultiLineLambdaNoParams.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/inMultiLineLambdaNoParams.kt.after @@ -1,5 +1,11 @@ // "Create parameter 'foo'" "true" +// ACTION: Convert to single-line lambda // ACTION: Create local variable 'foo' +// ACTION: Create parameter 'foo' +// ACTION: Create property 'foo' +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Rename reference +// ACTION: Specify explicit lambda signature fun test(n: Int, foo: Int) { val f: () -> Int = { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedPropertyType.kt b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedPropertyType.kt index 871ec9f56529..6429303cacb1 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedPropertyType.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedPropertyType.kt @@ -1,5 +1,14 @@ // "Make 'foo' private" "true" +// ACTION: Add getter +// ACTION: Convert property initializer to getter +// ACTION: Convert property to function +// ACTION: Convert to lazy property +// ACTION: Introduce backing property // ACTION: Make 'Data' public +// ACTION: Make 'foo' private +// ACTION: Move to companion object +// ACTION: Move to constructor +// ACTION: Specify type explicitly private data class Data(val x: Int) 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 33c7fd069695..edd1e695626c 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedPropertyType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedPropertyType.kt.after @@ -1,5 +1,14 @@ // "Make 'foo' private" "true" +// ACTION: Add getter +// ACTION: Convert property initializer to getter +// ACTION: Convert property to function +// ACTION: Convert to lazy property +// ACTION: Introduce backing property // ACTION: Make 'Data' public +// ACTION: Make 'foo' private +// ACTION: Move to companion object +// ACTION: Move to constructor +// ACTION: Specify type explicitly private data class Data(val x: Int) diff --git a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReturnType.kt b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReturnType.kt index 26835ff3d3a6..bd5b3662e963 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReturnType.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReturnType.kt @@ -1,5 +1,11 @@ // "Make 'bar' private" "true" +// ACTION: Convert member to extension +// ACTION: Convert to block body // ACTION: Make 'Data' internal +// ACTION: Make 'Data' public +// ACTION: Make 'bar' private +// ACTION: Move to companion object +// ACTION: Specify return type explicitly private data class Data(val x: Int) 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 490b1dd8efe4..fba8ffc6a7cb 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReturnType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedReturnType.kt.after @@ -1,5 +1,11 @@ // "Make 'bar' private" "true" +// ACTION: Convert member to extension +// ACTION: Convert to block body // ACTION: Make 'Data' internal +// ACTION: Make 'Data' public +// ACTION: Make 'bar' private +// ACTION: Move to companion object +// ACTION: Specify return type explicitly private data class Data(val x: Int) diff --git a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClass.kt b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClass.kt index 53e79fba97e1..293a693b9972 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClass.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClass.kt @@ -1,5 +1,11 @@ // "Make 'First' private" "true" +// ACTION: Add full qualifier +// ACTION: Add names to call arguments +// ACTION: Create test +// ACTION: Introduce import alias // ACTION: Make 'Data' protected +// ACTION: Make 'Data' public +// ACTION: Make 'First' private class Outer { private open class Data(val x: Int) 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 b719d7c64aa1..31b78ed4208d 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClass.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClass.kt.after @@ -1,5 +1,11 @@ // "Make 'First' private" "true" +// ACTION: Add full qualifier +// ACTION: Add names to call arguments +// ACTION: Create test +// ACTION: Introduce import alias // ACTION: Make 'Data' protected +// ACTION: Make 'Data' public +// ACTION: Make 'First' private class Outer { private open class Data(val x: Int) diff --git a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedBase.kt b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedBase.kt index 22e69844d333..8520fc1a23e5 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedBase.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedBase.kt @@ -1,5 +1,9 @@ // "Make 'First' private" "true" +// ACTION: Add names to call arguments +// ACTION: Create test +// ACTION: Introduce import alias // ACTION: Make 'Data' public +// ACTION: Make 'First' private private open class Data(val x: Int) 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 417862824622..f79f5766ca08 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedBase.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedBase.kt.after @@ -1,5 +1,9 @@ // "Make 'First' private" "true" +// ACTION: Add names to call arguments +// ACTION: Create test +// ACTION: Introduce import alias // ACTION: Make 'Data' public +// ACTION: Make 'First' private private open class Data(val x: Int) diff --git a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedInAnother.kt b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedInAnother.kt index e5a0b8f556ce..c570331b34c2 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedInAnother.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedInAnother.kt @@ -1,5 +1,9 @@ // "Make 'First' private" "true" +// ACTION: Add import for 'Other.Data' +// ACTION: Add names to call arguments +// ACTION: Introduce import alias // ACTION: Make 'Data' public +// ACTION: Make 'First' private class Other { internal open class Data(val x: Int) 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 1d196e821b7c..17ce240d15c9 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedInAnother.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperClassProtectedInAnother.kt.after @@ -1,5 +1,9 @@ // "Make 'First' private" "true" +// ACTION: Add import for 'Other.Data' +// ACTION: Add names to call arguments +// ACTION: Introduce import alias // ACTION: Make 'Data' public +// ACTION: Make 'First' private class Other { internal open class Data(val x: Int) diff --git a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterface.kt b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterface.kt index cadccc9a74da..9839bb718a6e 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterface.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterface.kt @@ -1,4 +1,9 @@ // "Make 'Derived' internal" "true" +// ACTION: Add full qualifier +// ACTION: Implement interface +// ACTION: Introduce import alias +// ACTION: Make 'Derived' internal +// ACTION: Make 'Derived' private // ACTION: Make 'Outer' public import Outer.Base 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 72021f607264..832332d58c1e 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterface.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterface.kt.after @@ -1,4 +1,9 @@ // "Make 'Derived' internal" "true" +// ACTION: Add full qualifier +// ACTION: Implement interface +// ACTION: Introduce import alias +// ACTION: Make 'Derived' internal +// ACTION: Make 'Derived' private // ACTION: Make 'Outer' public import Outer.Base diff --git a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterfacePrivate.kt b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterfacePrivate.kt index bb86d5f55305..20b8c3d19317 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterfacePrivate.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterfacePrivate.kt @@ -1,5 +1,10 @@ // "Make 'Derived' private" "true" +// ACTION: Add full qualifier +// ACTION: Implement interface +// ACTION: Introduce import alias // ACTION: Make 'Derived' internal +// ACTION: Make 'Derived' private +// ACTION: Make 'Outer' public import Outer.Base 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 27c63d55e34a..cf6379065653 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterfacePrivate.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedSuperInterfacePrivate.kt.after @@ -1,5 +1,10 @@ // "Make 'Derived' private" "true" +// ACTION: Add full qualifier +// ACTION: Implement interface +// ACTION: Introduce import alias // ACTION: Make 'Derived' internal +// ACTION: Make 'Derived' private +// ACTION: Make 'Outer' public import Outer.Base diff --git a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedTypeParameterBound.kt b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedTypeParameterBound.kt index 28ec537b2fac..e93e6fdeffee 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedTypeParameterBound.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedTypeParameterBound.kt @@ -1,5 +1,10 @@ // "Make 'User' internal" "true" +// ACTION: Create test +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Introduce import alias // ACTION: Make 'InternalString' public +// ACTION: Make 'User' internal +// ACTION: Make 'User' private internal open class InternalString 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 de631f3fa52b..888b12ada23c 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedTypeParameterBound.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/decreaseVisibility/exposedTypeParameterBound.kt.after @@ -1,5 +1,10 @@ // "Make 'User' internal" "true" +// ACTION: Create test +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Introduce import alias // ACTION: Make 'InternalString' public +// ACTION: Make 'User' internal +// ACTION: Make 'User' private internal open class InternalString diff --git a/plugins/kotlin/idea/tests/testData/quickfix/experimental/propertyInConstructor.kt b/plugins/kotlin/idea/tests/testData/quickfix/experimental/propertyInConstructor.kt index e4d87d7bd9a4..c703bc4be2f5 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/experimental/propertyInConstructor.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/experimental/propertyInConstructor.kt @@ -1,6 +1,16 @@ // "Propagate 'PropertyTypeMarker' opt-in requirement to constructor" "true" // COMPILER_ARGUMENTS: -Xopt-in=kotlin.RequiresOptIn // WITH_STDLIB +// ACTION: Add '-opt-in=PropertyTypeMarker' to module light_idea_test_case compiler arguments +// ACTION: Convert to secondary constructor +// ACTION: Create test +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Introduce import alias +// ACTION: Move to class body +// ACTION: Opt in for 'PropertyTypeMarker' in containing file 'propertyInConstructor.kt' +// ACTION: Opt in for 'PropertyTypeMarker' on constructor +// ACTION: Opt in for 'PropertyTypeMarker' on containing class 'PropertyTypeContainer' +// ACTION: Propagate 'PropertyTypeMarker' opt-in requirement to constructor // ACTION: Propagate 'PropertyTypeMarker' opt-in requirement to containing class 'PropertyTypeContainer' @RequiresOptIn diff --git a/plugins/kotlin/idea/tests/testData/quickfix/experimental/propertyInConstructor.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/experimental/propertyInConstructor.kt.after index 6df70bf05fe9..5b0d9e3caeae 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/experimental/propertyInConstructor.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/experimental/propertyInConstructor.kt.after @@ -1,6 +1,16 @@ // "Propagate 'PropertyTypeMarker' opt-in requirement to constructor" "true" // COMPILER_ARGUMENTS: -Xopt-in=kotlin.RequiresOptIn // WITH_STDLIB +// ACTION: Add '-opt-in=PropertyTypeMarker' to module light_idea_test_case compiler arguments +// ACTION: Convert to secondary constructor +// ACTION: Create test +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Introduce import alias +// ACTION: Move to class body +// ACTION: Opt in for 'PropertyTypeMarker' in containing file 'propertyInConstructor.kt' +// ACTION: Opt in for 'PropertyTypeMarker' on constructor +// ACTION: Opt in for 'PropertyTypeMarker' on containing class 'PropertyTypeContainer' +// ACTION: Propagate 'PropertyTypeMarker' opt-in requirement to constructor // ACTION: Propagate 'PropertyTypeMarker' opt-in requirement to containing class 'PropertyTypeContainer' @RequiresOptIn diff --git a/plugins/kotlin/idea/tests/testData/quickfix/experimental/propertyInConstructorAddOptInToClass.kt b/plugins/kotlin/idea/tests/testData/quickfix/experimental/propertyInConstructorAddOptInToClass.kt index 5f4af25454a9..0822920416cd 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/experimental/propertyInConstructorAddOptInToClass.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/experimental/propertyInConstructorAddOptInToClass.kt @@ -1,7 +1,17 @@ // "Opt in for 'PropertyTypeMarker' on containing class 'PropertyTypeContainer'" "true" // COMPILER_ARGUMENTS: -Xopt-in=kotlin.RequiresOptIn // WITH_STDLIB +// ACTION: Add '-opt-in=PropertyTypeMarker' to module light_idea_test_case compiler arguments +// ACTION: Convert to secondary constructor +// ACTION: Create test +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Introduce import alias +// ACTION: Move to class body +// ACTION: Opt in for 'PropertyTypeMarker' in containing file 'propertyInConstructorAddOptInToClass.kt' // ACTION: Opt in for 'PropertyTypeMarker' on constructor +// ACTION: Opt in for 'PropertyTypeMarker' on containing class 'PropertyTypeContainer' +// ACTION: Propagate 'PropertyTypeMarker' opt-in requirement to constructor +// ACTION: Propagate 'PropertyTypeMarker' opt-in requirement to containing class 'PropertyTypeContainer' @RequiresOptIn annotation class PropertyTypeMarker diff --git a/plugins/kotlin/idea/tests/testData/quickfix/experimental/propertyInConstructorAddOptInToClass.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/experimental/propertyInConstructorAddOptInToClass.kt.after index bed89ee66557..5bc533ea460e 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/experimental/propertyInConstructorAddOptInToClass.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/experimental/propertyInConstructorAddOptInToClass.kt.after @@ -1,7 +1,17 @@ // "Opt in for 'PropertyTypeMarker' on containing class 'PropertyTypeContainer'" "true" // COMPILER_ARGUMENTS: -Xopt-in=kotlin.RequiresOptIn // WITH_STDLIB +// ACTION: Add '-opt-in=PropertyTypeMarker' to module light_idea_test_case compiler arguments +// ACTION: Convert to secondary constructor +// ACTION: Create test +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Introduce import alias +// ACTION: Move to class body +// ACTION: Opt in for 'PropertyTypeMarker' in containing file 'propertyInConstructorAddOptInToClass.kt' // ACTION: Opt in for 'PropertyTypeMarker' on constructor +// ACTION: Opt in for 'PropertyTypeMarker' on containing class 'PropertyTypeContainer' +// ACTION: Propagate 'PropertyTypeMarker' opt-in requirement to constructor +// ACTION: Propagate 'PropertyTypeMarker' opt-in requirement to containing class 'PropertyTypeContainer' @RequiresOptIn annotation class PropertyTypeMarker diff --git a/plugins/kotlin/idea/tests/testData/quickfix/experimental/propertyInConstructorAddOptInToConstructor.kt b/plugins/kotlin/idea/tests/testData/quickfix/experimental/propertyInConstructorAddOptInToConstructor.kt index 67a9aa2faa90..1a2c1b243dd8 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/experimental/propertyInConstructorAddOptInToConstructor.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/experimental/propertyInConstructorAddOptInToConstructor.kt @@ -1,7 +1,17 @@ // "Opt in for 'PropertyTypeMarker' on constructor" "true" // COMPILER_ARGUMENTS: -Xopt-in=kotlin.RequiresOptIn // WITH_STDLIB -// ACTION: Opt in for 'PropertyTypeMarker' on containing class 'PropertyTypeMarker' +// ACTION: Add '-opt-in=PropertyTypeMarker' to module light_idea_test_case compiler arguments +// ACTION: Convert to secondary constructor +// ACTION: Create test +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Introduce import alias +// ACTION: Move to class body +// ACTION: Opt in for 'PropertyTypeMarker' in containing file 'propertyInConstructorAddOptInToConstructor.kt' +// ACTION: Opt in for 'PropertyTypeMarker' on constructor +// ACTION: Opt in for 'PropertyTypeMarker' on containing class 'PropertyTypeContainer' +// ACTION: Propagate 'PropertyTypeMarker' opt-in requirement to constructor +// ACTION: Propagate 'PropertyTypeMarker' opt-in requirement to containing class 'PropertyTypeContainer' @RequiresOptIn annotation class PropertyTypeMarker diff --git a/plugins/kotlin/idea/tests/testData/quickfix/experimental/propertyInConstructorAddOptInToConstructor.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/experimental/propertyInConstructorAddOptInToConstructor.kt.after index 9a73944d9d88..9bb442f8bcac 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/experimental/propertyInConstructorAddOptInToConstructor.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/experimental/propertyInConstructorAddOptInToConstructor.kt.after @@ -1,7 +1,17 @@ // "Opt in for 'PropertyTypeMarker' on constructor" "true" // COMPILER_ARGUMENTS: -Xopt-in=kotlin.RequiresOptIn // WITH_STDLIB -// ACTION: Opt in for 'PropertyTypeMarker' on containing class 'PropertyTypeMarker' +// ACTION: Add '-opt-in=PropertyTypeMarker' to module light_idea_test_case compiler arguments +// ACTION: Convert to secondary constructor +// ACTION: Create test +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Introduce import alias +// ACTION: Move to class body +// ACTION: Opt in for 'PropertyTypeMarker' in containing file 'propertyInConstructorAddOptInToConstructor.kt' +// ACTION: Opt in for 'PropertyTypeMarker' on constructor +// ACTION: Opt in for 'PropertyTypeMarker' on containing class 'PropertyTypeContainer' +// ACTION: Propagate 'PropertyTypeMarker' opt-in requirement to constructor +// ACTION: Propagate 'PropertyTypeMarker' opt-in requirement to containing class 'PropertyTypeContainer' @RequiresOptIn annotation class PropertyTypeMarker diff --git a/plugins/kotlin/idea/tests/testData/quickfix/experimental/typeAlias.kt b/plugins/kotlin/idea/tests/testData/quickfix/experimental/typeAlias.kt index ffa922ced931..54efc1782944 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/experimental/typeAlias.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/experimental/typeAlias.kt @@ -1,7 +1,10 @@ // "Opt in for 'AliasMarker' on 'AliasMarkerUsage'" "true" // COMPILER_ARGUMENTS: -Xopt-in=kotlin.RequiresOptIn // WITH_STDLIB -// ACTION: Add '-Xopt-in=AliasMarker' to module light_idea_test_case compiler arguments +// ACTION: Add '-opt-in=AliasMarker' to module light_idea_test_case compiler arguments +// ACTION: Introduce import alias +// ACTION: Opt in for 'AliasMarker' in containing file 'typeAlias.kt' +// ACTION: Opt in for 'AliasMarker' on 'AliasMarkerUsage' @RequiresOptIn annotation class AliasMarker diff --git a/plugins/kotlin/idea/tests/testData/quickfix/experimental/typeAlias.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/experimental/typeAlias.kt.after index 681113bfc62e..2968b22be20f 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/experimental/typeAlias.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/experimental/typeAlias.kt.after @@ -1,7 +1,10 @@ // "Opt in for 'AliasMarker' on 'AliasMarkerUsage'" "true" // COMPILER_ARGUMENTS: -Xopt-in=kotlin.RequiresOptIn // WITH_STDLIB -// ACTION: Add '-Xopt-in=AliasMarker' to module light_idea_test_case compiler arguments +// ACTION: Add '-opt-in=AliasMarker' to module light_idea_test_case compiler arguments +// ACTION: Introduce import alias +// ACTION: Opt in for 'AliasMarker' in containing file 'typeAlias.kt' +// ACTION: Opt in for 'AliasMarker' on 'AliasMarkerUsage' @RequiresOptIn annotation class AliasMarker diff --git a/plugins/kotlin/idea/tests/testData/quickfix/importAlias/simple.kt b/plugins/kotlin/idea/tests/testData/quickfix/importAlias/simple.kt index 28883bf32309..971bd6c2979d 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/importAlias/simple.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/importAlias/simple.kt @@ -1,6 +1,9 @@ // "Introduce import alias" "true" // WITH_STDLIB +// ACTION: Add explicit type arguments +// ACTION: Convert to 'forEachIndexed' // ACTION: Introduce import alias +// ACTION: Replace with a 'for' loop fun foo() { listOf("a", "b", "c").forEach { } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/importAlias/simple.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/importAlias/simple.kt.after index bbc56de0e7fd..9864f3b31072 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/importAlias/simple.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/importAlias/simple.kt.after @@ -2,7 +2,10 @@ import kotlin.collections.forEach as forEach1 // "Introduce import alias" "true" // WITH_STDLIB +// ACTION: Add explicit type arguments +// ACTION: Convert to 'forEachIndexed' // ACTION: Introduce import alias +// ACTION: Replace with a 'for' loop fun foo() { listOf("a", "b", "c").forEach1 { } } \ 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 0fc89d63f5f9..dab0ac402c07 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedParameterType.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedParameterType.kt @@ -1,6 +1,9 @@ // "Make 'Nested' internal" "true" +// ACTION: Convert parameter to receiver +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Make 'Nested' internal // ACTION: Make 'Nested' public -// ACTION: Make 'foo' private +// ACTION: Remove parameter 'arg' class Outer { private class Nested 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 5b39fbef43b2..168f6c1b405e 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedParameterType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedParameterType.kt.after @@ -1,6 +1,9 @@ // "Make 'Nested' internal" "true" +// ACTION: Convert parameter to receiver +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Make 'Nested' internal // ACTION: Make 'Nested' public -// ACTION: Make 'foo' private +// ACTION: Remove parameter 'arg' class Outer { internal class Nested diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedParameterTypePublic.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedParameterTypePublic.kt index dd9dfa98844e..1cbeb5905087 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedParameterTypePublic.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedParameterTypePublic.kt @@ -1,5 +1,9 @@ // "Make 'Nested' public" "true" +// ACTION: Convert parameter to receiver +// ACTION: Enable a trailing comma by default in the formatter // ACTION: Make 'Nested' internal +// ACTION: Make 'Nested' public +// ACTION: Remove parameter 'arg' class Outer { private class Nested 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 4b7c70c278fd..1b35b270d483 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedParameterTypePublic.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedParameterTypePublic.kt.after @@ -1,5 +1,9 @@ // "Make 'Nested' public" "true" +// ACTION: Convert parameter to receiver +// ACTION: Enable a trailing comma by default in the formatter // ACTION: Make 'Nested' internal +// ACTION: Make 'Nested' public +// ACTION: Remove parameter 'arg' class Outer { class Nested diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedPropertyType.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedPropertyType.kt index 5f0f72df7920..8b3956ae2f91 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedPropertyType.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedPropertyType.kt @@ -1,5 +1,14 @@ // "Make 'Data' public" "true" +// ACTION: Add getter +// ACTION: Convert property initializer to getter +// ACTION: Convert property to function +// ACTION: Convert to lazy property +// ACTION: Introduce backing property +// ACTION: Make 'Data' public // ACTION: Make 'foo' private +// ACTION: Move to companion object +// ACTION: Move to constructor +// ACTION: Specify type explicitly private data class Data(val x: Int) 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 ba77c8f760b4..989ddd355ceb 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedPropertyType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedPropertyType.kt.after @@ -1,5 +1,14 @@ // "Make 'Data' public" "true" +// ACTION: Add getter +// ACTION: Convert property initializer to getter +// ACTION: Convert property to function +// ACTION: Convert to lazy property +// ACTION: Introduce backing property +// ACTION: Make 'Data' public // ACTION: Make 'foo' private +// ACTION: Move to companion object +// ACTION: Move to constructor +// ACTION: Specify type explicitly data class Data(val x: Int) diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedReceiverType.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedReceiverType.kt index 93315efc145a..69205c36c891 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedReceiverType.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedReceiverType.kt @@ -1,5 +1,7 @@ // "Make 'Private' protected" "true" -// ACTION: Make 'foo' private +// ACTION: Convert receiver to parameter +// ACTION: Introduce import alias +// ACTION: Make 'Private' protected // ACTION: Make 'Private' public class Receiver 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 a84229ab15a9..8fbbb6800734 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedReceiverType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedReceiverType.kt.after @@ -1,5 +1,7 @@ // "Make 'Private' protected" "true" -// ACTION: Make 'foo' private +// ACTION: Convert receiver to parameter +// ACTION: Introduce import alias +// ACTION: Make 'Private' protected // ACTION: Make 'Private' public class Receiver diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedReturnType.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedReturnType.kt index b10bb5812d54..762340a8a0e6 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedReturnType.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedReturnType.kt @@ -1,6 +1,11 @@ // "Make 'Data' internal" "true" -// ACTION: Make 'bar' private +// ACTION: Convert member to extension +// ACTION: Convert to block body +// ACTION: Make 'Data' internal // ACTION: Make 'Data' public +// ACTION: Make 'bar' private +// ACTION: Move to companion object +// ACTION: Specify return type explicitly private data class Data(val x: Int) 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 38798f9c93f7..3be5ef5b5e5e 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedReturnType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedReturnType.kt.after @@ -1,6 +1,11 @@ // "Make 'Data' internal" "true" -// ACTION: Make 'bar' private +// ACTION: Convert member to extension +// ACTION: Convert to block body +// ACTION: Make 'Data' internal // ACTION: Make 'Data' public +// ACTION: Make 'bar' private +// ACTION: Move to companion object +// ACTION: Specify return type explicitly internal data class Data(val x: Int) diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClass.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClass.kt index 3e6a2d00ad6c..d79da14c6199 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClass.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClass.kt @@ -1,6 +1,11 @@ // "Make 'Data' protected" "true" -// ACTION: Make 'First' private +// ACTION: Add full qualifier +// ACTION: Add names to call arguments +// ACTION: Create test +// ACTION: Introduce import alias +// ACTION: Make 'Data' protected // ACTION: Make 'Data' public +// ACTION: Make 'First' private class Outer { private open class Data(val x: Int) 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 bab33235410f..1a38ebfb0db7 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClass.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClass.kt.after @@ -1,6 +1,11 @@ // "Make 'Data' protected" "true" -// ACTION: Make 'First' private +// ACTION: Add full qualifier +// ACTION: Add names to call arguments +// ACTION: Create test +// ACTION: Introduce import alias +// ACTION: Make 'Data' protected // ACTION: Make 'Data' public +// ACTION: Make 'First' private class Outer { protected open class Data(val x: Int) diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedBase.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedBase.kt index 372f4329f719..0024ff98b5b1 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedBase.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedBase.kt @@ -1,4 +1,8 @@ // "Make 'Data' public" "true" +// ACTION: Add names to call arguments +// ACTION: Create test +// ACTION: Introduce import alias +// ACTION: Make 'Data' public // ACTION: Make 'First' private private open class Data(val x: Int) 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 14ebe39cfeee..4cd755d2fa76 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedBase.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedBase.kt.after @@ -1,4 +1,8 @@ // "Make 'Data' public" "true" +// ACTION: Add names to call arguments +// ACTION: Create test +// ACTION: Introduce import alias +// ACTION: Make 'Data' public // ACTION: Make 'First' private open class Data(val x: Int) diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedInAnother.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedInAnother.kt index 3335f7d7faf9..26282f8e7235 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedInAnother.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedInAnother.kt @@ -1,4 +1,8 @@ // "Make 'Data' public" "true" +// ACTION: Add import for 'Other.Data' +// ACTION: Add names to call arguments +// ACTION: Introduce import alias +// ACTION: Make 'Data' public // ACTION: Make 'First' private class Other { 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 81230eecbe45..769b1708728c 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedInAnother.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperClassProtectedInAnother.kt.after @@ -1,4 +1,8 @@ // "Make 'Data' public" "true" +// ACTION: Add import for 'Other.Data' +// ACTION: Add names to call arguments +// ACTION: Introduce import alias +// ACTION: Make 'Data' public // ACTION: Make 'First' private class Other { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperInterface.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperInterface.kt index 514b531a8101..714485c3427d 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperInterface.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperInterface.kt @@ -1,5 +1,10 @@ // "Make 'Outer' public" "true" +// ACTION: Add full qualifier +// ACTION: Implement interface +// ACTION: Introduce import alias // ACTION: Make 'Derived' internal +// ACTION: Make 'Derived' private +// ACTION: Make 'Outer' public import Outer.Base 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 f84b1c3769bb..35900c877e48 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperInterface.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedSuperInterface.kt.after @@ -1,5 +1,10 @@ // "Make 'Outer' public" "true" +// ACTION: Add full qualifier +// ACTION: Implement interface +// ACTION: Introduce import alias // ACTION: Make 'Derived' internal +// ACTION: Make 'Derived' private +// ACTION: Make 'Outer' public import Outer.Base diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBound.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBound.kt index d53b7ca957c2..45687ccd822c 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBound.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBound.kt @@ -1,4 +1,8 @@ // "Make 'InternalString' public" "true" +// ACTION: Create test +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Introduce import alias +// ACTION: Make 'InternalString' public // ACTION: Make 'User' internal // ACTION: Make 'User' private 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 bb98dbdbcb72..7c33bf4b3118 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBound.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBound.kt.after @@ -1,4 +1,8 @@ // "Make 'InternalString' public" "true" +// ACTION: Create test +// ACTION: Enable a trailing comma by default in the formatter +// ACTION: Introduce import alias +// ACTION: Make 'InternalString' public // ACTION: Make 'User' internal // ACTION: Make 'User' private diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBoundNested.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBoundNested.kt index d259ec44baad..1434eae7e723 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBoundNested.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBoundNested.kt @@ -3,6 +3,7 @@ // ACTION: Enable a trailing comma by default in the formatter // ACTION: Import members from 'PrivateInFileClass' // ACTION: Introduce import alias +// ACTION: Make 'PrivateInnerClass' public private class PrivateInFileClassPrivateInFileClass.PrivateInnerClass> { private class PrivateInnerClass 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 a95b4bd09457..fdd7a084314e 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBoundNested.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/exposedTypeParameterBoundNested.kt.after @@ -3,6 +3,7 @@ // ACTION: Enable a trailing comma by default in the formatter // ACTION: Import members from 'PrivateInFileClass' // ACTION: Introduce import alias +// ACTION: Make 'PrivateInnerClass' public private class PrivateInFileClassPrivateInFileClass.PrivateInnerClass> { class PrivateInnerClass diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSealedClassInheritance.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSealedClassInheritance.kt index 1b265993ab9b..263fa9c2f660 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSealedClassInheritance.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSealedClassInheritance.kt @@ -1,5 +1,8 @@ // "Make 'SealedClass' public" "true" -// ACTION: "Make 'Test' private" +// ACTION: Create test +// ACTION: Introduce import alias +// ACTION: Make 'SealedClass' public +// ACTION: Make 'Test' private private sealed class SealedClass 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 eb13e77d7a15..89a643b05f62 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSealedClassInheritance.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSealedClassInheritance.kt.after @@ -1,5 +1,8 @@ // "Make 'SealedClass' public" "true" -// ACTION: "Make 'Test' private" +// ACTION: Create test +// ACTION: Introduce import alias +// ACTION: Make 'SealedClass' public +// ACTION: Make 'Test' private sealed class SealedClass diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSetterToInternal.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSetterToInternal.kt index e93a3d5ee8c7..2288d7625f73 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSetterToInternal.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSetterToInternal.kt @@ -1,5 +1,7 @@ // "Make '' internal" "true" -// ACTION: "Make '' public" +// ACTION: Converts the assignment statement to an expression +// ACTION: Make '' internal +// ACTION: Make '' public class Demo { var attribute = "a" 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 39e55df888f7..db12f58dd9c4 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSetterToInternal.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSetterToInternal.kt.after @@ -1,5 +1,7 @@ // "Make '' internal" "true" -// ACTION: "Make '' public" +// ACTION: Converts the assignment statement to an expression +// ACTION: Make '' internal +// ACTION: Make '' public class Demo { var attribute = "a" diff --git a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSetterToPublic.kt b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSetterToPublic.kt index 54e4b8c401ec..c2e3c8a3556d 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSetterToPublic.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSetterToPublic.kt @@ -1,5 +1,7 @@ // "Make '' public" "true" -// ACTION: "Make '' internal" +// ACTION: Converts the assignment statement to an expression +// ACTION: Make '' internal +// ACTION: Make '' public class Demo { var attribute = "a" 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 cc18e8577b7a..5c0b575499c7 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSetterToPublic.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/increaseVisibility/privateSetterToPublic.kt.after @@ -1,5 +1,7 @@ // "Make '' public" "true" -// ACTION: "Make '' internal" +// ACTION: Converts the assignment statement to an expression +// ACTION: Make '' internal +// ACTION: Make '' public class Demo { var attribute = "a" diff --git a/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/addParenthesisForSealedClass2.kt b/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/addParenthesisForSealedClass2.kt index a1fd9b71fa8f..c9b3954c35b9 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/addParenthesisForSealedClass2.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/addParenthesisForSealedClass2.kt @@ -1,4 +1,6 @@ // "Change to constructor invocation" "true" +// ACTION: Add full qualifier +// ACTION: Change to constructor invocation // ACTION: Introduce import alias class My { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/addParenthesisForSealedClass2.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/addParenthesisForSealedClass2.kt.after index 54451d5f1f83..890d8ccf5465 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/addParenthesisForSealedClass2.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/addParenthesisForSealedClass2.kt.after @@ -1,4 +1,6 @@ // "Change to constructor invocation" "true" +// ACTION: Add full qualifier +// ACTION: Change to constructor invocation // ACTION: Introduce import alias class My { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/displayLongSignatures1.kt b/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/displayLongSignatures1.kt index 0578fe77f7bc..61fe0669e2c5 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/displayLongSignatures1.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/displayLongSignatures1.kt @@ -1,6 +1,9 @@ // "Add constructor parameters from Base(Int)" "true" // ACTION: Add constructor parameters from Base(Char, Char, String, Int, Any?,...) // ACTION: Add constructor parameters from Base(Char, Char, String?, Int, Any?) +// ACTION: Add constructor parameters from Base(Int) +// ACTION: Change to constructor invocation +// ACTION: Introduce import alias open class Base { constructor(p: Int){} diff --git a/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/displayLongSignatures1.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/displayLongSignatures1.kt.after index 7beaaef76dcc..cb9c5529e58a 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/displayLongSignatures1.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/displayLongSignatures1.kt.after @@ -1,6 +1,9 @@ // "Add constructor parameters from Base(Int)" "true" // ACTION: Add constructor parameters from Base(Char, Char, String, Int, Any?,...) // ACTION: Add constructor parameters from Base(Char, Char, String?, Int, Any?) +// ACTION: Add constructor parameters from Base(Int) +// ACTION: Change to constructor invocation +// ACTION: Introduce import alias open class Base { constructor(p: Int){} diff --git a/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/displayLongSignatures2.kt b/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/displayLongSignatures2.kt index f156612853c9..ac706c93e4a2 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/displayLongSignatures2.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/displayLongSignatures2.kt @@ -1,6 +1,9 @@ // "Add constructor parameters from Base(Int)" "true" -// ACTION: Add constructor parameters from Base(Char, Char, String, Int, Any?, String, Boolean,...) // ACTION: Add constructor parameters from Base(Char, Char, String, Int, Any?, String) +// ACTION: Add constructor parameters from Base(Char, Char, String, Int, Any?, String, Boolean,...) +// ACTION: Add constructor parameters from Base(Int) +// ACTION: Change to constructor invocation +// ACTION: Introduce import alias open class Base { constructor(p: Int){} diff --git a/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/displayLongSignatures2.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/displayLongSignatures2.kt.after index bb36fba60678..0b5f0d654839 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/displayLongSignatures2.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/displayLongSignatures2.kt.after @@ -1,6 +1,9 @@ // "Add constructor parameters from Base(Int)" "true" -// ACTION: Add constructor parameters from Base(Char, Char, String, Int, Any?, String, Boolean,...) // ACTION: Add constructor parameters from Base(Char, Char, String, Int, Any?, String) +// ACTION: Add constructor parameters from Base(Char, Char, String, Int, Any?, String, Boolean,...) +// ACTION: Add constructor parameters from Base(Int) +// ACTION: Change to constructor invocation +// ACTION: Introduce import alias open class Base { constructor(p: Int){} diff --git a/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/multipleConstructors.kt b/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/multipleConstructors.kt index 9076f3665d85..69420e9ba2cc 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/multipleConstructors.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/multipleConstructors.kt @@ -1,5 +1,7 @@ // "Add constructor parameters from ArrayList((MutableCollection..Collection?))" "true" +// ACTION: Add constructor parameters from ArrayList((MutableCollection..Collection?)) // ACTION: Add constructor parameters from ArrayList(Int) +// ACTION: Change to constructor invocation // RUNTIME_WITH_FULL_JDK import java.util.ArrayList diff --git a/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/multipleConstructors.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/multipleConstructors.kt.after index cebae64fbcd4..e198aa8e227f 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/multipleConstructors.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/supertypeInitialization/multipleConstructors.kt.after @@ -1,5 +1,7 @@ // "Add constructor parameters from ArrayList((MutableCollection..Collection?))" "true" +// ACTION: Add constructor parameters from ArrayList((MutableCollection..Collection?)) // ACTION: Add constructor parameters from ArrayList(Int) +// ACTION: Change to constructor invocation // RUNTIME_WITH_FULL_JDK import java.util.ArrayList diff --git a/plugins/kotlin/idea/tests/testData/quickfix/suppress/external/suppressAvailable.kt b/plugins/kotlin/idea/tests/testData/quickfix/suppress/external/suppressAvailable.kt index 6fa33be07d95..b1ed9b74b7d7 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/suppress/external/suppressAvailable.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/suppress/external/suppressAvailable.kt @@ -1,17 +1,4 @@ // "Suppress 'SpellCheckingInspection' for val str" "true" // TOOL: com.intellij.spellchecker.inspections.SpellCheckingInspection -// ACTION: Add 'const' modifier -// ACTION: Typo: Change to... -// ACTION: Edit inspection profile setting -// ACTION: Fix all 'Typo' problems in file -// ACTION: Run inspection on ... -// ACTION: Disable inspection -// ACTION: Save 'kjsghkjshtiurhuig' to project-level dictionary -// ACTION: Show property type hints -// ACTION: Edit intention settings -// ACTION: Convert property initializer to getter -// ACTION: Inject language or reference -// ACTION: To raw string literal -// ACTION: Suppress 'SpellCheckingInspection' for file suppressAvailable.kt val str = "kjsghkjshtiurhuig" \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/suppress/external/suppressAvailable.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/suppress/external/suppressAvailable.kt.after index ea3e174503c3..f300222ade22 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/suppress/external/suppressAvailable.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/suppress/external/suppressAvailable.kt.after @@ -1,18 +1,5 @@ // "Suppress 'SpellCheckingInspection' for val str" "true" // TOOL: com.intellij.spellchecker.inspections.SpellCheckingInspection -// ACTION: Add 'const' modifier -// ACTION: Typo: Change to... -// ACTION: Edit inspection profile setting -// ACTION: Fix all 'Typo' problems in file -// ACTION: Run inspection on ... -// ACTION: Disable inspection -// ACTION: Save 'kjsghkjshtiurhuig' to project-level dictionary -// ACTION: Show property type hints -// ACTION: Edit intention settings -// ACTION: Convert property initializer to getter -// ACTION: Inject language or reference -// ACTION: To raw string literal -// ACTION: Suppress 'SpellCheckingInspection' for file suppressAvailable.kt @Suppress("SpellCheckingInspection") val str = "kjsghkjshtiurhuig" \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithOrdinaryAssignment/simple.kt b/plugins/kotlin/idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithOrdinaryAssignment/simple.kt index 5ead69f995be..fb8e447e9913 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithOrdinaryAssignment/simple.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithOrdinaryAssignment/simple.kt @@ -1,6 +1,9 @@ // "Replace with ordinary assignment" "true" // TOOL: org.jetbrains.kotlin.idea.inspections.SuspiciousCollectionReassignmentInspection +// ACTION: Change type to mutable +// ACTION: Remove braces from 'if' statement // ACTION: Replace overloaded operator with function call +// ACTION: Replace with ordinary assignment // WITH_STDLIB fun test(otherList: List, flag: Boolean) { var list = otherList diff --git a/plugins/kotlin/idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithOrdinaryAssignment/simple.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithOrdinaryAssignment/simple.kt.after index 13b53c1330a2..fc869691e01c 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithOrdinaryAssignment/simple.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithOrdinaryAssignment/simple.kt.after @@ -1,6 +1,9 @@ // "Replace with ordinary assignment" "true" // TOOL: org.jetbrains.kotlin.idea.inspections.SuspiciousCollectionReassignmentInspection +// ACTION: Change type to mutable +// ACTION: Remove braces from 'if' statement // ACTION: Replace overloaded operator with function call +// ACTION: Replace with ordinary assignment // WITH_STDLIB fun test(otherList: List, flag: Boolean) { var list = otherList diff --git a/plugins/kotlin/idea/tests/testData/quickfix/toString/notNullableExpectedNullable.kt b/plugins/kotlin/idea/tests/testData/quickfix/toString/notNullableExpectedNullable.kt index 41207da0cf50..a2d9ddf9ea60 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/toString/notNullableExpectedNullable.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/toString/notNullableExpectedNullable.kt @@ -1,5 +1,7 @@ // "Add 'toString()' call" "true" // ACTION: Add 'toString()' call +// ACTION: Change parameter 'a' type of function 'bar' to 'Any' +// ACTION: Create function 'bar' fun foo() { bar(Any()) diff --git a/plugins/kotlin/idea/tests/testData/quickfix/toString/notNullableExpectedNullable.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/toString/notNullableExpectedNullable.kt.after index c78c5b5ea7ae..3a0d7f035700 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/toString/notNullableExpectedNullable.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/toString/notNullableExpectedNullable.kt.after @@ -1,5 +1,7 @@ // "Add 'toString()' call" "true" // ACTION: Add 'toString()' call +// ACTION: Change parameter 'a' type of function 'bar' to 'Any' +// ACTION: Create function 'bar' fun foo() { bar(Any().toString()) diff --git a/plugins/kotlin/idea/tests/testData/quickfix/toString/nullableExpectedNotNullable.kt b/plugins/kotlin/idea/tests/testData/quickfix/toString/nullableExpectedNotNullable.kt index f665a3351470..0d6bc3ed59f6 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/toString/nullableExpectedNotNullable.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/toString/nullableExpectedNotNullable.kt @@ -1,5 +1,7 @@ // "Add 'toString()' call" "true" // ACTION: Add 'toString()' call +// ACTION: Change parameter 'a' type of function 'bar' to 'Any?' +// ACTION: Create function 'bar' fun foo() { bar(null as Any?) diff --git a/plugins/kotlin/idea/tests/testData/quickfix/toString/nullableExpectedNotNullable.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/toString/nullableExpectedNotNullable.kt.after index 13b3dd658c71..14512e6527a9 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/toString/nullableExpectedNotNullable.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/toString/nullableExpectedNotNullable.kt.after @@ -1,5 +1,7 @@ // "Add 'toString()' call" "true" // ACTION: Add 'toString()' call +// ACTION: Change parameter 'a' type of function 'bar' to 'Any?' +// ACTION: Create function 'bar' fun foo() { bar((null as Any?).toString()) diff --git a/plugins/kotlin/idea/tests/testData/quickfix/toString/nullableExpectedNullable.kt b/plugins/kotlin/idea/tests/testData/quickfix/toString/nullableExpectedNullable.kt index 4088bb3a0584..b9f35ef8c2c7 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/toString/nullableExpectedNullable.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/toString/nullableExpectedNullable.kt @@ -1,6 +1,8 @@ // "Add safe '?.toString()' call" "true" // ACTION: Add 'toString()' call // ACTION: Add safe '?.toString()' call +// ACTION: Change parameter 'a' type of function 'bar' to 'Any?' +// ACTION: Create function 'bar' fun foo() { bar(null as Any?) diff --git a/plugins/kotlin/idea/tests/testData/quickfix/toString/nullableExpectedNullable.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/toString/nullableExpectedNullable.kt.after index 119fad4509b9..fa66aeda09c0 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/toString/nullableExpectedNullable.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/toString/nullableExpectedNullable.kt.after @@ -1,6 +1,8 @@ // "Add safe '?.toString()' call" "true" // ACTION: Add 'toString()' call // ACTION: Add safe '?.toString()' call +// ACTION: Change parameter 'a' type of function 'bar' to 'Any?' +// ACTION: Create function 'bar' fun foo() { bar((null as Any?)?.toString()) diff --git a/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/noAddErrorType.kt b/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/noAddErrorType.kt index 847079afa49e..6b53003d370f 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/noAddErrorType.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/noAddErrorType.kt @@ -1,10 +1,13 @@ // "Specify type explicitly" "true" // SHOULD_BE_AVAILABLE_AFTER_EXECUTION // ACTION: Add getter +// ACTION: Convert property initializer to getter // ACTION: Convert property to function +// ACTION: Convert to lazy property // ACTION: Introduce backing property // ACTION: Move to companion object // ACTION: Move to constructor +// ACTION: Specify type explicitly // ERROR: Unresolved reference: foo class A() { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/noAddErrorType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/noAddErrorType.kt.after index 847079afa49e..6b53003d370f 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/noAddErrorType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/noAddErrorType.kt.after @@ -1,10 +1,13 @@ // "Specify type explicitly" "true" // SHOULD_BE_AVAILABLE_AFTER_EXECUTION // ACTION: Add getter +// ACTION: Convert property initializer to getter // ACTION: Convert property to function +// ACTION: Convert to lazy property // ACTION: Introduce backing property // ACTION: Move to companion object // ACTION: Move to constructor +// ACTION: Specify type explicitly // ERROR: Unresolved reference: foo class A() { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/propertyWithGetterWithBlockBody.kt b/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/propertyWithGetterWithBlockBody.kt index 79f588ea913b..79cdeac46800 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/propertyWithGetterWithBlockBody.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/propertyWithGetterWithBlockBody.kt @@ -4,6 +4,7 @@ // ACTION: Convert member to extension // ACTION: Convert property to function // ACTION: Move to companion object +// ACTION: Specify type explicitly class My { val x diff --git a/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/propertyWithGetterWithBlockBody.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/propertyWithGetterWithBlockBody.kt.after index 79f588ea913b..79cdeac46800 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/propertyWithGetterWithBlockBody.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/propertyWithGetterWithBlockBody.kt.after @@ -4,6 +4,7 @@ // ACTION: Convert member to extension // ACTION: Convert property to function // ACTION: Move to companion object +// ACTION: Specify type explicitly class My { val x diff --git a/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/propertyWithRecursiveGetter.kt b/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/propertyWithRecursiveGetter.kt index e264386aeedb..0718423e4ae3 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/propertyWithRecursiveGetter.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/propertyWithRecursiveGetter.kt @@ -4,6 +4,7 @@ // ACTION: Convert member to extension // ACTION: Convert property to function // ACTION: Move to companion object +// ACTION: Specify type explicitly class A { val a diff --git a/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/propertyWithRecursiveGetter.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/propertyWithRecursiveGetter.kt.after index e264386aeedb..0718423e4ae3 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/propertyWithRecursiveGetter.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/propertyWithRecursiveGetter.kt.after @@ -4,6 +4,7 @@ // ACTION: Convert member to extension // ACTION: Convert property to function // ACTION: Move to companion object +// ACTION: Specify type explicitly class A { val a diff --git a/plugins/kotlin/idea/tests/testData/quickfix/typeMismatch/wrongPrimitive/floatToInt.kt b/plugins/kotlin/idea/tests/testData/quickfix/typeMismatch/wrongPrimitive/floatToInt.kt index 79185b43f482..e8dd9666a27c 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/typeMismatch/wrongPrimitive/floatToInt.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/typeMismatch/wrongPrimitive/floatToInt.kt @@ -1,7 +1,8 @@ // "Change to '1'" "true" // ACTION: Add 'const' modifier -// ACTION: Change 'a' type to 'Double' -// ACTION: Convert expression to 'Int' +// ACTION: Change to '1' +// ACTION: Change type of 'a' to 'Float' // ACTION: Convert property initializer to getter +// ACTION: Convert to lazy property val a : Int = 1.0F \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/typeMismatch/wrongPrimitive/floatToInt.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/typeMismatch/wrongPrimitive/floatToInt.kt.after index 1b883702fa1f..f6fe04ba219b 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/typeMismatch/wrongPrimitive/floatToInt.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/typeMismatch/wrongPrimitive/floatToInt.kt.after @@ -1,7 +1,8 @@ // "Change to '1'" "true" // ACTION: Add 'const' modifier -// ACTION: Change 'a' type to 'Double' -// ACTION: Convert expression to 'Int' +// ACTION: Change to '1' +// ACTION: Change type of 'a' to 'Float' // ACTION: Convert property initializer to getter +// ACTION: Convert to lazy property val a : Int = 1 \ No newline at end of file