Create from usage: Support generation of nested Java classes from usages in Kotlin code
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
class J {
|
||||
|
||||
public static class A {
|
||||
public A(int i, @NotNull String s, @NotNull B B) {
|
||||
}
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Create class 'A'" "true"
|
||||
// ERROR: Unresolved reference: A
|
||||
class B {
|
||||
|
||||
}
|
||||
|
||||
class Foo: J.A(1, "2", B()) {
|
||||
|
||||
}
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Create class 'A'" "true"
|
||||
// ERROR: Unresolved reference: A
|
||||
class B {
|
||||
|
||||
}
|
||||
|
||||
class Foo: J.<caret>A(1, "2", B()) {
|
||||
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
class J {
|
||||
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
class J {
|
||||
|
||||
public static class A {
|
||||
public A(int abc, @NotNull String ghi, @NotNull B def) {
|
||||
}
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Create class 'A'" "true"
|
||||
// ERROR: Unresolved reference: A
|
||||
class B {
|
||||
|
||||
}
|
||||
|
||||
class Foo: J.A(abc = 1, ghi = "2", def = B()) {
|
||||
|
||||
}
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Create class 'A'" "true"
|
||||
// ERROR: Unresolved reference: A
|
||||
class B {
|
||||
|
||||
}
|
||||
|
||||
class Foo: J.<caret>A(abc = 1, ghi = "2", def = B()) {
|
||||
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
class J {
|
||||
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// "Create trait 'A'" "false"
|
||||
// ERROR: Unresolved reference: A
|
||||
class Foo: J.<caret>A {
|
||||
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
class J {
|
||||
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
class J {
|
||||
|
||||
public static interface A {
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Create trait 'A'" "true"
|
||||
// ERROR: Unresolved reference: A
|
||||
class Foo: J.A {
|
||||
|
||||
}
|
||||
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// "Create trait 'A'" "true"
|
||||
// ERROR: Unresolved reference: A
|
||||
class Foo: J.<caret>A {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user