Stub generation infrastructure (except for metadata generation) for KAPT+K2
This commit includes the basic Java stubs generation infrastructure and the corresponding tests. The main entry point is called Kapt4StubGenerator. Calls to it from production code will be added in a separate commit. #KT-51982
This commit is contained in:
committed by
Space Team
parent
ae4fab8483
commit
2002542ad2
@@ -0,0 +1,69 @@
|
||||
package test.another;
|
||||
|
||||
@kotlin.Metadata()
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface Anno {
|
||||
|
||||
public abstract java.lang.String value();
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package test.another;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class TopLevelKt {
|
||||
|
||||
public TopLevelKt() {
|
||||
super();
|
||||
}
|
||||
public static final int topLevelConstProperty = 2;
|
||||
private static final int topLevelProperty = 2;
|
||||
|
||||
public static final void extensionFunction(@Anno(value = "rec")
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String $this$extensionFunction, @Anno(value = "1")
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String a, @Anno(value = "2")
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String b) {
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final <T extends java.lang.Object>java.lang.String getExtensionProperty(@Anno(value = "propRec")
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
T $this$extensionProperty) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Anno(value = "extpr")
|
||||
@java.lang.Deprecated()
|
||||
public static void getExtensionProperty$annotations(java.lang.Object p0) {
|
||||
}
|
||||
|
||||
public static final int getTopLevelProperty() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String getTopLevelProperty2() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static final <T extends java.lang.Object>void setExtensionProperty(@Anno(value = "propRec")
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
T $this$extensionProperty, @Anno(value = "setparam")
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String setParamName) {
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public static final java.lang.String topLevelFunction() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public static final <X extends java.lang.CharSequence, T extends java.util.List<? extends X>>T topLevelGenericFunction() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user