allow returning multiple PsiMethod wrappers for a JetFunction or JetPropertyAccessor; use that for handling Java usages through old-style and new-style facades
#KT-9102 Fixed
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
@file:JvmName("Bartender")
|
||||
|
||||
package testing.rename
|
||||
|
||||
public fun bar() = 1
|
||||
|
||||
fun usage() {
|
||||
bar()
|
||||
}
|
||||
|
||||
val some = bar()
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package testing;
|
||||
|
||||
import testing.rename.Bartender;
|
||||
|
||||
class JavaClient {
|
||||
public void testing() {
|
||||
Bartender.bar();
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
@file:JvmName("Bartender")
|
||||
|
||||
package testing.rename
|
||||
|
||||
public fun foo() = 1
|
||||
|
||||
fun usage() {
|
||||
foo()
|
||||
}
|
||||
|
||||
val some = foo()
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package testing;
|
||||
|
||||
import testing.rename.Bartender;
|
||||
|
||||
class JavaClient {
|
||||
public void testing() {
|
||||
Bartender.foo();
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"type": "JAVA_METHOD",
|
||||
"classId": "testing/rename/Bartender",
|
||||
"methodSignature": "int foo()",
|
||||
"newName": "bar"
|
||||
}
|
||||
Reference in New Issue
Block a user