Kapt3: Generate incremental compilation metadata (light classes with Kotlin metadata)

This commit is contained in:
Yan Zhulanow
2016-12-27 20:09:30 +03:00
committed by Yan Zhulanow
parent aa84cc4911
commit fdb568f86d
10 changed files with 257 additions and 61 deletions
@@ -0,0 +1,55 @@
package test;
public abstract @interface MyAnnotation {
}
////////////////////
package test;
public final class Simple {
public static final test.Simple.Companion Companion = null;
@MyAnnotation()
public final void myMethod() {
}
public Simple() {
super();
}
public static final class NestedClass {
public NestedClass() {
super();
}
public static final class NestedNestedClass {
public NestedNestedClass() {
super();
}
}
}
public final class InnerClass {
public InnerClass() {
super();
}
}
public static final class Companion {
private Companion() {
super();
}
}
}
////////////////////
package error;
public final class NonExistentClass {
}
+15
View File
@@ -0,0 +1,15 @@
package test
internal class Simple {
@MyAnnotation
fun myMethod() {}
class NestedClass {
class NestedNestedClass
}
inner class InnerClass
companion object
}
internal annotation class MyAnnotation
+4
View File
@@ -0,0 +1,4 @@
MyMethodMyAnnotation.java:
package generated;
class MyMethodMyAnnotation {}