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
|
||||
}
|
||||
Reference in New Issue
Block a user