Create From Usage: Create class by annotation entry/super-call delegation specifier
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
// "Create annotation 'foo'" "true"
|
||||
|
||||
foo(1, "2") fun test() {
|
||||
|
||||
}
|
||||
|
||||
annotation class foo(val i: Int, val s: String)
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Create annotation 'foo'" "true"
|
||||
|
||||
[foo] fun test() {
|
||||
|
||||
}
|
||||
|
||||
annotation class foo
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Create annotation 'foo'" "true"
|
||||
|
||||
[foo()] fun test() {
|
||||
|
||||
}
|
||||
|
||||
annotation class foo
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Create annotation 'foo'" "true"
|
||||
|
||||
[foo(1, "2")] fun test() {
|
||||
|
||||
}
|
||||
|
||||
annotation class foo(val i: Int, val s: String)
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Create annotation 'foo'" "true"
|
||||
|
||||
[foo(1, "2")] fun test() {
|
||||
|
||||
}
|
||||
|
||||
annotation class foo(val i: Int, val s: String)
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Create annotation 'foo'" "true"
|
||||
|
||||
[foo(1)] fun test() {
|
||||
|
||||
}
|
||||
|
||||
annotation class foo(val value: Int)
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Create annotation 'foo'" "true"
|
||||
|
||||
[foo(fooBar = 1)] fun test() {
|
||||
|
||||
}
|
||||
|
||||
annotation class foo(val fooBar: Int)
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// "Create annotation 'foo'" "true"
|
||||
|
||||
<caret>foo(1, "2") fun test() {
|
||||
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// "Create annotation 'foo'" "true"
|
||||
|
||||
[<caret>foo] fun test() {
|
||||
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// "Create annotation 'foo'" "true"
|
||||
|
||||
[<caret>foo()] fun test() {
|
||||
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// "Create annotation 'foo'" "true"
|
||||
|
||||
[<caret>foo(1, "2")] fun test() {
|
||||
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// "Create annotation 'foo'" "true"
|
||||
|
||||
[<caret>foo<String>(1, "2")] fun test() {
|
||||
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// "Create annotation 'foo'" "false"
|
||||
// ACTION: Create function 'foo'
|
||||
// ERROR: Unresolved reference: foo
|
||||
|
||||
fun test() = <caret>foo(1, "2")
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// "Create annotation 'foo'" "true"
|
||||
|
||||
[<caret>foo(1)] fun test() {
|
||||
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// "Create annotation 'foo'" "true"
|
||||
|
||||
[<caret>foo(fooBar = 1)] fun test() {
|
||||
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Create class 'A'" "true"
|
||||
package p
|
||||
|
||||
class Foo: A(1, "2") {
|
||||
|
||||
}
|
||||
|
||||
open class A(i: Int, s: String) {
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// "Create class 'A'" "true"
|
||||
package p
|
||||
|
||||
class X {
|
||||
|
||||
open class A(i: Int, s: String) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class Foo: X.A(1, "2") {
|
||||
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Create class 'A'" "true"
|
||||
package p
|
||||
|
||||
class Foo: p.A(1, "2") {
|
||||
|
||||
}
|
||||
|
||||
open class A(i: Int, s: String) {
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// "Create class 'A'" "true"
|
||||
package p
|
||||
|
||||
class B {
|
||||
|
||||
}
|
||||
|
||||
class Foo: A(abc = 1, ghi = "2", def = B()) {
|
||||
|
||||
}
|
||||
|
||||
open class A(abc: Int, ghi: String, def: B) {
|
||||
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Create class 'A'" "true"
|
||||
package p
|
||||
|
||||
class Foo: A<Int, String>(1, "2") {
|
||||
|
||||
}
|
||||
|
||||
open class A<T, U>(t: T, u: U) {
|
||||
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Create class 'A'" "true"
|
||||
package p
|
||||
|
||||
class Foo: <caret>A(1, "2") {
|
||||
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Create class 'A'" "true"
|
||||
package p
|
||||
|
||||
class X {
|
||||
|
||||
}
|
||||
|
||||
class Foo: X.<caret>A(1, "2") {
|
||||
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Create class 'A'" "true"
|
||||
package p
|
||||
|
||||
class Foo: p.<caret>A(1, "2") {
|
||||
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Create class 'A'" "true"
|
||||
package p
|
||||
|
||||
class B {
|
||||
|
||||
}
|
||||
|
||||
class Foo: <caret>A(abc = 1, ghi = "2", def = B()) {
|
||||
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Create class 'A'" "true"
|
||||
package p
|
||||
|
||||
class Foo: <caret>A<Int, String>(1, "2") {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user