Allow to shorten class member references
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
class A {
|
||||
public class B {
|
||||
public B(String s) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fun bar(s: String) {
|
||||
<selection>val t: A.B = A().B(s)</selection>
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fun bar(s: String) {
|
||||
val t: A.B = A().B(s)
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
class A {
|
||||
public class B {
|
||||
public B(String s) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import A.*
|
||||
|
||||
fun bar(s: String) {
|
||||
<selection>val t: A.B = A().B(s)</selection>
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import A.*
|
||||
|
||||
fun bar(s: String) {
|
||||
val t: B = A().B(s)
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
class A {
|
||||
public static class B {
|
||||
public B(String s) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fun bar(s: String) {
|
||||
<selection>val t: A.B = A.B(s)</selection>
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fun bar(s: String) {
|
||||
val t: A.B = A.B(s)
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
class A {
|
||||
public static class B {
|
||||
public B(String s) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import A.*
|
||||
|
||||
fun bar(s: String) {
|
||||
<selection>val t: A.B = A.B(s)</selection>
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import A.*
|
||||
|
||||
fun bar(s: String) {
|
||||
val t: B = B(s)
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
class A {
|
||||
public static int X = 10;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fun bar() {
|
||||
<selection>A.X = 100</selection>
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fun bar() {
|
||||
A.X = 100
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
class A {
|
||||
public static int X = 10;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import A.*
|
||||
|
||||
fun bar() {
|
||||
<selection>A.X = 100</selection>
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import A.*
|
||||
|
||||
fun bar() {
|
||||
X = 100
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
class A {
|
||||
public static void foo(String s) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fun bar(s: String) {
|
||||
<selection>A.foo(s)</selection>
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fun bar(s: String) {
|
||||
A.foo(s)
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
class A {
|
||||
public static void foo(String s) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import A.*
|
||||
|
||||
fun bar(s: String) {
|
||||
<selection>A.foo(s)</selection>
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import A.*
|
||||
|
||||
fun bar(s: String) {
|
||||
foo(s)
|
||||
}
|
||||
Reference in New Issue
Block a user