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
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
public class K {
|
||||
public method <init>(): void
|
||||
private final method privateMemberExtensionK(@org.jetbrains.annotations.NotNull p0: java.lang.Object): void
|
||||
private final method privateMemberK(): void
|
||||
public final method publicMemberExtensionK(@org.jetbrains.annotations.NotNull p0: java.lang.Object): void
|
||||
public final method publicMemberK(): void
|
||||
}
|
||||
|
||||
|
||||
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
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public final class FunctionFromStdlibKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method doStuff(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): java.lang.String
|
||||
}
|
||||
compiler/testData/codegen/light-analysis/reflection/functions/functionReferenceErasedToKFunction.txt
Vendored
+18
@@ -0,0 +1,18 @@
|
||||
public final class K {
|
||||
public final static field Companion: K.Companion
|
||||
inner class K/Companion
|
||||
public method <init>(): void
|
||||
public final @org.jetbrains.annotations.NotNull method reverse(@org.jetbrains.annotations.NotNull p0: java.lang.String): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public final static class K/Companion {
|
||||
inner class K/Companion
|
||||
private method <init>(): void
|
||||
public final @org.jetbrains.annotations.NotNull method getRef(): kotlin.reflect.KFunction
|
||||
}
|
||||
|
||||
|
||||
public final class KKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
public interface A
|
||||
|
||||
|
||||
public final class GenericOverriddenFunctionKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public interface H {
|
||||
public abstract @org.jetbrains.annotations.Nullable method foo(): java.lang.Object
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public final class KKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public final class KKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method test(@org.jetbrains.annotations.NotNull p0: kotlin.reflect.KFunction): void
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public final class PlatformNameKt {
|
||||
public final static @kotlin.jvm.JvmName method Fail(): void
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
public final class A {
|
||||
public method <init>(): void
|
||||
private final method foo(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public final class PrivateMemberFunctionKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
public class A {
|
||||
public method <init>(): void
|
||||
public final method mem(): void
|
||||
public final method memExt(p0: int): void
|
||||
}
|
||||
|
||||
|
||||
public final class B {
|
||||
public method <init>(): void
|
||||
}
|
||||
|
||||
|
||||
public final class SimpleGetFunctionsKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
public final class A {
|
||||
public method <init>(): void
|
||||
public final @org.jetbrains.annotations.NotNull method bar(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public final class SimpleNamesKt {
|
||||
public final static method baz(p0: int): int
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method foo(): void
|
||||
}
|
||||
Reference in New Issue
Block a user