Use box tests to check if the light analysis mode (without analyzing bodies when possible) produces the same result as the complete analysis. See also the next commit in which light analysis mode is applied. Note that no tests were changed.
This commit is contained in:
committed by
Yan Zhulanow
parent
8bdb54929b
commit
328286ab14
+18
@@ -0,0 +1,18 @@
|
||||
public final class A {
|
||||
private field baz: int
|
||||
public method <init>(p0: int): void
|
||||
public final method getBaz(): int
|
||||
public final @org.jetbrains.annotations.NotNull method getQuux(@org.jetbrains.annotations.NotNull p0: java.lang.String): java.lang.String
|
||||
public final method setBaz(p0: int): void
|
||||
public final method setQuux(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: java.lang.String): void
|
||||
}
|
||||
|
||||
|
||||
public final class AccessorNamesKt {
|
||||
private static @org.jetbrains.annotations.NotNull field foo: java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method getBar(@org.jetbrains.annotations.NotNull p0: java.lang.String): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method getFoo(): java.lang.String
|
||||
public final static method setBar(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: java.lang.String): void
|
||||
public final static method setFoo(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
public final class ExtensionPropertyAccessorsKt {
|
||||
private static @org.jetbrains.annotations.NotNull field state: java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method getProp(@org.jetbrains.annotations.NotNull p0: java.lang.String): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method getState(): java.lang.String
|
||||
public final static method setProp(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: java.lang.String): void
|
||||
public final static method setState(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
}
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
public final class C {
|
||||
private @org.jetbrains.annotations.NotNull field state: java.lang.String
|
||||
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
public final @org.jetbrains.annotations.NotNull method getProp(@org.jetbrains.annotations.NotNull p0: java.lang.String): java.lang.String
|
||||
public final @org.jetbrains.annotations.NotNull method getState(): java.lang.String
|
||||
public final method setProp(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: java.lang.String): void
|
||||
public final method setState(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
}
|
||||
|
||||
|
||||
public final class MemberExtensionsKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
compiler/testData/codegen/light-analysis/reflection/properties/accessors/memberPropertyAccessors.txt
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
public final class C {
|
||||
private @org.jetbrains.annotations.NotNull field state: java.lang.String
|
||||
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
public final @org.jetbrains.annotations.NotNull method getState(): java.lang.String
|
||||
public final method setState(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
}
|
||||
|
||||
|
||||
public final class MemberPropertyAccessorsKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
public final class TopLevelPropertyAccessorsKt {
|
||||
private static @org.jetbrains.annotations.NotNull field state: java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method getState(): java.lang.String
|
||||
public final static method setState(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
public final class AllVsDeclaredKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public final class Sub {
|
||||
private final field c: double
|
||||
public method <init>(): void
|
||||
public final method getC(): double
|
||||
public final method getD(p0: char): char
|
||||
}
|
||||
|
||||
|
||||
public class Super {
|
||||
private final field a: int
|
||||
public method <init>(): void
|
||||
public final method getA(): int
|
||||
public final @org.jetbrains.annotations.NotNull method getB(@org.jetbrains.annotations.NotNull p0: java.lang.String): java.lang.String
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
public final class CallPrivatePropertyFromGetPropertiesKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public final class K {
|
||||
private final field value: java.lang.String
|
||||
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
}
|
||||
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
public class K {
|
||||
private final field privateMemberK: java.lang.String
|
||||
private final @org.jetbrains.annotations.NotNull field publicMemberK: java.lang.String
|
||||
public method <init>(): void
|
||||
private final method getPrivateMemberExtensionK(@org.jetbrains.annotations.NotNull p0: java.lang.Object): java.lang.String
|
||||
public final @org.jetbrains.annotations.NotNull method getPublicMemberExtensionK(@org.jetbrains.annotations.NotNull p0: java.lang.Object): java.lang.String
|
||||
public final @org.jetbrains.annotations.NotNull method getPublicMemberK(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
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: java.util.Collection, @org.jetbrains.annotations.NotNull p1: java.util.Set): void
|
||||
public final static @org.jetbrains.annotations.NotNull method names(@org.jetbrains.annotations.NotNull p0: java.util.Collection): java.util.Set
|
||||
}
|
||||
|
||||
|
||||
public final class L {
|
||||
public method <init>(): void
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
public final class FakeOverridesInSubclassKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public final class Sub {
|
||||
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
}
|
||||
|
||||
|
||||
public class Super {
|
||||
private final @org.jetbrains.annotations.NotNull field r: java.lang.String
|
||||
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
public final @org.jetbrains.annotations.NotNull method getR(): java.lang.String
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
public final class A {
|
||||
private final @org.jetbrains.annotations.NotNull field result: java.lang.String
|
||||
public method <init>(): void
|
||||
public final @org.jetbrains.annotations.NotNull method getResult(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public final class GenericClassLiteralPropertyReceiverIsStarKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
public interface A
|
||||
|
||||
|
||||
public final class GenericOverriddenPropertyKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public interface H {
|
||||
public abstract @org.jetbrains.annotations.Nullable method getParent(): java.lang.Object
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
public final class Box {
|
||||
private final field element: java.lang.Object
|
||||
public method <init>(p0: java.lang.Object): void
|
||||
public final method component1(): java.lang.Object
|
||||
public synthetic static method copy$default(p0: Box, p1: java.lang.Object, p2: int, p3: java.lang.Object): Box
|
||||
public final @org.jetbrains.annotations.NotNull method copy(p0: java.lang.Object): Box
|
||||
public method equals(p0: java.lang.Object): boolean
|
||||
public final method getElement(): java.lang.Object
|
||||
public method hashCode(): int
|
||||
public method toString(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public final class GenericPropertyKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public final class A {
|
||||
public method <init>(): void
|
||||
public final @org.jetbrains.annotations.NotNull method getMutable(@org.jetbrains.annotations.NotNull p0: java.lang.String): java.lang.String
|
||||
public final @org.jetbrains.annotations.NotNull method getReadonly(@org.jetbrains.annotations.NotNull p0: java.lang.String): java.lang.String
|
||||
public final method setMutable(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: java.lang.String): void
|
||||
}
|
||||
|
||||
|
||||
public final class GetExtensionPropertiesMutableVsReadonlyKt {
|
||||
private static @org.jetbrains.annotations.NotNull field storage: java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method getStorage(): java.lang.String
|
||||
public final static method setStorage(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
}
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
public final class A {
|
||||
private @org.jetbrains.annotations.NotNull field mutable: java.lang.String
|
||||
private final @org.jetbrains.annotations.NotNull field readonly: java.lang.String
|
||||
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
public final @org.jetbrains.annotations.NotNull method getMutable(): java.lang.String
|
||||
public final @org.jetbrains.annotations.NotNull method getReadonly(): java.lang.String
|
||||
public final method setMutable(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
}
|
||||
|
||||
|
||||
public final class GetPropertiesMutableVsReadonlyKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
public final class A {
|
||||
private final @org.jetbrains.annotations.NotNull field foo: java.lang.String
|
||||
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
public final @org.jetbrains.annotations.NotNull method getFoo(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public final class InvokeKPropertyKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
public final class K {
|
||||
public method <init>(): void
|
||||
}
|
||||
|
||||
|
||||
public final class KKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public final class KKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
public class K {
|
||||
private @org.jetbrains.annotations.NotNull field prop: java.lang.String
|
||||
public method <init>(): void
|
||||
public final method getExt(p0: int): int
|
||||
public final @org.jetbrains.annotations.NotNull method getProp(): java.lang.String
|
||||
public final method setProp(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
}
|
||||
|
||||
|
||||
public final class KKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
public final class A {
|
||||
private final @org.jetbrains.annotations.NotNull field foo: java.lang.String
|
||||
public method <init>(): void
|
||||
public final @org.jetbrains.annotations.NotNull method getFoo(): java.lang.String
|
||||
public final @org.jetbrains.annotations.NotNull method getFoo(@org.jetbrains.annotations.NotNull p0: kotlin.Unit): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public final class MemberAndMemberExtensionWithSameNameKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
public final class KKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
public final class KKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
public final class K {
|
||||
public method <init>(): void
|
||||
public final @org.jetbrains.annotations.NotNull method getFoo(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public final class KKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
public interface K {
|
||||
public abstract @org.jetbrains.annotations.NotNull method getFoo(): java.lang.String
|
||||
public abstract method setFoo(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
}
|
||||
|
||||
|
||||
public final class KKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
public final class PrivateClassValKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public final class Result {
|
||||
private final field value: java.lang.String
|
||||
public method <init>(): void
|
||||
public final @org.jetbrains.annotations.NotNull method ref(): kotlin.reflect.KProperty1
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
public final class A {
|
||||
private field value: int
|
||||
public method <init>(): void
|
||||
public final @org.jetbrains.annotations.NotNull method ref(): kotlin.reflect.KMutableProperty1
|
||||
}
|
||||
|
||||
|
||||
public final class PrivateClassVarKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
compiler/testData/codegen/light-analysis/reflection/properties/privateFakeOverrideFromSuperclass.txt
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
public class A {
|
||||
private final field p: int
|
||||
public method <init>(p0: int): void
|
||||
}
|
||||
|
||||
|
||||
public final class B {
|
||||
public method <init>(): void
|
||||
}
|
||||
|
||||
|
||||
public final class PrivateFakeOverrideFromSuperclassKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
public final class Obj {
|
||||
public final static field INSTANCE: Obj
|
||||
private static field result: java.lang.String
|
||||
private method <init>(): void
|
||||
private synthetic deprecated final static @kotlin.jvm.JvmStatic method result$annotations(): void
|
||||
}
|
||||
|
||||
|
||||
public final class PrivateJvmStaticVarInObjectKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
public final class A {
|
||||
private field foo: java.lang.String
|
||||
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
}
|
||||
|
||||
|
||||
public final class PrivatePropertyCallIsAccessibleOnAccessorsKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
public final class K {
|
||||
public method <init>(): void
|
||||
private final method getT(): java.lang.String
|
||||
public final @org.jetbrains.annotations.NotNull method run(): java.lang.String
|
||||
private final method setT(p0: java.lang.String): void
|
||||
}
|
||||
|
||||
|
||||
public final class PrivateToThisAccessorsKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
compiler/testData/codegen/light-analysis/reflection/properties/propertyOfNestedClassAndArrayType.txt
Vendored
+23
@@ -0,0 +1,23 @@
|
||||
public final class A {
|
||||
private @org.jetbrains.annotations.Nullable field p: A.B
|
||||
private @org.jetbrains.annotations.Nullable field q: A.B[][]
|
||||
inner class A/B
|
||||
public method <init>(): void
|
||||
public final @org.jetbrains.annotations.Nullable method getP(): A.B
|
||||
public final @org.jetbrains.annotations.Nullable method getQ(): A.B[][]
|
||||
public final method setP(@org.jetbrains.annotations.Nullable p0: A.B): void
|
||||
public final method setQ(@org.jetbrains.annotations.Nullable p0: A.B[][]): void
|
||||
}
|
||||
|
||||
|
||||
public final static class A/B {
|
||||
private final @org.jetbrains.annotations.NotNull field result: java.lang.String
|
||||
inner class A/B
|
||||
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
public final @org.jetbrains.annotations.NotNull method getResult(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public final class PropertyOfNestedClassAndArrayTypeKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
public final class A {
|
||||
private @org.jetbrains.annotations.NotNull field v: java.lang.String
|
||||
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
protected final @org.jetbrains.annotations.NotNull method getV(): java.lang.String
|
||||
public final @org.jetbrains.annotations.NotNull method ref(): kotlin.reflect.KMutableProperty1
|
||||
protected final method setV(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
}
|
||||
|
||||
|
||||
public final class ProtectedClassVarKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
public final class PublicClassValAccessibleKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public final class Result {
|
||||
private final @org.jetbrains.annotations.NotNull field value: java.lang.String
|
||||
public method <init>(): void
|
||||
public final @org.jetbrains.annotations.NotNull method getValue(): java.lang.String
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
public class K {
|
||||
public method <init>(): void
|
||||
}
|
||||
|
||||
|
||||
public final class KKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
public final class A {
|
||||
private @org.jetbrains.annotations.Nullable field anyVar: java.lang.Object
|
||||
private final @org.jetbrains.annotations.NotNull field string: java.lang.String
|
||||
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
public final @org.jetbrains.annotations.Nullable method getAnyVar(): java.lang.Object
|
||||
public final @org.jetbrains.annotations.NotNull method getExtensionToList(@org.jetbrains.annotations.NotNull p0: java.util.List): kotlin.Unit
|
||||
public final method getInt(): int
|
||||
public final @org.jetbrains.annotations.NotNull method getString(): java.lang.String
|
||||
public final method notAProperty(): void
|
||||
public final method setAnyVar(@org.jetbrains.annotations.Nullable p0: java.lang.Object): void
|
||||
}
|
||||
|
||||
|
||||
public final class SimpleGetPropertiesKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
Reference in New Issue
Block a user