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() {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user