Create from usage: Support generation of nested Java classes from usages in Kotlin code

This commit is contained in:
Alexey Sedunov
2015-02-19 13:59:14 +03:00
parent 5cd477279b
commit 60d02dab0f
169 changed files with 1452 additions and 40 deletions
@@ -0,0 +1,6 @@
// "Create annotation 'foo'" "false"
// ERROR: Unresolved reference: foo
J.<caret>foo(1, "2") fun test() {
}
@@ -0,0 +1,8 @@
class J {
public static @interface foo {
int i();
String s();
}
}
@@ -0,0 +1,7 @@
// "Create annotation 'foo'" "true"
// ERROR: Unresolved reference: foo
J.foo(1, "2") fun test() {
}
@@ -0,0 +1,6 @@
// "Create annotation 'foo'" "true"
// ERROR: Unresolved reference: foo
J.<caret>foo(1, "2") fun test() {
}
@@ -0,0 +1,8 @@
class J {
public static @interface foo {
int count();
String name();
}
}
@@ -0,0 +1,7 @@
// "Create annotation 'foo'" "true"
// ERROR: Unresolved reference: foo
J.foo(count = 1, name = "2") fun test() {
}
@@ -0,0 +1,6 @@
// "Create annotation 'foo'" "true"
// ERROR: Unresolved reference: foo
J.<caret>foo(count = 1, name = "2") fun test() {
}