Files
kotlin-fork/plugins/kapt3/kapt3-compiler/testData/converter/enumInCompanion.fir.txt
T
strangepleasures 2423b7b62f [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>
2023-08-17 21:43:54 +00:00

415 lines
9.6 KiB
Plaintext
Vendored

/**
* public final class Test : kotlin/Any {
*
* // signature: <init>()V
* public constructor()
*
* // field: foo:LTest$Companion$Example;
* private final val foo: Test.Companion.Example (* = ... *)
* private final get
*
* // companion object: Companion
*
* // nested class: Companion
*
* // module name: main
* }
*/
@kotlin.Metadata()
public final class Test {
@org.jetbrains.annotations.NotNull()
private final Test.Companion.Example foo = Test.Companion.Example.FOO;
@org.jetbrains.annotations.NotNull()
public static final Test.Companion Companion = null;
public Test() {
super();
}
/**
* public final companion object Test.Companion : kotlin/Any {
*
* // signature: <init>()V
* private constructor()
*
* // nested class: Example
*
* // module name: main
* }
*/
@kotlin.Metadata()
public static final class Companion {
private Companion() {
super();
}
/**
* public final enum class Test.Companion.Example : kotlin/Enum<Test.Companion.Example> {
*
* // signature: <init>(Ljava/lang/String;I)V
* private constructor()
*
* FOO,
*
* // module name: main
*
* // has Enum.entries
* }
*/
@kotlin.Metadata()
public static enum Example {
/*public static final*/ FOO /* = new Example() */;
Example() {
}
@org.jetbrains.annotations.NotNull()
public static kotlin.enums.EnumEntries<Test.Companion.Example> getEntries() {
return null;
}
}
}
}
////////////////////
/**
* public final class Test2 : kotlin/Any {
*
* // signature: <init>()V
* public constructor()
*
* // field: foo:LTest2$Amigo$Example;
* private final val foo: Test2.Amigo.Example (* = ... *)
* private final get
*
* // companion object: Amigo
*
* // nested class: Amigo
*
* // module name: main
* }
*/
@kotlin.Metadata()
public final class Test2 {
@org.jetbrains.annotations.NotNull()
private final Test2.Amigo.Example foo = Test2.Amigo.Example.FOO;
@org.jetbrains.annotations.NotNull()
public static final Test2.Amigo Amigo = null;
public Test2() {
super();
}
/**
* public final companion object Test2.Amigo : kotlin/Any {
*
* // signature: <init>()V
* private constructor()
*
* // nested class: Example
*
* // module name: main
* }
*/
@kotlin.Metadata()
public static final class Amigo {
private Amigo() {
super();
}
/**
* public final enum class Test2.Amigo.Example : kotlin/Enum<Test2.Amigo.Example> {
*
* // signature: <init>(Ljava/lang/String;I)V
* private constructor()
*
* FOO,
*
* // module name: main
*
* // has Enum.entries
* }
*/
@kotlin.Metadata()
public static enum Example {
/*public static final*/ FOO /* = new Example() */;
Example() {
}
@org.jetbrains.annotations.NotNull()
public static kotlin.enums.EnumEntries<Test2.Amigo.Example> getEntries() {
return null;
}
}
}
}
////////////////////
/**
* public final class Test3 : kotlin/Any {
*
* // signature: <init>()V
* public constructor()
*
* // field: foo:LTest3$Amigo$Example;
* private final val foo: Test3.Amigo.Example (* = ... *)
* private final get
*
* // nested class: Amigo
*
* // module name: main
* }
*/
@kotlin.Metadata()
public final class Test3 {
@org.jetbrains.annotations.NotNull()
private final Test3.Amigo.Example foo = Test3.Amigo.Example.FOO;
public Test3() {
super();
}
/**
* public final object Test3.Amigo : kotlin/Any {
*
* // signature: <init>()V
* private constructor()
*
* // nested class: Example
*
* // module name: main
* }
*/
@kotlin.Metadata()
public static final class Amigo {
@org.jetbrains.annotations.NotNull()
public static final Test3.Amigo INSTANCE = null;
private Amigo() {
super();
}
/**
* public final enum class Test3.Amigo.Example : kotlin/Enum<Test3.Amigo.Example> {
*
* // signature: <init>(Ljava/lang/String;I)V
* private constructor()
*
* FOO,
*
* // module name: main
*
* // has Enum.entries
* }
*/
@kotlin.Metadata()
public static enum Example {
/*public static final*/ FOO /* = new Example() */;
Example() {
}
@org.jetbrains.annotations.NotNull()
public static kotlin.enums.EnumEntries<Test3.Amigo.Example> getEntries() {
return null;
}
}
}
}
////////////////////
/**
* public final class Test4 : kotlin/Any {
*
* // signature: <init>()V
* public constructor()
*
* // field: foo:I
* private final val foo: kotlin/Int (* = ... *)
* private final get
*
* // companion object: Companion
*
* // nested class: Companion
*
* // module name: main
* }
*/
@kotlin.Metadata()
public final class Test4 {
private final int foo = 1;
@org.jetbrains.annotations.NotNull()
public static final Test4.Companion Companion = null;
public Test4() {
super();
}
/**
* public final companion object Test4.Companion : kotlin/Any {
*
* // signature: <init>()V
* private constructor()
*
* // nested class: Foo
*
* // module name: main
* }
*/
@kotlin.Metadata()
public static final class Companion {
private Companion() {
super();
}
/**
* public final object Test4.Companion.Foo : kotlin/Any {
*
* // signature: <init>()V
* private constructor()
*
* // field: constProperty:I
* public final const val constProperty: kotlin/Int (* = ... *)
* public final get
*
* // module name: main
* }
*/
@kotlin.Metadata()
public static final class Foo {
@org.jetbrains.annotations.NotNull()
public static final Test4.Companion.Foo INSTANCE = null;
public static final int constProperty = 1;
private Foo() {
super();
}
}
}
}
////////////////////
/**
* public final class Test5 : kotlin/Any {
*
* // signature: <init>()V
* public constructor()
*
* // field: foo:LTest5$Amigos$Companion$Goo$Example;
* private final val foo: Test5.Amigos.Companion.Goo.Example (* = ... *)
* private final get
*
* // nested class: Amigos
*
* // module name: main
* }
*/
@kotlin.Metadata()
public final class Test5 {
@org.jetbrains.annotations.NotNull()
private final Test5.Amigos.Companion.Goo.Example foo = Test5.Amigos.Companion.Goo.Example.FOO;
public Test5() {
super();
}
/**
* public final class Test5.Amigos : kotlin/Any {
*
* // signature: <init>()V
* public constructor()
*
* // companion object: Companion
*
* // nested class: Companion
*
* // module name: main
* }
*/
@kotlin.Metadata()
public static final class Amigos {
@org.jetbrains.annotations.NotNull()
public static final Test5.Amigos.Companion Companion = null;
public Amigos() {
super();
}
/**
* public final companion object Test5.Amigos.Companion : kotlin/Any {
*
* // signature: <init>()V
* private constructor()
*
* // nested class: Goo
*
* // module name: main
* }
*/
@kotlin.Metadata()
public static final class Companion {
private Companion() {
super();
}
/**
* public final class Test5.Amigos.Companion.Goo : kotlin/Any {
*
* // signature: <init>()V
* public constructor()
*
* // nested class: Example
*
* // module name: main
* }
*/
@kotlin.Metadata()
public static final class Goo {
public Goo() {
super();
}
/**
* public final enum class Test5.Amigos.Companion.Goo.Example : kotlin/Enum<Test5.Amigos.Companion.Goo.Example> {
*
* // signature: <init>(Ljava/lang/String;I)V
* private constructor()
*
* FOO,
*
* // module name: main
*
* // has Enum.entries
* }
*/
@kotlin.Metadata()
public static enum Example {
/*public static final*/ FOO /* = new Example() */;
Example() {
}
@org.jetbrains.annotations.NotNull()
public static kotlin.enums.EnumEntries<Test5.Amigos.Companion.Goo.Example> getEntries() {
return null;
}
}
}
}
}
}