Create From Usage: Create class by annotation entry/super-call delegation specifier

This commit is contained in:
Alexey Sedunov
2014-11-05 14:31:33 +03:00
parent 1b1eb10979
commit afeb03f383
31 changed files with 357 additions and 6 deletions
@@ -0,0 +1,7 @@
// "Create annotation 'foo'" "true"
foo(1, "2") fun test() {
}
annotation class foo(val i: Int, val s: String)
@@ -0,0 +1,7 @@
// "Create annotation 'foo'" "true"
[foo] fun test() {
}
annotation class foo
@@ -0,0 +1,7 @@
// "Create annotation 'foo'" "true"
[foo()] fun test() {
}
annotation class foo
@@ -0,0 +1,7 @@
// "Create annotation 'foo'" "true"
[foo(1, "2")] fun test() {
}
annotation class foo(val i: Int, val s: String)
@@ -0,0 +1,7 @@
// "Create annotation 'foo'" "true"
[foo(1, "2")] fun test() {
}
annotation class foo(val i: Int, val s: String)
@@ -0,0 +1,7 @@
// "Create annotation 'foo'" "true"
[foo(1)] fun test() {
}
annotation class foo(val value: Int)
@@ -0,0 +1,7 @@
// "Create annotation 'foo'" "true"
[foo(fooBar = 1)] fun test() {
}
annotation class foo(val fooBar: Int)
@@ -0,0 +1,5 @@
// "Create annotation 'foo'" "true"
<caret>foo(1, "2") fun test() {
}
@@ -0,0 +1,5 @@
// "Create annotation 'foo'" "true"
[<caret>foo] fun test() {
}
@@ -0,0 +1,5 @@
// "Create annotation 'foo'" "true"
[<caret>foo()] fun test() {
}
@@ -0,0 +1,5 @@
// "Create annotation 'foo'" "true"
[<caret>foo(1, "2")] fun test() {
}
@@ -0,0 +1,5 @@
// "Create annotation 'foo'" "true"
[<caret>foo<String>(1, "2")] fun test() {
}
@@ -0,0 +1,5 @@
// "Create annotation 'foo'" "false"
// ACTION: Create function 'foo'
// ERROR: Unresolved reference: foo
fun test() = <caret>foo(1, "2")
@@ -0,0 +1,5 @@
// "Create annotation 'foo'" "true"
[<caret>foo(1)] fun test() {
}
@@ -0,0 +1,5 @@
// "Create annotation 'foo'" "true"
[<caret>foo(fooBar = 1)] fun test() {
}