[KAPT4] KT-51982 Implement generation of @Metadata annotations in Java stubs

Also adds rendering of @Metadata annotations in Kapt3 and Kapt4 tests
(currently disabled for a few tests).

Co-authored-by: Alexander Udalov <alexander.udalov@jetbrains.com>
This commit is contained in:
strangepleasures
2023-07-31 23:09:08 +02:00
committed by Space Team
parent f40fc1b0c6
commit 2423b7b62f
250 changed files with 15438 additions and 81 deletions
@@ -1,3 +1,12 @@
/**
* public abstract interface Callback : kotlin/Any {
*
* // signature: invoke()Ljava/lang/String;
* public abstract fun invoke(): kotlin/String
*
* // module name: main
* }
*/
@kotlin.Metadata()
public abstract interface Callback {
@@ -8,6 +17,24 @@ public abstract interface Callback {
////////////////////
/**
* public final enum class Foo : kotlin/Enum<Foo> {
*
* // signature: <init>(Ljava/lang/String;ILCallback;)V
* private constructor(callback: Callback)
*
* // field: callback:LCallback;
* // getter: getCallback()LCallback;
* public final val callback: Callback
* public final get
*
* FOO,
*
* // module name: main
*
* // has Enum.entries
* }
*/
@kotlin.Metadata()
public enum Foo {
/*public static final*/ FOO /* = new Foo() */;