JvmName annotation support, single-file facade case (just rename file facade class)

- initial implementation of JvmFileClassesProvider
- migrate some of PackagePartClassUtil usages to JvmFileClassesProvider (mostly in Codegen)
- placeholder ("no resolve") implementation for migration period and unclear cases
- tests
This commit is contained in:
Dmitry Petrov
2015-09-02 22:08:13 +03:00
parent 43e91d4d31
commit 2519641b2b
58 changed files with 615 additions and 79 deletions
@@ -0,0 +1,5 @@
public class Baz {
public static String baz() {
return Foo.foo() + Bar.bar();
}
}
@@ -0,0 +1,2 @@
@file:jvmName("Bar")
public fun bar(): String = "K"
@@ -0,0 +1 @@
fun box(): String = Baz.baz()
@@ -0,0 +1,2 @@
@file:jvmName("Foo")
public fun foo(): String = "O"
@@ -0,0 +1,5 @@
public class Bar {
public static String bar() {
return Foo.foo();
}
}
@@ -0,0 +1,2 @@
@file:jvmName("Foo")
public fun foo(): String = "OK"
@@ -0,0 +1 @@
fun box(): String = Bar.bar()