[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,18 @@
/**
* public abstract class Cls : kotlin/Any {
*
* // signature: <init>()V
* public constructor()
*
* // signature: bar(I)Ljava/lang/String;
* public final fun bar(bcd: kotlin/Int): kotlin/String
*
* // signature: foo(Ljava/lang/String;)V
* public abstract fun foo(abc: kotlin/String): kotlin/Unit
*
* // module name: main
* }
*/
@kotlin.Metadata()
public abstract class Cls {
@@ -17,6 +32,18 @@ public abstract class Cls {
////////////////////
/**
* public abstract interface Intf : kotlin/Any {
*
* // signature: bar(I)Ljava/lang/String;
* public open fun bar(bcd: kotlin/Int): kotlin/String
*
* // signature: foo(Ljava/lang/String;)V
* public abstract fun foo(abc: kotlin/String): kotlin/Unit
*
* // module name: main
* }
*/
@kotlin.Metadata()
public abstract interface Intf {
@@ -26,6 +53,9 @@ public abstract interface Intf {
@org.jetbrains.annotations.NotNull()
public abstract java.lang.String bar(int bcd);
/**
* synthetic class
*/
@kotlin.Metadata()
public static final class DefaultImpls {