Create from usage: Use separate editor for templates which should be placed in Java files
This commit is contained in:
+1
-2
@@ -3,5 +3,4 @@
|
||||
|
||||
J.foo(1, "2") fun test() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+1
-2
@@ -3,5 +3,4 @@
|
||||
|
||||
J.foo(count = 1, name = "2") fun test() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+1
-2
@@ -4,5 +4,4 @@
|
||||
|
||||
[foo(1, "2", J.bar("3", 4))] fun test() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+1
-2
@@ -3,5 +3,4 @@
|
||||
|
||||
class A(val n: Int)
|
||||
|
||||
fun test() = J.Foo(abc = 1, ghi = A(2), def = "s")
|
||||
|
||||
fun test() = J.Foo(abc = 1, ghi = A(2), def = "s")
|
||||
+1
-2
@@ -3,5 +3,4 @@
|
||||
|
||||
fun test<U>(u: U) {
|
||||
val a = J(u).Foo(u)
|
||||
}
|
||||
|
||||
}
|
||||
+1
-2
@@ -3,5 +3,4 @@
|
||||
|
||||
fun test() {
|
||||
val a = J.Foo(2)
|
||||
}
|
||||
|
||||
}
|
||||
+1
-2
@@ -3,5 +3,4 @@
|
||||
|
||||
fun test() {
|
||||
val a = J().Foo(2)
|
||||
}
|
||||
|
||||
}
|
||||
-1
@@ -7,4 +7,3 @@ open class B
|
||||
class A<T>(val t: T) {
|
||||
val x: B by J.Foo(t, "")
|
||||
}
|
||||
|
||||
|
||||
+1
-2
@@ -3,5 +3,4 @@
|
||||
|
||||
open class A
|
||||
|
||||
fun test(): A = J.Foo(2, "2")
|
||||
|
||||
fun test(): A = J.Foo(2, "2")
|
||||
+1
-2
@@ -3,5 +3,4 @@
|
||||
|
||||
open class A(val n: Int)
|
||||
|
||||
fun test(): A = J.Foo(2, "2")
|
||||
|
||||
fun test(): A = J.Foo(2, "2")
|
||||
+1
-2
@@ -3,5 +3,4 @@
|
||||
|
||||
trait T
|
||||
|
||||
fun test(): T = J.Foo(2, "2")
|
||||
|
||||
fun test(): T = J.Foo(2, "2")
|
||||
+1
-2
@@ -3,5 +3,4 @@
|
||||
|
||||
class A<T>(val b: B<T>) {
|
||||
fun test() = B.Foo<Int, String>(2, "2")
|
||||
}
|
||||
|
||||
}
|
||||
+1
-2
@@ -3,5 +3,4 @@
|
||||
|
||||
class A<T>(val b: B<T>) {
|
||||
fun test() = b.Foo<Int, String>(2, "2")
|
||||
}
|
||||
|
||||
}
|
||||
+1
-2
@@ -3,5 +3,4 @@
|
||||
|
||||
class A<T>(val b: B<T>) {
|
||||
fun test() = b.Foo<String>(2, "2")
|
||||
}
|
||||
|
||||
}
|
||||
+1
-2
@@ -3,5 +3,4 @@
|
||||
|
||||
class A<T>(val b: B<T>) {
|
||||
fun test() = b.Foo<T, Int, String>(2, "2")
|
||||
}
|
||||
|
||||
}
|
||||
+1
-2
@@ -3,5 +3,4 @@
|
||||
|
||||
class A<T>(val b: B<T>) {
|
||||
fun test() = B.Foo<String>(2, "2")
|
||||
}
|
||||
|
||||
}
|
||||
+1
-2
@@ -6,5 +6,4 @@ class B {
|
||||
|
||||
class Foo: J.A(1, "2", B()) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+1
-2
@@ -6,5 +6,4 @@ class B {
|
||||
|
||||
class Foo: J.A(abc = 1, ghi = "2", def = B()) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+1
-2
@@ -2,5 +2,4 @@
|
||||
// ERROR: Unresolved reference: A
|
||||
class Foo: J.A {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+1
-2
@@ -4,5 +4,4 @@ import J.A
|
||||
|
||||
class X {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+1
-2
@@ -4,5 +4,4 @@ import J.A
|
||||
|
||||
class X {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+1
-2
@@ -4,5 +4,4 @@ import J.A
|
||||
|
||||
class X {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+1
-2
@@ -4,5 +4,4 @@ import J.A
|
||||
|
||||
class X {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
-1
@@ -1,4 +1,3 @@
|
||||
// "Create class 'A'" "true"
|
||||
// ERROR: Unresolved reference: A
|
||||
fun foo() = J.A.B
|
||||
|
||||
|
||||
-1
@@ -1,4 +1,3 @@
|
||||
// "Create enum 'A'" "true"
|
||||
// ERROR: Unresolved reference: A
|
||||
fun foo() = J.A.B
|
||||
|
||||
|
||||
-1
@@ -1,4 +1,3 @@
|
||||
// "Create trait 'A'" "true"
|
||||
// ERROR: Unresolved reference: A
|
||||
fun foo() = J.A.B
|
||||
|
||||
|
||||
+1
-2
@@ -1,4 +1,3 @@
|
||||
// "Create annotation 'A'" "true"
|
||||
// ERROR: Unresolved reference: A
|
||||
fun foo(): J.A = throw Throwable("")
|
||||
|
||||
fun foo(): J.A = throw Throwable("")
|
||||
+1
-2
@@ -1,4 +1,3 @@
|
||||
// "Create class 'A'" "true"
|
||||
// ERROR: Unresolved reference: A
|
||||
fun foo(): J.A = throw Throwable("")
|
||||
|
||||
fun foo(): J.A = throw Throwable("")
|
||||
+1
-2
@@ -1,4 +1,3 @@
|
||||
// "Create enum 'A'" "true"
|
||||
// ERROR: Unresolved reference: A
|
||||
fun foo(): J.A = throw Throwable("")
|
||||
|
||||
fun foo(): J.A = throw Throwable("")
|
||||
+1
-2
@@ -1,4 +1,3 @@
|
||||
// "Create trait 'A'" "true"
|
||||
// ERROR: Unresolved reference: A
|
||||
fun foo(): J.A = throw Throwable("")
|
||||
|
||||
fun foo(): J.A = throw Throwable("")
|
||||
Reference in New Issue
Block a user