diff --git a/compiler/backend/src/org/jetbrains/kotlin/codegen/ClassBuilderMode.java b/compiler/backend/src/org/jetbrains/kotlin/codegen/ClassBuilderMode.java index ef1549fd8de..2acc553cdad 100644 --- a/compiler/backend/src/org/jetbrains/kotlin/codegen/ClassBuilderMode.java +++ b/compiler/backend/src/org/jetbrains/kotlin/codegen/ClassBuilderMode.java @@ -79,7 +79,7 @@ public class ClassBuilderMode { */ public final static ClassBuilderMode KAPT3 = new ClassBuilderMode( /* bodies = */ false, - /* metadata = */ true, + /* metadata = */ false, /* sourceRetention = */ true, /* generateMultiFileFacadePartClasses = */ true); } diff --git a/compiler/testData/codegen/light-analysis/annotations/annotationsOnTypeAliases.txt b/compiler/testData/codegen/light-analysis/annotations/annotationsOnTypeAliases.txt new file mode 100644 index 00000000000..ed91dcf210a --- /dev/null +++ b/compiler/testData/codegen/light-analysis/annotations/annotationsOnTypeAliases.txt @@ -0,0 +1,13 @@ +@kotlin.annotation.Target +@kotlin.annotation.Retention +@java.lang.annotation.Retention +@java.lang.annotation.Target +public annotation class Ann { + public abstract method x(): int +} + + +public final class AnnotationsOnTypeAliasesKt { + public final static method assertHasDeclaredMethodWithAnn(@org.jetbrains.annotations.NotNull p0: java.lang.Class): void + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/annotations/jvmAnnotationFlags.txt b/compiler/testData/codegen/light-analysis/annotations/jvmAnnotationFlags.txt index b37e47b7d5f..0d36533e575 100644 --- a/compiler/testData/codegen/light-analysis/annotations/jvmAnnotationFlags.txt +++ b/compiler/testData/codegen/light-analysis/annotations/jvmAnnotationFlags.txt @@ -2,7 +2,7 @@ public final class C { private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[] private final @kotlin.jvm.Transient @org.jetbrains.annotations.NotNull field del$delegate: CustomDelegate private final @kotlin.jvm.Transient field tra: int - private @kotlin.jvm.Volatile field vol: int + private volatile @kotlin.jvm.Volatile field vol: int public method (): void public final @org.jetbrains.annotations.NotNull method getDel(): java.lang.String public final method getTra(): int diff --git a/compiler/testData/codegen/light-analysis/arrays/arraysAreCloneable.txt b/compiler/testData/codegen/light-analysis/arrays/arraysAreCloneable.txt new file mode 100644 index 00000000000..a281cb91e85 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/arrays/arraysAreCloneable.txt @@ -0,0 +1,4 @@ +public final class ArraysAreCloneableKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: java.lang.Cloneable): java.lang.Cloneable +} diff --git a/compiler/testData/codegen/light-analysis/binaryOp/bitwiseOp.txt b/compiler/testData/codegen/light-analysis/binaryOp/bitwiseOp.txt new file mode 100644 index 00000000000..841f0311f45 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/binaryOp/bitwiseOp.txt @@ -0,0 +1,3 @@ +public final class BitwiseOpKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/binaryOp/bitwiseOpAny.txt b/compiler/testData/codegen/light-analysis/binaryOp/bitwiseOpAny.txt new file mode 100644 index 00000000000..7b139024c70 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/binaryOp/bitwiseOpAny.txt @@ -0,0 +1,3 @@ +public final class BitwiseOpAnyKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/binaryOp/bitwiseOpNullable.txt b/compiler/testData/codegen/light-analysis/binaryOp/bitwiseOpNullable.txt new file mode 100644 index 00000000000..4e48c1ac350 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/binaryOp/bitwiseOpNullable.txt @@ -0,0 +1,3 @@ +public final class BitwiseOpNullableKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/bridges/delegationComplexWithList.txt b/compiler/testData/codegen/light-analysis/bridges/delegationComplexWithList.txt index 9e58fb5151d..ca40e6ed849 100644 --- a/compiler/testData/codegen/light-analysis/bridges/delegationComplexWithList.txt +++ b/compiler/testData/codegen/light-analysis/bridges/delegationComplexWithList.txt @@ -62,9 +62,4 @@ public final class Impl { public final method indexOf(p0: java.lang.Object): int public method lastIndexOf(p0: Content): int public final method lastIndexOf(p0: java.lang.Object): int - public method remove(p0: Content): boolean - public final method remove(p0: int): Content - public final method remove(p0: java.lang.Object): boolean - public method removeAt(p0: int): Content - public final method size(): int } diff --git a/compiler/testData/codegen/light-analysis/bridges/kt12416.txt b/compiler/testData/codegen/light-analysis/bridges/kt12416.txt new file mode 100644 index 00000000000..21e7a0f43ec --- /dev/null +++ b/compiler/testData/codegen/light-analysis/bridges/kt12416.txt @@ -0,0 +1,67 @@ +public interface A { + inner class A/DefaultImpls + public abstract @org.jetbrains.annotations.NotNull method foo(p0: java.lang.Object, p1: int): java.lang.String +} + + +public final class A/DefaultImpls { + inner class A/DefaultImpls + public static @org.jetbrains.annotations.NotNull method foo(p0: A, p1: java.lang.Object, p2: int): java.lang.String +} + + +public interface B { + inner class B/DefaultImpls + public abstract @org.jetbrains.annotations.NotNull method foo(p0: java.lang.Object, p1: java.lang.Object): java.lang.String +} + + +public final class B/DefaultImpls { + inner class B/DefaultImpls + public static @org.jetbrains.annotations.NotNull method foo(p0: B, p1: java.lang.Object, p2: java.lang.Object): java.lang.String +} + + +public final class Kt12416Kt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} + + +public interface Z1 { + inner class Z1/DefaultImpls + public abstract @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: java.lang.String, p1: int): java.lang.String +} + + +public final class Z1/DefaultImpls { + inner class Z1/DefaultImpls + public static @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: Z1, p1: java.lang.String, p2: int): java.lang.String +} + + +public final class Z1C { + public method (): void + public @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: java.lang.String, p1: int): java.lang.String + public synthetic method foo(p0: java.lang.Object, p1: int): java.lang.String + public synthetic method foo(p0: java.lang.Object, p1: java.lang.Object): java.lang.String +} + + +public interface Z2 { + inner class Z2/DefaultImpls + public abstract @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: java.lang.String, p1: int): java.lang.String +} + + +public final class Z2/DefaultImpls { + inner class Z2/DefaultImpls + public static @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: Z2, p1: java.lang.String, p2: int): java.lang.String +} + + +public final class Z2C { + public method (): void + public @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: java.lang.String, p1: int): java.lang.String + public synthetic method foo(p0: java.lang.Object, p1: int): java.lang.String + public synthetic method foo(p0: java.lang.Object, p1: java.lang.Object): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/bridges/twoParentsWithDifferentMethodsTwoBridges2.txt b/compiler/testData/codegen/light-analysis/bridges/twoParentsWithDifferentMethodsTwoBridges2.txt new file mode 100644 index 00000000000..2134179161a --- /dev/null +++ b/compiler/testData/codegen/light-analysis/bridges/twoParentsWithDifferentMethodsTwoBridges2.txt @@ -0,0 +1,67 @@ +public interface A { + inner class A/DefaultImpls + public abstract @org.jetbrains.annotations.NotNull method foo(p0: java.lang.Object, p1: int): java.lang.String +} + + +public final class A/DefaultImpls { + inner class A/DefaultImpls + public static @org.jetbrains.annotations.NotNull method foo(p0: A, p1: java.lang.Object, p2: int): java.lang.String +} + + +public interface B { + inner class B/DefaultImpls + public abstract @org.jetbrains.annotations.NotNull method foo(p0: java.lang.Object, p1: java.lang.Object): java.lang.String +} + + +public final class B/DefaultImpls { + inner class B/DefaultImpls + public static @org.jetbrains.annotations.NotNull method foo(p0: B, p1: java.lang.Object, p2: java.lang.Object): java.lang.String +} + + +public final class TwoParentsWithDifferentMethodsTwoBridges2Kt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} + + +public interface Z1 { + inner class Z1/DefaultImpls + public abstract @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: java.lang.String, p1: int): java.lang.String +} + + +public final class Z1/DefaultImpls { + inner class Z1/DefaultImpls + public static @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: Z1, p1: java.lang.String, p2: int): java.lang.String +} + + +public final class Z1Class { + public method (): void + public @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: java.lang.String, p1: int): java.lang.String + public synthetic method foo(p0: java.lang.Object, p1: int): java.lang.String + public synthetic method foo(p0: java.lang.Object, p1: java.lang.Object): java.lang.String +} + + +public interface Z2 { + inner class Z2/DefaultImpls + public abstract @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: java.lang.String, p1: int): java.lang.String +} + + +public final class Z2/DefaultImpls { + inner class Z2/DefaultImpls + public static @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: Z2, p1: java.lang.String, p2: int): java.lang.String +} + + +public final class Z2Class { + public method (): void + public @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: java.lang.String, p1: int): java.lang.String + public synthetic method foo(p0: java.lang.Object, p1: int): java.lang.String + public synthetic method foo(p0: java.lang.Object, p1: java.lang.Object): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/callableReference/bound/companionObjectReceiver.txt b/compiler/testData/codegen/light-analysis/callableReference/bound/companionObjectReceiver.txt new file mode 100644 index 00000000000..91dc17738f5 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/callableReference/bound/companionObjectReceiver.txt @@ -0,0 +1,17 @@ +public final class A { + public final static field Companion: A.Companion + inner class A/Companion + public method (): void +} + + +public final static class A/Companion { + inner class A/Companion + private method (): void + public final @org.jetbrains.annotations.NotNull method ok(): java.lang.String +} + + +public final class CompanionObjectReceiverKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/callableReference/bound/enumEntryMember.txt b/compiler/testData/codegen/light-analysis/callableReference/bound/enumEntryMember.txt new file mode 100644 index 00000000000..fa5a187efd5 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/callableReference/bound/enumEntryMember.txt @@ -0,0 +1,13 @@ +public enum class E { + public final static field A: E + public final static field B: E + protected method (p0: java.lang.String, p1: int): void + public final @org.jetbrains.annotations.NotNull method foo(): java.lang.String + public static method valueOf(p0: java.lang.String): E + public static method values(): E[] +} + + +public final class EnumEntryMemberKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/callableReference/bound/equals/nullableReceiverInEquals.txt b/compiler/testData/codegen/light-analysis/callableReference/bound/equals/nullableReceiverInEquals.txt new file mode 100644 index 00000000000..a95e0319723 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/callableReference/bound/equals/nullableReceiverInEquals.txt @@ -0,0 +1,27 @@ +public final class A { + public method (): void +} + + +public final class NullableReceiverInEqualsKt { + private final static @org.jetbrains.annotations.NotNull field A_bar: kotlin.reflect.KMutableProperty1 + private final static @org.jetbrains.annotations.NotNull field A_foo: kotlin.reflect.KFunction + private final static @org.jetbrains.annotations.NotNull field a: A + private final static @org.jetbrains.annotations.NotNull field aBar: kotlin.reflect.KMutableProperty0 + private final static @org.jetbrains.annotations.NotNull field aFoo: kotlin.reflect.KFunction + private final static @org.jetbrains.annotations.NotNull field aa: A + private final static @org.jetbrains.annotations.NotNull field nullBar: kotlin.reflect.KMutableProperty0 + private final static @org.jetbrains.annotations.NotNull field nullFoo: kotlin.reflect.KFunction + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method foo(@org.jetbrains.annotations.Nullable p0: A): void + public final static @org.jetbrains.annotations.NotNull method getA(): A + public final static @org.jetbrains.annotations.NotNull method getABar(): kotlin.reflect.KMutableProperty0 + public final static @org.jetbrains.annotations.NotNull method getAFoo(): kotlin.reflect.KFunction + public final static @org.jetbrains.annotations.NotNull method getA_bar(): kotlin.reflect.KMutableProperty1 + public final static @org.jetbrains.annotations.NotNull method getA_foo(): kotlin.reflect.KFunction + public final static @org.jetbrains.annotations.NotNull method getAa(): A + public final static method getBar(@org.jetbrains.annotations.Nullable p0: A): int + public final static @org.jetbrains.annotations.NotNull method getNullBar(): kotlin.reflect.KMutableProperty0 + public final static @org.jetbrains.annotations.NotNull method getNullFoo(): kotlin.reflect.KFunction + public final static method setBar(@org.jetbrains.annotations.Nullable p0: A, p1: int): void +} diff --git a/compiler/testData/codegen/light-analysis/callableReference/bound/equals/propertyAccessors.txt b/compiler/testData/codegen/light-analysis/callableReference/bound/equals/propertyAccessors.txt new file mode 100644 index 00000000000..b765d8f0a8a --- /dev/null +++ b/compiler/testData/codegen/light-analysis/callableReference/bound/equals/propertyAccessors.txt @@ -0,0 +1,17 @@ +public final class C { + private field prop: int + public method (): void + public final method getProp(): int + public final method setProp(p0: int): void +} + + +public final class PropertyAccessorsKt { + private final static @org.jetbrains.annotations.NotNull field C_prop: kotlin.reflect.KMutableProperty1 + private final static @org.jetbrains.annotations.NotNull field C_propReflect: kotlin.reflect.KMutableProperty1 + private final static @org.jetbrains.annotations.NotNull field cProp: kotlin.reflect.KMutableProperty0 + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method getCProp(): kotlin.reflect.KMutableProperty0 + public final static @org.jetbrains.annotations.NotNull method getC_prop(): kotlin.reflect.KMutableProperty1 + public final static @org.jetbrains.annotations.NotNull method getC_propReflect(): kotlin.reflect.KMutableProperty1 +} diff --git a/compiler/testData/codegen/light-analysis/callableReference/bound/equals/receiverInEquals.txt b/compiler/testData/codegen/light-analysis/callableReference/bound/equals/receiverInEquals.txt new file mode 100644 index 00000000000..55a139c578e --- /dev/null +++ b/compiler/testData/codegen/light-analysis/callableReference/bound/equals/receiverInEquals.txt @@ -0,0 +1,22 @@ +public final class test/A { + public method (): void + public final method bar(): void + public final method foo(): void +} + + +public final class test/ReceiverInEqualsKt { + private final static @org.jetbrains.annotations.NotNull field A_foo: kotlin.reflect.KFunction + private final static @org.jetbrains.annotations.NotNull field a: test.A + private final static @org.jetbrains.annotations.NotNull field aBar: kotlin.reflect.KFunction + private final static @org.jetbrains.annotations.NotNull field aFoo: kotlin.reflect.KFunction + private final static @org.jetbrains.annotations.NotNull field aa: test.A + private final static @org.jetbrains.annotations.NotNull field aaFoo: kotlin.reflect.KFunction + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method getA(): test.A + public final static @org.jetbrains.annotations.NotNull method getABar(): kotlin.reflect.KFunction + public final static @org.jetbrains.annotations.NotNull method getAFoo(): kotlin.reflect.KFunction + public final static @org.jetbrains.annotations.NotNull method getA_foo(): kotlin.reflect.KFunction + public final static @org.jetbrains.annotations.NotNull method getAa(): test.A + public final static @org.jetbrains.annotations.NotNull method getAaFoo(): kotlin.reflect.KFunction +} diff --git a/compiler/testData/codegen/light-analysis/callableReference/bound/equals/reflectionReference.txt b/compiler/testData/codegen/light-analysis/callableReference/bound/equals/reflectionReference.txt new file mode 100644 index 00000000000..4ae33e06e95 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/callableReference/bound/equals/reflectionReference.txt @@ -0,0 +1,24 @@ +public final class C { + private final field bar: int + public method (): void + public final method foo(): void + public final method getBar(): int +} + + +public final class ReflectionReferenceKt { + private final static @org.jetbrains.annotations.NotNull field C_bar: kotlin.reflect.KProperty1 + private final static @org.jetbrains.annotations.NotNull field C_barReflect: kotlin.reflect.KProperty1 + private final static @org.jetbrains.annotations.NotNull field C_foo: kotlin.reflect.KFunction + private final static @org.jetbrains.annotations.NotNull field C_fooReflect: kotlin.reflect.KFunction + private final static @org.jetbrains.annotations.NotNull field cBar: kotlin.reflect.KProperty0 + private final static @org.jetbrains.annotations.NotNull field cFoo: kotlin.reflect.KFunction + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method getCBar(): kotlin.reflect.KProperty0 + public final static @org.jetbrains.annotations.NotNull method getCFoo(): kotlin.reflect.KFunction + public final static @org.jetbrains.annotations.NotNull method getC_bar(): kotlin.reflect.KProperty1 + public final static @org.jetbrains.annotations.NotNull method getC_barReflect(): kotlin.reflect.KProperty1 + public final static @org.jetbrains.annotations.NotNull method getC_foo(): kotlin.reflect.KFunction + public final static @org.jetbrains.annotations.NotNull method getC_fooReflect(): kotlin.reflect.KFunction + public final static @org.jetbrains.annotations.NotNull method getClassName(@org.jetbrains.annotations.NotNull p0: java.lang.Object): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/callableReference/bound/inline/simple.txt b/compiler/testData/codegen/light-analysis/callableReference/bound/inline/simple.txt new file mode 100644 index 00000000000..008d944deb7 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/callableReference/bound/inline/simple.txt @@ -0,0 +1,5 @@ +public final class SimpleKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function0): java.lang.String + public final static @org.jetbrains.annotations.NotNull method id(@org.jetbrains.annotations.NotNull p0: java.lang.String): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/callableReference/bound/inline/simpleVal.txt b/compiler/testData/codegen/light-analysis/callableReference/bound/inline/simpleVal.txt new file mode 100644 index 00000000000..499dcd7be83 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/callableReference/bound/inline/simpleVal.txt @@ -0,0 +1,5 @@ +public final class SimpleValKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method go(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function0): java.lang.String + public final static @org.jetbrains.annotations.NotNull method id(@org.jetbrains.annotations.NotNull p0: java.lang.String): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/callableReference/bound/kCallableNameIntrinsic.txt b/compiler/testData/codegen/light-analysis/callableReference/bound/kCallableNameIntrinsic.txt new file mode 100644 index 00000000000..4f8a9ab8e22 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/callableReference/bound/kCallableNameIntrinsic.txt @@ -0,0 +1,3 @@ +public final class KCallableNameIntrinsicKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/callableReference/bound/kt12738.txt b/compiler/testData/codegen/light-analysis/callableReference/bound/kt12738.txt new file mode 100644 index 00000000000..4d94059064f --- /dev/null +++ b/compiler/testData/codegen/light-analysis/callableReference/bound/kt12738.txt @@ -0,0 +1,4 @@ +public final class Kt12738Kt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method get(p0: java.lang.Object): kotlin.jvm.functions.Function0 +} diff --git a/compiler/testData/codegen/light-analysis/callableReference/bound/multiCase.txt b/compiler/testData/codegen/light-analysis/callableReference/bound/multiCase.txt new file mode 100644 index 00000000000..14cd2d495fb --- /dev/null +++ b/compiler/testData/codegen/light-analysis/callableReference/bound/multiCase.txt @@ -0,0 +1,24 @@ +public final class A { + private field v: int + public method (p0: int): void + public final method f(p0: int): int + public final method getV(): int + public final method setV(p0: int): void +} + + +public final class F { + public final static field INSTANCE: F + private static field u: int + private method (): void + public final method getU(): int + public final method setU(p0: int): void +} + + +public final class MultiCaseKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method g(@org.jetbrains.annotations.NotNull p0: A, p1: int): int + public final static method getW(@org.jetbrains.annotations.NotNull p0: A): int + public final static method setW(@org.jetbrains.annotations.NotNull p0: A, p1: int): void +} diff --git a/compiler/testData/codegen/light-analysis/callableReference/bound/nullReceiver.txt b/compiler/testData/codegen/light-analysis/callableReference/bound/nullReceiver.txt new file mode 100644 index 00000000000..19307840ece --- /dev/null +++ b/compiler/testData/codegen/light-analysis/callableReference/bound/nullReceiver.txt @@ -0,0 +1,4 @@ +public final class NullReceiverKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method getOk(@org.jetbrains.annotations.Nullable p0: java.lang.String): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/callableReference/bound/objectReceiver.txt b/compiler/testData/codegen/light-analysis/callableReference/bound/objectReceiver.txt new file mode 100644 index 00000000000..1ef8163087e --- /dev/null +++ b/compiler/testData/codegen/light-analysis/callableReference/bound/objectReceiver.txt @@ -0,0 +1,10 @@ +public final class ObjectReceiverKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} + + +public final class Singleton { + public final static field INSTANCE: Singleton + private method (): void + public final @org.jetbrains.annotations.NotNull method ok(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/callableReference/bound/primitiveReceiver.txt b/compiler/testData/codegen/light-analysis/callableReference/bound/primitiveReceiver.txt new file mode 100644 index 00000000000..e93215a5249 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/callableReference/bound/primitiveReceiver.txt @@ -0,0 +1,12 @@ +public final class PrimitiveReceiverKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method foo(p0: boolean): int + public final static method foo(p0: byte): int + public final static method foo(p0: char): int + public final static method foo(p0: double): int + public final static method foo(p0: float): int + public final static method foo(p0: int): int + public final static method foo(p0: long): int + public final static method foo(p0: short): int + public final static method testRef(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function0, p2: int): void +} diff --git a/compiler/testData/codegen/light-analysis/callableReference/bound/simpleFunction.txt b/compiler/testData/codegen/light-analysis/callableReference/bound/simpleFunction.txt new file mode 100644 index 00000000000..a7b6b83bd4d --- /dev/null +++ b/compiler/testData/codegen/light-analysis/callableReference/bound/simpleFunction.txt @@ -0,0 +1,3 @@ +public final class SimpleFunctionKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/callableReference/bound/simpleProperty.txt b/compiler/testData/codegen/light-analysis/callableReference/bound/simpleProperty.txt new file mode 100644 index 00000000000..2be0d84b9ae --- /dev/null +++ b/compiler/testData/codegen/light-analysis/callableReference/bound/simpleProperty.txt @@ -0,0 +1,3 @@ +public final class SimplePropertyKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/callableReference/bound/syntheticExtensionOnLHS.txt b/compiler/testData/codegen/light-analysis/callableReference/bound/syntheticExtensionOnLHS.txt new file mode 100644 index 00000000000..e1872b57402 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/callableReference/bound/syntheticExtensionOnLHS.txt @@ -0,0 +1,3 @@ +public final class TestKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/casts/mutableCollections/isWithMutable.txt b/compiler/testData/codegen/light-analysis/casts/mutableCollections/isWithMutable.txt index a1b9d2f1e12..f58011faa7e 100644 --- a/compiler/testData/codegen/light-analysis/casts/mutableCollections/isWithMutable.txt +++ b/compiler/testData/codegen/light-analysis/casts/mutableCollections/isWithMutable.txt @@ -21,6 +21,7 @@ public final class C { public final class IsWithMutableKt { + public final static method assert(p0: boolean, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function0): void public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String } diff --git a/compiler/testData/codegen/light-analysis/casts/mutableCollections/reifiedIsWithMutable.txt b/compiler/testData/codegen/light-analysis/casts/mutableCollections/reifiedIsWithMutable.txt index 0ea7d86ce95..5cdf1492463 100644 --- a/compiler/testData/codegen/light-analysis/casts/mutableCollections/reifiedIsWithMutable.txt +++ b/compiler/testData/codegen/light-analysis/casts/mutableCollections/reifiedIsWithMutable.txt @@ -292,6 +292,7 @@ public final class MS { public final class ReifiedIsWithMutableKt { + public final static method assert(p0: boolean, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function0): void public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String private final static method reifiedIs(p0: java.lang.Object): boolean private final static method reifiedIsNot(p0: java.lang.Object): boolean diff --git a/compiler/testData/codegen/light-analysis/casts/mutableCollections/safeAsWithMutable.txt b/compiler/testData/codegen/light-analysis/casts/mutableCollections/safeAsWithMutable.txt index 637fb7b7ba4..6d2e075b1a3 100644 --- a/compiler/testData/codegen/light-analysis/casts/mutableCollections/safeAsWithMutable.txt +++ b/compiler/testData/codegen/light-analysis/casts/mutableCollections/safeAsWithMutable.txt @@ -314,6 +314,7 @@ public final class S { public final class SafeAsWithMutableKt { + public final static method assert(p0: boolean, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function0): void public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String public final static method safeAsReturnsNonNull(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function0): void public final static method safeAsReturnsNull(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function0): void diff --git a/compiler/testData/codegen/light-analysis/classLiteral/bound/javaIntrinsicWithSideEffect.txt b/compiler/testData/codegen/light-analysis/classLiteral/bound/javaIntrinsicWithSideEffect.txt new file mode 100644 index 00000000000..6d0c40c9471 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/classLiteral/bound/javaIntrinsicWithSideEffect.txt @@ -0,0 +1,3 @@ +public final class JavaIntrinsicWithSideEffectKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/classLiteral/bound/primitives.txt b/compiler/testData/codegen/light-analysis/classLiteral/bound/primitives.txt new file mode 100644 index 00000000000..d06e9d2e445 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/classLiteral/bound/primitives.txt @@ -0,0 +1,3 @@ +public final class PrimitivesKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/classLiteral/bound/sideEffect.txt b/compiler/testData/codegen/light-analysis/classLiteral/bound/sideEffect.txt new file mode 100644 index 00000000000..75a4c3353a2 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/classLiteral/bound/sideEffect.txt @@ -0,0 +1,3 @@ +public final class SideEffectKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/classLiteral/bound/simple.txt b/compiler/testData/codegen/light-analysis/classLiteral/bound/simple.txt new file mode 100644 index 00000000000..204f1fc5ccb --- /dev/null +++ b/compiler/testData/codegen/light-analysis/classLiteral/bound/simple.txt @@ -0,0 +1,3 @@ +public final class SimpleKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/classLiteral/java/objectSuperConstructorCall.txt b/compiler/testData/codegen/light-analysis/classLiteral/java/objectSuperConstructorCall.txt new file mode 100644 index 00000000000..60eb6378d42 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/classLiteral/java/objectSuperConstructorCall.txt @@ -0,0 +1,31 @@ +public final class C { + public final static field Companion: C.Companion + inner class C/Companion + public method (): void +} + + +public final static class C/Companion { + inner class C/Companion + private method (): void +} + + +public final class OK { + public final static field INSTANCE: OK + private method (): void +} + + +public final class ObjectSuperConstructorCallKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} + + +public abstract class S { + private final @org.jetbrains.annotations.NotNull field klass: java.lang.Class + private final field result: java.lang.String + public method (@org.jetbrains.annotations.NotNull p0: java.lang.Class): void + public final @org.jetbrains.annotations.NotNull method getKlass(): java.lang.Class + public final method getResult(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/classes/kt1157.txt b/compiler/testData/codegen/light-analysis/classes/kt1157.txt index fadc99a64c9..88a48d46d46 100644 --- a/compiler/testData/codegen/light-analysis/classes/kt1157.txt +++ b/compiler/testData/codegen/light-analysis/classes/kt1157.txt @@ -3,6 +3,11 @@ public final class Kt1157Kt { } +public interface Runnable { + public abstract method run(): void +} + + public final class SomeClass { public final static field INSTANCE: SomeClass private final static field work: SomeClass$work$1 diff --git a/compiler/testData/codegen/light-analysis/classes/privateOuterFunctions.txt b/compiler/testData/codegen/light-analysis/classes/privateOuterFunctions.txt index 2fbcc92d783..f2eed16826c 100644 --- a/compiler/testData/codegen/light-analysis/classes/privateOuterFunctions.txt +++ b/compiler/testData/codegen/light-analysis/classes/privateOuterFunctions.txt @@ -18,3 +18,8 @@ private final class C/Inner { public final class PrivateOuterFunctionsKt { public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String } + + +public interface Runnable { + public abstract method run(): void +} diff --git a/compiler/testData/codegen/light-analysis/classes/privateOuterProperty.txt b/compiler/testData/codegen/light-analysis/classes/privateOuterProperty.txt index 5e939b358aa..d573130c961 100644 --- a/compiler/testData/codegen/light-analysis/classes/privateOuterProperty.txt +++ b/compiler/testData/codegen/light-analysis/classes/privateOuterProperty.txt @@ -17,3 +17,8 @@ private final class C/Inner { public final class PrivateOuterPropertyKt { public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String } + + +public interface Runnable { + public abstract method run(): void +} diff --git a/compiler/testData/codegen/light-analysis/classes/sealedInSameFile.txt b/compiler/testData/codegen/light-analysis/classes/sealedInSameFile.txt new file mode 100644 index 00000000000..0c58b9ad65e --- /dev/null +++ b/compiler/testData/codegen/light-analysis/classes/sealedInSameFile.txt @@ -0,0 +1,64 @@ +public abstract class A { + inner class A/C + private method (): void + private method (p0: int): void +} + + +public final static class A/C { + inner class A/C + public method (): void +} + + +public final class B { + public method (): void +} + + +public final class D { + public method (): void +} + + +public final class E { + public method (): void + public method (p0: int): void +} + + +public final class Q { + public method (): void +} + + +public final class S { + public final static field INSTANCE: S + private method (): void +} + + +public final class SealedInSameFileKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} + + +public final class T { + public final static field INSTANCE: T + private method (): void +} + + +public abstract class X { + private method (): void +} + + +public abstract class Y { + private method (): void +} + + +public abstract class Z { + private method (): void +} diff --git a/compiler/testData/codegen/light-analysis/closures/underscoreParameters.txt b/compiler/testData/codegen/light-analysis/closures/underscoreParameters.txt new file mode 100644 index 00000000000..53f5afd3b53 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/closures/underscoreParameters.txt @@ -0,0 +1,4 @@ +public final class UnderscoreParametersKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function3): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/compatibility/dataClassEqualsHashCodeToString.txt b/compiler/testData/codegen/light-analysis/compatibility/dataClassEqualsHashCodeToString.txt new file mode 100644 index 00000000000..f54c2e5269b --- /dev/null +++ b/compiler/testData/codegen/light-analysis/compatibility/dataClassEqualsHashCodeToString.txt @@ -0,0 +1,16 @@ +public final class DataClassEqualsHashCodeToStringKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} + + +public final class Foo { + private final @org.jetbrains.annotations.NotNull field s: java.lang.String + public method (@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final @org.jetbrains.annotations.NotNull method component1(): java.lang.String + public synthetic static method copy$default(p0: Foo, p1: java.lang.String, p2: int, p3: java.lang.Object): Foo + public final @org.jetbrains.annotations.NotNull method copy(@org.jetbrains.annotations.NotNull p0: java.lang.String): Foo + public method equals(p0: java.lang.Object): boolean + public final @org.jetbrains.annotations.NotNull method getS(): java.lang.String + public method hashCode(): int + public method toString(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/controlStructures/kt14839.txt b/compiler/testData/codegen/light-analysis/controlStructures/kt14839.txt new file mode 100644 index 00000000000..be1f2534a8a --- /dev/null +++ b/compiler/testData/codegen/light-analysis/controlStructures/kt14839.txt @@ -0,0 +1,5 @@ +public final class Kt14839Kt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public synthetic static method inlineFunctionWithDefaultArguments$default(p0: java.lang.Throwable, p1: boolean, p2: int, p3: java.lang.Object): void + public final static method inlineFunctionWithDefaultArguments(@org.jetbrains.annotations.Nullable p0: java.lang.Throwable, p1: boolean): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/beginWithException.txt b/compiler/testData/codegen/light-analysis/coroutines/beginWithException.txt new file mode 100644 index 00000000000..6ac39c3e9e9 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/beginWithException.txt @@ -0,0 +1,14 @@ +public final class BeginWithExceptionKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void +} + + +public final class Controller { + private @org.jetbrains.annotations.Nullable field exception: java.lang.Throwable + public method (): void + public final @org.jetbrains.annotations.Nullable method getException(): java.lang.Throwable + public final method handleException(@org.jetbrains.annotations.NotNull p0: java.lang.Throwable, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): void + public final method setException(@org.jetbrains.annotations.Nullable p0: java.lang.Throwable): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/beginWithExceptionNoHandleException.txt b/compiler/testData/codegen/light-analysis/coroutines/beginWithExceptionNoHandleException.txt new file mode 100644 index 00000000000..b542af87b65 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/beginWithExceptionNoHandleException.txt @@ -0,0 +1,10 @@ +public final class BeginWithExceptionNoHandleExceptionKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void +} + + +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/coercionToUnit.txt b/compiler/testData/codegen/light-analysis/coroutines/coercionToUnit.txt new file mode 100644 index 00000000000..3327c0ca2fd --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/coercionToUnit.txt @@ -0,0 +1,20 @@ +public final class CoercionToUnitKt { + private static field FALSE: boolean + private static field TRUE: boolean + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): java.lang.String + public final static method getFALSE(): boolean + public final static method getTRUE(): boolean + public final static method setFALSE(p0: boolean): void + public final static method setTRUE(p0: boolean): void +} + + +public final class Controller { + private @org.jetbrains.annotations.NotNull field result: java.lang.String + public method (): void + public final @org.jetbrains.annotations.Nullable method await(p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object + public final @org.jetbrains.annotations.NotNull method getResult(): java.lang.String + public final method handleResult(@org.jetbrains.annotations.NotNull p0: kotlin.Unit, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): void + public final method setResult(@org.jetbrains.annotations.NotNull p0: java.lang.String): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/controlFlow/breakFinally.txt b/compiler/testData/codegen/light-analysis/coroutines/controlFlow/breakFinally.txt new file mode 100644 index 00000000000..838d3478211 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/controlFlow/breakFinally.txt @@ -0,0 +1,13 @@ +public final class BreakFinallyKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): java.lang.String +} + + +public final class Controller { + private @org.jetbrains.annotations.NotNull field result: java.lang.String + public method (): void + public final @org.jetbrains.annotations.NotNull method getResult(): java.lang.String + public final method setResult(@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final @org.jetbrains.annotations.Nullable method suspendWithResult(p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/controlFlow/breakStatement.txt b/compiler/testData/codegen/light-analysis/coroutines/controlFlow/breakStatement.txt new file mode 100644 index 00000000000..4354bb31da3 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/controlFlow/breakStatement.txt @@ -0,0 +1,13 @@ +public final class BreakStatementKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): java.lang.String +} + + +public final class Controller { + private @org.jetbrains.annotations.NotNull field result: java.lang.String + public method (): void + public final @org.jetbrains.annotations.NotNull method getResult(): java.lang.String + public final method setResult(@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final @org.jetbrains.annotations.Nullable method suspendWithResult(p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/controlFlow/doWhileStatement.txt b/compiler/testData/codegen/light-analysis/coroutines/controlFlow/doWhileStatement.txt new file mode 100644 index 00000000000..7cf5fec7bfb --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/controlFlow/doWhileStatement.txt @@ -0,0 +1,13 @@ +public final class Controller { + private @org.jetbrains.annotations.NotNull field result: java.lang.String + public method (): void + public final @org.jetbrains.annotations.NotNull method getResult(): java.lang.String + public final method setResult(@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final @org.jetbrains.annotations.Nullable method suspendWithResult(p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class DoWhileStatementKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/controlFlow/forContinue.txt b/compiler/testData/codegen/light-analysis/coroutines/controlFlow/forContinue.txt new file mode 100644 index 00000000000..4df9798360a --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/controlFlow/forContinue.txt @@ -0,0 +1,13 @@ +public final class Controller { + private @org.jetbrains.annotations.NotNull field result: java.lang.String + public method (): void + public final @org.jetbrains.annotations.NotNull method getResult(): java.lang.String + public final method setResult(@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final @org.jetbrains.annotations.Nullable method suspendWithResult(p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class ForContinueKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/controlFlow/forStatement.txt b/compiler/testData/codegen/light-analysis/coroutines/controlFlow/forStatement.txt new file mode 100644 index 00000000000..fb0e74a4a0a --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/controlFlow/forStatement.txt @@ -0,0 +1,13 @@ +public final class Controller { + private @org.jetbrains.annotations.NotNull field result: java.lang.String + public method (): void + public final @org.jetbrains.annotations.NotNull method getResult(): java.lang.String + public final method setResult(@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final @org.jetbrains.annotations.Nullable method suspendWithResult(p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class ForStatementKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/controlFlow/ifStatement.txt b/compiler/testData/codegen/light-analysis/coroutines/controlFlow/ifStatement.txt new file mode 100644 index 00000000000..be0a842c780 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/controlFlow/ifStatement.txt @@ -0,0 +1,13 @@ +public final class Controller { + private @org.jetbrains.annotations.NotNull field result: java.lang.String + public method (): void + public final @org.jetbrains.annotations.NotNull method getResult(): java.lang.String + public final method setResult(@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final @org.jetbrains.annotations.Nullable method suspendWithResult(p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class IfStatementKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/controlFlow/switchLikeWhen.txt b/compiler/testData/codegen/light-analysis/coroutines/controlFlow/switchLikeWhen.txt new file mode 100644 index 00000000000..1ea18e4aa4e --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/controlFlow/switchLikeWhen.txt @@ -0,0 +1,13 @@ +public final class Controller { + private @org.jetbrains.annotations.NotNull field result: java.lang.String + public method (): void + public final @org.jetbrains.annotations.NotNull method getResult(): java.lang.String + public final method setResult(@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final @org.jetbrains.annotations.Nullable method suspendWithResult(p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class SwitchLikeWhenKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/controlFlow/throwFromCatch.txt b/compiler/testData/codegen/light-analysis/coroutines/controlFlow/throwFromCatch.txt new file mode 100644 index 00000000000..a187b00d09e --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/controlFlow/throwFromCatch.txt @@ -0,0 +1,15 @@ +public final class Controller { + private @org.jetbrains.annotations.NotNull field result: java.lang.String + public method (): void + public final @org.jetbrains.annotations.NotNull method getResult(): java.lang.String + public final method handleException(@org.jetbrains.annotations.NotNull p0: java.lang.Throwable, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): void + public final method setResult(@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final @org.jetbrains.annotations.Nullable method suspendAndLog(p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object + public final @org.jetbrains.annotations.Nullable method suspendLogAndThrow(@org.jetbrains.annotations.NotNull p0: java.lang.Throwable, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class ThrowFromCatchKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/controlFlow/throwInTryWithHandleResult.txt b/compiler/testData/codegen/light-analysis/coroutines/controlFlow/throwInTryWithHandleResult.txt new file mode 100644 index 00000000000..8fcb571be74 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/controlFlow/throwInTryWithHandleResult.txt @@ -0,0 +1,14 @@ +public final class Controller { + private @org.jetbrains.annotations.NotNull field result: java.lang.String + public method (): void + public final @org.jetbrains.annotations.NotNull method getResult(): java.lang.String + public final method handleException(@org.jetbrains.annotations.NotNull p0: java.lang.Throwable, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): void + public final method setResult(@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final @org.jetbrains.annotations.Nullable method suspendAndLog(p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class ThrowInTryWithHandleResultKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/controlFlow/whileStatement.txt b/compiler/testData/codegen/light-analysis/coroutines/controlFlow/whileStatement.txt new file mode 100644 index 00000000000..8463fee479f --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/controlFlow/whileStatement.txt @@ -0,0 +1,13 @@ +public final class Controller { + private @org.jetbrains.annotations.NotNull field result: java.lang.String + public method (): void + public final @org.jetbrains.annotations.NotNull method getResult(): java.lang.String + public final method setResult(@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final @org.jetbrains.annotations.Nullable method suspendWithResult(p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class WhileStatementKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/controllerAccessFromInnerLambda.txt b/compiler/testData/codegen/light-analysis/coroutines/controllerAccessFromInnerLambda.txt new file mode 100644 index 00000000000..68f1f4cc11f --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/controllerAccessFromInnerLambda.txt @@ -0,0 +1,15 @@ +public final class Controller { + private field result: boolean + public method (): void + public final method foo(): void + public final method getResult(): boolean + public final method setResult(p0: boolean): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class ControllerAccessFromInnerLambdaKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void + public final static method noinlineRun(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function0): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/defaultParametersInSuspend.txt b/compiler/testData/codegen/light-analysis/coroutines/defaultParametersInSuspend.txt new file mode 100644 index 00000000000..267291491a4 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/defaultParametersInSuspend.txt @@ -0,0 +1,11 @@ +public final class Controller { + public method (): void + public synthetic static method suspendHere$default(p0: Controller, p1: java.lang.String, p2: int, p3: kotlin.coroutines.Continuation, p4: int, p5: java.lang.Object): java.lang.Object + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: java.lang.String, p1: int, @org.jetbrains.annotations.NotNull p2: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class DefaultParametersInSuspendKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/emptyClosure.txt b/compiler/testData/codegen/light-analysis/coroutines/emptyClosure.txt new file mode 100644 index 00000000000..7ea4833c5ef --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/emptyClosure.txt @@ -0,0 +1,13 @@ +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class EmptyClosureKt { + private static field result: int + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void + public final static method getResult(): int + public final static method setResult(p0: int): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/falseUnitCoercion.txt b/compiler/testData/codegen/light-analysis/coroutines/falseUnitCoercion.txt new file mode 100644 index 00000000000..794c272acc6 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/falseUnitCoercion.txt @@ -0,0 +1,14 @@ +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendHere(p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class FalseUnitCoercionKt { + private static @org.jetbrains.annotations.NotNull field result: java.lang.Object + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void + public final static method foo(@org.jetbrains.annotations.NotNull p0: java.lang.Object): void + public final static @org.jetbrains.annotations.NotNull method getResult(): java.lang.Object + public final static method setResult(@org.jetbrains.annotations.NotNull p0: java.lang.Object): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/generate.txt b/compiler/testData/codegen/light-analysis/coroutines/generate.txt new file mode 100644 index 00000000000..79faf0a4cb9 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/generate.txt @@ -0,0 +1,18 @@ +public final class GenerateKt { + private static field was: boolean + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method gen(): kotlin.sequences.Sequence + public final static @org.jetbrains.annotations.NotNull method generate(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): kotlin.sequences.Sequence + public final static method getWas(): boolean + public final static method setWas(p0: boolean): void +} + + +public final class GeneratorController { + private field nextStep: kotlin.coroutines.Continuation + public method (): void + protected method computeNext(): void + public final method handleResult(@org.jetbrains.annotations.NotNull p0: kotlin.Unit, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): void + public final method setNextStep(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): void + public final @org.jetbrains.annotations.Nullable method yield(p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/handleException.txt b/compiler/testData/codegen/light-analysis/coroutines/handleException.txt new file mode 100644 index 00000000000..296bfb85f0e --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/handleException.txt @@ -0,0 +1,19 @@ +public final class Controller { + private @org.jetbrains.annotations.Nullable field exception: java.lang.Throwable + private final @org.jetbrains.annotations.NotNull field postponedActions: java.util.ArrayList + public method (): void + public final @org.jetbrains.annotations.Nullable method getException(): java.lang.Throwable + public final @org.jetbrains.annotations.NotNull method getPostponedActions(): java.util.ArrayList + public final method handleException(@org.jetbrains.annotations.NotNull p0: java.lang.Throwable, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): void + public final method run(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void + public final method setException(@org.jetbrains.annotations.Nullable p0: java.lang.Throwable): void + public final @org.jetbrains.annotations.Nullable method suspendWithException(@org.jetbrains.annotations.NotNull p0: java.lang.Exception, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object + public final @org.jetbrains.annotations.Nullable method suspendWithValue(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class HandleExceptionKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void + public final static method commonThrow(@org.jetbrains.annotations.NotNull p0: java.lang.Throwable): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/handleResultCallEmptyBody.txt b/compiler/testData/codegen/light-analysis/coroutines/handleResultCallEmptyBody.txt new file mode 100644 index 00000000000..16359b4c03a --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/handleResultCallEmptyBody.txt @@ -0,0 +1,14 @@ +public final class Controller { + private field ok: boolean + public method (): void + public final method getOk(): boolean + public final method handleResult(@org.jetbrains.annotations.NotNull p0: kotlin.Unit, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): void + public final method setOk(p0: boolean): void +} + + +public final class HandleResultCallEmptyBodyKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): java.lang.String + public final static method unitFun(): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/handleResultNonUnitExpression.txt b/compiler/testData/codegen/light-analysis/coroutines/handleResultNonUnitExpression.txt new file mode 100644 index 00000000000..fb42d568a45 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/handleResultNonUnitExpression.txt @@ -0,0 +1,14 @@ +public final class Controller { + private field isCompleted: boolean + public method (): void + public final method handleResult(@org.jetbrains.annotations.NotNull p0: kotlin.Unit, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): void + public final method isCompleted(): boolean + public final method setCompleted(p0: boolean): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class HandleResultNonUnitExpressionKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/handleResultSuspended.txt b/compiler/testData/codegen/light-analysis/coroutines/handleResultSuspended.txt new file mode 100644 index 00000000000..93575fafa50 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/handleResultSuspended.txt @@ -0,0 +1,14 @@ +public final class Controller { + private @org.jetbrains.annotations.NotNull field log: java.lang.String + public method (): void + public final @org.jetbrains.annotations.NotNull method getLog(): java.lang.String + public final method handleResult(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): void + public final method setLog(@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final @org.jetbrains.annotations.Nullable method suspendAndLog(p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class HandleResultSuspendedKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/illegalState.txt b/compiler/testData/codegen/light-analysis/coroutines/illegalState.txt new file mode 100644 index 00000000000..64910bf182c --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/illegalState.txt @@ -0,0 +1,11 @@ +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class IllegalStateKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder1(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void + public final static method builder2(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/inlineSuspendFunction.txt b/compiler/testData/codegen/light-analysis/coroutines/inlineSuspendFunction.txt new file mode 100644 index 00000000000..218881294b1 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/inlineSuspendFunction.txt @@ -0,0 +1,18 @@ +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendInline(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object + public final @org.jetbrains.annotations.Nullable method suspendInline(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function0, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object + private final method suspendInline(p0: kotlin.coroutines.Continuation): java.lang.Object + public final method withValue(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): void +} + + +public final class InlineSuspendFunctionKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void +} + + +public final class OK { + public method (): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/inlinedTryCatchFinally.txt b/compiler/testData/codegen/light-analysis/coroutines/inlinedTryCatchFinally.txt new file mode 100644 index 00000000000..ae75ac91bbd --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/inlinedTryCatchFinally.txt @@ -0,0 +1,25 @@ +public final class Controller { + private final @org.jetbrains.annotations.NotNull field postponedActions: java.util.List + public method (): void + public final @org.jetbrains.annotations.NotNull method getPostponedActions(): java.util.List + public final method handleResult(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): void + public final method run(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void + public final @org.jetbrains.annotations.Nullable method suspendWithException(@org.jetbrains.annotations.NotNull p0: java.lang.Exception, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object + public final @org.jetbrains.annotations.Nullable method suspendWithValue(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class InlinedTryCatchFinallyKt { + private static @org.jetbrains.annotations.NotNull field globalResult: java.lang.String + private static field wasCalled: boolean + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public synthetic static method builder$default(p0: boolean, p1: kotlin.jvm.functions.Function1, p2: int, p3: java.lang.Object): void + public final static method builder(p0: boolean, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function1): void + public final static method commonThrow(@org.jetbrains.annotations.NotNull p0: java.lang.Throwable): void + public final static @org.jetbrains.annotations.NotNull method getGlobalResult(): java.lang.String + public final static method getWasCalled(): boolean + public final static method setGlobalResult(@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final static method setWasCalled(p0: boolean): void + public final static @org.jetbrains.annotations.NotNull method tryCatch(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function0, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function1): java.lang.String + public final static @org.jetbrains.annotations.NotNull method tryCatchFinally(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function0, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function1, @org.jetbrains.annotations.NotNull p2: kotlin.jvm.functions.Function0): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/innerSuspensionCalls.txt b/compiler/testData/codegen/light-analysis/coroutines/innerSuspensionCalls.txt new file mode 100644 index 00000000000..9c80a7494d7 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/innerSuspensionCalls.txt @@ -0,0 +1,13 @@ +public final class Controller { + private field i: int + public method (): void + public final method getI(): int + public final method setI(p0: int): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class InnerSuspensionCallsKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/instanceOfContinuation.txt b/compiler/testData/codegen/light-analysis/coroutines/instanceOfContinuation.txt new file mode 100644 index 00000000000..79996edc1c2 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/instanceOfContinuation.txt @@ -0,0 +1,11 @@ +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method runCast(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object + public final @org.jetbrains.annotations.Nullable method runInstanceOf(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class InstanceOfContinuationKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/complicatedMerge.txt b/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/complicatedMerge.txt new file mode 100644 index 00000000000..065b7babca9 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/complicatedMerge.txt @@ -0,0 +1,13 @@ +public final class ComplicatedMergeKt { + private static field booleanResult: boolean + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void + public final static method foo(): boolean + public final static method setBooleanRes(p0: boolean): void +} + + +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/i2bResult.txt b/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/i2bResult.txt new file mode 100644 index 00000000000..1b00f46c318 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/i2bResult.txt @@ -0,0 +1,13 @@ +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class I2bResultKt { + private static field byteResult: byte + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void + public final static method foo(): int + public final static method setByteRes(p0: byte): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/loadFromBooleanArray.txt b/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/loadFromBooleanArray.txt new file mode 100644 index 00000000000..3d8eee4a623 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/loadFromBooleanArray.txt @@ -0,0 +1,12 @@ +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class LoadFromBooleanArrayKt { + private static field booleanResult: boolean + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void + public final static method setBooleanRes(p0: boolean): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/loadFromByteArray.txt b/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/loadFromByteArray.txt new file mode 100644 index 00000000000..8d1ef734c05 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/loadFromByteArray.txt @@ -0,0 +1,12 @@ +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class LoadFromByteArrayKt { + private static field byteResult: byte + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void + public final static method setByteRes(p0: byte): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/noVariableInTable.txt b/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/noVariableInTable.txt new file mode 100644 index 00000000000..973d14c9b92 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/noVariableInTable.txt @@ -0,0 +1,12 @@ +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class NoVariableInTableKt { + private static field booleanResult: boolean + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void + public final static method setBooleanRes(p0: boolean, @org.jetbrains.annotations.NotNull p1: kotlin.Unit): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/sameIconst1ManyVars.txt b/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/sameIconst1ManyVars.txt new file mode 100644 index 00000000000..bed91ad0646 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/sameIconst1ManyVars.txt @@ -0,0 +1,13 @@ +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class SameIconst1ManyVarsKt { + private static field result: java.lang.String + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void + public final static method foo(): int + public final static method setRes(p0: byte, p1: int): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/usedInArrayStore.txt b/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/usedInArrayStore.txt new file mode 100644 index 00000000000..9bb8a1a3ca5 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/usedInArrayStore.txt @@ -0,0 +1,15 @@ +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class UsedInArrayStoreKt { + public static @kotlin.jvm.JvmField @org.jetbrains.annotations.NotNull field booleanResult: boolean[] + public static @kotlin.jvm.JvmField @org.jetbrains.annotations.NotNull field byteResult: byte[] + public static @kotlin.jvm.JvmField @org.jetbrains.annotations.NotNull field charResult: char[] + public static @kotlin.jvm.JvmField @org.jetbrains.annotations.NotNull field intResult: int[] + public static @kotlin.jvm.JvmField @org.jetbrains.annotations.NotNull field shortResult: short[] + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/usedInMethodCall.txt b/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/usedInMethodCall.txt new file mode 100644 index 00000000000..ca2accb3303 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/usedInMethodCall.txt @@ -0,0 +1,20 @@ +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class UsedInMethodCallKt { + private static field booleanResult: boolean + private static field byteResult: byte + private static field charResult: char + private static field intResult: int + private static field shortResult: short + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void + public final static method setBooleanRes(p0: boolean): void + public final static method setByteRes(p0: byte): void + public final static method setCharRes(p0: char): void + public final static method setIntRes(p0: int): void + public final static method setShortRes(p0: short): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/usedInPutfield.txt b/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/usedInPutfield.txt new file mode 100644 index 00000000000..1137cb37543 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/usedInPutfield.txt @@ -0,0 +1,15 @@ +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class UsedInPutfieldKt { + public static @kotlin.jvm.JvmField field booleanResult: boolean + public static @kotlin.jvm.JvmField field byteResult: byte + public static @kotlin.jvm.JvmField field charResult: char + public static @kotlin.jvm.JvmField field intResult: int + public static @kotlin.jvm.JvmField field shortResult: short + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/usedInVarStore.txt b/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/usedInVarStore.txt new file mode 100644 index 00000000000..7655b6f4f8c --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/intLikeVarSpilling/usedInVarStore.txt @@ -0,0 +1,10 @@ +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class UsedInVarStoreKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/iterateOverArray.txt b/compiler/testData/codegen/light-analysis/coroutines/iterateOverArray.txt new file mode 100644 index 00000000000..722a0e0624f --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/iterateOverArray.txt @@ -0,0 +1,10 @@ +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class IterateOverArrayKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/kt12958.txt b/compiler/testData/codegen/light-analysis/coroutines/kt12958.txt new file mode 100644 index 00000000000..7e25d2a8373 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/kt12958.txt @@ -0,0 +1,15 @@ +public final class Controller { + private @org.jetbrains.annotations.NotNull field result: java.lang.String + public method (): void + public final @org.jetbrains.annotations.NotNull method getResult(): java.lang.String + public final method handleResult(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): void + public final method setResult(@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final @org.jetbrains.annotations.Nullable method suspendHere(p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class Kt12958Kt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): java.lang.String + public final static @org.jetbrains.annotations.NotNull method foo(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/lambdaParameters.txt b/compiler/testData/codegen/light-analysis/coroutines/lambdaParameters.txt new file mode 100644 index 00000000000..1f148f02095 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/lambdaParameters.txt @@ -0,0 +1,12 @@ +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class LambdaParametersKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function3): void + public final static @org.jetbrains.annotations.NotNull method inline(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function0): java.lang.String + public final static @org.jetbrains.annotations.NotNull method noinline(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function0): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/lastExpressionIsLoop.txt b/compiler/testData/codegen/light-analysis/coroutines/lastExpressionIsLoop.txt new file mode 100644 index 00000000000..8819355f80b --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/lastExpressionIsLoop.txt @@ -0,0 +1,17 @@ +public final class Controller { + private field ok: boolean + private @org.jetbrains.annotations.NotNull field result: java.lang.String + public method (): void + public final method getOk(): boolean + public final @org.jetbrains.annotations.NotNull method getResult(): java.lang.String + public final method handleResult(@org.jetbrains.annotations.NotNull p0: kotlin.Unit, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): void + public final method setOk(p0: boolean): void + public final method setResult(@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class LastExpressionIsLoopKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/lastStatementInc.txt b/compiler/testData/codegen/light-analysis/coroutines/lastStatementInc.txt new file mode 100644 index 00000000000..36badbf6bdc --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/lastStatementInc.txt @@ -0,0 +1,14 @@ +public final class Controller { + private field wasHandleResultCalled: boolean + public method (): void + public final method getWasHandleResultCalled(): boolean + public final method handleResult(@org.jetbrains.annotations.NotNull p0: kotlin.Unit, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): void + public final method setWasHandleResultCalled(p0: boolean): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class LastStatementIncKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/lastStementAssignment.txt b/compiler/testData/codegen/light-analysis/coroutines/lastStementAssignment.txt new file mode 100644 index 00000000000..8bb66273327 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/lastStementAssignment.txt @@ -0,0 +1,17 @@ +public final class Controller { + private field wasHandleResultCalled: boolean + public method (): void + public final method getWasHandleResultCalled(): boolean + public final method handleResult(@org.jetbrains.annotations.NotNull p0: kotlin.Unit, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): void + public final method setWasHandleResultCalled(p0: boolean): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class LastStementAssignmentKt { + private static @org.jetbrains.annotations.NotNull field varWithCustomSetter: java.lang.String + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void + public final static @org.jetbrains.annotations.NotNull method getVarWithCustomSetter(): java.lang.String + public final static method setVarWithCustomSetter(@org.jetbrains.annotations.NotNull p0: java.lang.String): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/lastUnitExpression.txt b/compiler/testData/codegen/light-analysis/coroutines/lastUnitExpression.txt new file mode 100644 index 00000000000..1abc0b38725 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/lastUnitExpression.txt @@ -0,0 +1,17 @@ +public final class Controller { + private field ok: boolean + private @org.jetbrains.annotations.NotNull field v: java.lang.String + public method (): void + public final method getOk(): boolean + public final @org.jetbrains.annotations.NotNull method getV(): java.lang.String + public final method handleResult(@org.jetbrains.annotations.NotNull p0: kotlin.Unit, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): void + public final method setOk(p0: boolean): void + public final method setV(@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class LastUnitExpressionKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/manualContinuationImpl.txt b/compiler/testData/codegen/light-analysis/coroutines/manualContinuationImpl.txt new file mode 100644 index 00000000000..012f0c156df --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/manualContinuationImpl.txt @@ -0,0 +1,10 @@ +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class ManualContinuationImplKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/multiModule/simple.txt b/compiler/testData/codegen/light-analysis/coroutines/multiModule/simple.txt new file mode 100644 index 00000000000..4175367b648 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/multiModule/simple.txt @@ -0,0 +1,10 @@ +public final class MainKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void +} + + +public final class lib/Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/multiModule/suspendExtension.txt b/compiler/testData/codegen/light-analysis/coroutines/multiModule/suspendExtension.txt new file mode 100644 index 00000000000..c602149fb2f --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/multiModule/suspendExtension.txt @@ -0,0 +1,19 @@ +public final class MainKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void + public final static @org.jetbrains.annotations.Nullable method localInlineSuspendExtension(@org.jetbrains.annotations.NotNull p0: lib.Controller, @org.jetbrains.annotations.NotNull p1: java.lang.String, @org.jetbrains.annotations.NotNull p2: kotlin.coroutines.Continuation): java.lang.Object + public final static @org.jetbrains.annotations.Nullable method localSuspendExtension(@org.jetbrains.annotations.NotNull p0: lib.Controller, @org.jetbrains.annotations.NotNull p1: java.lang.String, @org.jetbrains.annotations.NotNull p2: kotlin.coroutines.Continuation): java.lang.Object +} + +@kotlin.coroutines.AllowSuspendExtensions +public final class lib/Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method inlineSuspendHere(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class lib/ControllerKt { + public final static @org.jetbrains.annotations.Nullable method inlineSuspendExtension(@org.jetbrains.annotations.NotNull p0: lib.Controller, @org.jetbrains.annotations.NotNull p1: java.lang.String, @org.jetbrains.annotations.NotNull p2: kotlin.coroutines.Continuation): java.lang.Object + public final static @org.jetbrains.annotations.Nullable method suspendExtension(@org.jetbrains.annotations.NotNull p0: lib.Controller, @org.jetbrains.annotations.NotNull p1: java.lang.String, @org.jetbrains.annotations.NotNull p2: kotlin.coroutines.Continuation): java.lang.Object +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/multipleInvokeCalls.txt b/compiler/testData/codegen/light-analysis/coroutines/multipleInvokeCalls.txt new file mode 100644 index 00000000000..e9c7b3426dc --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/multipleInvokeCalls.txt @@ -0,0 +1,20 @@ +public final class Controller { + private @org.jetbrains.annotations.Nullable field lastSuspension: kotlin.coroutines.Continuation + private @org.jetbrains.annotations.NotNull field result: java.lang.String + public method (): void + public final @org.jetbrains.annotations.Nullable method getLastSuspension(): kotlin.coroutines.Continuation + public final @org.jetbrains.annotations.NotNull method getResult(): java.lang.String + public final method hasNext(): boolean + public final method next(): void + public final method setLastSuspension(@org.jetbrains.annotations.Nullable p0: kotlin.coroutines.Continuation): void + public final method setResult(@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class MultipleInvokeCallsKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void + public final static method builder2(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function3): void + private final static method runControllers(p0: Controller, p1: Controller): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/multipleInvokeCallsInsideInlineLambda1.txt b/compiler/testData/codegen/light-analysis/coroutines/multipleInvokeCallsInsideInlineLambda1.txt new file mode 100644 index 00000000000..c060fb279bd --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/multipleInvokeCallsInsideInlineLambda1.txt @@ -0,0 +1,21 @@ +public final class Controller { + private @org.jetbrains.annotations.Nullable field lastSuspension: kotlin.coroutines.Continuation + private @org.jetbrains.annotations.NotNull field result: java.lang.String + public method (): void + public final @org.jetbrains.annotations.Nullable method getLastSuspension(): kotlin.coroutines.Continuation + public final @org.jetbrains.annotations.NotNull method getResult(): java.lang.String + public final method hasNext(): boolean + public final method next(): void + public final method setLastSuspension(@org.jetbrains.annotations.Nullable p0: kotlin.coroutines.Continuation): void + public final method setResult(@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class MultipleInvokeCallsInsideInlineLambda1Kt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void + public final static method builder2(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function3): void + public final static method run(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function0): void + private final static method runControllers(p0: Controller, p1: Controller): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/multipleInvokeCallsInsideInlineLambda2.txt b/compiler/testData/codegen/light-analysis/coroutines/multipleInvokeCallsInsideInlineLambda2.txt new file mode 100644 index 00000000000..edca5c45741 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/multipleInvokeCallsInsideInlineLambda2.txt @@ -0,0 +1,21 @@ +public final class Controller { + private @org.jetbrains.annotations.Nullable field lastSuspension: kotlin.coroutines.Continuation + private @org.jetbrains.annotations.NotNull field result: java.lang.String + public method (): void + public final @org.jetbrains.annotations.Nullable method getLastSuspension(): kotlin.coroutines.Continuation + public final @org.jetbrains.annotations.NotNull method getResult(): java.lang.String + public final method hasNext(): boolean + public final method next(): void + public final method setLastSuspension(@org.jetbrains.annotations.Nullable p0: kotlin.coroutines.Continuation): void + public final method setResult(@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class MultipleInvokeCallsInsideInlineLambda2Kt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void + public final static method builder2(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function3): void + public final static method run(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function0): void + private final static method runControllers(p0: Controller, p1: Controller): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/multipleInvokeCallsInsideInlineLambda3.txt b/compiler/testData/codegen/light-analysis/coroutines/multipleInvokeCallsInsideInlineLambda3.txt new file mode 100644 index 00000000000..9534b806ed7 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/multipleInvokeCallsInsideInlineLambda3.txt @@ -0,0 +1,21 @@ +public final class Controller { + private @org.jetbrains.annotations.Nullable field lastSuspension: kotlin.coroutines.Continuation + private @org.jetbrains.annotations.NotNull field result: java.lang.String + public method (): void + public final @org.jetbrains.annotations.Nullable method getLastSuspension(): kotlin.coroutines.Continuation + public final @org.jetbrains.annotations.NotNull method getResult(): java.lang.String + public final method hasNext(): boolean + public final method next(): void + public final method setLastSuspension(@org.jetbrains.annotations.Nullable p0: kotlin.coroutines.Continuation): void + public final method setResult(@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class MultipleInvokeCallsInsideInlineLambda3Kt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void + public final static method builder2(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function3): void + public final static method run(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function0): void + private final static method runControllers(p0: Controller, p1: Controller): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/nestedTryCatch.txt b/compiler/testData/codegen/light-analysis/coroutines/nestedTryCatch.txt new file mode 100644 index 00000000000..163614bdd92 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/nestedTryCatch.txt @@ -0,0 +1,23 @@ +public final class Controller { + private final @org.jetbrains.annotations.NotNull field postponedActions: java.util.ArrayList + public method (): void + public final @org.jetbrains.annotations.NotNull method getPostponedActions(): java.util.ArrayList + public final method handleResult(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): void + public final method run(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void + public final @org.jetbrains.annotations.Nullable method suspendWithException(@org.jetbrains.annotations.NotNull p0: java.lang.Exception, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object + public final @org.jetbrains.annotations.Nullable method suspendWithValue(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class NestedTryCatchKt { + private static @org.jetbrains.annotations.NotNull field globalResult: java.lang.String + private static field wasCalled: boolean + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public synthetic static method builder$default(p0: boolean, p1: kotlin.jvm.functions.Function1, p2: int, p3: java.lang.Object): void + public final static method builder(p0: boolean, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function1): void + public final static method commonThrow(@org.jetbrains.annotations.NotNull p0: java.lang.Throwable): void + public final static @org.jetbrains.annotations.NotNull method getGlobalResult(): java.lang.String + public final static method getWasCalled(): boolean + public final static method setGlobalResult(@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final static method setWasCalled(p0: boolean): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/noSuspensionPoints.txt b/compiler/testData/codegen/light-analysis/coroutines/noSuspensionPoints.txt new file mode 100644 index 00000000000..43b41386ce8 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/noSuspensionPoints.txt @@ -0,0 +1,13 @@ +public final class Controller { + private field res: int + public method (): void + public final method getRes(): int + public final method handleResult(p0: int, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): void + public final method setRes(p0: int): void +} + + +public final class NoSuspensionPointsKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): int +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/nonLocalReturnFromInlineLambda.txt b/compiler/testData/codegen/light-analysis/coroutines/nonLocalReturnFromInlineLambda.txt new file mode 100644 index 00000000000..a97c727d910 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/nonLocalReturnFromInlineLambda.txt @@ -0,0 +1,15 @@ +public final class Controller { + private field cResult: int + public method (): void + public final method getCResult(): int + public final method handleResult(p0: int, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): void + public final method setCResult(p0: int): void + public final @org.jetbrains.annotations.Nullable method suspendHere(p0: int, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class NonLocalReturnFromInlineLambdaKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): Controller + public final static method foo(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/nonLocalReturnFromInlineLambdaDeep.txt b/compiler/testData/codegen/light-analysis/coroutines/nonLocalReturnFromInlineLambdaDeep.txt new file mode 100644 index 00000000000..96b76bce1af --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/nonLocalReturnFromInlineLambdaDeep.txt @@ -0,0 +1,15 @@ +public final class Controller { + private field cResult: int + public method (): void + public final method getCResult(): int + public final method handleResult(p0: int, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): void + public final method setCResult(p0: int): void + public final @org.jetbrains.annotations.Nullable method suspendHere(p0: int, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class NonLocalReturnFromInlineLambdaDeepKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): Controller + public final static method foo(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/returnByLabel.txt b/compiler/testData/codegen/light-analysis/coroutines/returnByLabel.txt new file mode 100644 index 00000000000..0719a6baeb4 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/returnByLabel.txt @@ -0,0 +1,14 @@ +public final class Controller { + private field res: int + public method (): void + public final method getRes(): int + public final method handleResult(p0: int, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): void + public final method setRes(p0: int): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class ReturnByLabelKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): int +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/simple.txt b/compiler/testData/codegen/light-analysis/coroutines/simple.txt new file mode 100644 index 00000000000..0d2991b90ba --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/simple.txt @@ -0,0 +1,10 @@ +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class SimpleKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/simpleException.txt b/compiler/testData/codegen/light-analysis/coroutines/simpleException.txt new file mode 100644 index 00000000000..e3c4adda35a --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/simpleException.txt @@ -0,0 +1,10 @@ +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class SimpleExceptionKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/simpleWithHandleResult.txt b/compiler/testData/codegen/light-analysis/coroutines/simpleWithHandleResult.txt new file mode 100644 index 00000000000..a6b1d14857a --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/simpleWithHandleResult.txt @@ -0,0 +1,14 @@ +public final class Controller { + private field res: int + public method (): void + public final method getRes(): int + public final method handleResult(p0: int, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): void + public final method setRes(p0: int): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class SimpleWithHandleResultKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): int +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/stackUnwinding/exception.txt b/compiler/testData/codegen/light-analysis/coroutines/stackUnwinding/exception.txt new file mode 100644 index 00000000000..4baeaeb3131 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/stackUnwinding/exception.txt @@ -0,0 +1,10 @@ +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class ExceptionKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/stackUnwinding/inlineSuspendFunction.txt b/compiler/testData/codegen/light-analysis/coroutines/stackUnwinding/inlineSuspendFunction.txt new file mode 100644 index 00000000000..9bf45ce361a --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/stackUnwinding/inlineSuspendFunction.txt @@ -0,0 +1,17 @@ +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendInline(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object + public final @org.jetbrains.annotations.Nullable method suspendInline(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function0, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object + private final method suspendInline(p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class InlineSuspendFunctionKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void +} + + +public final class OK { + public method (): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/stackUnwinding/simple.txt b/compiler/testData/codegen/light-analysis/coroutines/stackUnwinding/simple.txt new file mode 100644 index 00000000000..0d2991b90ba --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/stackUnwinding/simple.txt @@ -0,0 +1,10 @@ +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class SimpleKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/stackUnwinding/suspendInCycle.txt b/compiler/testData/codegen/light-analysis/coroutines/stackUnwinding/suspendInCycle.txt new file mode 100644 index 00000000000..da0b1e55b6d --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/stackUnwinding/suspendInCycle.txt @@ -0,0 +1,11 @@ +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object + public final @org.jetbrains.annotations.Nullable method suspendThere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class SuspendInCycleKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/statementLikeLastExpression.txt b/compiler/testData/codegen/light-analysis/coroutines/statementLikeLastExpression.txt new file mode 100644 index 00000000000..744089d5114 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/statementLikeLastExpression.txt @@ -0,0 +1,14 @@ +public final class Controller { + public method (): void + public final method handleResult(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): void + public final @org.jetbrains.annotations.Nullable method suspendWithValue(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class StatementLikeLastExpressionKt { + private static @org.jetbrains.annotations.NotNull field globalResult: java.lang.String + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void + public final static @org.jetbrains.annotations.NotNull method getGlobalResult(): java.lang.String + public final static method setGlobalResult(@org.jetbrains.annotations.NotNull p0: java.lang.String): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/suspendDelegation.txt b/compiler/testData/codegen/light-analysis/coroutines/suspendDelegation.txt new file mode 100644 index 00000000000..953ec0210ef --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/suspendDelegation.txt @@ -0,0 +1,11 @@ +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object + public final @org.jetbrains.annotations.Nullable method suspendThere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class SuspendDelegationKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/suspendExtension.txt b/compiler/testData/codegen/light-analysis/coroutines/suspendExtension.txt new file mode 100644 index 00000000000..c1cc757a766 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/suspendExtension.txt @@ -0,0 +1,14 @@ +@kotlin.coroutines.AllowSuspendExtensions +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method inlineSuspendHere(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class SuspendExtensionKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void + public final static @org.jetbrains.annotations.Nullable method inlineSuspendExtension(@org.jetbrains.annotations.NotNull p0: Controller, @org.jetbrains.annotations.NotNull p1: java.lang.String, @org.jetbrains.annotations.NotNull p2: kotlin.coroutines.Continuation): java.lang.Object + public final static @org.jetbrains.annotations.Nullable method suspendExtension(@org.jetbrains.annotations.NotNull p0: Controller, @org.jetbrains.annotations.NotNull p1: java.lang.String, @org.jetbrains.annotations.NotNull p2: kotlin.coroutines.Continuation): java.lang.Object +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/suspendFromInlineLambda.txt b/compiler/testData/codegen/light-analysis/coroutines/suspendFromInlineLambda.txt new file mode 100644 index 00000000000..19c0dbaba4a --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/suspendFromInlineLambda.txt @@ -0,0 +1,11 @@ +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendHere(p0: int, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class SuspendFromInlineLambdaKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void + public final static method foo(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/suspendInCycle.txt b/compiler/testData/codegen/light-analysis/coroutines/suspendInCycle.txt new file mode 100644 index 00000000000..ac223e7e4f1 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/suspendInCycle.txt @@ -0,0 +1,14 @@ +public final class Controller { + private field i: int + public method (): void + public final method getI(): int + public final method setI(p0: int): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object + public final @org.jetbrains.annotations.Nullable method suspendThere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class SuspendInCycleKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/suspendInTheMiddleOfObjectConstruction.txt b/compiler/testData/codegen/light-analysis/coroutines/suspendInTheMiddleOfObjectConstruction.txt new file mode 100644 index 00000000000..794e97912a7 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/suspendInTheMiddleOfObjectConstruction.txt @@ -0,0 +1,46 @@ +public final class A { + private final @org.jetbrains.annotations.NotNull field first: java.lang.String + private final @org.jetbrains.annotations.NotNull field second: java.lang.String + public method (@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: java.lang.String): void + public final @org.jetbrains.annotations.NotNull method getFirst(): java.lang.String + public final @org.jetbrains.annotations.NotNull method getSecond(): java.lang.String + public @org.jetbrains.annotations.NotNull method toString(): java.lang.String +} + + +public final class B { + private final @org.jetbrains.annotations.NotNull field first: java.lang.String + private final @org.jetbrains.annotations.NotNull field second: java.lang.String + private final @org.jetbrains.annotations.NotNull field third: java.lang.String + public method (@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: java.lang.String, @org.jetbrains.annotations.NotNull p2: java.lang.String): void + public final @org.jetbrains.annotations.NotNull method getFirst(): java.lang.String + public final @org.jetbrains.annotations.NotNull method getSecond(): java.lang.String + public final @org.jetbrains.annotations.NotNull method getThird(): java.lang.String + public @org.jetbrains.annotations.NotNull method toString(): java.lang.String +} + + +public final class C { + private final field first: long + private final field second: double + private final @org.jetbrains.annotations.NotNull field third: java.lang.String + public method (p0: long, p1: double, @org.jetbrains.annotations.NotNull p2: java.lang.String): void + public final method getFirst(): long + public final method getSecond(): double + public final @org.jetbrains.annotations.NotNull method getThird(): java.lang.String + public @org.jetbrains.annotations.NotNull method toString(): java.lang.String +} + + +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object + public final @org.jetbrains.annotations.Nullable method suspendWithArgument(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object + public final @org.jetbrains.annotations.Nullable method suspendWithDouble(p0: double, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class SuspendInTheMiddleOfObjectConstructionKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/tryCatchFinallyWithHandleResult.txt b/compiler/testData/codegen/light-analysis/coroutines/tryCatchFinallyWithHandleResult.txt new file mode 100644 index 00000000000..a95ce288e59 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/tryCatchFinallyWithHandleResult.txt @@ -0,0 +1,23 @@ +public final class Controller { + private final @org.jetbrains.annotations.NotNull field postponedActions: java.util.ArrayList + public method (): void + public final @org.jetbrains.annotations.NotNull method getPostponedActions(): java.util.ArrayList + public final method handleResult(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): void + public final method run(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void + public final @org.jetbrains.annotations.Nullable method suspendWithException(@org.jetbrains.annotations.NotNull p0: java.lang.Exception, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object + public final @org.jetbrains.annotations.Nullable method suspendWithValue(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class TryCatchFinallyWithHandleResultKt { + private static @org.jetbrains.annotations.NotNull field globalResult: java.lang.String + private static field wasCalled: boolean + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public synthetic static method builder$default(p0: boolean, p1: kotlin.jvm.functions.Function1, p2: int, p3: java.lang.Object): void + public final static method builder(p0: boolean, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function1): void + public final static method commonThrow(@org.jetbrains.annotations.NotNull p0: java.lang.Throwable): void + public final static @org.jetbrains.annotations.NotNull method getGlobalResult(): java.lang.String + public final static method getWasCalled(): boolean + public final static method setGlobalResult(@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final static method setWasCalled(p0: boolean): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/tryCatchWithHandleResult.txt b/compiler/testData/codegen/light-analysis/coroutines/tryCatchWithHandleResult.txt new file mode 100644 index 00000000000..c83ced4ee4b --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/tryCatchWithHandleResult.txt @@ -0,0 +1,23 @@ +public final class Controller { + private final @org.jetbrains.annotations.NotNull field postponedActions: java.util.ArrayList + public method (): void + public final @org.jetbrains.annotations.NotNull method getPostponedActions(): java.util.ArrayList + public final method handleResult(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): void + public final method run(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void + public final @org.jetbrains.annotations.Nullable method suspendWithException(@org.jetbrains.annotations.NotNull p0: java.lang.Exception, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object + public final @org.jetbrains.annotations.Nullable method suspendWithValue(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class TryCatchWithHandleResultKt { + private static @org.jetbrains.annotations.NotNull field globalResult: java.lang.String + private static field wasCalled: boolean + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public synthetic static method builder$default(p0: boolean, p1: kotlin.jvm.functions.Function1, p2: int, p3: java.lang.Object): void + public final static method builder(p0: boolean, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function1): void + public final static method commonThrow(@org.jetbrains.annotations.NotNull p0: java.lang.Throwable): void + public final static @org.jetbrains.annotations.NotNull method getGlobalResult(): java.lang.String + public final static method getWasCalled(): boolean + public final static method setGlobalResult(@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final static method setWasCalled(p0: boolean): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/tryFinallyInsideInlineLambda.txt b/compiler/testData/codegen/light-analysis/coroutines/tryFinallyInsideInlineLambda.txt new file mode 100644 index 00000000000..a76817c581a --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/tryFinallyInsideInlineLambda.txt @@ -0,0 +1,11 @@ +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class TryFinallyInsideInlineLambdaKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void + public final static method run(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function0): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/tryFinallyWithHandleResult.txt b/compiler/testData/codegen/light-analysis/coroutines/tryFinallyWithHandleResult.txt new file mode 100644 index 00000000000..349e0990c50 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/tryFinallyWithHandleResult.txt @@ -0,0 +1,23 @@ +public final class Controller { + private final @org.jetbrains.annotations.NotNull field postponedActions: java.util.List + public method (): void + public final @org.jetbrains.annotations.NotNull method getPostponedActions(): java.util.List + public final method handleResult(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): void + public final method run(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void + public final @org.jetbrains.annotations.Nullable method suspendWithException(@org.jetbrains.annotations.NotNull p0: java.lang.Exception, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object + public final @org.jetbrains.annotations.Nullable method suspendWithValue(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class TryFinallyWithHandleResultKt { + private static @org.jetbrains.annotations.NotNull field globalResult: java.lang.String + private static field wasCalled: boolean + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public synthetic static method builder$default(p0: boolean, p1: kotlin.jvm.functions.Function1, p2: int, p3: java.lang.Object): void + public final static method builder(p0: boolean, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function1): void + public final static method commonThrow(): void + public final static @org.jetbrains.annotations.NotNull method getGlobalResult(): java.lang.String + public final static method getWasCalled(): boolean + public final static method setGlobalResult(@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final static method setWasCalled(p0: boolean): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/varValueConflictsWithTable.txt b/compiler/testData/codegen/light-analysis/coroutines/varValueConflictsWithTable.txt new file mode 100644 index 00000000000..fee9d63b382 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/varValueConflictsWithTable.txt @@ -0,0 +1,10 @@ +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class VarValueConflictsWithTableKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void +} diff --git a/compiler/testData/codegen/light-analysis/coroutines/varValueConflictsWithTableSameSort.txt b/compiler/testData/codegen/light-analysis/coroutines/varValueConflictsWithTableSameSort.txt new file mode 100644 index 00000000000..6067eb14ef1 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/coroutines/varValueConflictsWithTableSameSort.txt @@ -0,0 +1,10 @@ +public final class Controller { + public method (): void + public final @org.jetbrains.annotations.Nullable method suspendHere(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object +} + + +public final class VarValueConflictsWithTableSameSortKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method builder(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): void +} diff --git a/compiler/testData/codegen/light-analysis/dataClasses/nonTrivialFinalMemberInSuperClass.txt b/compiler/testData/codegen/light-analysis/dataClasses/nonTrivialFinalMemberInSuperClass.txt new file mode 100644 index 00000000000..a8319162013 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/dataClasses/nonTrivialFinalMemberInSuperClass.txt @@ -0,0 +1,21 @@ +public abstract class Base { + public method (): void + public final method equals(@org.jetbrains.annotations.Nullable p0: java.lang.Object): boolean + public final method hashCode(): int + public final @org.jetbrains.annotations.NotNull method toString(): java.lang.String +} + + +public final class DataClass { + private final @org.jetbrains.annotations.NotNull field field: java.lang.String + public method (@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final @org.jetbrains.annotations.NotNull method component1(): java.lang.String + public synthetic static method copy$default(p0: DataClass, p1: java.lang.String, p2: int, p3: java.lang.Object): DataClass + public final @org.jetbrains.annotations.NotNull method copy(@org.jetbrains.annotations.NotNull p0: java.lang.String): DataClass + public final @org.jetbrains.annotations.NotNull method getField(): java.lang.String +} + + +public final class NonTrivialFinalMemberInSuperClassKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/dataClasses/nonTrivialMemberInSuperClass.txt b/compiler/testData/codegen/light-analysis/dataClasses/nonTrivialMemberInSuperClass.txt new file mode 100644 index 00000000000..33f6d25fb8e --- /dev/null +++ b/compiler/testData/codegen/light-analysis/dataClasses/nonTrivialMemberInSuperClass.txt @@ -0,0 +1,24 @@ +public abstract class Base { + public method (): void + public method equals(@org.jetbrains.annotations.Nullable p0: java.lang.Object): boolean + public method hashCode(): int + public @org.jetbrains.annotations.NotNull method toString(): java.lang.String +} + + +public final class DataClass { + private final @org.jetbrains.annotations.NotNull field field: java.lang.String + public method (@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final @org.jetbrains.annotations.NotNull method component1(): java.lang.String + public synthetic static method copy$default(p0: DataClass, p1: java.lang.String, p2: int, p3: java.lang.Object): DataClass + public final @org.jetbrains.annotations.NotNull method copy(@org.jetbrains.annotations.NotNull p0: java.lang.String): DataClass + public method equals(p0: java.lang.Object): boolean + public final @org.jetbrains.annotations.NotNull method getField(): java.lang.String + public method hashCode(): int + public method toString(): java.lang.String +} + + +public final class NonTrivialMemberInSuperClassKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/delegatedProperty/local/capturedLocalVal.txt b/compiler/testData/codegen/light-analysis/delegatedProperty/local/capturedLocalVal.txt new file mode 100644 index 00000000000..30084d5b127 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/delegatedProperty/local/capturedLocalVal.txt @@ -0,0 +1,10 @@ +public final class foo/CapturedLocalValKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method run(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function0): java.lang.Object +} + + +public final class foo/Delegate { + public method (): void + public final method getValue(@org.jetbrains.annotations.Nullable p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.reflect.KProperty): int +} diff --git a/compiler/testData/codegen/light-analysis/delegatedProperty/local/capturedLocalValNoInline.txt b/compiler/testData/codegen/light-analysis/delegatedProperty/local/capturedLocalValNoInline.txt new file mode 100644 index 00000000000..9b04cfdb4db --- /dev/null +++ b/compiler/testData/codegen/light-analysis/delegatedProperty/local/capturedLocalValNoInline.txt @@ -0,0 +1,10 @@ +public final class foo/CapturedLocalValNoInlineKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method run(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function0): java.lang.Object +} + + +public final class foo/Delegate { + public method (): void + public final method getValue(@org.jetbrains.annotations.Nullable p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.reflect.KProperty): int +} diff --git a/compiler/testData/codegen/light-analysis/delegatedProperty/local/capturedLocalVar.txt b/compiler/testData/codegen/light-analysis/delegatedProperty/local/capturedLocalVar.txt new file mode 100644 index 00000000000..abad73c5efc --- /dev/null +++ b/compiler/testData/codegen/light-analysis/delegatedProperty/local/capturedLocalVar.txt @@ -0,0 +1,14 @@ +public final class foo/CapturedLocalVarKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method run(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function0): java.lang.Object +} + + +public final class foo/Delegate { + private field inner: int + public method (): void + public final method getInner(): int + public final method getValue(@org.jetbrains.annotations.Nullable p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.reflect.KProperty): int + public final method setInner(p0: int): void + public final method setValue(@org.jetbrains.annotations.Nullable p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.reflect.KProperty, p2: int): void +} diff --git a/compiler/testData/codegen/light-analysis/delegatedProperty/local/capturedLocalVarNoInline.txt b/compiler/testData/codegen/light-analysis/delegatedProperty/local/capturedLocalVarNoInline.txt new file mode 100644 index 00000000000..c6b098699ca --- /dev/null +++ b/compiler/testData/codegen/light-analysis/delegatedProperty/local/capturedLocalVarNoInline.txt @@ -0,0 +1,14 @@ +public final class foo/CapturedLocalVarNoInlineKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method run(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function0): java.lang.Object +} + + +public final class foo/Delegate { + private field inner: int + public method (): void + public final method getInner(): int + public final method getValue(@org.jetbrains.annotations.Nullable p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.reflect.KProperty): int + public final method setInner(p0: int): void + public final method setValue(@org.jetbrains.annotations.Nullable p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.reflect.KProperty, p2: int): void +} diff --git a/compiler/testData/codegen/light-analysis/delegatedProperty/local/inlineGetValue.txt b/compiler/testData/codegen/light-analysis/delegatedProperty/local/inlineGetValue.txt new file mode 100644 index 00000000000..95b5c4250fa --- /dev/null +++ b/compiler/testData/codegen/light-analysis/delegatedProperty/local/inlineGetValue.txt @@ -0,0 +1,9 @@ +public final class foo/Delegate { + public method (): void + public final @org.jetbrains.annotations.NotNull method getValue(@org.jetbrains.annotations.Nullable p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.reflect.KProperty): java.lang.String +} + + +public final class foo/InlineGetValueKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/delegatedProperty/local/inlineOperators.txt b/compiler/testData/codegen/light-analysis/delegatedProperty/local/inlineOperators.txt new file mode 100644 index 00000000000..181cf7a54a0 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/delegatedProperty/local/inlineOperators.txt @@ -0,0 +1,13 @@ +public final class foo/Delegate { + private field inner: int + public method (): void + public final method getInner(): int + public final method getValue(@org.jetbrains.annotations.Nullable p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.reflect.KProperty): int + public final method setInner(p0: int): void + public final method setValue(@org.jetbrains.annotations.Nullable p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.reflect.KProperty, p2: int): void +} + + +public final class foo/InlineOperatorsKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/delegatedProperty/local/kt12891.txt b/compiler/testData/codegen/light-analysis/delegatedProperty/local/kt12891.txt new file mode 100644 index 00000000000..4a126ba0ca7 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/delegatedProperty/local/kt12891.txt @@ -0,0 +1,3 @@ +public final class Kt12891Kt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/delegatedProperty/local/kt13557.txt b/compiler/testData/codegen/light-analysis/delegatedProperty/local/kt13557.txt new file mode 100644 index 00000000000..22af97296d3 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/delegatedProperty/local/kt13557.txt @@ -0,0 +1,3 @@ +public final class Kt13557Kt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/delegatedProperty/local/localVal.txt b/compiler/testData/codegen/light-analysis/delegatedProperty/local/localVal.txt new file mode 100644 index 00000000000..ac426d9d1e1 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/delegatedProperty/local/localVal.txt @@ -0,0 +1,9 @@ +public final class foo/Delegate { + public method (): void + public final method getValue(@org.jetbrains.annotations.Nullable p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.reflect.KProperty): int +} + + +public final class foo/LocalValKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/delegatedProperty/local/localValNoExplicitType.txt b/compiler/testData/codegen/light-analysis/delegatedProperty/local/localValNoExplicitType.txt new file mode 100644 index 00000000000..8cf8a03fe74 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/delegatedProperty/local/localValNoExplicitType.txt @@ -0,0 +1,9 @@ +public final class foo/Delegate { + public method (): void + public final method getValue(@org.jetbrains.annotations.Nullable p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.reflect.KProperty): int +} + + +public final class foo/LocalValNoExplicitTypeKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/delegatedProperty/local/localVar.txt b/compiler/testData/codegen/light-analysis/delegatedProperty/local/localVar.txt new file mode 100644 index 00000000000..d6485c20ba3 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/delegatedProperty/local/localVar.txt @@ -0,0 +1,13 @@ +public final class foo/Delegate { + private field inner: int + public method (): void + public final method getInner(): int + public final method getValue(@org.jetbrains.annotations.Nullable p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.reflect.KProperty): int + public final method setInner(p0: int): void + public final method setValue(@org.jetbrains.annotations.Nullable p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.reflect.KProperty, p2: int): void +} + + +public final class foo/LocalVarKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/delegatedProperty/local/localVarNoExplicitType.txt b/compiler/testData/codegen/light-analysis/delegatedProperty/local/localVarNoExplicitType.txt new file mode 100644 index 00000000000..6bb46be5fb5 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/delegatedProperty/local/localVarNoExplicitType.txt @@ -0,0 +1,13 @@ +public final class foo/Delegate { + private field inner: int + public method (): void + public final method getInner(): int + public final method getValue(@org.jetbrains.annotations.Nullable p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.reflect.KProperty): int + public final method setInner(p0: int): void + public final method setValue(@org.jetbrains.annotations.Nullable p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.reflect.KProperty, p2: int): void +} + + +public final class foo/LocalVarNoExplicitTypeKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/destructuringDeclInLambdaParam/extensionComponents.txt b/compiler/testData/codegen/light-analysis/destructuringDeclInLambdaParam/extensionComponents.txt new file mode 100644 index 00000000000..f4dfa25c6ae --- /dev/null +++ b/compiler/testData/codegen/light-analysis/destructuringDeclInLambdaParam/extensionComponents.txt @@ -0,0 +1,24 @@ +public final class A { + private final @org.jetbrains.annotations.NotNull field x: java.lang.String + private final @org.jetbrains.annotations.NotNull field y: java.lang.String + private final field z: java.lang.Object + public method (@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: java.lang.String, p2: java.lang.Object): void + public final @org.jetbrains.annotations.NotNull method getX(): java.lang.String + public final @org.jetbrains.annotations.NotNull method getY(): java.lang.String + public final method getZ(): java.lang.Object +} + + +public final class B { + public final static field INSTANCE: B + private method (): void + public final @org.jetbrains.annotations.NotNull method component2(@org.jetbrains.annotations.NotNull p0: A): java.lang.String +} + + +public final class ExtensionComponentsKt { + public final static @org.jetbrains.annotations.NotNull method bar(@org.jetbrains.annotations.NotNull p0: B): java.lang.String + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method component1(@org.jetbrains.annotations.NotNull p0: A): java.lang.String + public final static @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: A, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function1): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/destructuringDeclInLambdaParam/generic.txt b/compiler/testData/codegen/light-analysis/destructuringDeclInLambdaParam/generic.txt new file mode 100644 index 00000000000..0de85912b02 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/destructuringDeclInLambdaParam/generic.txt @@ -0,0 +1,20 @@ +public final class A { + private final field x: java.lang.Object + private final field y: java.lang.Object + public method (p0: java.lang.Object, p1: java.lang.Object): void + public final method component1(): java.lang.Object + public final method component2(): java.lang.Object + public synthetic static method copy$default(p0: A, p1: java.lang.Object, p2: java.lang.Object, p3: int, p4: java.lang.Object): A + public final @org.jetbrains.annotations.NotNull method copy(p0: java.lang.Object, p1: java.lang.Object): A + public method equals(p0: java.lang.Object): boolean + public final method getX(): java.lang.Object + public final method getY(): java.lang.Object + public method hashCode(): int + public method toString(): java.lang.String +} + + +public final class GenericKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: A, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function1): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/destructuringDeclInLambdaParam/inline.txt b/compiler/testData/codegen/light-analysis/destructuringDeclInLambdaParam/inline.txt new file mode 100644 index 00000000000..23da89185c9 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/destructuringDeclInLambdaParam/inline.txt @@ -0,0 +1,20 @@ +public final class A { + private final @org.jetbrains.annotations.NotNull field x: java.lang.String + private final @org.jetbrains.annotations.NotNull field y: java.lang.String + public method (@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: java.lang.String): void + public final @org.jetbrains.annotations.NotNull method component1(): java.lang.String + public final @org.jetbrains.annotations.NotNull method component2(): java.lang.String + public synthetic static method copy$default(p0: A, p1: java.lang.String, p2: java.lang.String, p3: int, p4: java.lang.Object): A + public final @org.jetbrains.annotations.NotNull method copy(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: java.lang.String): A + public method equals(p0: java.lang.Object): boolean + public final @org.jetbrains.annotations.NotNull method getX(): java.lang.String + public final @org.jetbrains.annotations.NotNull method getY(): java.lang.String + public method hashCode(): int + public method toString(): java.lang.String +} + + +public final class InlineKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: A, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function1): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/destructuringDeclInLambdaParam/otherParameters.txt b/compiler/testData/codegen/light-analysis/destructuringDeclInLambdaParam/otherParameters.txt new file mode 100644 index 00000000000..603e27b0bd4 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/destructuringDeclInLambdaParam/otherParameters.txt @@ -0,0 +1,20 @@ +public final class A { + private final @org.jetbrains.annotations.NotNull field x: java.lang.String + private final @org.jetbrains.annotations.NotNull field y: java.lang.String + public method (@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: java.lang.String): void + public final @org.jetbrains.annotations.NotNull method component1(): java.lang.String + public final @org.jetbrains.annotations.NotNull method component2(): java.lang.String + public synthetic static method copy$default(p0: A, p1: java.lang.String, p2: java.lang.String, p3: int, p4: java.lang.Object): A + public final @org.jetbrains.annotations.NotNull method copy(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: java.lang.String): A + public method equals(p0: java.lang.Object): boolean + public final @org.jetbrains.annotations.NotNull method getX(): java.lang.String + public final @org.jetbrains.annotations.NotNull method getY(): java.lang.String + public method hashCode(): int + public method toString(): java.lang.String +} + + +public final class OtherParametersKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: A, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function3): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/destructuringDeclInLambdaParam/simple.txt b/compiler/testData/codegen/light-analysis/destructuringDeclInLambdaParam/simple.txt new file mode 100644 index 00000000000..f9b1f095001 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/destructuringDeclInLambdaParam/simple.txt @@ -0,0 +1,20 @@ +public final class A { + private final @org.jetbrains.annotations.NotNull field x: java.lang.String + private final @org.jetbrains.annotations.NotNull field y: java.lang.String + public method (@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: java.lang.String): void + public final @org.jetbrains.annotations.NotNull method component1(): java.lang.String + public final @org.jetbrains.annotations.NotNull method component2(): java.lang.String + public synthetic static method copy$default(p0: A, p1: java.lang.String, p2: java.lang.String, p3: int, p4: java.lang.Object): A + public final @org.jetbrains.annotations.NotNull method copy(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: java.lang.String): A + public method equals(p0: java.lang.Object): boolean + public final @org.jetbrains.annotations.NotNull method getX(): java.lang.String + public final @org.jetbrains.annotations.NotNull method getY(): java.lang.String + public method hashCode(): int + public method toString(): java.lang.String +} + + +public final class SimpleKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: A, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function1): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/destructuringDeclInLambdaParam/stdlibUsages.txt b/compiler/testData/codegen/light-analysis/destructuringDeclInLambdaParam/stdlibUsages.txt new file mode 100644 index 00000000000..bf8da7096f4 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/destructuringDeclInLambdaParam/stdlibUsages.txt @@ -0,0 +1,3 @@ +public final class StdlibUsagesKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/destructuringDeclInLambdaParam/underscoreNames.txt b/compiler/testData/codegen/light-analysis/destructuringDeclInLambdaParam/underscoreNames.txt new file mode 100644 index 00000000000..0a26ac6dd49 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/destructuringDeclInLambdaParam/underscoreNames.txt @@ -0,0 +1,12 @@ +public final class A { + public method (): void + public final @org.jetbrains.annotations.NotNull method component1(): java.lang.String + public final @org.jetbrains.annotations.NotNull method component2(): java.lang.String + public final @org.jetbrains.annotations.NotNull method component3(): java.lang.String +} + + +public final class UnderscoreNamesKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: A, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function1): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/destructuringDeclInLambdaParam/withIndexed.txt b/compiler/testData/codegen/light-analysis/destructuringDeclInLambdaParam/withIndexed.txt new file mode 100644 index 00000000000..43ec57dea36 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/destructuringDeclInLambdaParam/withIndexed.txt @@ -0,0 +1,22 @@ +public final class Station { + private final field distance: int + private final @org.jetbrains.annotations.Nullable field id: java.lang.String + private final @org.jetbrains.annotations.NotNull field name: java.lang.String + public method (@org.jetbrains.annotations.Nullable p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: java.lang.String, p2: int): void + public final @org.jetbrains.annotations.Nullable method component1(): java.lang.String + public final @org.jetbrains.annotations.NotNull method component2(): java.lang.String + public final method component3(): int + public synthetic static method copy$default(p0: Station, p1: java.lang.String, p2: java.lang.String, p3: int, p4: int, p5: java.lang.Object): Station + public final @org.jetbrains.annotations.NotNull method copy(@org.jetbrains.annotations.Nullable p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: java.lang.String, p2: int): Station + public method equals(p0: java.lang.Object): boolean + public final method getDistance(): int + public final @org.jetbrains.annotations.Nullable method getId(): java.lang.String + public final @org.jetbrains.annotations.NotNull method getName(): java.lang.String + public method hashCode(): int + public method toString(): java.lang.String +} + + +public final class WithIndexedKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/functions/functionExpression/underscoreParameters.txt b/compiler/testData/codegen/light-analysis/functions/functionExpression/underscoreParameters.txt new file mode 100644 index 00000000000..53f5afd3b53 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/functions/functionExpression/underscoreParameters.txt @@ -0,0 +1,4 @@ +public final class UnderscoreParametersKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function3): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/increment/augmentedAssignmentWithComplexRhs.txt b/compiler/testData/codegen/light-analysis/increment/augmentedAssignmentWithComplexRhs.txt new file mode 100644 index 00000000000..5e6d9f884d7 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/increment/augmentedAssignmentWithComplexRhs.txt @@ -0,0 +1,10 @@ +public final class AugmentedAssignmentWithComplexRhsKt { + private static @org.jetbrains.annotations.NotNull field log: java.lang.String + private static field result: int + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method getLog(): java.lang.String + public final static method getResult(): int + public final static method id(p0: java.lang.Object): java.lang.Object + public final static method setLog(@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final static method setResult(p0: int): void +} diff --git a/compiler/testData/codegen/light-analysis/javaInterop/lambdaInstanceOf.txt b/compiler/testData/codegen/light-analysis/javaInterop/lambdaInstanceOf.txt new file mode 100644 index 00000000000..33d7cadb999 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/javaInterop/lambdaInstanceOf.txt @@ -0,0 +1,3 @@ +public final class KKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/jvmStatic/closure.txt b/compiler/testData/codegen/light-analysis/jvmStatic/closure.txt index fae756c71f4..c17802f8b3e 100644 --- a/compiler/testData/codegen/light-analysis/jvmStatic/closure.txt +++ b/compiler/testData/codegen/light-analysis/jvmStatic/closure.txt @@ -3,7 +3,7 @@ public final class A { private final static @org.jetbrains.annotations.NotNull field b: java.lang.String private final static @org.jetbrains.annotations.NotNull field c: java.lang.String private method (): void - private synthetic deprecated final static @kotlin.jvm.JvmStatic method c$annotations(): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method c$annotations(): void public final @org.jetbrains.annotations.NotNull method getB(): java.lang.String public final static @org.jetbrains.annotations.NotNull method getC(): java.lang.String public final static @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull method test1(): java.lang.String diff --git a/compiler/testData/codegen/light-analysis/jvmStatic/companionObject.txt b/compiler/testData/codegen/light-analysis/jvmStatic/companionObject.txt index 4aefaa65501..f5496d629e3 100644 --- a/compiler/testData/codegen/light-analysis/jvmStatic/companionObject.txt +++ b/compiler/testData/codegen/light-analysis/jvmStatic/companionObject.txt @@ -14,7 +14,7 @@ public final class A { public final static class A/Companion { inner class A/Companion private method (): void - private synthetic deprecated final static @kotlin.jvm.JvmStatic method c$annotations(): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method c$annotations(): void public final @org.jetbrains.annotations.NotNull method getB(): java.lang.String public final @org.jetbrains.annotations.NotNull method getC(): java.lang.String public final @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull method test1(): java.lang.String diff --git a/compiler/testData/codegen/light-analysis/jvmStatic/enumCompanion.txt b/compiler/testData/codegen/light-analysis/jvmStatic/enumCompanion.txt index 88fbd8917cc..a4e281e06a2 100644 --- a/compiler/testData/codegen/light-analysis/jvmStatic/enumCompanion.txt +++ b/compiler/testData/codegen/light-analysis/jvmStatic/enumCompanion.txt @@ -15,7 +15,7 @@ public enum class A { public final static class A/Companion { inner class A/Companion private method (): void - private synthetic deprecated final static @kotlin.jvm.JvmStatic method bar$annotations(): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method bar$annotations(): void public final @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull method baz(): java.lang.String public final @org.jetbrains.annotations.NotNull method getBar(): java.lang.String } diff --git a/compiler/testData/codegen/light-analysis/jvmStatic/explicitObject.txt b/compiler/testData/codegen/light-analysis/jvmStatic/explicitObject.txt index ca91c8fbda9..e40f639de20 100644 --- a/compiler/testData/codegen/light-analysis/jvmStatic/explicitObject.txt +++ b/compiler/testData/codegen/light-analysis/jvmStatic/explicitObject.txt @@ -5,7 +5,7 @@ public final class AX { public final @org.jetbrains.annotations.NotNull method aNonStatic(): java.lang.String public final static @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull method aStatic(): java.lang.String public final static @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull method b(): java.lang.String - private synthetic deprecated final static @kotlin.jvm.JvmStatic method c$annotations(): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method c$annotations(): void public final static @org.jetbrains.annotations.NotNull method getC(): java.lang.String public final @org.jetbrains.annotations.NotNull method getProperty(): java.lang.String } diff --git a/compiler/testData/codegen/light-analysis/jvmStatic/importStaticMemberFromObject.txt b/compiler/testData/codegen/light-analysis/jvmStatic/importStaticMemberFromObject.txt index 3d338114be4..d4faa2aeae8 100644 --- a/compiler/testData/codegen/light-analysis/jvmStatic/importStaticMemberFromObject.txt +++ b/compiler/testData/codegen/light-analysis/jvmStatic/importStaticMemberFromObject.txt @@ -13,7 +13,7 @@ public final static class C/Companion { private method (): void public final @kotlin.jvm.JvmStatic method f1(): int public final method getP1(): int - private synthetic deprecated final static @kotlin.jvm.JvmStatic method p1$annotations(): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method p1$annotations(): void } @@ -28,5 +28,5 @@ public final class O { private method (): void public final static @kotlin.jvm.JvmStatic method f(): int public final static method getP(): int - private synthetic deprecated final static @kotlin.jvm.JvmStatic method p$annotations(): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method p$annotations(): void } diff --git a/compiler/testData/codegen/light-analysis/jvmStatic/inlinePropertyAccessors.txt b/compiler/testData/codegen/light-analysis/jvmStatic/inlinePropertyAccessors.txt index 0e7788dba1a..ad98f9e8001 100644 --- a/compiler/testData/codegen/light-analysis/jvmStatic/inlinePropertyAccessors.txt +++ b/compiler/testData/codegen/light-analysis/jvmStatic/inlinePropertyAccessors.txt @@ -2,7 +2,7 @@ public final class Foo { public final static field INSTANCE: Foo private final static field a: java.lang.String private method (): void - private synthetic deprecated final static @kotlin.jvm.JvmStatic method a$annotations(): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method a$annotations(): void public final method foo(): void } diff --git a/compiler/testData/codegen/light-analysis/jvmStatic/kt9897_static.txt b/compiler/testData/codegen/light-analysis/jvmStatic/kt9897_static.txt index 9bdda4ae8d9..c3e6bad0ec0 100644 --- a/compiler/testData/codegen/light-analysis/jvmStatic/kt9897_static.txt +++ b/compiler/testData/codegen/light-analysis/jvmStatic/kt9897_static.txt @@ -18,6 +18,6 @@ public final class Test { public final static method setSomeProperty(@org.jetbrains.annotations.NotNull p0: java.lang.String, p1: int): void public final static method setSomeProperty(p0: long, p1: long): void public final method setZ(@org.jetbrains.annotations.NotNull p0: java.lang.String): void - private synthetic deprecated final static @kotlin.jvm.JvmStatic method someProperty$annotations(p0: java.lang.String): void - private synthetic deprecated final static @kotlin.jvm.JvmStatic method someProperty$annotations(p0: long): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method someProperty$annotations(p0: java.lang.String): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method someProperty$annotations(p0: long): void } diff --git a/compiler/testData/codegen/light-analysis/jvmStatic/object.txt b/compiler/testData/codegen/light-analysis/jvmStatic/object.txt index d0507a77ae8..13f8cd48a31 100644 --- a/compiler/testData/codegen/light-analysis/jvmStatic/object.txt +++ b/compiler/testData/codegen/light-analysis/jvmStatic/object.txt @@ -3,7 +3,7 @@ public final class A { private final static @org.jetbrains.annotations.NotNull field b: java.lang.String private final static @org.jetbrains.annotations.NotNull field c: java.lang.String private method (): void - private synthetic deprecated final static @kotlin.jvm.JvmStatic method c$annotations(): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method c$annotations(): void public final @org.jetbrains.annotations.NotNull method getB(): java.lang.String public final static @org.jetbrains.annotations.NotNull method getC(): java.lang.String public final static @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull method test1(): java.lang.String diff --git a/compiler/testData/codegen/light-analysis/jvmStatic/postfixInc.txt b/compiler/testData/codegen/light-analysis/jvmStatic/postfixInc.txt index 19b797782c2..febaca77ae2 100644 --- a/compiler/testData/codegen/light-analysis/jvmStatic/postfixInc.txt +++ b/compiler/testData/codegen/light-analysis/jvmStatic/postfixInc.txt @@ -4,7 +4,7 @@ public final class A { private static field b: int private static field c: int private method (): void - private synthetic deprecated final static @kotlin.jvm.JvmStatic method a$annotations(): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method a$annotations(): void public final static method getA(): int public final static @kotlin.jvm.JvmStatic method getB(): int public final method getC(): int diff --git a/compiler/testData/codegen/light-analysis/jvmStatic/prefixInc.txt b/compiler/testData/codegen/light-analysis/jvmStatic/prefixInc.txt index d52311b29e1..808cd583efe 100644 --- a/compiler/testData/codegen/light-analysis/jvmStatic/prefixInc.txt +++ b/compiler/testData/codegen/light-analysis/jvmStatic/prefixInc.txt @@ -4,7 +4,7 @@ public final class A { private static field b: int private static field c: int private method (): void - private synthetic deprecated final static @kotlin.jvm.JvmStatic method a$annotations(): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method a$annotations(): void public final static method getA(): int public final static @kotlin.jvm.JvmStatic method getB(): int public final method getC(): int diff --git a/compiler/testData/codegen/light-analysis/jvmStatic/privateSetter.txt b/compiler/testData/codegen/light-analysis/jvmStatic/privateSetter.txt index 8d75a080213..5d994e5f960 100644 --- a/compiler/testData/codegen/light-analysis/jvmStatic/privateSetter.txt +++ b/compiler/testData/codegen/light-analysis/jvmStatic/privateSetter.txt @@ -20,5 +20,5 @@ public final static class TestApp/Companion { public synthetic final static method access$setValue$p(p0: TestApp.Companion, @org.jetbrains.annotations.NotNull p1: java.lang.String): void public final @org.jetbrains.annotations.NotNull method getValue(): java.lang.String private final method setValue(p0: java.lang.String): void - private synthetic deprecated final static @kotlin.jvm.JvmStatic method value$annotations(): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method value$annotations(): void } diff --git a/compiler/testData/codegen/light-analysis/jvmStatic/propertyAccess.txt b/compiler/testData/codegen/light-analysis/jvmStatic/propertyAccess.txt index e1650881785..d19d6847fc2 100644 --- a/compiler/testData/codegen/light-analysis/jvmStatic/propertyAccess.txt +++ b/compiler/testData/codegen/light-analysis/jvmStatic/propertyAccess.txt @@ -4,7 +4,7 @@ public final class A { private static field b: int private static field c: int private method (): void - private synthetic deprecated final static @kotlin.jvm.JvmStatic method a$annotations(): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method a$annotations(): void public final static method getA(): int public final static @kotlin.jvm.JvmStatic method getB(): int public final method getC(): int diff --git a/compiler/testData/codegen/light-analysis/jvmStatic/propertyAccessorsCompanion.txt b/compiler/testData/codegen/light-analysis/jvmStatic/propertyAccessorsCompanion.txt index 9c0ad46fb45..8aae191fea5 100644 --- a/compiler/testData/codegen/light-analysis/jvmStatic/propertyAccessorsCompanion.txt +++ b/compiler/testData/codegen/light-analysis/jvmStatic/propertyAccessorsCompanion.txt @@ -14,7 +14,7 @@ public final class Foo { public final static class Foo/Companion { inner class Foo/Companion private method (): void - private synthetic deprecated final static @kotlin.jvm.JvmStatic method a$annotations(): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method a$annotations(): void public synthetic final static @org.jetbrains.annotations.NotNull method access$getA$p(p0: Foo.Companion): java.lang.String private final method getA(): java.lang.String } diff --git a/compiler/testData/codegen/light-analysis/jvmStatic/propertyAccessorsObject.txt b/compiler/testData/codegen/light-analysis/jvmStatic/propertyAccessorsObject.txt index 4c8e3036851..770f4368387 100644 --- a/compiler/testData/codegen/light-analysis/jvmStatic/propertyAccessorsObject.txt +++ b/compiler/testData/codegen/light-analysis/jvmStatic/propertyAccessorsObject.txt @@ -4,7 +4,7 @@ public final class Foo { private final static @org.jetbrains.annotations.NotNull field b: kotlin.jvm.functions.Function0 private final static @org.jetbrains.annotations.NotNull field c: java.lang.Runnable private method (): void - private synthetic deprecated final static @kotlin.jvm.JvmStatic method a$annotations(): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method a$annotations(): void public final @org.jetbrains.annotations.NotNull method getB(): kotlin.jvm.functions.Function0 public final @org.jetbrains.annotations.NotNull method getC(): java.lang.Runnable } diff --git a/compiler/testData/codegen/light-analysis/jvmStatic/propertyAsDefault.txt b/compiler/testData/codegen/light-analysis/jvmStatic/propertyAsDefault.txt index 1c7ca10df50..8f175c291a5 100644 --- a/compiler/testData/codegen/light-analysis/jvmStatic/propertyAsDefault.txt +++ b/compiler/testData/codegen/light-analysis/jvmStatic/propertyAsDefault.txt @@ -10,5 +10,5 @@ public final class X { public synthetic static method fn$default(p0: X, p1: java.lang.String, p2: int, p3: java.lang.Object): java.lang.String public final @org.jetbrains.annotations.NotNull method fn(@org.jetbrains.annotations.NotNull p0: java.lang.String): java.lang.String public final static @org.jetbrains.annotations.NotNull method getX(): java.lang.String - private synthetic deprecated final static @kotlin.jvm.JvmStatic method x$annotations(): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method x$annotations(): void } diff --git a/compiler/testData/codegen/light-analysis/jvmStatic/simple.txt b/compiler/testData/codegen/light-analysis/jvmStatic/simple.txt index 32b105bc233..7e568c6f689 100644 --- a/compiler/testData/codegen/light-analysis/jvmStatic/simple.txt +++ b/compiler/testData/codegen/light-analysis/jvmStatic/simple.txt @@ -3,7 +3,7 @@ public final class A { private final static @org.jetbrains.annotations.NotNull field b: java.lang.String private final static @org.jetbrains.annotations.NotNull field c: java.lang.String private method (): void - private synthetic deprecated final static @kotlin.jvm.JvmStatic method c$annotations(): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method c$annotations(): void public final @org.jetbrains.annotations.NotNull method getB(): java.lang.String public final static @org.jetbrains.annotations.NotNull method getC(): java.lang.String public final static @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull method test1(): java.lang.String diff --git a/compiler/testData/codegen/light-analysis/multiDecl/UnderscoreNames.txt b/compiler/testData/codegen/light-analysis/multiDecl/UnderscoreNames.txt new file mode 100644 index 00000000000..084cd891ac4 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/multiDecl/UnderscoreNames.txt @@ -0,0 +1,10 @@ +public final class A { + public method (): void + public final method component1(): int + public final method component2(): int +} + + +public final class UnderscoreNamesKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/multiDecl/component.txt b/compiler/testData/codegen/light-analysis/multiDecl/component.txt index 16af4f45062..5aa4cdd471a 100644 --- a/compiler/testData/codegen/light-analysis/multiDecl/component.txt +++ b/compiler/testData/codegen/light-analysis/multiDecl/component.txt @@ -1,6 +1,6 @@ public final class ComponentKt { public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String - public final static method component3(@org.jetbrains.annotations.NotNull p0: S): java.lang.String + public final static @org.jetbrains.annotations.NotNull method component3(@org.jetbrains.annotations.NotNull p0: S): java.lang.String } @@ -18,5 +18,5 @@ public final class S { public final class Tester { public method (): void public final @org.jetbrains.annotations.NotNull method box(): java.lang.String - public final method component4(@org.jetbrains.annotations.NotNull p0: S): java.lang.String + public final @org.jetbrains.annotations.NotNull method component4(@org.jetbrains.annotations.NotNull p0: S): java.lang.String } diff --git a/compiler/testData/codegen/light-analysis/multiDecl/forRange/UnderscoreNames.txt b/compiler/testData/codegen/light-analysis/multiDecl/forRange/UnderscoreNames.txt new file mode 100644 index 00000000000..2bb97d4c6d6 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/multiDecl/forRange/UnderscoreNames.txt @@ -0,0 +1,38 @@ +public final class C { + private final field i: int + public method (p0: int): void + public final method component1(): int + public final method component2(): int + public final method getI(): int + public final @org.jetbrains.annotations.NotNull method rangeTo(@org.jetbrains.annotations.NotNull p0: C): Range +} + + +public final class It { + private field c: int + private final @org.jetbrains.annotations.NotNull field from: C + private final @org.jetbrains.annotations.NotNull field to: C + public method (@org.jetbrains.annotations.NotNull p0: C, @org.jetbrains.annotations.NotNull p1: C): void + public final method getC(): int + public final @org.jetbrains.annotations.NotNull method getFrom(): C + public final @org.jetbrains.annotations.NotNull method getTo(): C + public final method hasNext(): boolean + public final @org.jetbrains.annotations.NotNull method next(): C + public final method setC(p0: int): void +} + + +public final class Range { + private final @org.jetbrains.annotations.NotNull field from: C + private final @org.jetbrains.annotations.NotNull field to: C + public method (@org.jetbrains.annotations.NotNull p0: C, @org.jetbrains.annotations.NotNull p1: C): void + public final @org.jetbrains.annotations.NotNull method getFrom(): C + public final @org.jetbrains.annotations.NotNull method getTo(): C + public final @org.jetbrains.annotations.NotNull method iterator(): It +} + + +public final class UnderscoreNamesKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method doTest(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/multiDecl/forRange/UnderscoreNamesDontCallComponent.txt b/compiler/testData/codegen/light-analysis/multiDecl/forRange/UnderscoreNamesDontCallComponent.txt new file mode 100644 index 00000000000..60483679e77 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/multiDecl/forRange/UnderscoreNamesDontCallComponent.txt @@ -0,0 +1,11 @@ +public final class A { + public method (): void + public final @org.jetbrains.annotations.NotNull method component1(): java.lang.String + public final @org.jetbrains.annotations.NotNull method component2(): java.lang.String + public final @org.jetbrains.annotations.NotNull method component3(): java.lang.String +} + + +public final class UnderscoreNamesDontCallComponentKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/multifileClasses/constPropertyReferenceFromMultifileClass.txt b/compiler/testData/codegen/light-analysis/multifileClasses/constPropertyReferenceFromMultifileClass.txt index f81ed4f901b..a47f7470300 100644 --- a/compiler/testData/codegen/light-analysis/multifileClasses/constPropertyReferenceFromMultifileClass.txt +++ b/compiler/testData/codegen/light-analysis/multifileClasses/constPropertyReferenceFromMultifileClass.txt @@ -8,7 +8,7 @@ public annotation class a/A public final class a/MultifileClass { public final static @org.jetbrains.annotations.NotNull field OK: java.lang.String - private synthetic deprecated final static @a.A method OK$annotations(): void + private synthetic deprecated static @a.A method OK$annotations(): void } diff --git a/compiler/testData/codegen/light-analysis/multifileClasses/optimized/overlappingFuns.txt b/compiler/testData/codegen/light-analysis/multifileClasses/optimized/overlappingFuns.txt index 35edd70bd36..5619f73127c 100644 --- a/compiler/testData/codegen/light-analysis/multifileClasses/optimized/overlappingFuns.txt +++ b/compiler/testData/codegen/light-analysis/multifileClasses/optimized/overlappingFuns.txt @@ -5,7 +5,6 @@ public final class BoxKt { public final class a/MultifileClass { public final static @org.jetbrains.annotations.NotNull method ok(): java.lang.String - public final static @org.jetbrains.annotations.NotNull method overlapping(): java.lang.String } @@ -16,7 +15,7 @@ synthetic final class a/MultifileClass__Part1Kt { synthetic final class a/MultifileClass__Part2Kt { public final static @org.jetbrains.annotations.NotNull method ok(): java.lang.String - public final static @org.jetbrains.annotations.NotNull method overlapping(): java.lang.String + private final static method overlapping$MultifileClass__Part2Kt(): java.lang.String } diff --git a/compiler/testData/codegen/light-analysis/multifileClasses/optimized/overlappingVals.txt b/compiler/testData/codegen/light-analysis/multifileClasses/optimized/overlappingVals.txt index 36d8dd97094..248864205a1 100644 --- a/compiler/testData/codegen/light-analysis/multifileClasses/optimized/overlappingVals.txt +++ b/compiler/testData/codegen/light-analysis/multifileClasses/optimized/overlappingVals.txt @@ -4,7 +4,7 @@ public final class BoxKt { public final class a/MultifileClass { - public final static @org.jetbrains.annotations.NotNull method getOverlapping(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method ok(): java.lang.String } @@ -15,8 +15,9 @@ synthetic final class a/MultifileClass__Part1Kt { synthetic final class a/MultifileClass__Part2Kt { - private final static @org.jetbrains.annotations.NotNull field overlapping: java.lang.String - public final static @org.jetbrains.annotations.NotNull method getOverlapping(): java.lang.String + private final static field overlapping: java.lang.String + private final static method getOverlapping$MultifileClass__Part2Kt(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method ok(): java.lang.String } diff --git a/compiler/testData/codegen/light-analysis/operatorConventions/operatorSetLambda.txt b/compiler/testData/codegen/light-analysis/operatorConventions/operatorSetLambda.txt new file mode 100644 index 00000000000..51aa35fcced --- /dev/null +++ b/compiler/testData/codegen/light-analysis/operatorConventions/operatorSetLambda.txt @@ -0,0 +1,16 @@ +public final class Obj { + public final static field INSTANCE: Obj + private static @org.jetbrains.annotations.NotNull field key: java.lang.String + private static @org.jetbrains.annotations.NotNull field value: java.lang.String + private method (): void + public final @org.jetbrains.annotations.NotNull method getKey(): java.lang.String + public final @org.jetbrains.annotations.NotNull method getValue(): java.lang.String + public final method set(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function1): void + public final method setKey(@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final method setValue(@org.jetbrains.annotations.NotNull p0: java.lang.String): void +} + + +public final class OperatorSetLambdaKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/properties/augmentedAssignmentsAndIncrements.txt b/compiler/testData/codegen/light-analysis/properties/augmentedAssignmentsAndIncrements.txt new file mode 100644 index 00000000000..0c0ccee4c4e --- /dev/null +++ b/compiler/testData/codegen/light-analysis/properties/augmentedAssignmentsAndIncrements.txt @@ -0,0 +1,31 @@ +public final class A { + public method (): void + public final method getC(): int + public final method setC(p0: int): void +} + + +public final class AugmentedAssignmentsAndIncrementsKt { + private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[] + private static field a: int + private final static @org.jetbrains.annotations.NotNull field f$delegate: SimpleDelegate + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method getA(): int + public final static method getB(): int + public final static method getD(@org.jetbrains.annotations.NotNull p0: A): int + public final static method getE(p0: int): int + public final static method getF(): int + public final static method setA(p0: int): void + public final static method setB(p0: int): void + public final static method setD(@org.jetbrains.annotations.NotNull p0: A, p1: int): void + public final static method setE(p0: int, p1: int): void + public final static method setF(p0: int): void +} + + +public final class SimpleDelegate { + public final static field INSTANCE: SimpleDelegate + private method (): void + public final method getValue(@org.jetbrains.annotations.Nullable p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.reflect.KProperty): int + public final method setValue(@org.jetbrains.annotations.Nullable p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.reflect.KProperty, p2: int): void +} diff --git a/compiler/testData/codegen/light-analysis/properties/twoAnnotatedExtensionPropertiesWithoutBackingFields.txt b/compiler/testData/codegen/light-analysis/properties/twoAnnotatedExtensionPropertiesWithoutBackingFields.txt index db6b69606ef..7fbfaec6fb8 100644 --- a/compiler/testData/codegen/light-analysis/properties/twoAnnotatedExtensionPropertiesWithoutBackingFields.txt +++ b/compiler/testData/codegen/light-analysis/properties/twoAnnotatedExtensionPropertiesWithoutBackingFields.txt @@ -4,8 +4,8 @@ public annotation class Anno public final class TwoAnnotatedExtensionPropertiesWithoutBackingFieldsKt { public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String - private synthetic deprecated final static @Anno method foo$annotations(p0: int): void - private synthetic deprecated final static @Anno method foo$annotations(p0: java.lang.String): void + private synthetic deprecated static @Anno method foo$annotations(p0: int): void + private synthetic deprecated static @Anno method foo$annotations(p0: java.lang.String): void public final static method getFoo(@org.jetbrains.annotations.NotNull p0: java.lang.String): int public final static method getFoo(p0: int): int } diff --git a/compiler/testData/codegen/light-analysis/properties/typeInferredFromGetter.txt b/compiler/testData/codegen/light-analysis/properties/typeInferredFromGetter.txt new file mode 100644 index 00000000000..c45c5e005b5 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/properties/typeInferredFromGetter.txt @@ -0,0 +1,10 @@ +public final class A { + public method (): void + public final @org.jetbrains.annotations.NotNull method getY(): java.lang.String +} + + +public final class TypeInferredFromGetterKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method getX(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/ranges/contains/inIntRange.txt b/compiler/testData/codegen/light-analysis/ranges/contains/inIntRange.txt new file mode 100644 index 00000000000..e100284fe83 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/ranges/contains/inIntRange.txt @@ -0,0 +1,7 @@ +public final class InIntRangeKt { + private static field invocationCounter: int + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method getInvocationCounter(): int + public final static method setInvocationCounter(p0: int): void + public final static method sideEffect(p0: int): int +} diff --git a/compiler/testData/codegen/light-analysis/ranges/forInIndices/forInCharSequenceIndices.txt b/compiler/testData/codegen/light-analysis/ranges/forInIndices/forInCharSequenceIndices.txt new file mode 100644 index 00000000000..00d700de506 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/ranges/forInIndices/forInCharSequenceIndices.txt @@ -0,0 +1,4 @@ +public final class ForInCharSequenceIndicesKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method test(@org.jetbrains.annotations.NotNull p0: java.lang.CharSequence): int +} diff --git a/compiler/testData/codegen/light-analysis/ranges/forInIndices/kt13241_CharSequence.txt b/compiler/testData/codegen/light-analysis/ranges/forInIndices/kt13241_CharSequence.txt new file mode 100644 index 00000000000..81ce0add97f --- /dev/null +++ b/compiler/testData/codegen/light-analysis/ranges/forInIndices/kt13241_CharSequence.txt @@ -0,0 +1,4 @@ +public final class Kt13241_CharSequenceKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method test(@org.jetbrains.annotations.NotNull p0: java.lang.Object): int +} diff --git a/compiler/testData/codegen/light-analysis/reflection/annotations/propertyWithoutBackingField.txt b/compiler/testData/codegen/light-analysis/reflection/annotations/propertyWithoutBackingField.txt index 49e4737530b..6967d942b49 100644 --- a/compiler/testData/codegen/light-analysis/reflection/annotations/propertyWithoutBackingField.txt +++ b/compiler/testData/codegen/light-analysis/reflection/annotations/propertyWithoutBackingField.txt @@ -7,5 +7,5 @@ public annotation class Ann { public final class PropertyWithoutBackingFieldKt { public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String public final static @org.jetbrains.annotations.NotNull method getProperty(): java.lang.String - private synthetic deprecated final static @Ann method property$annotations(): void + private synthetic deprecated static @Ann method property$annotations(): void } diff --git a/compiler/testData/codegen/light-analysis/reflection/annotations/simpleValAnnotation.txt b/compiler/testData/codegen/light-analysis/reflection/annotations/simpleValAnnotation.txt index 43a0622e7bc..123d628c5a3 100644 --- a/compiler/testData/codegen/light-analysis/reflection/annotations/simpleValAnnotation.txt +++ b/compiler/testData/codegen/light-analysis/reflection/annotations/simpleValAnnotation.txt @@ -8,6 +8,6 @@ public annotation class Simple { public final class SimpleValAnnotationKt { private final static field foo: int public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String - private synthetic deprecated final static @Simple method foo$annotations(): void + private synthetic deprecated static @Simple method foo$annotations(): void public final static method getFoo(): int } diff --git a/compiler/testData/codegen/light-analysis/reflection/call/bound/companionObjectPropertyAccessors.txt b/compiler/testData/codegen/light-analysis/reflection/call/bound/companionObjectPropertyAccessors.txt new file mode 100644 index 00000000000..e1b91754750 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/call/bound/companionObjectPropertyAccessors.txt @@ -0,0 +1,32 @@ +public final class CompanionObjectPropertyAccessorsKt { + private final static @org.jetbrains.annotations.NotNull field c_x: kotlin.reflect.KProperty0 + private final static @org.jetbrains.annotations.NotNull field c_xx: kotlin.reflect.KProperty0 + private final static @org.jetbrains.annotations.NotNull field c_y: kotlin.reflect.KMutableProperty0 + private final static @org.jetbrains.annotations.NotNull field c_yy: kotlin.reflect.KMutableProperty0 + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method getC_x(): kotlin.reflect.KProperty0 + public final static @org.jetbrains.annotations.NotNull method getC_xx(): kotlin.reflect.KProperty0 + public final static @org.jetbrains.annotations.NotNull method getC_y(): kotlin.reflect.KMutableProperty0 + public final static @org.jetbrains.annotations.NotNull method getC_yy(): kotlin.reflect.KMutableProperty0 +} + + +public final class Host { + public final static field Companion: Host.Companion + private final static field x: int + private static field y: int + inner class Host/Companion + public method (): void +} + + +public final static class Host/Companion { + inner class Host/Companion + private method (): void + public final method getX(): int + public final method getXx(): int + public final method getY(): int + public final method getYy(): int + public final method setY(p0: int): void + public final method setYy(p0: int): void +} diff --git a/compiler/testData/codegen/light-analysis/reflection/call/bound/extensionFunction.txt b/compiler/testData/codegen/light-analysis/reflection/call/bound/extensionFunction.txt new file mode 100644 index 00000000000..daaaa362e4a --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/call/bound/extensionFunction.txt @@ -0,0 +1,5 @@ +public final class ExtensionFunctionKt { + public final static @org.jetbrains.annotations.NotNull method bar(@org.jetbrains.annotations.Nullable p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: java.lang.String): java.lang.String + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: java.lang.String): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/call/bound/extensionPropertyAccessors.txt b/compiler/testData/codegen/light-analysis/reflection/call/bound/extensionPropertyAccessors.txt new file mode 100644 index 00000000000..5cf3372fce0 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/call/bound/extensionPropertyAccessors.txt @@ -0,0 +1,24 @@ +public final class C { + private final field x: int + private field y: int + public method (p0: int, p1: int): void + public final method getX(): int + public final method getY(): int + public final method setY(p0: int): void +} + + +public final class ExtensionPropertyAccessorsKt { + private final static @org.jetbrains.annotations.NotNull field c: C + private final static @org.jetbrains.annotations.NotNull field c_xx: kotlin.reflect.KProperty0 + private final static @org.jetbrains.annotations.NotNull field c_y: kotlin.reflect.KMutableProperty0 + private final static @org.jetbrains.annotations.NotNull field c_yy: kotlin.reflect.KMutableProperty0 + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method getC(): C + public final static @org.jetbrains.annotations.NotNull method getC_xx(): kotlin.reflect.KProperty0 + public final static @org.jetbrains.annotations.NotNull method getC_y(): kotlin.reflect.KMutableProperty0 + public final static @org.jetbrains.annotations.NotNull method getC_yy(): kotlin.reflect.KMutableProperty0 + public final static method getXx(@org.jetbrains.annotations.NotNull p0: C): int + public final static method getYy(@org.jetbrains.annotations.NotNull p0: C): int + public final static method setYy(@org.jetbrains.annotations.NotNull p0: C, p1: int): void +} diff --git a/compiler/testData/codegen/light-analysis/reflection/call/bound/innerClassConstructor.txt b/compiler/testData/codegen/light-analysis/reflection/call/bound/innerClassConstructor.txt new file mode 100644 index 00000000000..d47f851ef69 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/call/bound/innerClassConstructor.txt @@ -0,0 +1,21 @@ +public final class InnerClassConstructorKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} + + +public final class Outer { + private final @org.jetbrains.annotations.NotNull field x: java.lang.String + inner class Outer/Inner + public method (@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final @org.jetbrains.annotations.NotNull method getX(): java.lang.String +} + + +public final class Outer/Inner { + synthetic final field this$0: Outer + private final @org.jetbrains.annotations.NotNull field y: java.lang.String + inner class Outer/Inner + public method (@java.lang.Synthetic p0: Outer, @org.jetbrains.annotations.NotNull p1: java.lang.String): void + public final @org.jetbrains.annotations.NotNull method foo(): java.lang.String + public final @org.jetbrains.annotations.NotNull method getY(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/call/bound/javaInstanceField.txt b/compiler/testData/codegen/light-analysis/reflection/call/bound/javaInstanceField.txt new file mode 100644 index 00000000000..33d7cadb999 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/call/bound/javaInstanceField.txt @@ -0,0 +1,3 @@ +public final class KKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/call/bound/javaInstanceMethod.txt b/compiler/testData/codegen/light-analysis/reflection/call/bound/javaInstanceMethod.txt new file mode 100644 index 00000000000..33d7cadb999 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/call/bound/javaInstanceMethod.txt @@ -0,0 +1,3 @@ +public final class KKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/call/bound/jvmStaticCompanionObjectPropertyAccessors.txt b/compiler/testData/codegen/light-analysis/reflection/call/bound/jvmStaticCompanionObjectPropertyAccessors.txt new file mode 100644 index 00000000000..974ba194620 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/call/bound/jvmStaticCompanionObjectPropertyAccessors.txt @@ -0,0 +1,42 @@ +public final class Host { + public final static field Companion: Host.Companion + private final static field x: int + private static field y: int + inner class Host/Companion + public method (): void + public final static method getX(): int + public final static method getXx(): int + public final static method getY(): int + public final static method getYy(): int + public final static method setY(p0: int): void + public final static method setYy(p0: int): void +} + + +public final static class Host/Companion { + inner class Host/Companion + private method (): void + public final method getX(): int + public final method getXx(): int + public final method getY(): int + public final method getYy(): int + public final method setY(p0: int): void + public final method setYy(p0: int): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method x$annotations(): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method xx$annotations(): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method y$annotations(): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method yy$annotations(): void +} + + +public final class JvmStaticCompanionObjectPropertyAccessorsKt { + private final static @org.jetbrains.annotations.NotNull field c_x: kotlin.reflect.KProperty0 + private final static @org.jetbrains.annotations.NotNull field c_xx: kotlin.reflect.KProperty0 + private final static @org.jetbrains.annotations.NotNull field c_y: kotlin.reflect.KMutableProperty0 + private final static @org.jetbrains.annotations.NotNull field c_yy: kotlin.reflect.KMutableProperty0 + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method getC_x(): kotlin.reflect.KProperty0 + public final static @org.jetbrains.annotations.NotNull method getC_xx(): kotlin.reflect.KProperty0 + public final static @org.jetbrains.annotations.NotNull method getC_y(): kotlin.reflect.KMutableProperty0 + public final static @org.jetbrains.annotations.NotNull method getC_yy(): kotlin.reflect.KMutableProperty0 +} diff --git a/compiler/testData/codegen/light-analysis/reflection/call/bound/jvmStaticObjectFunction.txt b/compiler/testData/codegen/light-analysis/reflection/call/bound/jvmStaticObjectFunction.txt new file mode 100644 index 00000000000..e1c5178689d --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/call/bound/jvmStaticObjectFunction.txt @@ -0,0 +1,25 @@ +public final class CompanionOwner { + public final static field Companion: CompanionOwner.Companion + inner class CompanionOwner/Companion + public method (): void + public final static @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull method bar(@org.jetbrains.annotations.NotNull p0: java.lang.String): java.lang.String +} + + +public final static class CompanionOwner/Companion { + inner class CompanionOwner/Companion + private method (): void + public final @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull method bar(@org.jetbrains.annotations.NotNull p0: java.lang.String): java.lang.String +} + + +public final class Host { + public final static field INSTANCE: Host + private method (): void + public final static @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: java.lang.String): java.lang.String +} + + +public final class JvmStaticObjectFunctionKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/call/bound/jvmStaticObjectPropertyAccessors.txt b/compiler/testData/codegen/light-analysis/reflection/call/bound/jvmStaticObjectPropertyAccessors.txt new file mode 100644 index 00000000000..fe06aa7aa6d --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/call/bound/jvmStaticObjectPropertyAccessors.txt @@ -0,0 +1,29 @@ +public final class Host { + public final static field INSTANCE: Host + private final static field x: int + private static field y: int + private method (): void + public final static method getX(): int + public final static method getXx(): int + public final static method getY(): int + public final static method getYy(): int + public final static method setY(p0: int): void + public final static method setYy(p0: int): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method x$annotations(): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method xx$annotations(): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method y$annotations(): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method yy$annotations(): void +} + + +public final class JvmStaticObjectPropertyAccessorsKt { + private final static @org.jetbrains.annotations.NotNull field c_x: kotlin.reflect.KProperty0 + private final static @org.jetbrains.annotations.NotNull field c_xx: kotlin.reflect.KProperty0 + private final static @org.jetbrains.annotations.NotNull field c_y: kotlin.reflect.KMutableProperty0 + private final static @org.jetbrains.annotations.NotNull field c_yy: kotlin.reflect.KMutableProperty0 + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method getC_x(): kotlin.reflect.KProperty0 + public final static @org.jetbrains.annotations.NotNull method getC_xx(): kotlin.reflect.KProperty0 + public final static @org.jetbrains.annotations.NotNull method getC_y(): kotlin.reflect.KMutableProperty0 + public final static @org.jetbrains.annotations.NotNull method getC_yy(): kotlin.reflect.KMutableProperty0 +} diff --git a/compiler/testData/codegen/light-analysis/reflection/call/bound/memberFunction.txt b/compiler/testData/codegen/light-analysis/reflection/call/bound/memberFunction.txt new file mode 100644 index 00000000000..e18e9bbb951 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/call/bound/memberFunction.txt @@ -0,0 +1,11 @@ +public final class C { + private final @org.jetbrains.annotations.NotNull field k: java.lang.String + public method (@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: java.lang.String): java.lang.String + public final @org.jetbrains.annotations.NotNull method getK(): java.lang.String +} + + +public final class MemberFunctionKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/call/bound/memberPropertyAccessors.txt b/compiler/testData/codegen/light-analysis/reflection/call/bound/memberPropertyAccessors.txt new file mode 100644 index 00000000000..fb49e9f048f --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/call/bound/memberPropertyAccessors.txt @@ -0,0 +1,26 @@ +public final class C { + private final field x: int + private field y: int + public method (p0: int, p1: int): void + public final method getX(): int + public final method getXx(): int + public final method getY(): int + public final method getYy(): int + public final method setY(p0: int): void + public final method setYy(p0: int): void +} + + +public final class MemberPropertyAccessorsKt { + private final static @org.jetbrains.annotations.NotNull field c: C + private final static @org.jetbrains.annotations.NotNull field c_x: kotlin.reflect.KProperty0 + private final static @org.jetbrains.annotations.NotNull field c_xx: kotlin.reflect.KProperty0 + private final static @org.jetbrains.annotations.NotNull field c_y: kotlin.reflect.KMutableProperty0 + private final static @org.jetbrains.annotations.NotNull field c_yy: kotlin.reflect.KMutableProperty0 + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method getC(): C + public final static @org.jetbrains.annotations.NotNull method getC_x(): kotlin.reflect.KProperty0 + public final static @org.jetbrains.annotations.NotNull method getC_xx(): kotlin.reflect.KProperty0 + public final static @org.jetbrains.annotations.NotNull method getC_y(): kotlin.reflect.KMutableProperty0 + public final static @org.jetbrains.annotations.NotNull method getC_yy(): kotlin.reflect.KMutableProperty0 +} diff --git a/compiler/testData/codegen/light-analysis/reflection/call/bound/objectFunction.txt b/compiler/testData/codegen/light-analysis/reflection/call/bound/objectFunction.txt new file mode 100644 index 00000000000..51b955d5cec --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/call/bound/objectFunction.txt @@ -0,0 +1,24 @@ +public final class CompanionOwner { + public final static field Companion: CompanionOwner.Companion + inner class CompanionOwner/Companion + public method (): void +} + + +public final static class CompanionOwner/Companion { + inner class CompanionOwner/Companion + private method (): void + public final @org.jetbrains.annotations.NotNull method bar(@org.jetbrains.annotations.NotNull p0: java.lang.String): java.lang.String +} + + +public final class Host { + public final static field INSTANCE: Host + private method (): void + public final @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: java.lang.String): java.lang.String +} + + +public final class ObjectFunctionKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/call/bound/objectPropertyAccessors.txt b/compiler/testData/codegen/light-analysis/reflection/call/bound/objectPropertyAccessors.txt new file mode 100644 index 00000000000..e260612118e --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/call/bound/objectPropertyAccessors.txt @@ -0,0 +1,25 @@ +public final class Host { + public final static field INSTANCE: Host + private final static field x: int + private static field y: int + private method (): void + public final method getX(): int + public final method getXx(): int + public final method getY(): int + public final method getYy(): int + public final method setY(p0: int): void + public final method setYy(p0: int): void +} + + +public final class ObjectPropertyAccessorsKt { + private final static @org.jetbrains.annotations.NotNull field c_x: kotlin.reflect.KProperty0 + private final static @org.jetbrains.annotations.NotNull field c_xx: kotlin.reflect.KProperty0 + private final static @org.jetbrains.annotations.NotNull field c_y: kotlin.reflect.KMutableProperty0 + private final static @org.jetbrains.annotations.NotNull field c_yy: kotlin.reflect.KMutableProperty0 + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method getC_x(): kotlin.reflect.KProperty0 + public final static @org.jetbrains.annotations.NotNull method getC_xx(): kotlin.reflect.KProperty0 + public final static @org.jetbrains.annotations.NotNull method getC_y(): kotlin.reflect.KMutableProperty0 + public final static @org.jetbrains.annotations.NotNull method getC_yy(): kotlin.reflect.KMutableProperty0 +} diff --git a/compiler/testData/codegen/light-analysis/reflection/call/disallowNullValueForNotNullField.txt b/compiler/testData/codegen/light-analysis/reflection/call/disallowNullValueForNotNullField.txt index 42cc540c694..1016fa3e97e 100644 --- a/compiler/testData/codegen/light-analysis/reflection/call/disallowNullValueForNotNullField.txt +++ b/compiler/testData/codegen/light-analysis/reflection/call/disallowNullValueForNotNullField.txt @@ -20,5 +20,5 @@ public final class O { public final static field INSTANCE: O private static field bar: java.lang.String private method (): void - private synthetic deprecated final static @kotlin.jvm.JvmStatic method bar$annotations(): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method bar$annotations(): void } diff --git a/compiler/testData/codegen/light-analysis/reflection/call/incorrectNumberOfArguments.txt b/compiler/testData/codegen/light-analysis/reflection/call/incorrectNumberOfArguments.txt index a480b9b6075..55a90ad5e49 100644 --- a/compiler/testData/codegen/light-analysis/reflection/call/incorrectNumberOfArguments.txt +++ b/compiler/testData/codegen/light-analysis/reflection/call/incorrectNumberOfArguments.txt @@ -20,7 +20,7 @@ public final class O { public final static field INSTANCE: O private static field baz: java.lang.String private method (): void - private synthetic deprecated final static @kotlin.jvm.JvmStatic method baz$annotations(): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method baz$annotations(): void public final static @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull method getBaz(): kotlin.reflect.KMutableProperty public final @org.jetbrains.annotations.NotNull method getGetBaz(): kotlin.reflect.KFunction } diff --git a/compiler/testData/codegen/light-analysis/reflection/callBy/boundExtensionFunction.txt b/compiler/testData/codegen/light-analysis/reflection/callBy/boundExtensionFunction.txt new file mode 100644 index 00000000000..138e0daf60f --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/callBy/boundExtensionFunction.txt @@ -0,0 +1,5 @@ +public final class BoundExtensionFunctionKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public synthetic static method extFun$default(p0: java.lang.String, p1: java.lang.String, p2: java.lang.String, p3: int, p4: java.lang.Object): java.lang.String + public final static @org.jetbrains.annotations.NotNull method extFun(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: java.lang.String, @org.jetbrains.annotations.NotNull p2: java.lang.String): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/callBy/boundExtensionPropertyAcessor.txt b/compiler/testData/codegen/light-analysis/reflection/callBy/boundExtensionPropertyAcessor.txt new file mode 100644 index 00000000000..4ae0cb8036b --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/callBy/boundExtensionPropertyAcessor.txt @@ -0,0 +1,4 @@ +public final class BoundExtensionPropertyAcessorKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method getPlusK(@org.jetbrains.annotations.NotNull p0: java.lang.String): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/callBy/boundJvmStaticInObject.txt b/compiler/testData/codegen/light-analysis/reflection/callBy/boundJvmStaticInObject.txt new file mode 100644 index 00000000000..daac3740940 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/callBy/boundJvmStaticInObject.txt @@ -0,0 +1,11 @@ +public final class BoundJvmStaticInObjectKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} + + +public final class Host { + public final static field INSTANCE: Host + private method (): void + public synthetic static method concat$default(p0: java.lang.String, p1: java.lang.String, p2: java.lang.String, p3: java.lang.String, p4: int, p5: java.lang.Object): java.lang.String + public final static @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull method concat(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: java.lang.String, @org.jetbrains.annotations.NotNull p2: java.lang.String, @org.jetbrains.annotations.NotNull p3: java.lang.String): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/classes/createInstance.txt b/compiler/testData/codegen/light-analysis/reflection/classes/createInstance.txt new file mode 100644 index 00000000000..acc4c8db68c --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/classes/createInstance.txt @@ -0,0 +1,92 @@ +public final class CreateInstanceKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + private final static method test(): void + private final static method testFail(): void +} + + +public final class DefaultPrimaryAndDefaultSecondary { + private final @org.jetbrains.annotations.NotNull field s: java.lang.String + public method (): void + public method (@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public method (p0: int): void + public synthetic method (p0: int, p1: int, p2: kotlin.jvm.internal.DefaultConstructorMarker): void + public synthetic method (p0: java.lang.String, p1: int, p2: kotlin.jvm.internal.DefaultConstructorMarker): void + public final @org.jetbrains.annotations.NotNull method getS(): java.lang.String +} + + +public final class NoArgAndDefault { + public method (): void + public method (p0: int): void + public synthetic method (p0: int, p1: int, p2: kotlin.jvm.internal.DefaultConstructorMarker): void +} + + +public final class NoNoArgConstructor { + private final @org.jetbrains.annotations.NotNull field s: java.lang.String + public method (@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public method (p0: int): void + public final @org.jetbrains.annotations.NotNull method getS(): java.lang.String +} + + +public final class Object { + public final static field INSTANCE: Object + private method (): void +} + + +public final class PrimaryWithDefaults { + private final @org.jetbrains.annotations.NotNull field d1: java.lang.String + private final field d2: int + public method (): void + public method (@org.jetbrains.annotations.NotNull p0: java.lang.String, p1: int): void + public synthetic method (p0: java.lang.String, p1: int, p2: int, p3: kotlin.jvm.internal.DefaultConstructorMarker): void + public final @org.jetbrains.annotations.NotNull method getD1(): java.lang.String + public final method getD2(): int +} + + +public final class PrivateConstructor { + private method (): void +} + + +public final class Secondary { + private final @org.jetbrains.annotations.NotNull field s: java.lang.String + public method (): void + public method (@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final @org.jetbrains.annotations.NotNull method getS(): java.lang.String +} + + +public final class SecondaryWithDefaults { + private final @org.jetbrains.annotations.NotNull field s: java.lang.String + public method (@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public method (p0: int): void + public synthetic method (p0: int, p1: int, p2: kotlin.jvm.internal.DefaultConstructorMarker): void + public final @org.jetbrains.annotations.NotNull method getS(): java.lang.String +} + + +public final class SecondaryWithDefaultsNoPrimary { + public method (@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public method (p0: int): void + public synthetic method (p0: java.lang.String, p1: int, p2: kotlin.jvm.internal.DefaultConstructorMarker): void +} + + +public final class SeveralDefaultSecondaries { + public method (@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public method (p0: double): void + public synthetic method (p0: double, p1: int, p2: kotlin.jvm.internal.DefaultConstructorMarker): void + public method (p0: int): void + public synthetic method (p0: int, p1: int, p2: kotlin.jvm.internal.DefaultConstructorMarker): void + public synthetic method (p0: java.lang.String, p1: int, p2: kotlin.jvm.internal.DefaultConstructorMarker): void +} + + +public final class Simple { + public method (): void +} diff --git a/compiler/testData/codegen/light-analysis/reflection/classes/declaredMembers.txt b/compiler/testData/codegen/light-analysis/reflection/classes/declaredMembers.txt new file mode 100644 index 00000000000..181a6bdf0c7 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/classes/declaredMembers.txt @@ -0,0 +1,25 @@ +public class K { + private final field privateKProp: kotlin.Unit + private @org.jetbrains.annotations.NotNull field publicKProp: kotlin.Unit + public method (): void + public final @org.jetbrains.annotations.NotNull method getPublicKProp(): kotlin.Unit + private final method privateKFun(): void + public method publicKFun(): void + public final method setPublicKProp(@org.jetbrains.annotations.NotNull p0: kotlin.Unit): void +} + + +public final class KKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + private final static method test(p0: java.lang.String[]): void +} + + +public final class L { + private field privateLProp: kotlin.Unit + private final @org.jetbrains.annotations.NotNull field publicLProp: kotlin.Unit + public method (): void + public final @org.jetbrains.annotations.NotNull method getPublicLProp(): kotlin.Unit + private final method privateLFun(): void + public final method publicLFun(): void +} diff --git a/compiler/testData/codegen/light-analysis/reflection/classes/starProjectedType.txt b/compiler/testData/codegen/light-analysis/reflection/classes/starProjectedType.txt new file mode 100644 index 00000000000..815765afeb3 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/classes/starProjectedType.txt @@ -0,0 +1,8 @@ +public final class Foo { + public method (): void +} + + +public final class StarProjectedTypeKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/constructors/annotationClass.txt b/compiler/testData/codegen/light-analysis/reflection/constructors/annotationClass.txt new file mode 100644 index 00000000000..e2a2a466b01 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/constructors/annotationClass.txt @@ -0,0 +1,13 @@ +@java.lang.annotation.Retention +public annotation class A1 + +@java.lang.annotation.Retention +public annotation class A2 { + public abstract method k(): java.lang.Class + public abstract method s(): A1 +} + + +public final class AnnotationClassKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/constructors/classesWithoutConstructors.txt b/compiler/testData/codegen/light-analysis/reflection/constructors/classesWithoutConstructors.txt index 27649e576f8..2b99067d212 100644 --- a/compiler/testData/codegen/light-analysis/reflection/constructors/classesWithoutConstructors.txt +++ b/compiler/testData/codegen/light-analysis/reflection/constructors/classesWithoutConstructors.txt @@ -1,9 +1,3 @@ -@java.lang.annotation.Retention -public annotation class Anno { - public abstract method x(): int -} - - public final class C { public final static field Companion: C.Companion inner class C/Companion diff --git a/compiler/testData/codegen/light-analysis/reflection/createAnnotation/annotationType.txt b/compiler/testData/codegen/light-analysis/reflection/createAnnotation/annotationType.txt new file mode 100644 index 00000000000..ea1551bc391 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/createAnnotation/annotationType.txt @@ -0,0 +1,6 @@ +public final class AnnotationTypeKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} + +@java.lang.annotation.Retention +public annotation class Foo diff --git a/compiler/testData/codegen/light-analysis/reflection/createAnnotation/arrayOfKClasses.txt b/compiler/testData/codegen/light-analysis/reflection/createAnnotation/arrayOfKClasses.txt new file mode 100644 index 00000000000..46de799e7a7 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/createAnnotation/arrayOfKClasses.txt @@ -0,0 +1,9 @@ +@java.lang.annotation.Retention +public annotation class Anno { + public abstract method klasses(): java.lang.Class[] +} + + +public final class ArrayOfKClassesKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/createAnnotation/callByJava.txt b/compiler/testData/codegen/light-analysis/reflection/createAnnotation/callByJava.txt new file mode 100644 index 00000000000..24262548349 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/createAnnotation/callByJava.txt @@ -0,0 +1,5 @@ +public final class KKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + private final static method create(): java.lang.annotation.Annotation + private final static method create(p0: java.util.Map): java.lang.annotation.Annotation +} diff --git a/compiler/testData/codegen/light-analysis/reflection/createAnnotation/callByKotlin.txt b/compiler/testData/codegen/light-analysis/reflection/createAnnotation/callByKotlin.txt new file mode 100644 index 00000000000..a5439b361e1 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/createAnnotation/callByKotlin.txt @@ -0,0 +1,36 @@ +public final class CallByKotlinKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + private final static method create(): java.lang.annotation.Annotation + private final static method create(p0: java.util.Map): java.lang.annotation.Annotation +} + +@java.lang.annotation.Retention +public annotation class NoParams + +@java.lang.annotation.Retention +public annotation class OneDefault { + public abstract method s(): java.lang.String +} + +@java.lang.annotation.Retention +public annotation class OneNonDefault { + public abstract method s(): java.lang.String +} + +@java.lang.annotation.Retention +public annotation class TwoNonDefaults { + public abstract method klass(): java.lang.Class + public abstract method string(): java.lang.String +} + +@java.lang.annotation.Retention +public annotation class TwoParamsOneDefault { + public abstract method s(): java.lang.String + public abstract method x(): int +} + +@java.lang.annotation.Retention +public annotation class TwoParamsOneDefaultKClass { + public abstract method klass(): java.lang.Class + public abstract method string(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/createAnnotation/callJava.txt b/compiler/testData/codegen/light-analysis/reflection/createAnnotation/callJava.txt new file mode 100644 index 00000000000..54f9357c996 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/createAnnotation/callJava.txt @@ -0,0 +1,4 @@ +public final class KKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + private final static method create(p0: java.lang.Object[]): java.lang.annotation.Annotation +} diff --git a/compiler/testData/codegen/light-analysis/reflection/createAnnotation/callKotlin.txt b/compiler/testData/codegen/light-analysis/reflection/createAnnotation/callKotlin.txt new file mode 100644 index 00000000000..9ed3e4bc6c3 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/createAnnotation/callKotlin.txt @@ -0,0 +1,18 @@ +public final class CallKotlinKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + private final static method create(p0: java.lang.Object[]): java.lang.annotation.Annotation +} + +@java.lang.annotation.Retention +public annotation class NoParams + +@java.lang.annotation.Retention +public annotation class OneDefault { + public abstract method s(): java.lang.String +} + +@java.lang.annotation.Retention +public annotation class TwoNonDefaults { + public abstract method klass(): java.lang.Class + public abstract method string(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/createAnnotation/createJdkAnnotationInstance.txt b/compiler/testData/codegen/light-analysis/reflection/createAnnotation/createJdkAnnotationInstance.txt new file mode 100644 index 00000000000..f5a2dd0e924 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/createAnnotation/createJdkAnnotationInstance.txt @@ -0,0 +1,3 @@ +public final class CreateJdkAnnotationInstanceKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/createAnnotation/enumKClassAnnotation.txt b/compiler/testData/codegen/light-analysis/reflection/createAnnotation/enumKClassAnnotation.txt new file mode 100644 index 00000000000..a3084992597 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/createAnnotation/enumKClassAnnotation.txt @@ -0,0 +1,20 @@ +@java.lang.annotation.Retention +public annotation class Anno { + public abstract method foo(): Foo + public abstract method foos(): Foo[] + public abstract method klass(): java.lang.Class + public abstract method klasses(): java.lang.Class[] + public abstract method level(): kotlin.DeprecationLevel + public abstract method levels(): kotlin.DeprecationLevel[] +} + + +public final class EnumKClassAnnotationKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @Anno method foo(): void +} + +@java.lang.annotation.Retention +public annotation class Foo { + public abstract method value(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/createAnnotation/equalsHashCodeToString.txt b/compiler/testData/codegen/light-analysis/reflection/createAnnotation/equalsHashCodeToString.txt new file mode 100644 index 00000000000..e92dc2e3a76 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/createAnnotation/equalsHashCodeToString.txt @@ -0,0 +1,13 @@ +@java.lang.annotation.Retention +public annotation class test/A + +@java.lang.annotation.Retention +public annotation class test/B { + public abstract method s(): java.lang.String +} + + +public final class test/EqualsHashCodeToStringKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @test.A @test.B method javaReflectionAnnotationInstances(): void +} diff --git a/compiler/testData/codegen/light-analysis/reflection/createAnnotation/floatingPointParameters.txt b/compiler/testData/codegen/light-analysis/reflection/createAnnotation/floatingPointParameters.txt new file mode 100644 index 00000000000..5ad103fcb13 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/createAnnotation/floatingPointParameters.txt @@ -0,0 +1,20 @@ +@java.lang.annotation.Retention +public annotation class D { + public abstract method d(): double +} + +@java.lang.annotation.Retention +public annotation class F { + public abstract method f(): float +} + + +public final class FloatingPointParametersKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method check(@org.jetbrains.annotations.NotNull p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: java.lang.Object): void + public final static method checkNot(@org.jetbrains.annotations.NotNull p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: java.lang.Object): void + public final static @D method dMinusZero(): void + public final static @D method dPlusZero(): void + public final static @F method fMinusZero(): void + public final static @F method fPlusZero(): void +} diff --git a/compiler/testData/codegen/light-analysis/reflection/createAnnotation/parameterNamedEquals.txt b/compiler/testData/codegen/light-analysis/reflection/createAnnotation/parameterNamedEquals.txt new file mode 100644 index 00000000000..42514b1bbc2 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/createAnnotation/parameterNamedEquals.txt @@ -0,0 +1,9 @@ +@java.lang.annotation.Retention +public annotation class Anno { + public abstract method equals(): boolean +} + + +public final class ParameterNamedEqualsKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/createAnnotation/primitivesAndArrays.txt b/compiler/testData/codegen/light-analysis/reflection/createAnnotation/primitivesAndArrays.txt new file mode 100644 index 00000000000..68056763af8 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/createAnnotation/primitivesAndArrays.txt @@ -0,0 +1,27 @@ +@java.lang.annotation.Retention +public annotation class Anno { + public abstract method b(): byte + public abstract method ba(): byte[] + public abstract method c(): char + public abstract method ca(): char[] + public abstract method d(): double + public abstract method da(): double[] + public abstract method f(): float + public abstract method fa(): float[] + public abstract method i(): int + public abstract method ia(): int[] + public abstract method j(): long + public abstract method ja(): long[] + public abstract method s(): short + public abstract method sa(): short[] + public abstract method str(): java.lang.String + public abstract method stra(): java.lang.String[] + public abstract method z(): boolean + public abstract method za(): boolean[] +} + + +public final class PrimitivesAndArraysKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @Anno method foo(): void +} diff --git a/compiler/testData/codegen/light-analysis/reflection/functions/instanceOfFunction.txt b/compiler/testData/codegen/light-analysis/reflection/functions/instanceOfFunction.txt new file mode 100644 index 00000000000..26912383d5d --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/functions/instanceOfFunction.txt @@ -0,0 +1,9 @@ +public final class Foo { + public method (): void + public final method bar(p0: int): int +} + + +public final class TestKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/isInstance/isInstanceCastAndSafeCast.txt b/compiler/testData/codegen/light-analysis/reflection/isInstance/isInstanceCastAndSafeCast.txt new file mode 100644 index 00000000000..e86b6923b2d --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/isInstance/isInstanceCastAndSafeCast.txt @@ -0,0 +1,5 @@ +public final class IsInstanceCastAndSafeCastKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method testInstance(@org.jetbrains.annotations.Nullable p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.reflect.KClass): void + public final static method testNotInstance(@org.jetbrains.annotations.Nullable p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.reflect.KClass): void +} diff --git a/compiler/testData/codegen/light-analysis/reflection/mapping/types/annotationConstructorParameters.txt b/compiler/testData/codegen/light-analysis/reflection/mapping/types/annotationConstructorParameters.txt new file mode 100644 index 00000000000..0339b20eac7 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/mapping/types/annotationConstructorParameters.txt @@ -0,0 +1,28 @@ +@java.lang.annotation.Retention +public annotation class Anno { + public abstract method b(): byte + public abstract method e(): E + public abstract method es(): E[] + public abstract method k(): java.lang.Class + public abstract method ka(): java.lang.Class[] + public abstract method s(): java.lang.String + public abstract method ss(): java.lang.String[] + public abstract method z(): Z + public abstract method zs(): Z[] +} + + +public final class AnnotationConstructorParametersKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method tmp(): java.lang.Class[] +} + + +public enum class E { + protected method (p0: java.lang.String, p1: int): void + public static method valueOf(p0: java.lang.String): E + public static method values(): E[] +} + +@java.lang.annotation.Retention +public annotation class Z diff --git a/compiler/testData/codegen/light-analysis/reflection/mapping/types/genericArrayElementType.txt b/compiler/testData/codegen/light-analysis/reflection/mapping/types/genericArrayElementType.txt new file mode 100644 index 00000000000..8972cb15157 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/mapping/types/genericArrayElementType.txt @@ -0,0 +1,14 @@ +public final class Bar { + public method (): void +} + + +public final class GenericArrayElementTypeKt { + public final static @org.jetbrains.annotations.NotNull method arrayOfInBar(): java.lang.Object[] + public final static @org.jetbrains.annotations.NotNull method arrayOfInList(): java.lang.Object[] + public final static @org.jetbrains.annotations.NotNull method arrayOfInvBar(): Bar[] + public final static @org.jetbrains.annotations.NotNull method arrayOfInvList(): java.util.List[] + public final static @org.jetbrains.annotations.NotNull method arrayOfOutBar(): Bar[] + public final static @org.jetbrains.annotations.NotNull method arrayOfOutList(): java.util.List[] + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/mapping/types/innerGenericTypeArgument.txt b/compiler/testData/codegen/light-analysis/reflection/mapping/types/innerGenericTypeArgument.txt new file mode 100644 index 00000000000..95ec6c36f18 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/mapping/types/innerGenericTypeArgument.txt @@ -0,0 +1,26 @@ +public final class InnerGenericTypeArgumentKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method foo(): Outer.Inner.Innermost +} + + +public final class Outer { + inner class Outer/Inner + public method (): void +} + + +public final class Outer/Inner { + synthetic final field this$0: Outer + inner class Outer/Inner + inner class Outer/Inner/Innermost + public method (p0: Outer): void +} + + +public final class Outer/Inner/Innermost { + synthetic final field this$0: Outer.Inner + inner class Outer/Inner + inner class Outer/Inner/Innermost + public method (p0: Outer.Inner): void +} diff --git a/compiler/testData/codegen/light-analysis/reflection/mapping/types/parameterizedTypeArgument.txt b/compiler/testData/codegen/light-analysis/reflection/mapping/types/parameterizedTypeArgument.txt new file mode 100644 index 00000000000..daa97fd7f2d --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/mapping/types/parameterizedTypeArgument.txt @@ -0,0 +1,17 @@ +public final class Bar { + public method (): void +} + + +public final class Foo { + public method (): void +} + + +public final class ParameterizedTypeArgumentKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method fooOfInBar(): Foo + public final static @org.jetbrains.annotations.NotNull method fooOfInvBar(): Foo + public final static @org.jetbrains.annotations.NotNull method fooOfOutBar(): Foo + public final static @org.jetbrains.annotations.NotNull method listOfStrings(): java.util.List +} diff --git a/compiler/testData/codegen/light-analysis/reflection/mapping/types/parameterizedTypes.txt b/compiler/testData/codegen/light-analysis/reflection/mapping/types/parameterizedTypes.txt index 4b43b69a01f..1902153d03f 100644 --- a/compiler/testData/codegen/light-analysis/reflection/mapping/types/parameterizedTypes.txt +++ b/compiler/testData/codegen/light-analysis/reflection/mapping/types/parameterizedTypes.txt @@ -8,7 +8,7 @@ public final class O { public final static field INSTANCE: O private static field bar: java.util.List private method (): void - private synthetic deprecated final static @kotlin.jvm.JvmStatic method bar$annotations(): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method bar$annotations(): void } diff --git a/compiler/testData/codegen/light-analysis/reflection/mapping/types/propertyAccessors.txt b/compiler/testData/codegen/light-analysis/reflection/mapping/types/propertyAccessors.txt index fb4dc0d57b8..85be7a99d1c 100644 --- a/compiler/testData/codegen/light-analysis/reflection/mapping/types/propertyAccessors.txt +++ b/compiler/testData/codegen/light-analysis/reflection/mapping/types/propertyAccessors.txt @@ -8,7 +8,7 @@ public final class O { public final static field INSTANCE: O private static field bar: java.lang.String private method (): void - private synthetic deprecated final static @kotlin.jvm.JvmStatic method bar$annotations(): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method bar$annotations(): void } diff --git a/compiler/testData/codegen/light-analysis/reflection/mapping/types/rawTypeArgument.txt b/compiler/testData/codegen/light-analysis/reflection/mapping/types/rawTypeArgument.txt new file mode 100644 index 00000000000..33d7cadb999 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/mapping/types/rawTypeArgument.txt @@ -0,0 +1,3 @@ +public final class KKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/mapping/types/supertypes.txt b/compiler/testData/codegen/light-analysis/reflection/mapping/types/supertypes.txt new file mode 100644 index 00000000000..06b6b924b73 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/mapping/types/supertypes.txt @@ -0,0 +1,19 @@ +public final class A { + public method (): void +} + + +public interface Interface + + +public interface Interface2 + + +public class Klass { + public method (): void +} + + +public final class SupertypesKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/mapping/types/withNullability.txt b/compiler/testData/codegen/light-analysis/reflection/mapping/types/withNullability.txt new file mode 100644 index 00000000000..746ad2a5215 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/mapping/types/withNullability.txt @@ -0,0 +1,5 @@ +public final class WithNullabilityKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method nonNull(): java.lang.String + public final static @org.jetbrains.annotations.Nullable method nullable(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/methodsFromAny/typeParametersEqualsHashCode.txt b/compiler/testData/codegen/light-analysis/reflection/methodsFromAny/typeParametersEqualsHashCode.txt new file mode 100644 index 00000000000..18332edd126 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/methodsFromAny/typeParametersEqualsHashCode.txt @@ -0,0 +1,24 @@ +public final class A { + public method (): void +} + + +public final class B { + public method (): void +} + + +public final class Fourple { + public method (): void +} + + +public final class Fun { + public method (): void + public final method foo(): java.lang.Object +} + + +public final class TypeParametersEqualsHashCodeKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/methodsFromAny/typeParametersToString.txt b/compiler/testData/codegen/light-analysis/reflection/methodsFromAny/typeParametersToString.txt new file mode 100644 index 00000000000..6ed7ab01e04 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/methodsFromAny/typeParametersToString.txt @@ -0,0 +1,16 @@ +public final class OneBound { + public method (): void +} + + +public final class SeveralBounds { + public method (): void +} + + +public final class TypeParametersToStringKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} + + +public interface Variance diff --git a/compiler/testData/codegen/light-analysis/reflection/methodsFromAny/typeToStringInnerGeneric.txt b/compiler/testData/codegen/light-analysis/reflection/methodsFromAny/typeToStringInnerGeneric.txt new file mode 100644 index 00000000000..026d83565c7 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/methodsFromAny/typeToStringInnerGeneric.txt @@ -0,0 +1,26 @@ +public final class A { + inner class A/B + public method (): void +} + + +public final class A/B { + synthetic final field this$0: A + inner class A/B + inner class A/B/C + public method (p0: A): void +} + + +public final class A/B/C { + synthetic final field this$0: A.B + inner class A/B + inner class A/B/C + public method (p0: A.B): void +} + + +public final class TypeToStringInnerGenericKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method foo(): A.B.C +} diff --git a/compiler/testData/codegen/light-analysis/reflection/modifiers/callableModality.txt b/compiler/testData/codegen/light-analysis/reflection/modifiers/callableModality.txt new file mode 100644 index 00000000000..30155ae3bda --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/modifiers/callableModality.txt @@ -0,0 +1,27 @@ +public abstract class AbstractClass { + private final @org.jetbrains.annotations.NotNull field finalVal: kotlin.Unit + private final @org.jetbrains.annotations.NotNull field openVal: kotlin.Unit + public method (): void + public abstract @org.jetbrains.annotations.NotNull method getAbstractVar(): kotlin.Unit + public final @org.jetbrains.annotations.NotNull method getFinalVal(): kotlin.Unit + public @org.jetbrains.annotations.NotNull method getOpenVal(): kotlin.Unit + public abstract method setAbstractVar(@org.jetbrains.annotations.NotNull p0: kotlin.Unit): void +} + + +public final class CallableModalityKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} + + +public interface Interface { + inner class Interface/DefaultImpls + public abstract method abstractFun(): void + public abstract method openFun(): void +} + + +public final class Interface/DefaultImpls { + inner class Interface/DefaultImpls + public static method openFun(p0: Interface): void +} diff --git a/compiler/testData/codegen/light-analysis/reflection/modifiers/callableVisibility.txt b/compiler/testData/codegen/light-analysis/reflection/modifiers/callableVisibility.txt new file mode 100644 index 00000000000..c4cccf1c5bf --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/modifiers/callableVisibility.txt @@ -0,0 +1,31 @@ +public final class CallableVisibilityKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} + + +public class Foo { + private final @org.jetbrains.annotations.NotNull field internalVal: kotlin.Unit + private final field privateToThisVal: java.lang.Object + private final field privateVal: kotlin.Unit + private final @org.jetbrains.annotations.NotNull field protectedVar: kotlin.Unit + private final @org.jetbrains.annotations.NotNull field publicVal: kotlin.Unit + private @org.jetbrains.annotations.NotNull field publicVarPrivateSetter: kotlin.Unit + public method (): void + public final @org.jetbrains.annotations.NotNull method getInternalVal$test_module(): kotlin.Unit + public final @org.jetbrains.annotations.NotNull method getPrivateFun(): kotlin.reflect.KFunction + public final @org.jetbrains.annotations.NotNull method getPrivateToThisFun(): kotlin.reflect.KFunction + public final @org.jetbrains.annotations.NotNull method getPrivateToThisVal(): kotlin.reflect.KProperty + public final @org.jetbrains.annotations.NotNull method getPrivateVal(): kotlin.reflect.KProperty0 + public final @org.jetbrains.annotations.NotNull method getProtectedFun(): kotlin.reflect.KFunction + protected final @org.jetbrains.annotations.NotNull method getProtectedVar(): kotlin.Unit + public final @org.jetbrains.annotations.NotNull method getProtectedVar(): kotlin.reflect.KProperty0 + public final @org.jetbrains.annotations.NotNull method getPublicVal(): kotlin.Unit + public final @org.jetbrains.annotations.NotNull method getPublicVarPrivateSetter(): kotlin.Unit + public final @org.jetbrains.annotations.NotNull method getPublicVarPrivateSetter(): kotlin.reflect.KMutableProperty0 + public final method internalFun$test_module(): void + private final method privateFun(): void + private final method privateToThisFun(): java.lang.Object + protected final method protectedFun(): void + public final method publicFun(): void + private final method setPublicVarPrivateSetter(p0: kotlin.Unit): void +} diff --git a/compiler/testData/codegen/light-analysis/reflection/modifiers/classModality.txt b/compiler/testData/codegen/light-analysis/reflection/modifiers/classModality.txt new file mode 100644 index 00000000000..a3194c3746f --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/modifiers/classModality.txt @@ -0,0 +1,53 @@ +public abstract class AbstractClass { + public method (): void +} + +@java.lang.annotation.Retention +public annotation class AnnotationClass + + +public final class ClassModalityKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} + + +public enum class EnumClass { + protected method (p0: java.lang.String, p1: int): void + public static method valueOf(p0: java.lang.String): EnumClass + public static method values(): EnumClass[] +} + + +public abstract enum class EnumClassWithAbstractMember { + protected method (p0: java.lang.String, p1: int): void + public abstract method foo(): void + public static method valueOf(p0: java.lang.String): EnumClassWithAbstractMember + public static method values(): EnumClassWithAbstractMember[] +} + + +public final class FinalClass { + public final static field Companion: FinalClass.Companion + inner class FinalClass/Companion + public method (): void +} + + +public final static class FinalClass/Companion { + inner class FinalClass/Companion + private method (): void +} + + +public interface Interface + + +public final class Object { + public final static field INSTANCE: Object + private method (): void +} + + +public class OpenClass { + public method (): void +} diff --git a/compiler/testData/codegen/light-analysis/reflection/modifiers/classVisibility.txt b/compiler/testData/codegen/light-analysis/reflection/modifiers/classVisibility.txt new file mode 100644 index 00000000000..bd1fd047db0 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/modifiers/classVisibility.txt @@ -0,0 +1,31 @@ +public final class ClassVisibilityKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} + + +public final class DefaultVisibilityClass { + public method (): void +} + + +public final class InternalClass { + public method (): void +} + + +final class PrivateClass { + public method (): void +} + + +public final class PublicClass { + inner class PublicClass/ProtectedClass + public method (): void + public final @org.jetbrains.annotations.NotNull method getProtectedClass(): kotlin.reflect.KClass +} + + +protected final static class PublicClass/ProtectedClass { + inner class PublicClass/ProtectedClass + public method (): void +} diff --git a/compiler/testData/codegen/light-analysis/reflection/modifiers/classes.txt b/compiler/testData/codegen/light-analysis/reflection/modifiers/classes.txt new file mode 100644 index 00000000000..e743dd7936e --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/modifiers/classes.txt @@ -0,0 +1,47 @@ +public final class ClassesKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} + + +public abstract class S { + public final static field Companion: S.Companion + inner class S/Companion + inner class S/DataClass + inner class S/InnerClass + inner class S/NonCompanionObject + private method (): void +} + + +public final static class S/Companion { + inner class S/Companion + private method (): void +} + + +public final static class S/DataClass { + private final field x: int + inner class S/DataClass + public method (p0: int): void + public final method component1(): int + public synthetic static method copy$default(p0: S.DataClass, p1: int, p2: int, p3: java.lang.Object): S.DataClass + public final @org.jetbrains.annotations.NotNull method copy(p0: int): S.DataClass + public method equals(p0: java.lang.Object): boolean + public final method getX(): int + public method hashCode(): int + public method toString(): java.lang.String +} + + +public final class S/InnerClass { + synthetic final field this$0: S + inner class S/InnerClass + public method (p0: S): void +} + + +public final class S/NonCompanionObject { + public final static field INSTANCE: S.NonCompanionObject + inner class S/NonCompanionObject + private method (): void +} diff --git a/compiler/testData/codegen/light-analysis/reflection/modifiers/functions.txt b/compiler/testData/codegen/light-analysis/reflection/modifiers/functions.txt new file mode 100644 index 00000000000..8400ba55301 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/modifiers/functions.txt @@ -0,0 +1,16 @@ +public final class External { + public method (): void + public final method external(): void +} + + +public final class FunctionsKt { + private final static @org.jetbrains.annotations.NotNull field externalGetter: kotlin.Unit + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method getExternalGetter(): kotlin.Unit + public final static @org.jetbrains.annotations.NotNull method getInlineProperty(): kotlin.Unit + public final static method infix(@org.jetbrains.annotations.NotNull p0: kotlin.Unit, @org.jetbrains.annotations.NotNull p1: kotlin.Unit): void + public final static method inline(): void + public final static method invoke(@org.jetbrains.annotations.NotNull p0: kotlin.Unit): void + public final static method setInlineProperty(@org.jetbrains.annotations.NotNull p0: kotlin.Unit): void +} diff --git a/compiler/testData/codegen/light-analysis/reflection/modifiers/javaVisibility.txt b/compiler/testData/codegen/light-analysis/reflection/modifiers/javaVisibility.txt new file mode 100644 index 00000000000..33d7cadb999 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/modifiers/javaVisibility.txt @@ -0,0 +1,3 @@ +public final class KKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/modifiers/parameters.txt b/compiler/testData/codegen/light-analysis/reflection/modifiers/parameters.txt new file mode 100644 index 00000000000..a1feb373ff7 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/modifiers/parameters.txt @@ -0,0 +1,4 @@ +public final class ParametersKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method foo(@org.jetbrains.annotations.NotNull p0: kotlin.Unit, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function1, @org.jetbrains.annotations.NotNull p2: kotlin.Unit[]): void +} diff --git a/compiler/testData/codegen/light-analysis/reflection/modifiers/properties.txt b/compiler/testData/codegen/light-analysis/reflection/modifiers/properties.txt new file mode 100644 index 00000000000..cfdeecf07b6 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/modifiers/properties.txt @@ -0,0 +1,17 @@ +public final class A { + public @org.jetbrains.annotations.NotNull field lateinit: kotlin.Unit + private @org.jetbrains.annotations.NotNull field nonLateinit: kotlin.Unit + public method (): void + public final @org.jetbrains.annotations.NotNull method getLateinit(): kotlin.Unit + public final @org.jetbrains.annotations.NotNull method getNonLateinit(): kotlin.Unit + public final method setLateinit(@org.jetbrains.annotations.NotNull p0: kotlin.Unit): void + public final method setNonLateinit(@org.jetbrains.annotations.NotNull p0: kotlin.Unit): void +} + + +public final class PropertiesKt { + public final static @org.jetbrains.annotations.NotNull field const: java.lang.String + private final static @org.jetbrains.annotations.NotNull field nonConst: java.lang.String + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method getNonConst(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/modifiers/typeParameters.txt b/compiler/testData/codegen/light-analysis/reflection/modifiers/typeParameters.txt new file mode 100644 index 00000000000..c16b996d1d4 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/modifiers/typeParameters.txt @@ -0,0 +1,10 @@ +public final class A { + public method (): void + public final method nonReified(): java.lang.Object + private final method reified(): java.lang.Object +} + + +public final class TypeParametersKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/parameters/boundInnerClassConstructor.txt b/compiler/testData/codegen/light-analysis/reflection/parameters/boundInnerClassConstructor.txt new file mode 100644 index 00000000000..6dcccee657a --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/parameters/boundInnerClassConstructor.txt @@ -0,0 +1,26 @@ +public final class BoundInnerClassConstructorKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method check(@org.jetbrains.annotations.NotNull p0: kotlin.reflect.KParameter, @org.jetbrains.annotations.NotNull p1: java.lang.String): void +} + + +public final class Outer { + private final @org.jetbrains.annotations.NotNull field s1: java.lang.String + inner class Outer/Inner + public method (@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final @org.jetbrains.annotations.NotNull method getS1(): java.lang.String +} + + +public final class Outer/Inner { + private final @org.jetbrains.annotations.NotNull field result: java.lang.String + private final @org.jetbrains.annotations.NotNull field s2: java.lang.String + private final @org.jetbrains.annotations.NotNull field s3: java.lang.String + synthetic final field this$0: Outer + inner class Outer/Inner + public method (@java.lang.Synthetic p0: Outer, @org.jetbrains.annotations.NotNull p1: java.lang.String, @org.jetbrains.annotations.NotNull p2: java.lang.String): void + public synthetic method (p0: Outer, p1: java.lang.String, p2: java.lang.String, p3: int, p4: kotlin.jvm.internal.DefaultConstructorMarker): void + public final @org.jetbrains.annotations.NotNull method getResult(): java.lang.String + public final @org.jetbrains.annotations.NotNull method getS2(): java.lang.String + public final @org.jetbrains.annotations.NotNull method getS3(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/parameters/boundObjectMemberReferences.txt b/compiler/testData/codegen/light-analysis/reflection/parameters/boundObjectMemberReferences.txt new file mode 100644 index 00000000000..8b40f69f011 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/parameters/boundObjectMemberReferences.txt @@ -0,0 +1,10 @@ +public final class BoundObjectMemberReferencesKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} + + +public final class Host { + public final static field INSTANCE: Host + private method (): void + public final method foo(p0: int, @org.jetbrains.annotations.NotNull p1: java.lang.String): void +} diff --git a/compiler/testData/codegen/light-analysis/reflection/parameters/boundReferences.txt b/compiler/testData/codegen/light-analysis/reflection/parameters/boundReferences.txt new file mode 100644 index 00000000000..27ce306e5b3 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/parameters/boundReferences.txt @@ -0,0 +1,14 @@ +public final class BoundReferencesKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method check(@org.jetbrains.annotations.NotNull p0: kotlin.reflect.KParameter, @org.jetbrains.annotations.NotNull p1: java.lang.String): void + public final static method extFun(@org.jetbrains.annotations.NotNull p0: C, p1: int): void +} + + +public final class C { + private @org.jetbrains.annotations.NotNull field bar: java.lang.String + public method (): void + public final method foo(): void + public final @org.jetbrains.annotations.NotNull method getBar(): java.lang.String + public final method setBar(@org.jetbrains.annotations.NotNull p0: java.lang.String): void +} diff --git a/compiler/testData/codegen/light-analysis/reflection/parameters/findParameterByName.txt b/compiler/testData/codegen/light-analysis/reflection/parameters/findParameterByName.txt new file mode 100644 index 00000000000..0be72154749 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/parameters/findParameterByName.txt @@ -0,0 +1,4 @@ +public final class KKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method foo(p0: int): int +} diff --git a/compiler/testData/codegen/light-analysis/reflection/parameters/instanceExtensionReceiverAndValueParameters.txt b/compiler/testData/codegen/light-analysis/reflection/parameters/instanceExtensionReceiverAndValueParameters.txt new file mode 100644 index 00000000000..13b5121eebb --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/parameters/instanceExtensionReceiverAndValueParameters.txt @@ -0,0 +1,11 @@ +public final class A { + public method (): void + public final method memExt(@org.jetbrains.annotations.NotNull p0: java.lang.String, p1: int): void +} + + +public final class InstanceExtensionReceiverAndValueParametersKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method ext(p0: int, @org.jetbrains.annotations.NotNull p1: java.lang.Object[]): void + public final static method topLevel(): void +} diff --git a/compiler/testData/codegen/light-analysis/reflection/parameters/javaAnnotationConstructor.txt b/compiler/testData/codegen/light-analysis/reflection/parameters/javaAnnotationConstructor.txt new file mode 100644 index 00000000000..33d7cadb999 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/parameters/javaAnnotationConstructor.txt @@ -0,0 +1,3 @@ +public final class KKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/properties/privateJvmStaticVarInObject.txt b/compiler/testData/codegen/light-analysis/reflection/properties/privateJvmStaticVarInObject.txt index 930f1a010b4..d2a3d3218a3 100644 --- a/compiler/testData/codegen/light-analysis/reflection/properties/privateJvmStaticVarInObject.txt +++ b/compiler/testData/codegen/light-analysis/reflection/properties/privateJvmStaticVarInObject.txt @@ -2,7 +2,7 @@ public final class Obj { public final static field INSTANCE: Obj private static field result: java.lang.String private method (): void - private synthetic deprecated final static @kotlin.jvm.JvmStatic method result$annotations(): void + private synthetic deprecated static @kotlin.jvm.JvmStatic method result$annotations(): void } diff --git a/compiler/testData/codegen/light-analysis/reflection/supertypes/builtInClassSupertypes.txt b/compiler/testData/codegen/light-analysis/reflection/supertypes/builtInClassSupertypes.txt new file mode 100644 index 00000000000..07e43fd303f --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/supertypes/builtInClassSupertypes.txt @@ -0,0 +1,12 @@ +public final class BuiltInClassSupertypesKt { + public final static @org.jetbrains.annotations.NotNull method any(): java.lang.Object + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method charSequence(): java.lang.CharSequence + private final static method check(p0: kotlin.reflect.KCallable[]): void + private final static method checkAll(p0: kotlin.reflect.KCallable[]): void + public final static @org.jetbrains.annotations.NotNull method cloneable(): java.lang.Cloneable + public final static @org.jetbrains.annotations.NotNull method comparableOfInt(): java.lang.Comparable + public final static @org.jetbrains.annotations.NotNull method comparableOfString(): java.lang.Comparable + public final static @org.jetbrains.annotations.NotNull method number(): java.lang.Number + public final static @org.jetbrains.annotations.NotNull method serializable(): java.io.Serializable +} diff --git a/compiler/testData/codegen/light-analysis/reflection/supertypes/genericSubstitution.txt b/compiler/testData/codegen/light-analysis/reflection/supertypes/genericSubstitution.txt new file mode 100644 index 00000000000..714d6c06286 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/supertypes/genericSubstitution.txt @@ -0,0 +1,18 @@ +public interface A + + +public interface B + + +public interface C + + +public interface D + + +public final class GenericSubstitutionKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} + + +public interface StringList diff --git a/compiler/testData/codegen/light-analysis/reflection/supertypes/isSubclassOfIsSuperclassOf.txt b/compiler/testData/codegen/light-analysis/reflection/supertypes/isSubclassOfIsSuperclassOf.txt new file mode 100644 index 00000000000..afde0ff1137 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/supertypes/isSubclassOfIsSuperclassOf.txt @@ -0,0 +1,17 @@ +public final class Bar { + public method (): void +} + + +public interface Interface + + +public final class IsSubclassOfIsSuperclassOfKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method check(@org.jetbrains.annotations.NotNull p0: kotlin.reflect.KClass, @org.jetbrains.annotations.NotNull p1: kotlin.reflect.KClass, p2: boolean): void +} + + +public class Klass { + public method (): void +} diff --git a/compiler/testData/codegen/light-analysis/reflection/supertypes/primitives.txt b/compiler/testData/codegen/light-analysis/reflection/supertypes/primitives.txt new file mode 100644 index 00000000000..d06e9d2e445 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/supertypes/primitives.txt @@ -0,0 +1,3 @@ +public final class PrimitivesKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/supertypes/simpleSupertypes.txt b/compiler/testData/codegen/light-analysis/reflection/supertypes/simpleSupertypes.txt new file mode 100644 index 00000000000..4ff4c7f813a --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/supertypes/simpleSupertypes.txt @@ -0,0 +1,28 @@ +public final class ClassAndTwoInterfaces { + public method (): void +} + + +public interface Interface + + +public interface Interface2 + + +public final class OneClass { + public method (): void +} + + +public class Simple { + public method (): void +} + + +public final class SimpleSupertypesKt { + public final static @org.jetbrains.annotations.NotNull method any(): java.lang.Object + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method interface2(): Interface2 + public final static @org.jetbrains.annotations.NotNull method interface_(): Interface + public final static @org.jetbrains.annotations.NotNull method simple(): Simple +} diff --git a/compiler/testData/codegen/light-analysis/reflection/typeParameters/declarationSiteVariance.txt b/compiler/testData/codegen/light-analysis/reflection/typeParameters/declarationSiteVariance.txt new file mode 100644 index 00000000000..29eff6e2b6e --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/typeParameters/declarationSiteVariance.txt @@ -0,0 +1,9 @@ +public final class DeclarationSiteVarianceKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} + + +public final class Triple { + public method (): void + public final method foo(): java.lang.Object +} diff --git a/compiler/testData/codegen/light-analysis/reflection/typeParameters/typeParametersAndNames.txt b/compiler/testData/codegen/light-analysis/reflection/typeParameters/typeParametersAndNames.txt new file mode 100644 index 00000000000..ce34eba9def --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/typeParameters/typeParametersAndNames.txt @@ -0,0 +1,19 @@ +public final class C { + public method (): void + public final method baz(): void + public final method quux(): void +} + + +public final class F { + public method (): void + public final method foo(): void + public final method getBar(p0: java.lang.Object): java.lang.Object +} + + +public final class TypeParametersAndNamesKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public synthetic static method get$default(p0: kotlin.reflect.KClass, p1: java.lang.String, p2: int, p3: java.lang.Object): java.util.List + public final static @org.jetbrains.annotations.NotNull method get(@org.jetbrains.annotations.NotNull p0: kotlin.reflect.KClass, @org.jetbrains.annotations.Nullable p1: java.lang.String): java.util.List +} diff --git a/compiler/testData/codegen/light-analysis/reflection/typeParameters/upperBounds.txt b/compiler/testData/codegen/light-analysis/reflection/typeParameters/upperBounds.txt new file mode 100644 index 00000000000..a3715c6fce3 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/typeParameters/upperBounds.txt @@ -0,0 +1,41 @@ +public final class DefaultBound { + public method (): void +} + + +public final class FunctionTypeParameter { + public method (): void + public final @org.jetbrains.annotations.NotNull method foo(): java.lang.Cloneable +} + + +public final class NotNullAnyBound { + public method (): void +} + + +public final class NullableAnyBound { + public method (): void +} + + +public final class OtherParameterBound { + public method (): void +} + + +public final class RecursiveGeneric { + public method (): void +} + + +public final class TwoBounds { + public method (): void +} + + +public final class UpperBoundsKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method notNullAny(): java.lang.Object + public final static @org.jetbrains.annotations.Nullable method nullableAny(): java.lang.Object +} diff --git a/compiler/testData/codegen/light-analysis/reflection/types/classifierIsClass.txt b/compiler/testData/codegen/light-analysis/reflection/types/classifierIsClass.txt new file mode 100644 index 00000000000..ff53a4c9535 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/types/classifierIsClass.txt @@ -0,0 +1,27 @@ +public final class ClassifierIsClassKt { + public final static @org.jetbrains.annotations.NotNull method array(): java.lang.String[] + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method inner(): Outer.Inner + public final static @org.jetbrains.annotations.NotNull method nested(): Outer.Nested + public final static @org.jetbrains.annotations.NotNull method outer(): Outer +} + + +public final class Outer { + inner class Outer/Inner + inner class Outer/Nested + public method (): void +} + + +public final class Outer/Inner { + synthetic final field this$0: Outer + inner class Outer/Inner + public method (p0: Outer): void +} + + +public final static class Outer/Nested { + inner class Outer/Nested + public method (): void +} diff --git a/compiler/testData/codegen/light-analysis/reflection/types/classifierIsTypeParameter.txt b/compiler/testData/codegen/light-analysis/reflection/types/classifierIsTypeParameter.txt new file mode 100644 index 00000000000..4d92e820160 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/types/classifierIsTypeParameter.txt @@ -0,0 +1,10 @@ +public final class A { + public method (): void + public final @org.jetbrains.annotations.Nullable method bar(): java.lang.Object[] + public final method foo(): java.lang.Object +} + + +public final class ClassifierIsTypeParameterKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/types/classifiersOfBuiltInTypes.txt b/compiler/testData/codegen/light-analysis/reflection/types/classifiersOfBuiltInTypes.txt new file mode 100644 index 00000000000..0981e6783a7 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/types/classifiersOfBuiltInTypes.txt @@ -0,0 +1,9 @@ +public final class ClassifiersOfBuiltInTypesKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method check(@org.jetbrains.annotations.NotNull p0: kotlin.reflect.KFunction, @org.jetbrains.annotations.NotNull p1: kotlin.reflect.KClass[]): void + public final static method nullablePrimitives(@org.jetbrains.annotations.Nullable p0: java.lang.Boolean, @org.jetbrains.annotations.Nullable p1: java.lang.Byte, @org.jetbrains.annotations.Nullable p2: java.lang.Character, @org.jetbrains.annotations.Nullable p3: java.lang.Double, @org.jetbrains.annotations.Nullable p4: java.lang.Float, @org.jetbrains.annotations.Nullable p5: java.lang.Integer, @org.jetbrains.annotations.Nullable p6: java.lang.Long, @org.jetbrains.annotations.Nullable p7: java.lang.Short): void + public final static method others(@org.jetbrains.annotations.NotNull p0: java.lang.Object[], @org.jetbrains.annotations.NotNull p1: java.lang.String[], @org.jetbrains.annotations.NotNull p2: java.lang.Integer[][], @org.jetbrains.annotations.NotNull p3: java.util.List, @org.jetbrains.annotations.Nullable p4: java.util.List, @org.jetbrains.annotations.NotNull p5: java.util.Map$Entry, @org.jetbrains.annotations.Nullable p6: kotlin.Unit, @org.jetbrains.annotations.NotNull p7: java.lang.String, @org.jetbrains.annotations.NotNull p8: java.lang.Void): void + public final static method primitiveArrays(@org.jetbrains.annotations.NotNull p0: boolean[], @org.jetbrains.annotations.NotNull p1: byte[], @org.jetbrains.annotations.NotNull p2: char[], @org.jetbrains.annotations.NotNull p3: double[], @org.jetbrains.annotations.NotNull p4: float[], @org.jetbrains.annotations.NotNull p5: int[], @org.jetbrains.annotations.NotNull p6: long[], @org.jetbrains.annotations.NotNull p7: short[]): void + public final static method primitives(p0: boolean, p1: byte, p2: char, p3: double, p4: float, p5: int, p6: long, p7: short): void + private final static method wrapper(): kotlin.reflect.KClass +} diff --git a/compiler/testData/codegen/light-analysis/reflection/types/createType/equality.txt b/compiler/testData/codegen/light-analysis/reflection/types/createType/equality.txt new file mode 100644 index 00000000000..2236c30c54b --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/types/createType/equality.txt @@ -0,0 +1,8 @@ +public final class EqualityKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} + + +public final class Foo { + public method (): void +} diff --git a/compiler/testData/codegen/light-analysis/reflection/types/createType/innerGeneric.txt b/compiler/testData/codegen/light-analysis/reflection/types/createType/innerGeneric.txt new file mode 100644 index 00000000000..ca66b5ff6b0 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/types/createType/innerGeneric.txt @@ -0,0 +1,33 @@ +public final class A { + inner class A/B + inner class A/D + public method (): void +} + + +public final class A/B { + synthetic final field this$0: A + inner class A/B + inner class A/B/C + public method (p0: A): void +} + + +public final class A/B/C { + synthetic final field this$0: A.B + inner class A/B + inner class A/B/C + public method (p0: A.B): void +} + + +public final static class A/D { + inner class A/D + public method (): void +} + + +public final class InnerGenericKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method foo(): A.B.C +} diff --git a/compiler/testData/codegen/light-analysis/reflection/types/createType/simpleCreateType.txt b/compiler/testData/codegen/light-analysis/reflection/types/createType/simpleCreateType.txt new file mode 100644 index 00000000000..6bafe93edbb --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/types/createType/simpleCreateType.txt @@ -0,0 +1,13 @@ +public final class Bar { + public method (): void +} + + +public final class Foo { + public method (): void +} + + +public final class SimpleCreateTypeKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/types/createType/typeParameter.txt b/compiler/testData/codegen/light-analysis/reflection/types/createType/typeParameter.txt new file mode 100644 index 00000000000..9436509d3f6 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/types/createType/typeParameter.txt @@ -0,0 +1,10 @@ +public final class Foo { + public method (): void + public final method nonNull(): java.lang.Object + public final @org.jetbrains.annotations.Nullable method nullable(): java.lang.Object +} + + +public final class TypeParameterKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/types/createType/wrongNumberOfArguments.txt b/compiler/testData/codegen/light-analysis/reflection/types/createType/wrongNumberOfArguments.txt new file mode 100644 index 00000000000..dd141a980ef --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/types/createType/wrongNumberOfArguments.txt @@ -0,0 +1,24 @@ +public final class Outer { + inner class Outer/Inner + inner class Outer/Nested + public method (): void +} + + +public final class Outer/Inner { + synthetic final field this$0: Outer + inner class Outer/Inner + public method (p0: Outer): void +} + + +public final static class Outer/Nested { + inner class Outer/Nested + public method (): void +} + + +public final class WrongNumberOfArgumentsKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method test(@org.jetbrains.annotations.NotNull p0: kotlin.reflect.KClassifier, @org.jetbrains.annotations.NotNull p1: java.util.List): void +} diff --git a/compiler/testData/codegen/light-analysis/reflection/types/innerGenericArguments.txt b/compiler/testData/codegen/light-analysis/reflection/types/innerGenericArguments.txt new file mode 100644 index 00000000000..dbe5345c108 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/types/innerGenericArguments.txt @@ -0,0 +1,26 @@ +public final class InnerGenericArgumentsKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method foo(): Outer.Inner.Innermost +} + + +public final class Outer { + inner class Outer/Inner + public method (): void +} + + +public final class Outer/Inner { + synthetic final field this$0: Outer + inner class Outer/Inner + inner class Outer/Inner/Innermost + public method (p0: Outer): void +} + + +public final class Outer/Inner/Innermost { + synthetic final field this$0: Outer.Inner + inner class Outer/Inner + inner class Outer/Inner/Innermost + public method (p0: Outer.Inner): void +} diff --git a/compiler/testData/codegen/light-analysis/reflection/types/jvmErasureOfClass.txt b/compiler/testData/codegen/light-analysis/reflection/types/jvmErasureOfClass.txt new file mode 100644 index 00000000000..7de1198f624 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/types/jvmErasureOfClass.txt @@ -0,0 +1,7 @@ +public final class JvmErasureOfClassKt { + public final static @org.jetbrains.annotations.NotNull method array(): java.lang.String[] + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method collection(): java.util.Collection + public final static @org.jetbrains.annotations.NotNull method mutableCollection(): java.util.Collection + public final static @org.jetbrains.annotations.NotNull method string(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/types/jvmErasureOfTypeParameter.txt b/compiler/testData/codegen/light-analysis/reflection/types/jvmErasureOfTypeParameter.txt new file mode 100644 index 00000000000..7d5779f6d51 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/types/jvmErasureOfTypeParameter.txt @@ -0,0 +1,26 @@ +public final class A { + public method (): void + public final @org.jetbrains.annotations.NotNull method arrayOfAny(): java.lang.Object[] + public final @org.jetbrains.annotations.NotNull method arrayOfArrayOfCloneable(): java.lang.Cloneable[][] + public final @org.jetbrains.annotations.NotNull method arrayOfNumber(): java.lang.Number[] + public final @org.jetbrains.annotations.NotNull method interfaceAndClass1(): O + public final @org.jetbrains.annotations.NotNull method interfaceAndClass2(): O + public final method nullableString(): java.lang.String + public final method otherTypeParameter(): java.lang.Object + public final @org.jetbrains.annotations.NotNull method otherTypeParameterWithBound(): java.util.List + public final method simple(): java.lang.Object + public final @org.jetbrains.annotations.NotNull method string(): java.lang.String + public final @org.jetbrains.annotations.NotNull method twoInterfaces1(): java.lang.Cloneable + public final @org.jetbrains.annotations.NotNull method twoInterfaces2(): java.lang.Comparable +} + + +public final class JvmErasureOfTypeParameterKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method get(@org.jetbrains.annotations.NotNull p0: java.lang.String): kotlin.reflect.KClass +} + + +public class O { + public method (): void +} diff --git a/compiler/testData/codegen/light-analysis/reflection/types/platformTypeClassifier.txt b/compiler/testData/codegen/light-analysis/reflection/types/platformTypeClassifier.txt new file mode 100644 index 00000000000..33d7cadb999 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/types/platformTypeClassifier.txt @@ -0,0 +1,3 @@ +public final class KKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/types/subtyping/platformType.txt b/compiler/testData/codegen/light-analysis/reflection/types/subtyping/platformType.txt new file mode 100644 index 00000000000..19842b477b1 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/types/subtyping/platformType.txt @@ -0,0 +1,6 @@ +public final class KKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method check(@org.jetbrains.annotations.NotNull p0: kotlin.reflect.KCallable, @org.jetbrains.annotations.NotNull p1: kotlin.reflect.KCallable): void + public final static @org.jetbrains.annotations.Nullable method nullableString(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method string(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/classes/defaultType.txt b/compiler/testData/codegen/light-analysis/reflection/types/subtyping/simpleGenericTypes.txt similarity index 57% rename from compiler/testData/codegen/light-analysis/reflection/classes/defaultType.txt rename to compiler/testData/codegen/light-analysis/reflection/types/subtyping/simpleGenericTypes.txt index 43af80773e8..53f72214578 100644 --- a/compiler/testData/codegen/light-analysis/reflection/classes/defaultType.txt +++ b/compiler/testData/codegen/light-analysis/reflection/types/subtyping/simpleGenericTypes.txt @@ -1,16 +1,15 @@ -public final class DefaultTypeKt { +public final class A { + public method (): void +} + + +public class G { + public method (): void +} + + +public final class SimpleGenericTypesKt { public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String - public final static @org.jetbrains.annotations.NotNull method genericIntString(): Generic - public final static @org.jetbrains.annotations.NotNull method simple(): Simple -} - - -public final class Generic { - public method (): void - public final @org.jetbrains.annotations.NotNull method thiz(): Generic -} - - -public final class Simple { - public method (): void + public final static @org.jetbrains.annotations.NotNull method gOfInt(): G + public final static @org.jetbrains.annotations.NotNull method gOfString(): G } diff --git a/compiler/testData/codegen/light-analysis/reflection/types/subtyping/simpleSubtypeSupertype.txt b/compiler/testData/codegen/light-analysis/reflection/types/subtyping/simpleSubtypeSupertype.txt new file mode 100644 index 00000000000..b3a1759de10 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/types/subtyping/simpleSubtypeSupertype.txt @@ -0,0 +1,22 @@ +public class O { + public method (): void +} + + +public final class SimpleSubtypeSupertypeKt { + public final static @org.jetbrains.annotations.NotNull method any(): java.lang.Object + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static method check(@org.jetbrains.annotations.NotNull p0: kotlin.reflect.KCallable, @org.jetbrains.annotations.NotNull p1: kotlin.reflect.KCallable, p2: boolean): void + public final static @org.jetbrains.annotations.NotNull method function2(): kotlin.jvm.functions.Function2 + public final static @org.jetbrains.annotations.NotNull method function3(): kotlin.jvm.functions.Function3 + public final static method int(): int + public final static @org.jetbrains.annotations.NotNull method nothing(): java.lang.Void + public final static @org.jetbrains.annotations.Nullable method nullableNothing(): java.lang.Void + public final static @org.jetbrains.annotations.Nullable method nullableString(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method string(): java.lang.String +} + + +public final class X { + public method (): void +} diff --git a/compiler/testData/codegen/light-analysis/reflection/types/subtyping/typeProjection.txt b/compiler/testData/codegen/light-analysis/reflection/types/subtyping/typeProjection.txt new file mode 100644 index 00000000000..858036e5e28 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/types/subtyping/typeProjection.txt @@ -0,0 +1,12 @@ +public final class G { + public method (): void +} + + +public final class TypeProjectionKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method inNumber(): G + public final static @org.jetbrains.annotations.NotNull method number(): G + public final static @org.jetbrains.annotations.NotNull method outNumber(): G + public final static @org.jetbrains.annotations.NotNull method star(): G +} diff --git a/compiler/testData/codegen/light-analysis/reflection/types/typeArguments.txt b/compiler/testData/codegen/light-analysis/reflection/types/typeArguments.txt new file mode 100644 index 00000000000..db741dd237a --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/types/typeArguments.txt @@ -0,0 +1,12 @@ +public final class Fourple { + public method (): void +} + + +public final class TypeArgumentsKt { + public final static @org.jetbrains.annotations.NotNull method array(): java.lang.Number[] + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method list(): java.util.List + public final static @org.jetbrains.annotations.NotNull method projections(): Fourple + public final static @org.jetbrains.annotations.NotNull method string(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reflection/types/useSiteVariance.txt b/compiler/testData/codegen/light-analysis/reflection/types/useSiteVariance.txt new file mode 100644 index 00000000000..77aa9dbceae --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/types/useSiteVariance.txt @@ -0,0 +1,10 @@ +public final class Fourple { + public method (): void +} + + +public final class UseSiteVarianceKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method foo(): Fourple + public final static @org.jetbrains.annotations.NotNull method listOfStrings(): java.util.List +} diff --git a/compiler/testData/codegen/light-analysis/reflection/types/withNullability.txt b/compiler/testData/codegen/light-analysis/reflection/types/withNullability.txt new file mode 100644 index 00000000000..26c18b8b3f9 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reflection/types/withNullability.txt @@ -0,0 +1,5 @@ +public final class KKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method nonNull(): java.lang.String + public final static @org.jetbrains.annotations.Nullable method nullable(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/reified/reifiedChain.txt b/compiler/testData/codegen/light-analysis/reified/reifiedChain.txt new file mode 100644 index 00000000000..4d11c380531 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/reified/reifiedChain.txt @@ -0,0 +1,11 @@ +public final class ReifiedChainKt { + private static @org.jetbrains.annotations.NotNull field log: java.lang.String + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + private final static method check(@org.jetbrains.annotations.Nullable p0: java.lang.Object): boolean + private final static method check2(@org.jetbrains.annotations.Nullable p0: java.lang.Object): boolean + public final static @org.jetbrains.annotations.NotNull method getLog(): java.lang.String + public final static method log(@org.jetbrains.annotations.Nullable p0: java.lang.Object): void + public final static method setLog(@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final static method test(@org.jetbrains.annotations.Nullable p0: java.lang.Object): void + public final static method test2(@org.jetbrains.annotations.Nullable p0: java.lang.Object): void +} diff --git a/compiler/testData/codegen/light-analysis/traits/traitImplGenericDelegation.txt b/compiler/testData/codegen/light-analysis/traits/traitImplGenericDelegation.txt index bf039f49a8d..ed8a277afd6 100644 --- a/compiler/testData/codegen/light-analysis/traits/traitImplGenericDelegation.txt +++ b/compiler/testData/codegen/light-analysis/traits/traitImplGenericDelegation.txt @@ -23,12 +23,17 @@ public final class B/DefaultImpls { public final class C { public method (): void - public @org.jetbrains.annotations.Nullable method foo(@org.jetbrains.annotations.NotNull p0: java.lang.String, p1: int): java.lang.Runnable + public @org.jetbrains.annotations.Nullable method foo(@org.jetbrains.annotations.NotNull p0: java.lang.String, p1: int): Runnable public synthetic method foo(p0: java.lang.Object, p1: int): java.lang.Object public synthetic method foo(p0: java.lang.Object, p1: java.lang.Number): java.lang.Object } +public interface Runnable { + public abstract method run(): void +} + + public final class TraitImplGenericDelegationKt { public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String } diff --git a/compiler/testData/codegen/light-analysis/typealias/genericTypeAliasConstructor.txt b/compiler/testData/codegen/light-analysis/typealias/genericTypeAliasConstructor.txt new file mode 100644 index 00000000000..3ecf48fcb0c --- /dev/null +++ b/compiler/testData/codegen/light-analysis/typealias/genericTypeAliasConstructor.txt @@ -0,0 +1,10 @@ +public final class Cell { + private final field x: java.lang.Object + public method (p0: java.lang.Object): void + public final method getX(): java.lang.Object +} + + +public final class GenericTypeAliasConstructorKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/typealias/innerClassTypeAliasConstructor.txt b/compiler/testData/codegen/light-analysis/typealias/innerClassTypeAliasConstructor.txt new file mode 100644 index 00000000000..50af437b98a --- /dev/null +++ b/compiler/testData/codegen/light-analysis/typealias/innerClassTypeAliasConstructor.txt @@ -0,0 +1,22 @@ +public final class InnerClassTypeAliasConstructorKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} + + +public final class Outer { + private final @org.jetbrains.annotations.NotNull field x: java.lang.String + inner class Outer/Inner + public method (@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final @org.jetbrains.annotations.NotNull method getX(): java.lang.String +} + + +public final class Outer/Inner { + synthetic final field this$0: Outer + private final @org.jetbrains.annotations.NotNull field y: java.lang.String + private final @org.jetbrains.annotations.NotNull field z: java.lang.String + inner class Outer/Inner + public method (@java.lang.Synthetic p0: Outer, @org.jetbrains.annotations.NotNull p1: java.lang.String): void + public final @org.jetbrains.annotations.NotNull method getY(): java.lang.String + public final @org.jetbrains.annotations.NotNull method getZ(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/typealias/innerClassTypeAliasConstructorInSupertypes.txt b/compiler/testData/codegen/light-analysis/typealias/innerClassTypeAliasConstructorInSupertypes.txt new file mode 100644 index 00000000000..4b6c45aab23 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/typealias/innerClassTypeAliasConstructorInSupertypes.txt @@ -0,0 +1,30 @@ +public final class InnerClassTypeAliasConstructorInSupertypesKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} + + +public final class Outer { + private final @org.jetbrains.annotations.NotNull field x: java.lang.String + inner class Outer/Inner + inner class Outer/InnerBase + public method (@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final @org.jetbrains.annotations.NotNull method getX(): java.lang.String +} + + +public final class Outer/Inner { + synthetic final field this$0: Outer + private final @org.jetbrains.annotations.NotNull field y: java.lang.String + private final @org.jetbrains.annotations.NotNull field z: java.lang.String + inner class Outer/Inner + public method (@java.lang.Synthetic p0: Outer, @org.jetbrains.annotations.NotNull p1: java.lang.String): void + public final @org.jetbrains.annotations.NotNull method getY(): java.lang.String + public final @org.jetbrains.annotations.NotNull method getZ(): java.lang.String +} + + +public abstract class Outer/InnerBase { + synthetic final field this$0: Outer + inner class Outer/InnerBase + public method (p0: Outer): void +} diff --git a/compiler/testData/codegen/light-analysis/typealias/simple.txt b/compiler/testData/codegen/light-analysis/typealias/simple.txt new file mode 100644 index 00000000000..a856120f83f --- /dev/null +++ b/compiler/testData/codegen/light-analysis/typealias/simple.txt @@ -0,0 +1,5 @@ +public final class SimpleKt { + private final static @org.jetbrains.annotations.NotNull field f: kotlin.jvm.functions.Function1 + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method getF(): kotlin.jvm.functions.Function1 +} diff --git a/compiler/testData/codegen/light-analysis/typealias/typeAliasAsBareType.txt b/compiler/testData/codegen/light-analysis/typealias/typeAliasAsBareType.txt new file mode 100644 index 00000000000..b065276b545 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/typealias/typeAliasAsBareType.txt @@ -0,0 +1,3 @@ +public final class TypeAliasAsBareTypeKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/typealias/typeAliasCompanion.txt b/compiler/testData/codegen/light-analysis/typealias/typeAliasCompanion.txt new file mode 100644 index 00000000000..f7d1b0f37f3 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/typealias/typeAliasCompanion.txt @@ -0,0 +1,18 @@ +public final class A { + public final static field Companion: A.Companion + private final static @org.jetbrains.annotations.NotNull field result: java.lang.String + inner class A/Companion + public method (): void +} + + +public final static class A/Companion { + inner class A/Companion + private method (): void + public final @org.jetbrains.annotations.NotNull method getResult(): java.lang.String +} + + +public final class TypeAliasCompanionKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/typealias/typeAliasConstructor.txt b/compiler/testData/codegen/light-analysis/typealias/typeAliasConstructor.txt new file mode 100644 index 00000000000..0bac592bbbe --- /dev/null +++ b/compiler/testData/codegen/light-analysis/typealias/typeAliasConstructor.txt @@ -0,0 +1,10 @@ +public final class C { + private final @org.jetbrains.annotations.NotNull field x: java.lang.String + public method (@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public final @org.jetbrains.annotations.NotNull method getX(): java.lang.String +} + + +public final class TypeAliasConstructorKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/typealias/typeAliasConstructorAccessor.txt b/compiler/testData/codegen/light-analysis/typealias/typeAliasConstructorAccessor.txt new file mode 100644 index 00000000000..a842c19aff7 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/typealias/typeAliasConstructorAccessor.txt @@ -0,0 +1,18 @@ +public final class Outer { + private final @org.jetbrains.annotations.NotNull field x: java.lang.String + inner class Outer/Nested + private method (p0: java.lang.String): void + public final @org.jetbrains.annotations.NotNull method getX(): java.lang.String +} + + +public final static class Outer/Nested { + inner class Outer/Nested + public method (): void + public final @org.jetbrains.annotations.NotNull method foo(): Outer +} + + +public final class TypeAliasConstructorAccessorKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/typealias/typeAliasConstructorInSuperCall.txt b/compiler/testData/codegen/light-analysis/typealias/typeAliasConstructorInSuperCall.txt new file mode 100644 index 00000000000..0382297b5f6 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/typealias/typeAliasConstructorInSuperCall.txt @@ -0,0 +1,20 @@ +public final class C1 { + public method (): void +} + + +public final class C2 { + public method (): void +} + + +public class Cell { + private final field value: java.lang.Object + public method (p0: java.lang.Object): void + public final method getValue(): java.lang.Object +} + + +public final class TypeAliasConstructorInSuperCallKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/typealias/typeAliasInAnonymousObjectType.txt b/compiler/testData/codegen/light-analysis/typealias/typeAliasInAnonymousObjectType.txt new file mode 100644 index 00000000000..d8d1b0e860a --- /dev/null +++ b/compiler/testData/codegen/light-analysis/typealias/typeAliasInAnonymousObjectType.txt @@ -0,0 +1,12 @@ +public class Foo { + private final field x: java.lang.Object + public method (p0: java.lang.Object): void + public final method getX(): java.lang.Object +} + + +public final class TypeAliasInAnonymousObjectTypeKt { + private final static @org.jetbrains.annotations.NotNull field test: Foo + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String + public final static @org.jetbrains.annotations.NotNull method getTest(): Foo +} diff --git a/compiler/testData/codegen/light-analysis/typealias/typeAliasObject.txt b/compiler/testData/codegen/light-analysis/typealias/typeAliasObject.txt new file mode 100644 index 00000000000..7762f904ae3 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/typealias/typeAliasObject.txt @@ -0,0 +1,26 @@ +public final class KHolder { + public final static field Companion: KHolder.Companion + private final static @org.jetbrains.annotations.NotNull field K: java.lang.String + inner class KHolder/Companion + public method (): void +} + + +public final static class KHolder/Companion { + inner class KHolder/Companion + private method (): void + public final @org.jetbrains.annotations.NotNull method getK(): java.lang.String +} + + +public final class OHolder { + public final static field INSTANCE: OHolder + private final static @org.jetbrains.annotations.NotNull field O: java.lang.String + private method (): void + public final @org.jetbrains.annotations.NotNull method getO(): java.lang.String +} + + +public final class TypeAliasObjectKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/typealias/typeAliasObjectCallable.txt b/compiler/testData/codegen/light-analysis/typealias/typeAliasObjectCallable.txt new file mode 100644 index 00000000000..8c12dcc6cb2 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/typealias/typeAliasObjectCallable.txt @@ -0,0 +1,12 @@ +public final class O { + public final static field INSTANCE: O + private final static @org.jetbrains.annotations.NotNull field x: java.lang.String + private method (): void + public final @org.jetbrains.annotations.NotNull method getX(): java.lang.String + public final @org.jetbrains.annotations.NotNull method invoke(): java.lang.String +} + + +public final class TypeAliasObjectCallableKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/testData/codegen/light-analysis/typealias/typeAliasSecondaryConstructor.txt b/compiler/testData/codegen/light-analysis/typealias/typeAliasSecondaryConstructor.txt new file mode 100644 index 00000000000..2ecf1d8a2e3 --- /dev/null +++ b/compiler/testData/codegen/light-analysis/typealias/typeAliasSecondaryConstructor.txt @@ -0,0 +1,11 @@ +public final class C { + private final @org.jetbrains.annotations.NotNull field x: java.lang.String + public method (@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public method (p0: int): void + public final @org.jetbrains.annotations.NotNull method getX(): java.lang.String +} + + +public final class TypeAliasSecondaryConstructorKt { + public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String +} diff --git a/compiler/tests/org/jetbrains/kotlin/codegen/LightAnalysisModeCodegenTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/codegen/LightAnalysisModeCodegenTestGenerated.java index 2304bee8885..64dbd5bad0d 100644 --- a/compiler/tests/org/jetbrains/kotlin/codegen/LightAnalysisModeCodegenTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/codegen/LightAnalysisModeCodegenTestGenerated.java @@ -74,6 +74,12 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis doTest(fileName); } + @TestMetadata("annotationsOnTypeAliases.kt") + public void testAnnotationsOnTypeAliases() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/annotations/annotationsOnTypeAliases.kt"); + doTest(fileName); + } + @TestMetadata("defaultParameterValues.kt") public void testDefaultParameterValues() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/annotations/defaultParameterValues.kt"); @@ -293,6 +299,12 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis doTest(fileName); } + @TestMetadata("arraysAreCloneable.kt") + public void testArraysAreCloneable() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/arrays/arraysAreCloneable.kt"); + doTest(fileName); + } + @TestMetadata("cloneArray.kt") public void testCloneArray() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/arrays/cloneArray.kt"); @@ -713,6 +725,24 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/binaryOp"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); } + @TestMetadata("bitwiseOp.kt") + public void testBitwiseOp() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/binaryOp/bitwiseOp.kt"); + doTest(fileName); + } + + @TestMetadata("bitwiseOpAny.kt") + public void testBitwiseOpAny() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/binaryOp/bitwiseOpAny.kt"); + doTest(fileName); + } + + @TestMetadata("bitwiseOpNullable.kt") + public void testBitwiseOpNullable() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/binaryOp/bitwiseOpNullable.kt"); + doTest(fileName); + } + @TestMetadata("call.kt") public void testCall() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/binaryOp/call.kt"); @@ -995,6 +1025,12 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis doTest(fileName); } + @TestMetadata("kt12416.kt") + public void testKt12416() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/bridges/kt12416.kt"); + doTest(fileName); + } + @TestMetadata("kt1939.kt") public void testKt1939() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/bridges/kt1939.kt"); @@ -1163,6 +1199,12 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis doTest(fileName); } + @TestMetadata("twoParentsWithDifferentMethodsTwoBridges2.kt") + public void testTwoParentsWithDifferentMethodsTwoBridges2() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/bridges/twoParentsWithDifferentMethodsTwoBridges2.kt"); + doTest(fileName); + } + @TestMetadata("twoParentsWithTheSameMethodOneBridge.kt") public void testTwoParentsWithTheSameMethodOneBridge() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/bridges/twoParentsWithTheSameMethodOneBridge.kt"); @@ -1451,6 +1493,135 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/callableReference"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); } + @TestMetadata("compiler/testData/codegen/box/callableReference/bound") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Bound extends AbstractLightAnalysisModeCodegenTest { + public void testAllFilesPresentInBound() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/callableReference/bound"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); + } + + @TestMetadata("companionObjectReceiver.kt") + public void testCompanionObjectReceiver() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/callableReference/bound/companionObjectReceiver.kt"); + doTest(fileName); + } + + @TestMetadata("enumEntryMember.kt") + public void testEnumEntryMember() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/callableReference/bound/enumEntryMember.kt"); + doTest(fileName); + } + + @TestMetadata("kCallableNameIntrinsic.kt") + public void testKCallableNameIntrinsic() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/callableReference/bound/kCallableNameIntrinsic.kt"); + doTest(fileName); + } + + @TestMetadata("kt12738.kt") + public void testKt12738() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/callableReference/bound/kt12738.kt"); + doTest(fileName); + } + + @TestMetadata("multiCase.kt") + public void testMultiCase() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/callableReference/bound/multiCase.kt"); + doTest(fileName); + } + + @TestMetadata("nullReceiver.kt") + public void testNullReceiver() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/callableReference/bound/nullReceiver.kt"); + doTest(fileName); + } + + @TestMetadata("objectReceiver.kt") + public void testObjectReceiver() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/callableReference/bound/objectReceiver.kt"); + doTest(fileName); + } + + @TestMetadata("primitiveReceiver.kt") + public void testPrimitiveReceiver() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/callableReference/bound/primitiveReceiver.kt"); + doTest(fileName); + } + + @TestMetadata("simpleFunction.kt") + public void testSimpleFunction() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/callableReference/bound/simpleFunction.kt"); + doTest(fileName); + } + + @TestMetadata("simpleProperty.kt") + public void testSimpleProperty() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/callableReference/bound/simpleProperty.kt"); + doTest(fileName); + } + + @TestMetadata("syntheticExtensionOnLHS.kt") + public void testSyntheticExtensionOnLHS() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/callableReference/bound/syntheticExtensionOnLHS.kt"); + doTest(fileName); + } + + @TestMetadata("compiler/testData/codegen/box/callableReference/bound/equals") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Equals extends AbstractLightAnalysisModeCodegenTest { + public void testAllFilesPresentInEquals() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/callableReference/bound/equals"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); + } + + @TestMetadata("nullableReceiverInEquals.kt") + public void testNullableReceiverInEquals() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/callableReference/bound/equals/nullableReceiverInEquals.kt"); + doTest(fileName); + } + + @TestMetadata("propertyAccessors.kt") + public void testPropertyAccessors() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/callableReference/bound/equals/propertyAccessors.kt"); + doTest(fileName); + } + + @TestMetadata("receiverInEquals.kt") + public void testReceiverInEquals() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/callableReference/bound/equals/receiverInEquals.kt"); + doTest(fileName); + } + + @TestMetadata("reflectionReference.kt") + public void testReflectionReference() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/callableReference/bound/equals/reflectionReference.kt"); + doTest(fileName); + } + } + + @TestMetadata("compiler/testData/codegen/box/callableReference/bound/inline") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Inline extends AbstractLightAnalysisModeCodegenTest { + public void testAllFilesPresentInInline() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/callableReference/bound/inline"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/callableReference/bound/inline/simple.kt"); + doTest(fileName); + } + + @TestMetadata("simpleVal.kt") + public void testSimpleVal() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/callableReference/bound/inline/simpleVal.kt"); + doTest(fileName); + } + } + } + @TestMetadata("compiler/testData/codegen/box/callableReference/function") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -2303,6 +2474,39 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis doTest(fileName); } + @TestMetadata("compiler/testData/codegen/box/classLiteral/bound") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Bound extends AbstractLightAnalysisModeCodegenTest { + public void testAllFilesPresentInBound() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/classLiteral/bound"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); + } + + @TestMetadata("javaIntrinsicWithSideEffect.kt") + public void testJavaIntrinsicWithSideEffect() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/classLiteral/bound/javaIntrinsicWithSideEffect.kt"); + doTest(fileName); + } + + @TestMetadata("primitives.kt") + public void testPrimitives() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/classLiteral/bound/primitives.kt"); + doTest(fileName); + } + + @TestMetadata("sideEffect.kt") + public void testSideEffect() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/classLiteral/bound/sideEffect.kt"); + doTest(fileName); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/classLiteral/bound/simple.kt"); + doTest(fileName); + } + } + @TestMetadata("compiler/testData/codegen/box/classLiteral/java") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -2352,6 +2556,12 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/classLiteral/java/kt11943.kt"); doTest(fileName); } + + @TestMetadata("objectSuperConstructorCall.kt") + public void testObjectSuperConstructorCall() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/classLiteral/java/objectSuperConstructorCall.kt"); + doTest(fileName); + } } } @@ -3017,6 +3227,12 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis doTest(fileName); } + @TestMetadata("sealedInSameFile.kt") + public void testSealedInSameFile() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/classes/sealedInSameFile.kt"); + doTest(fileName); + } + @TestMetadata("selfcreate.kt") public void testSelfcreate() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/classes/selfcreate.kt"); @@ -3305,6 +3521,12 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis doTest(fileName); } + @TestMetadata("underscoreParameters.kt") + public void testUnderscoreParameters() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/closures/underscoreParameters.kt"); + doTest(fileName); + } + @TestMetadata("compiler/testData/codegen/box/closures/captureOuterProperty") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -3525,6 +3747,21 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis } } + @TestMetadata("compiler/testData/codegen/box/compatibility") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Compatibility extends AbstractLightAnalysisModeCodegenTest { + public void testAllFilesPresentInCompatibility() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/compatibility"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); + } + + @TestMetadata("dataClassEqualsHashCodeToString.kt") + public void testDataClassEqualsHashCodeToString() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/compatibility/dataClassEqualsHashCodeToString.kt"); + doTest(fileName); + } + } + @TestMetadata("compiler/testData/codegen/box/constants") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -3758,6 +3995,12 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis doTest(fileName); } + @TestMetadata("kt14839.kt") + public void testKt14839() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/controlStructures/kt14839.kt"); + doTest(fileName); + } + @TestMetadata("kt1688.kt") public void testKt1688() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/controlStructures/kt1688.kt"); @@ -4242,6 +4485,501 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis } } + @TestMetadata("compiler/testData/codegen/box/coroutines") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Coroutines extends AbstractLightAnalysisModeCodegenTest { + public void testAllFilesPresentInCoroutines() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/coroutines"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); + } + + @TestMetadata("beginWithException.kt") + public void testBeginWithException() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/beginWithException.kt"); + doTest(fileName); + } + + @TestMetadata("beginWithExceptionNoHandleException.kt") + public void testBeginWithExceptionNoHandleException() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/beginWithExceptionNoHandleException.kt"); + doTest(fileName); + } + + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/coercionToUnit.kt"); + doTest(fileName); + } + + @TestMetadata("controllerAccessFromInnerLambda.kt") + public void testControllerAccessFromInnerLambda() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt"); + doTest(fileName); + } + + @TestMetadata("defaultParametersInSuspend.kt") + public void testDefaultParametersInSuspend() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/defaultParametersInSuspend.kt"); + doTest(fileName); + } + + @TestMetadata("emptyClosure.kt") + public void testEmptyClosure() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/emptyClosure.kt"); + doTest(fileName); + } + + @TestMetadata("falseUnitCoercion.kt") + public void testFalseUnitCoercion() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt"); + doTest(fileName); + } + + @TestMetadata("generate.kt") + public void testGenerate() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/generate.kt"); + doTest(fileName); + } + + @TestMetadata("handleException.kt") + public void testHandleException() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/handleException.kt"); + doTest(fileName); + } + + @TestMetadata("handleResultCallEmptyBody.kt") + public void testHandleResultCallEmptyBody() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/handleResultCallEmptyBody.kt"); + doTest(fileName); + } + + @TestMetadata("handleResultNonUnitExpression.kt") + public void testHandleResultNonUnitExpression() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/handleResultNonUnitExpression.kt"); + doTest(fileName); + } + + @TestMetadata("handleResultSuspended.kt") + public void testHandleResultSuspended() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/handleResultSuspended.kt"); + doTest(fileName); + } + + @TestMetadata("illegalState.kt") + public void testIllegalState() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/illegalState.kt"); + doTest(fileName); + } + + @TestMetadata("inlineSuspendFunction.kt") + public void testInlineSuspendFunction() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/inlineSuspendFunction.kt"); + doTest(fileName); + } + + @TestMetadata("inlinedTryCatchFinally.kt") + public void testInlinedTryCatchFinally() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/inlinedTryCatchFinally.kt"); + doTest(fileName); + } + + @TestMetadata("innerSuspensionCalls.kt") + public void testInnerSuspensionCalls() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/innerSuspensionCalls.kt"); + doTest(fileName); + } + + @TestMetadata("instanceOfContinuation.kt") + public void testInstanceOfContinuation() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/instanceOfContinuation.kt"); + doTest(fileName); + } + + @TestMetadata("iterateOverArray.kt") + public void testIterateOverArray() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/iterateOverArray.kt"); + doTest(fileName); + } + + @TestMetadata("kt12958.kt") + public void testKt12958() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/kt12958.kt"); + doTest(fileName); + } + + @TestMetadata("lambdaParameters.kt") + public void testLambdaParameters() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/lambdaParameters.kt"); + doTest(fileName); + } + + @TestMetadata("lastExpressionIsLoop.kt") + public void testLastExpressionIsLoop() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/lastExpressionIsLoop.kt"); + doTest(fileName); + } + + @TestMetadata("lastStatementInc.kt") + public void testLastStatementInc() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/lastStatementInc.kt"); + doTest(fileName); + } + + @TestMetadata("lastStementAssignment.kt") + public void testLastStementAssignment() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/lastStementAssignment.kt"); + doTest(fileName); + } + + @TestMetadata("lastUnitExpression.kt") + public void testLastUnitExpression() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/lastUnitExpression.kt"); + doTest(fileName); + } + + @TestMetadata("manualContinuationImpl.kt") + public void testManualContinuationImpl() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/manualContinuationImpl.kt"); + doTest(fileName); + } + + @TestMetadata("multipleInvokeCalls.kt") + public void testMultipleInvokeCalls() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/multipleInvokeCalls.kt"); + doTest(fileName); + } + + @TestMetadata("multipleInvokeCallsInsideInlineLambda1.kt") + public void testMultipleInvokeCallsInsideInlineLambda1() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda1.kt"); + doTest(fileName); + } + + @TestMetadata("multipleInvokeCallsInsideInlineLambda2.kt") + public void testMultipleInvokeCallsInsideInlineLambda2() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda2.kt"); + doTest(fileName); + } + + @TestMetadata("multipleInvokeCallsInsideInlineLambda3.kt") + public void testMultipleInvokeCallsInsideInlineLambda3() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda3.kt"); + doTest(fileName); + } + + @TestMetadata("nestedTryCatch.kt") + public void testNestedTryCatch() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/nestedTryCatch.kt"); + doTest(fileName); + } + + @TestMetadata("noSuspensionPoints.kt") + public void testNoSuspensionPoints() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/noSuspensionPoints.kt"); + doTest(fileName); + } + + @TestMetadata("nonLocalReturnFromInlineLambda.kt") + public void testNonLocalReturnFromInlineLambda() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/nonLocalReturnFromInlineLambda.kt"); + doTest(fileName); + } + + @TestMetadata("nonLocalReturnFromInlineLambdaDeep.kt") + public void testNonLocalReturnFromInlineLambdaDeep() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/nonLocalReturnFromInlineLambdaDeep.kt"); + doTest(fileName); + } + + @TestMetadata("returnByLabel.kt") + public void testReturnByLabel() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/returnByLabel.kt"); + doTest(fileName); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/simple.kt"); + doTest(fileName); + } + + @TestMetadata("simpleException.kt") + public void testSimpleException() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/simpleException.kt"); + doTest(fileName); + } + + @TestMetadata("simpleWithHandleResult.kt") + public void testSimpleWithHandleResult() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/simpleWithHandleResult.kt"); + doTest(fileName); + } + + @TestMetadata("statementLikeLastExpression.kt") + public void testStatementLikeLastExpression() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/statementLikeLastExpression.kt"); + doTest(fileName); + } + + @TestMetadata("suspendDelegation.kt") + public void testSuspendDelegation() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/suspendDelegation.kt"); + doTest(fileName); + } + + @TestMetadata("suspendExtension.kt") + public void testSuspendExtension() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/suspendExtension.kt"); + doTest(fileName); + } + + @TestMetadata("suspendFromInlineLambda.kt") + public void testSuspendFromInlineLambda() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/suspendFromInlineLambda.kt"); + doTest(fileName); + } + + @TestMetadata("suspendInCycle.kt") + public void testSuspendInCycle() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/suspendInCycle.kt"); + doTest(fileName); + } + + @TestMetadata("suspendInTheMiddleOfObjectConstruction.kt") + public void testSuspendInTheMiddleOfObjectConstruction() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstruction.kt"); + doTest(fileName); + } + + @TestMetadata("tryCatchFinallyWithHandleResult.kt") + public void testTryCatchFinallyWithHandleResult() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/tryCatchFinallyWithHandleResult.kt"); + doTest(fileName); + } + + @TestMetadata("tryCatchWithHandleResult.kt") + public void testTryCatchWithHandleResult() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/tryCatchWithHandleResult.kt"); + doTest(fileName); + } + + @TestMetadata("tryFinallyInsideInlineLambda.kt") + public void testTryFinallyInsideInlineLambda() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/tryFinallyInsideInlineLambda.kt"); + doTest(fileName); + } + + @TestMetadata("tryFinallyWithHandleResult.kt") + public void testTryFinallyWithHandleResult() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/tryFinallyWithHandleResult.kt"); + doTest(fileName); + } + + @TestMetadata("varValueConflictsWithTable.kt") + public void testVarValueConflictsWithTable() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/varValueConflictsWithTable.kt"); + doTest(fileName); + } + + @TestMetadata("varValueConflictsWithTableSameSort.kt") + public void testVarValueConflictsWithTableSameSort() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/varValueConflictsWithTableSameSort.kt"); + doTest(fileName); + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/controlFlow") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ControlFlow extends AbstractLightAnalysisModeCodegenTest { + public void testAllFilesPresentInControlFlow() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/coroutines/controlFlow"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); + } + + @TestMetadata("breakFinally.kt") + public void testBreakFinally() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/breakFinally.kt"); + doTest(fileName); + } + + @TestMetadata("breakStatement.kt") + public void testBreakStatement() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/breakStatement.kt"); + doTest(fileName); + } + + @TestMetadata("doWhileStatement.kt") + public void testDoWhileStatement() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/doWhileStatement.kt"); + doTest(fileName); + } + + @TestMetadata("forContinue.kt") + public void testForContinue() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/forContinue.kt"); + doTest(fileName); + } + + @TestMetadata("forStatement.kt") + public void testForStatement() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/forStatement.kt"); + doTest(fileName); + } + + @TestMetadata("ifStatement.kt") + public void testIfStatement() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/ifStatement.kt"); + doTest(fileName); + } + + @TestMetadata("switchLikeWhen.kt") + public void testSwitchLikeWhen() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/switchLikeWhen.kt"); + doTest(fileName); + } + + @TestMetadata("throwFromCatch.kt") + public void testThrowFromCatch() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/throwFromCatch.kt"); + doTest(fileName); + } + + @TestMetadata("throwInTryWithHandleResult.kt") + public void testThrowInTryWithHandleResult() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/throwInTryWithHandleResult.kt"); + doTest(fileName); + } + + @TestMetadata("whileStatement.kt") + public void testWhileStatement() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/whileStatement.kt"); + doTest(fileName); + } + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class IntLikeVarSpilling extends AbstractLightAnalysisModeCodegenTest { + public void testAllFilesPresentInIntLikeVarSpilling() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/coroutines/intLikeVarSpilling"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); + } + + @TestMetadata("complicatedMerge.kt") + public void testComplicatedMerge() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/complicatedMerge.kt"); + doTest(fileName); + } + + @TestMetadata("i2bResult.kt") + public void testI2bResult() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/i2bResult.kt"); + doTest(fileName); + } + + @TestMetadata("loadFromBooleanArray.kt") + public void testLoadFromBooleanArray() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/loadFromBooleanArray.kt"); + doTest(fileName); + } + + @TestMetadata("loadFromByteArray.kt") + public void testLoadFromByteArray() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/loadFromByteArray.kt"); + doTest(fileName); + } + + @TestMetadata("noVariableInTable.kt") + public void testNoVariableInTable() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/noVariableInTable.kt"); + doTest(fileName); + } + + @TestMetadata("sameIconst1ManyVars.kt") + public void testSameIconst1ManyVars() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/sameIconst1ManyVars.kt"); + doTest(fileName); + } + + @TestMetadata("usedInArrayStore.kt") + public void testUsedInArrayStore() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInArrayStore.kt"); + doTest(fileName); + } + + @TestMetadata("usedInMethodCall.kt") + public void testUsedInMethodCall() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInMethodCall.kt"); + doTest(fileName); + } + + @TestMetadata("usedInPutfield.kt") + public void testUsedInPutfield() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInPutfield.kt"); + doTest(fileName); + } + + @TestMetadata("usedInVarStore.kt") + public void testUsedInVarStore() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInVarStore.kt"); + doTest(fileName); + } + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/multiModule") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class MultiModule extends AbstractLightAnalysisModeCodegenTest { + public void testAllFilesPresentInMultiModule() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/coroutines/multiModule"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/multiModule/simple.kt"); + doTest(fileName); + } + + @TestMetadata("suspendExtension.kt") + public void testSuspendExtension() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/multiModule/suspendExtension.kt"); + doTest(fileName); + } + } + + @TestMetadata("compiler/testData/codegen/box/coroutines/stackUnwinding") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class StackUnwinding extends AbstractLightAnalysisModeCodegenTest { + public void testAllFilesPresentInStackUnwinding() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/coroutines/stackUnwinding"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); + } + + @TestMetadata("exception.kt") + public void testException() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/stackUnwinding/exception.kt"); + doTest(fileName); + } + + @TestMetadata("inlineSuspendFunction.kt") + public void testInlineSuspendFunction() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/stackUnwinding/inlineSuspendFunction.kt"); + doTest(fileName); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/stackUnwinding/simple.kt"); + doTest(fileName); + } + + @TestMetadata("suspendInCycle.kt") + public void testSuspendInCycle() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/stackUnwinding/suspendInCycle.kt"); + doTest(fileName); + } + } + } + @TestMetadata("compiler/testData/codegen/box/dataClasses") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -4304,6 +5042,18 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis doTest(fileName); } + @TestMetadata("nonTrivialFinalMemberInSuperClass.kt") + public void testNonTrivialFinalMemberInSuperClass() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/dataClasses/nonTrivialFinalMemberInSuperClass.kt"); + doTest(fileName); + } + + @TestMetadata("nonTrivialMemberInSuperClass.kt") + public void testNonTrivialMemberInSuperClass() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/dataClasses/nonTrivialMemberInSuperClass.kt"); + doTest(fileName); + } + @TestMetadata("privateValParams.kt") public void testPrivateValParams() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/dataClasses/privateValParams.kt"); @@ -5149,6 +5899,87 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/delegatedProperty/varInInnerClass.kt"); doTest(fileName); } + + @TestMetadata("compiler/testData/codegen/box/delegatedProperty/local") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Local extends AbstractLightAnalysisModeCodegenTest { + public void testAllFilesPresentInLocal() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/delegatedProperty/local"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); + } + + @TestMetadata("capturedLocalVal.kt") + public void testCapturedLocalVal() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/delegatedProperty/local/capturedLocalVal.kt"); + doTest(fileName); + } + + @TestMetadata("capturedLocalValNoInline.kt") + public void testCapturedLocalValNoInline() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/delegatedProperty/local/capturedLocalValNoInline.kt"); + doTest(fileName); + } + + @TestMetadata("capturedLocalVar.kt") + public void testCapturedLocalVar() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/delegatedProperty/local/capturedLocalVar.kt"); + doTest(fileName); + } + + @TestMetadata("capturedLocalVarNoInline.kt") + public void testCapturedLocalVarNoInline() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/delegatedProperty/local/capturedLocalVarNoInline.kt"); + doTest(fileName); + } + + @TestMetadata("inlineGetValue.kt") + public void testInlineGetValue() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/delegatedProperty/local/inlineGetValue.kt"); + doTest(fileName); + } + + @TestMetadata("inlineOperators.kt") + public void testInlineOperators() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/delegatedProperty/local/inlineOperators.kt"); + doTest(fileName); + } + + @TestMetadata("kt12891.kt") + public void testKt12891() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/delegatedProperty/local/kt12891.kt"); + doTest(fileName); + } + + @TestMetadata("kt13557.kt") + public void testKt13557() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/delegatedProperty/local/kt13557.kt"); + doTest(fileName); + } + + @TestMetadata("localVal.kt") + public void testLocalVal() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/delegatedProperty/local/localVal.kt"); + doTest(fileName); + } + + @TestMetadata("localValNoExplicitType.kt") + public void testLocalValNoExplicitType() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/delegatedProperty/local/localValNoExplicitType.kt"); + doTest(fileName); + } + + @TestMetadata("localVar.kt") + public void testLocalVar() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/delegatedProperty/local/localVar.kt"); + doTest(fileName); + } + + @TestMetadata("localVarNoExplicitType.kt") + public void testLocalVarNoExplicitType() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/delegatedProperty/local/localVarNoExplicitType.kt"); + doTest(fileName); + } + } } @TestMetadata("compiler/testData/codegen/box/delegation") @@ -5172,6 +6003,63 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis } } + @TestMetadata("compiler/testData/codegen/box/destructuringDeclInLambdaParam") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DestructuringDeclInLambdaParam extends AbstractLightAnalysisModeCodegenTest { + public void testAllFilesPresentInDestructuringDeclInLambdaParam() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/destructuringDeclInLambdaParam"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); + } + + @TestMetadata("extensionComponents.kt") + public void testExtensionComponents() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/destructuringDeclInLambdaParam/extensionComponents.kt"); + doTest(fileName); + } + + @TestMetadata("generic.kt") + public void testGeneric() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/destructuringDeclInLambdaParam/generic.kt"); + doTest(fileName); + } + + @TestMetadata("inline.kt") + public void testInline() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/destructuringDeclInLambdaParam/inline.kt"); + doTest(fileName); + } + + @TestMetadata("otherParameters.kt") + public void testOtherParameters() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/destructuringDeclInLambdaParam/otherParameters.kt"); + doTest(fileName); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/destructuringDeclInLambdaParam/simple.kt"); + doTest(fileName); + } + + @TestMetadata("stdlibUsages.kt") + public void testStdlibUsages() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/destructuringDeclInLambdaParam/stdlibUsages.kt"); + doTest(fileName); + } + + @TestMetadata("underscoreNames.kt") + public void testUnderscoreNames() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/destructuringDeclInLambdaParam/underscoreNames.kt"); + doTest(fileName); + } + + @TestMetadata("withIndexed.kt") + public void testWithIndexed() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/destructuringDeclInLambdaParam/withIndexed.kt"); + doTest(fileName); + } + } + @TestMetadata("compiler/testData/codegen/box/diagnostics") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -6627,6 +7515,12 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/functions/functionExpression/functionLiteralExpression.kt"); doTest(fileName); } + + @TestMetadata("underscoreParameters.kt") + public void testUnderscoreParameters() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/functions/functionExpression/underscoreParameters.kt"); + doTest(fileName); + } } @TestMetadata("compiler/testData/codegen/box/functions/invoke") @@ -6887,6 +7781,12 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis doTest(fileName); } + @TestMetadata("augmentedAssignmentWithComplexRhs.kt") + public void testAugmentedAssignmentWithComplexRhs() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/increment/augmentedAssignmentWithComplexRhs.kt"); + doTest(fileName); + } + @TestMetadata("classNaryGetSet.kt") public void testClassNaryGetSet() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/increment/classNaryGetSet.kt"); @@ -7439,6 +8339,12 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/javaInterop"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); } + @TestMetadata("lambdaInstanceOf.kt") + public void testLambdaInstanceOf() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/javaInterop/lambdaInstanceOf.kt"); + doTest(fileName); + } + @TestMetadata("compiler/testData/codegen/box/javaInterop/generics") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -8432,6 +9338,12 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis doTest(fileName); } + @TestMetadata("UnderscoreNames.kt") + public void testUnderscoreNames() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/multiDecl/UnderscoreNames.kt"); + doTest(fileName); + } + @TestMetadata("ValCapturedInFunctionLiteral.kt") public void testValCapturedInFunctionLiteral() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/multiDecl/ValCapturedInFunctionLiteral.kt"); @@ -8578,6 +9490,18 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis doTest(fileName); } + @TestMetadata("UnderscoreNames.kt") + public void testUnderscoreNames() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/multiDecl/forRange/UnderscoreNames.kt"); + doTest(fileName); + } + + @TestMetadata("UnderscoreNamesDontCallComponent.kt") + public void testUnderscoreNamesDontCallComponent() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/multiDecl/forRange/UnderscoreNamesDontCallComponent.kt"); + doTest(fileName); + } + @TestMetadata("compiler/testData/codegen/box/multiDecl/forRange/explicitRangeTo") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -9383,6 +10307,12 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis doTest(fileName); } + @TestMetadata("operatorSetLambda.kt") + public void testOperatorSetLambda() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/operatorConventions/operatorSetLambda.kt"); + doTest(fileName); + } + @TestMetadata("overloadedSet.kt") public void testOverloadedSet() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/operatorConventions/overloadedSet.kt"); @@ -10109,6 +11039,18 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/properties"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); } + @TestMetadata("augmentedAssignmentsAndIncrements.kt") + public void testAugmentedAssignmentsAndIncrements() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/properties/augmentedAssignmentsAndIncrements.kt"); + try { + doTest(fileName); + } + catch (Throwable ignore) { + return; + } + throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + } + @TestMetadata("classArtificialFieldInsideNested.kt") public void testClassArtificialFieldInsideNested() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/properties/classArtificialFieldInsideNested.kt"); @@ -10493,6 +11435,12 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis doTest(fileName); } + @TestMetadata("typeInferredFromGetter.kt") + public void testTypeInferredFromGetter() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/properties/typeInferredFromGetter.kt"); + doTest(fileName); + } + @TestMetadata("compiler/testData/codegen/box/properties/const") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -10654,6 +11602,12 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis doTest(fileName); } + @TestMetadata("inIntRange.kt") + public void testInIntRange() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/contains/inIntRange.kt"); + doTest(fileName); + } + @TestMetadata("inOptimizableDoubleRange.kt") public void testInOptimizableDoubleRange() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/contains/inOptimizableDoubleRange.kt"); @@ -10927,6 +11881,12 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/ranges/forInIndices"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); } + @TestMetadata("forInCharSequenceIndices.kt") + public void testForInCharSequenceIndices() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/forInIndices/forInCharSequenceIndices.kt"); + doTest(fileName); + } + @TestMetadata("forInCollectionImplicitReceiverIndices.kt") public void testForInCollectionImplicitReceiverIndices() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/forInIndices/forInCollectionImplicitReceiverIndices.kt"); @@ -10999,6 +11959,12 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis doTest(fileName); } + @TestMetadata("kt13241_CharSequence.kt") + public void testKt13241_CharSequence() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/forInIndices/kt13241_CharSequence.kt"); + doTest(fileName); + } + @TestMetadata("kt13241_Collection.kt") public void testKt13241_Collection() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/forInIndices/kt13241_Collection.kt"); @@ -11427,6 +12393,93 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/call/simpleTopLevelFunctions.kt"); doTest(fileName); } + + @TestMetadata("compiler/testData/codegen/box/reflection/call/bound") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Bound extends AbstractLightAnalysisModeCodegenTest { + public void testAllFilesPresentInBound() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/reflection/call/bound"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); + } + + @TestMetadata("companionObjectPropertyAccessors.kt") + public void testCompanionObjectPropertyAccessors() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/call/bound/companionObjectPropertyAccessors.kt"); + doTest(fileName); + } + + @TestMetadata("extensionFunction.kt") + public void testExtensionFunction() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/call/bound/extensionFunction.kt"); + doTest(fileName); + } + + @TestMetadata("extensionPropertyAccessors.kt") + public void testExtensionPropertyAccessors() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/call/bound/extensionPropertyAccessors.kt"); + doTest(fileName); + } + + @TestMetadata("innerClassConstructor.kt") + public void testInnerClassConstructor() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/call/bound/innerClassConstructor.kt"); + doTest(fileName); + } + + @TestMetadata("javaInstanceField.kt") + public void testJavaInstanceField() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/call/bound/javaInstanceField.kt"); + doTest(fileName); + } + + @TestMetadata("javaInstanceMethod.kt") + public void testJavaInstanceMethod() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/call/bound/javaInstanceMethod.kt"); + doTest(fileName); + } + + @TestMetadata("jvmStaticCompanionObjectPropertyAccessors.kt") + public void testJvmStaticCompanionObjectPropertyAccessors() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/call/bound/jvmStaticCompanionObjectPropertyAccessors.kt"); + doTest(fileName); + } + + @TestMetadata("jvmStaticObjectFunction.kt") + public void testJvmStaticObjectFunction() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/call/bound/jvmStaticObjectFunction.kt"); + doTest(fileName); + } + + @TestMetadata("jvmStaticObjectPropertyAccessors.kt") + public void testJvmStaticObjectPropertyAccessors() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/call/bound/jvmStaticObjectPropertyAccessors.kt"); + doTest(fileName); + } + + @TestMetadata("memberFunction.kt") + public void testMemberFunction() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/call/bound/memberFunction.kt"); + doTest(fileName); + } + + @TestMetadata("memberPropertyAccessors.kt") + public void testMemberPropertyAccessors() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/call/bound/memberPropertyAccessors.kt"); + doTest(fileName); + } + + @TestMetadata("objectFunction.kt") + public void testObjectFunction() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/call/bound/objectFunction.kt"); + doTest(fileName); + } + + @TestMetadata("objectPropertyAccessors.kt") + public void testObjectPropertyAccessors() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/call/bound/objectPropertyAccessors.kt"); + doTest(fileName); + } + } } @TestMetadata("compiler/testData/codegen/box/reflection/callBy") @@ -11437,6 +12490,24 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/reflection/callBy"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); } + @TestMetadata("boundExtensionFunction.kt") + public void testBoundExtensionFunction() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/callBy/boundExtensionFunction.kt"); + doTest(fileName); + } + + @TestMetadata("boundExtensionPropertyAcessor.kt") + public void testBoundExtensionPropertyAcessor() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/callBy/boundExtensionPropertyAcessor.kt"); + doTest(fileName); + } + + @TestMetadata("boundJvmStaticInObject.kt") + public void testBoundJvmStaticInObject() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/callBy/boundJvmStaticInObject.kt"); + doTest(fileName); + } + @TestMetadata("companionObject.kt") public void testCompanionObject() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/callBy/companionObject.kt"); @@ -11599,9 +12670,15 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis doTest(fileName); } - @TestMetadata("defaultType.kt") - public void testDefaultType() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/classes/defaultType.kt"); + @TestMetadata("createInstance.kt") + public void testCreateInstance() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/classes/createInstance.kt"); + doTest(fileName); + } + + @TestMetadata("declaredMembers.kt") + public void testDeclaredMembers() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/classes/declaredMembers.kt"); doTest(fileName); } @@ -11646,6 +12723,12 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/classes/qualifiedName.kt"); doTest(fileName); } + + @TestMetadata("starProjectedType.kt") + public void testStarProjectedType() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/classes/starProjectedType.kt"); + doTest(fileName); + } } @TestMetadata("compiler/testData/codegen/box/reflection/constructors") @@ -11656,6 +12739,12 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/reflection/constructors"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); } + @TestMetadata("annotationClass.kt") + public void testAnnotationClass() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/constructors/annotationClass.kt"); + doTest(fileName); + } + @TestMetadata("classesWithoutConstructors.kt") public void testClassesWithoutConstructors() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/constructors/classesWithoutConstructors.kt"); @@ -11681,6 +12770,87 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis } } + @TestMetadata("compiler/testData/codegen/box/reflection/createAnnotation") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class CreateAnnotation extends AbstractLightAnalysisModeCodegenTest { + public void testAllFilesPresentInCreateAnnotation() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/reflection/createAnnotation"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); + } + + @TestMetadata("annotationType.kt") + public void testAnnotationType() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/createAnnotation/annotationType.kt"); + doTest(fileName); + } + + @TestMetadata("arrayOfKClasses.kt") + public void testArrayOfKClasses() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/createAnnotation/arrayOfKClasses.kt"); + doTest(fileName); + } + + @TestMetadata("callByJava.kt") + public void testCallByJava() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/createAnnotation/callByJava.kt"); + doTest(fileName); + } + + @TestMetadata("callByKotlin.kt") + public void testCallByKotlin() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/createAnnotation/callByKotlin.kt"); + doTest(fileName); + } + + @TestMetadata("callJava.kt") + public void testCallJava() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/createAnnotation/callJava.kt"); + doTest(fileName); + } + + @TestMetadata("callKotlin.kt") + public void testCallKotlin() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/createAnnotation/callKotlin.kt"); + doTest(fileName); + } + + @TestMetadata("createJdkAnnotationInstance.kt") + public void testCreateJdkAnnotationInstance() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/createAnnotation/createJdkAnnotationInstance.kt"); + doTest(fileName); + } + + @TestMetadata("enumKClassAnnotation.kt") + public void testEnumKClassAnnotation() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/createAnnotation/enumKClassAnnotation.kt"); + doTest(fileName); + } + + @TestMetadata("equalsHashCodeToString.kt") + public void testEqualsHashCodeToString() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/createAnnotation/equalsHashCodeToString.kt"); + doTest(fileName); + } + + @TestMetadata("floatingPointParameters.kt") + public void testFloatingPointParameters() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/createAnnotation/floatingPointParameters.kt"); + doTest(fileName); + } + + @TestMetadata("parameterNamedEquals.kt") + public void testParameterNamedEquals() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/createAnnotation/parameterNamedEquals.kt"); + doTest(fileName); + } + + @TestMetadata("primitivesAndArrays.kt") + public void testPrimitivesAndArrays() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/createAnnotation/primitivesAndArrays.kt"); + doTest(fileName); + } + } + @TestMetadata("compiler/testData/codegen/box/reflection/enclosing") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -11860,6 +13030,12 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis doTest(fileName); } + @TestMetadata("instanceOfFunction.kt") + public void testInstanceOfFunction() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/functions/instanceOfFunction.kt"); + doTest(fileName); + } + @TestMetadata("javaClassGetFunctions.kt") public void testJavaClassGetFunctions() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/functions/javaClassGetFunctions.kt"); @@ -11954,6 +13130,21 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis } } + @TestMetadata("compiler/testData/codegen/box/reflection/isInstance") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class IsInstance extends AbstractLightAnalysisModeCodegenTest { + public void testAllFilesPresentInIsInstance() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/reflection/isInstance"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); + } + + @TestMetadata("isInstanceCastAndSafeCast.kt") + public void testIsInstanceCastAndSafeCast() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/isInstance/isInstanceCastAndSafeCast.kt"); + doTest(fileName); + } + } + @TestMetadata("compiler/testData/codegen/box/reflection/kClassInAnnotation") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -12138,6 +13329,12 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/reflection/mapping/types"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); } + @TestMetadata("annotationConstructorParameters.kt") + public void testAnnotationConstructorParameters() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/mapping/types/annotationConstructorParameters.kt"); + doTest(fileName); + } + @TestMetadata("array.kt") public void testArray() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/mapping/types/array.kt"); @@ -12150,6 +13347,18 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis doTest(fileName); } + @TestMetadata("genericArrayElementType.kt") + public void testGenericArrayElementType() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/mapping/types/genericArrayElementType.kt"); + doTest(fileName); + } + + @TestMetadata("innerGenericTypeArgument.kt") + public void testInnerGenericTypeArgument() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/mapping/types/innerGenericTypeArgument.kt"); + doTest(fileName); + } + @TestMetadata("memberFunctions.kt") public void testMemberFunctions() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/mapping/types/memberFunctions.kt"); @@ -12162,6 +13371,12 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis doTest(fileName); } + @TestMetadata("parameterizedTypeArgument.kt") + public void testParameterizedTypeArgument() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/mapping/types/parameterizedTypeArgument.kt"); + doTest(fileName); + } + @TestMetadata("parameterizedTypes.kt") public void testParameterizedTypes() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/mapping/types/parameterizedTypes.kt"); @@ -12174,6 +13389,18 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis doTest(fileName); } + @TestMetadata("rawTypeArgument.kt") + public void testRawTypeArgument() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/mapping/types/rawTypeArgument.kt"); + doTest(fileName); + } + + @TestMetadata("supertypes.kt") + public void testSupertypes() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/mapping/types/supertypes.kt"); + doTest(fileName); + } + @TestMetadata("topLevelFunctions.kt") public void testTopLevelFunctions() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/mapping/types/topLevelFunctions.kt"); @@ -12191,6 +13418,12 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/mapping/types/unit.kt"); doTest(fileName); } + + @TestMetadata("withNullability.kt") + public void testWithNullability() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/mapping/types/withNullability.kt"); + doTest(fileName); + } } } @@ -12268,11 +13501,98 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis doTest(fileName); } + @TestMetadata("typeParametersEqualsHashCode.kt") + public void testTypeParametersEqualsHashCode() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/methodsFromAny/typeParametersEqualsHashCode.kt"); + doTest(fileName); + } + + @TestMetadata("typeParametersToString.kt") + public void testTypeParametersToString() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/methodsFromAny/typeParametersToString.kt"); + doTest(fileName); + } + @TestMetadata("typeToString.kt") public void testTypeToString() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/methodsFromAny/typeToString.kt"); doTest(fileName); } + + @TestMetadata("typeToStringInnerGeneric.kt") + public void testTypeToStringInnerGeneric() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/methodsFromAny/typeToStringInnerGeneric.kt"); + doTest(fileName); + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/modifiers") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Modifiers extends AbstractLightAnalysisModeCodegenTest { + public void testAllFilesPresentInModifiers() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/reflection/modifiers"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); + } + + @TestMetadata("callableModality.kt") + public void testCallableModality() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/modifiers/callableModality.kt"); + doTest(fileName); + } + + @TestMetadata("callableVisibility.kt") + public void testCallableVisibility() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/modifiers/callableVisibility.kt"); + doTest(fileName); + } + + @TestMetadata("classModality.kt") + public void testClassModality() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/modifiers/classModality.kt"); + doTest(fileName); + } + + @TestMetadata("classVisibility.kt") + public void testClassVisibility() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/modifiers/classVisibility.kt"); + doTest(fileName); + } + + @TestMetadata("classes.kt") + public void testClasses() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/modifiers/classes.kt"); + doTest(fileName); + } + + @TestMetadata("functions.kt") + public void testFunctions() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/modifiers/functions.kt"); + doTest(fileName); + } + + @TestMetadata("javaVisibility.kt") + public void testJavaVisibility() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/modifiers/javaVisibility.kt"); + doTest(fileName); + } + + @TestMetadata("parameters.kt") + public void testParameters() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/modifiers/parameters.kt"); + doTest(fileName); + } + + @TestMetadata("properties.kt") + public void testProperties() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/modifiers/properties.kt"); + doTest(fileName); + } + + @TestMetadata("typeParameters.kt") + public void testTypeParameters() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/modifiers/typeParameters.kt"); + doTest(fileName); + } } @TestMetadata("compiler/testData/codegen/box/reflection/multifileClasses") @@ -12376,12 +13696,42 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/reflection/parameters"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); } + @TestMetadata("boundInnerClassConstructor.kt") + public void testBoundInnerClassConstructor() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/parameters/boundInnerClassConstructor.kt"); + doTest(fileName); + } + + @TestMetadata("boundObjectMemberReferences.kt") + public void testBoundObjectMemberReferences() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/parameters/boundObjectMemberReferences.kt"); + doTest(fileName); + } + + @TestMetadata("boundReferences.kt") + public void testBoundReferences() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/parameters/boundReferences.kt"); + doTest(fileName); + } + + @TestMetadata("findParameterByName.kt") + public void testFindParameterByName() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/parameters/findParameterByName.kt"); + doTest(fileName); + } + @TestMetadata("functionParameterNameAndIndex.kt") public void testFunctionParameterNameAndIndex() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/parameters/functionParameterNameAndIndex.kt"); doTest(fileName); } + @TestMetadata("instanceExtensionReceiverAndValueParameters.kt") + public void testInstanceExtensionReceiverAndValueParameters() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/parameters/instanceExtensionReceiverAndValueParameters.kt"); + doTest(fileName); + } + @TestMetadata("isMarkedNullable.kt") public void testIsMarkedNullable() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/parameters/isMarkedNullable.kt"); @@ -12394,6 +13744,12 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis doTest(fileName); } + @TestMetadata("javaAnnotationConstructor.kt") + public void testJavaAnnotationConstructor() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/parameters/javaAnnotationConstructor.kt"); + doTest(fileName); + } + @TestMetadata("javaParametersHaveNoNames.kt") public void testJavaParametersHaveNoNames() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/parameters/javaParametersHaveNoNames.kt"); @@ -12650,6 +14006,72 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis } } + @TestMetadata("compiler/testData/codegen/box/reflection/supertypes") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Supertypes extends AbstractLightAnalysisModeCodegenTest { + public void testAllFilesPresentInSupertypes() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/reflection/supertypes"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); + } + + @TestMetadata("builtInClassSupertypes.kt") + public void testBuiltInClassSupertypes() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/supertypes/builtInClassSupertypes.kt"); + doTest(fileName); + } + + @TestMetadata("genericSubstitution.kt") + public void testGenericSubstitution() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/supertypes/genericSubstitution.kt"); + doTest(fileName); + } + + @TestMetadata("isSubclassOfIsSuperclassOf.kt") + public void testIsSubclassOfIsSuperclassOf() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/supertypes/isSubclassOfIsSuperclassOf.kt"); + doTest(fileName); + } + + @TestMetadata("primitives.kt") + public void testPrimitives() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/supertypes/primitives.kt"); + doTest(fileName); + } + + @TestMetadata("simpleSupertypes.kt") + public void testSimpleSupertypes() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/supertypes/simpleSupertypes.kt"); + doTest(fileName); + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/typeParameters") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class TypeParameters extends AbstractLightAnalysisModeCodegenTest { + public void testAllFilesPresentInTypeParameters() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/reflection/typeParameters"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); + } + + @TestMetadata("declarationSiteVariance.kt") + public void testDeclarationSiteVariance() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/typeParameters/declarationSiteVariance.kt"); + doTest(fileName); + } + + @TestMetadata("typeParametersAndNames.kt") + public void testTypeParametersAndNames() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/typeParameters/typeParametersAndNames.kt"); + doTest(fileName); + } + + @TestMetadata("upperBounds.kt") + public void testUpperBounds() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/typeParameters/upperBounds.kt"); + doTest(fileName); + } + } + @TestMetadata("compiler/testData/codegen/box/reflection/types") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -12658,6 +14080,48 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/reflection/types"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); } + @TestMetadata("classifierIsClass.kt") + public void testClassifierIsClass() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/classifierIsClass.kt"); + doTest(fileName); + } + + @TestMetadata("classifierIsTypeParameter.kt") + public void testClassifierIsTypeParameter() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/classifierIsTypeParameter.kt"); + doTest(fileName); + } + + @TestMetadata("classifiersOfBuiltInTypes.kt") + public void testClassifiersOfBuiltInTypes() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/classifiersOfBuiltInTypes.kt"); + doTest(fileName); + } + + @TestMetadata("innerGenericArguments.kt") + public void testInnerGenericArguments() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/innerGenericArguments.kt"); + doTest(fileName); + } + + @TestMetadata("jvmErasureOfClass.kt") + public void testJvmErasureOfClass() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/jvmErasureOfClass.kt"); + doTest(fileName); + } + + @TestMetadata("jvmErasureOfTypeParameter.kt") + public void testJvmErasureOfTypeParameter() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/jvmErasureOfTypeParameter.kt"); + doTest(fileName); + } + + @TestMetadata("platformTypeClassifier.kt") + public void testPlatformTypeClassifier() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/platformTypeClassifier.kt"); + doTest(fileName); + } + @TestMetadata("platformTypeNotEqualToKotlinType.kt") public void testPlatformTypeNotEqualToKotlinType() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/platformTypeNotEqualToKotlinType.kt"); @@ -12669,6 +14133,96 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/platformTypeToString.kt"); doTest(fileName); } + + @TestMetadata("typeArguments.kt") + public void testTypeArguments() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/typeArguments.kt"); + doTest(fileName); + } + + @TestMetadata("useSiteVariance.kt") + public void testUseSiteVariance() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/useSiteVariance.kt"); + doTest(fileName); + } + + @TestMetadata("withNullability.kt") + public void testWithNullability() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/withNullability.kt"); + doTest(fileName); + } + + @TestMetadata("compiler/testData/codegen/box/reflection/types/createType") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class CreateType extends AbstractLightAnalysisModeCodegenTest { + public void testAllFilesPresentInCreateType() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/reflection/types/createType"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); + } + + @TestMetadata("equality.kt") + public void testEquality() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/createType/equality.kt"); + doTest(fileName); + } + + @TestMetadata("innerGeneric.kt") + public void testInnerGeneric() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/createType/innerGeneric.kt"); + doTest(fileName); + } + + @TestMetadata("simpleCreateType.kt") + public void testSimpleCreateType() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/createType/simpleCreateType.kt"); + doTest(fileName); + } + + @TestMetadata("typeParameter.kt") + public void testTypeParameter() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/createType/typeParameter.kt"); + doTest(fileName); + } + + @TestMetadata("wrongNumberOfArguments.kt") + public void testWrongNumberOfArguments() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/createType/wrongNumberOfArguments.kt"); + doTest(fileName); + } + } + + @TestMetadata("compiler/testData/codegen/box/reflection/types/subtyping") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Subtyping extends AbstractLightAnalysisModeCodegenTest { + public void testAllFilesPresentInSubtyping() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/reflection/types/subtyping"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); + } + + @TestMetadata("platformType.kt") + public void testPlatformType() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/subtyping/platformType.kt"); + doTest(fileName); + } + + @TestMetadata("simpleGenericTypes.kt") + public void testSimpleGenericTypes() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/subtyping/simpleGenericTypes.kt"); + doTest(fileName); + } + + @TestMetadata("simpleSubtypeSupertype.kt") + public void testSimpleSubtypeSupertype() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/subtyping/simpleSubtypeSupertype.kt"); + doTest(fileName); + } + + @TestMetadata("typeProjection.kt") + public void testTypeProjection() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/subtyping/typeProjection.kt"); + doTest(fileName); + } + } } } @@ -13229,6 +14783,12 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis doTest(fileName); } + @TestMetadata("reifiedChain.kt") + public void testReifiedChain() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reified/reifiedChain.kt"); + doTest(fileName); + } + @TestMetadata("reifiedInlineFunOfObject.kt") public void testReifiedInlineFunOfObject() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reified/reifiedInlineFunOfObject.kt"); @@ -14862,6 +16422,93 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis } } + @TestMetadata("compiler/testData/codegen/box/typealias") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Typealias extends AbstractLightAnalysisModeCodegenTest { + public void testAllFilesPresentInTypealias() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/typealias"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); + } + + @TestMetadata("genericTypeAliasConstructor.kt") + public void testGenericTypeAliasConstructor() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/typealias/genericTypeAliasConstructor.kt"); + doTest(fileName); + } + + @TestMetadata("innerClassTypeAliasConstructor.kt") + public void testInnerClassTypeAliasConstructor() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/typealias/innerClassTypeAliasConstructor.kt"); + doTest(fileName); + } + + @TestMetadata("innerClassTypeAliasConstructorInSupertypes.kt") + public void testInnerClassTypeAliasConstructorInSupertypes() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/typealias/innerClassTypeAliasConstructorInSupertypes.kt"); + doTest(fileName); + } + + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/typealias/simple.kt"); + doTest(fileName); + } + + @TestMetadata("typeAliasAsBareType.kt") + public void testTypeAliasAsBareType() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/typealias/typeAliasAsBareType.kt"); + doTest(fileName); + } + + @TestMetadata("typeAliasCompanion.kt") + public void testTypeAliasCompanion() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/typealias/typeAliasCompanion.kt"); + doTest(fileName); + } + + @TestMetadata("typeAliasConstructor.kt") + public void testTypeAliasConstructor() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/typealias/typeAliasConstructor.kt"); + doTest(fileName); + } + + @TestMetadata("typeAliasConstructorAccessor.kt") + public void testTypeAliasConstructorAccessor() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/typealias/typeAliasConstructorAccessor.kt"); + doTest(fileName); + } + + @TestMetadata("typeAliasConstructorInSuperCall.kt") + public void testTypeAliasConstructorInSuperCall() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/typealias/typeAliasConstructorInSuperCall.kt"); + doTest(fileName); + } + + @TestMetadata("typeAliasInAnonymousObjectType.kt") + public void testTypeAliasInAnonymousObjectType() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/typealias/typeAliasInAnonymousObjectType.kt"); + doTest(fileName); + } + + @TestMetadata("typeAliasObject.kt") + public void testTypeAliasObject() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/typealias/typeAliasObject.kt"); + doTest(fileName); + } + + @TestMetadata("typeAliasObjectCallable.kt") + public void testTypeAliasObjectCallable() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/typealias/typeAliasObjectCallable.kt"); + doTest(fileName); + } + + @TestMetadata("typeAliasSecondaryConstructor.kt") + public void testTypeAliasSecondaryConstructor() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/typealias/typeAliasSecondaryConstructor.kt"); + doTest(fileName); + } + } + @TestMetadata("compiler/testData/codegen/box/unaryOp") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class)