mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[kotlin][tests][quickfixes] update testData
GitOrigin-RevId: 0b9dddda0be38819fad3802cdbb3c8b7fb795ebe
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5121311f9f
commit
bd51e7a671
+5
-1
@@ -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()
|
||||
|
||||
+5
-1
@@ -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()
|
||||
|
||||
+6
@@ -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
|
||||
|
||||
|
||||
+6
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
@@ -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){}
|
||||
|
||||
+1
-1
@@ -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){}
|
||||
|
||||
+1
@@ -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
|
||||
|
||||
+1
@@ -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
|
||||
|
||||
+1
@@ -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
|
||||
|
||||
+1
@@ -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
|
||||
|
||||
+4
-1
@@ -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() {
|
||||
|
||||
+4
-1
@@ -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() {
|
||||
|
||||
+6
-1
@@ -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() = <caret>foo
|
||||
|
||||
+6
-1
@@ -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() {
|
||||
|
||||
+1
-2
@@ -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
|
||||
|
||||
+1
-2
@@ -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
|
||||
|
||||
+3
@@ -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 <caret>foo
|
||||
|
||||
+3
@@ -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
|
||||
|
||||
+4
@@ -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 = <caret>foo
|
||||
+4
@@ -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
|
||||
|
||||
+6
@@ -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 = { <caret>foo }
|
||||
|
||||
+6
@@ -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 = {
|
||||
|
||||
+6
@@ -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 -> <caret>foo }
|
||||
|
||||
+6
@@ -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 ->
|
||||
|
||||
+6
@@ -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 = {
|
||||
|
||||
+6
@@ -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 = {
|
||||
|
||||
+6
@@ -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 ->
|
||||
|
||||
+6
@@ -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 ->
|
||||
|
||||
+3
@@ -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
|
||||
|
||||
|
||||
+3
@@ -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
|
||||
|
||||
|
||||
+5
@@ -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 = <caret>foo
|
||||
|
||||
+5
@@ -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
|
||||
|
||||
+6
@@ -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 = { <caret>foo }
|
||||
|
||||
+6
@@ -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 }
|
||||
|
||||
+6
@@ -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 = { <caret>foo }
|
||||
|
||||
+6
@@ -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 }
|
||||
|
||||
+6
@@ -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 -> <caret>foo }
|
||||
|
||||
+6
@@ -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 }
|
||||
|
||||
+6
@@ -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 -> <caret>foo }
|
||||
|
||||
+6
@@ -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 }
|
||||
|
||||
+6
@@ -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 = {
|
||||
|
||||
+6
@@ -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 = {
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
+9
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
+6
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
+6
@@ -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)
|
||||
|
||||
+4
@@ -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)
|
||||
|
||||
|
||||
+4
@@ -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)
|
||||
|
||||
|
||||
+4
@@ -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)
|
||||
|
||||
+4
@@ -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)
|
||||
|
||||
+5
@@ -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
|
||||
|
||||
+5
@@ -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
|
||||
|
||||
+5
@@ -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
|
||||
|
||||
|
||||
+5
@@ -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
|
||||
|
||||
|
||||
+5
@@ -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
|
||||
|
||||
|
||||
+5
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
+10
@@ -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
|
||||
|
||||
+10
@@ -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
|
||||
|
||||
+10
@@ -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
|
||||
|
||||
+11
-1
@@ -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
|
||||
|
||||
+11
-1
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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").<caret>forEach { }
|
||||
}
|
||||
@@ -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").<caret>forEach1 { }
|
||||
}
|
||||
+4
-1
@@ -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
|
||||
|
||||
+4
-1
@@ -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
|
||||
|
||||
+4
@@ -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
|
||||
|
||||
+4
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
+9
@@ -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)
|
||||
|
||||
|
||||
+3
-1
@@ -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<T>
|
||||
|
||||
+3
-1
@@ -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<T>
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
+6
-1
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
+6
-1
@@ -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)
|
||||
|
||||
+4
@@ -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)
|
||||
|
||||
+4
@@ -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)
|
||||
|
||||
+4
@@ -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 {
|
||||
|
||||
+4
@@ -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 {
|
||||
|
||||
+5
@@ -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
|
||||
|
||||
|
||||
+5
@@ -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
|
||||
|
||||
|
||||
+4
@@ -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
|
||||
|
||||
|
||||
+4
@@ -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
|
||||
|
||||
|
||||
+1
@@ -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 PrivateInFileClass<T : <caret>PrivateInFileClass.PrivateInnerClass> {
|
||||
private class PrivateInnerClass
|
||||
|
||||
+1
@@ -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 PrivateInFileClass<T : <caret>PrivateInFileClass.PrivateInnerClass> {
|
||||
class PrivateInnerClass
|
||||
|
||||
+4
-1
@@ -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
|
||||
|
||||
|
||||
+4
-1
@@ -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
|
||||
|
||||
|
||||
+3
-1
@@ -1,5 +1,7 @@
|
||||
// "Make '<set-attribute>' internal" "true"
|
||||
// ACTION: "Make '<set-attribute>' public"
|
||||
// ACTION: Converts the assignment statement to an expression
|
||||
// ACTION: Make '<set-attribute>' internal
|
||||
// ACTION: Make '<set-attribute>' public
|
||||
|
||||
class Demo {
|
||||
var attribute = "a"
|
||||
|
||||
+3
-1
@@ -1,5 +1,7 @@
|
||||
// "Make '<set-attribute>' internal" "true"
|
||||
// ACTION: "Make '<set-attribute>' public"
|
||||
// ACTION: Converts the assignment statement to an expression
|
||||
// ACTION: Make '<set-attribute>' internal
|
||||
// ACTION: Make '<set-attribute>' public
|
||||
|
||||
class Demo {
|
||||
var attribute = "a"
|
||||
|
||||
+3
-1
@@ -1,5 +1,7 @@
|
||||
// "Make '<set-attribute>' public" "true"
|
||||
// ACTION: "Make '<set-attribute>' internal"
|
||||
// ACTION: Converts the assignment statement to an expression
|
||||
// ACTION: Make '<set-attribute>' internal
|
||||
// ACTION: Make '<set-attribute>' public
|
||||
|
||||
class Demo {
|
||||
var attribute = "a"
|
||||
|
||||
+3
-1
@@ -1,5 +1,7 @@
|
||||
// "Make '<set-attribute>' public" "true"
|
||||
// ACTION: "Make '<set-attribute>' internal"
|
||||
// ACTION: Converts the assignment statement to an expression
|
||||
// ACTION: Make '<set-attribute>' internal
|
||||
// ACTION: Make '<set-attribute>' public
|
||||
|
||||
class Demo {
|
||||
var attribute = "a"
|
||||
|
||||
+2
@@ -1,4 +1,6 @@
|
||||
// "Change to constructor invocation" "true"
|
||||
// ACTION: Add full qualifier
|
||||
// ACTION: Change to constructor invocation
|
||||
// ACTION: Introduce import alias
|
||||
|
||||
class My {
|
||||
|
||||
+2
@@ -1,4 +1,6 @@
|
||||
// "Change to constructor invocation" "true"
|
||||
// ACTION: Add full qualifier
|
||||
// ACTION: Change to constructor invocation
|
||||
// ACTION: Introduce import alias
|
||||
|
||||
class My {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user