[SLC] implement lazy calculation for modifiers
and fix some annotations ^KTIJ-23783 Fixed
This commit is contained in:
committed by
Space Team
parent
e2082fb0d7
commit
856d272ca4
@@ -0,0 +1,38 @@
|
||||
public final class MyClass /* MyClass*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private static java.lang.String prop2 = "" /* initializer type: java.lang.String */;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final MyClass.Companion Companion;
|
||||
|
||||
private static int prop = 4 /* initializer type: int */;
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String getProp2();// getProp2()
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public static final void setProp(int);// setProp(int)
|
||||
|
||||
public MyClass();// .ctor()
|
||||
|
||||
|
||||
class Companion ...
|
||||
|
||||
}
|
||||
|
||||
public static final class Companion /* MyClass.Companion*/ {
|
||||
@kotlin.jvm.JvmStatic()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getProp2();// getProp2()
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public final void setProp(int);// setProp(int)
|
||||
|
||||
private Companion();// .ctor()
|
||||
|
||||
public final int getProp();// getProp()
|
||||
|
||||
public final void setProp2(@org.jetbrains.annotations.NotNull() java.lang.String);// setProp2(java.lang.String)
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
class MyClass {
|
||||
companion object {
|
||||
var prop: Int = 4
|
||||
@JvmStatic
|
||||
set(value) {
|
||||
field = value
|
||||
}
|
||||
|
||||
get() = field
|
||||
|
||||
@get:JvmStatic
|
||||
var prop2: String = ""
|
||||
set(value) {
|
||||
field = value
|
||||
}
|
||||
}
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
public final class MyClass /* MyClass*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private static java.lang.String prop2;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final MyClass.Companion Companion;
|
||||
|
||||
private static int prop;
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String getProp2();// getProp2()
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public static final void setProp(int);// setProp(int)
|
||||
|
||||
public MyClass();// .ctor()
|
||||
|
||||
|
||||
class Companion ...
|
||||
|
||||
}
|
||||
|
||||
public static final class Companion /* MyClass.Companion*/ {
|
||||
@kotlin.jvm.JvmStatic()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getProp2();// getProp2()
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public final void setProp(int);// setProp(int)
|
||||
|
||||
private Companion();// .ctor()
|
||||
|
||||
public final int getProp();// getProp()
|
||||
|
||||
public final void setProp2(@org.jetbrains.annotations.NotNull() java.lang.String);// setProp2(java.lang.String)
|
||||
|
||||
}
|
||||
@@ -1,10 +1,14 @@
|
||||
public final class A /* A*/ {
|
||||
private int z = 1 /* initializer type: int */;
|
||||
|
||||
public A f;
|
||||
|
||||
public A();// .ctor()
|
||||
|
||||
public final int getX();// getX()
|
||||
|
||||
public final void setF(@org.jetbrains.annotations.NotNull() A);// setF(A)
|
||||
|
||||
public final void setX(int);// setX(int)
|
||||
|
||||
}
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
public final class A /* A*/ {
|
||||
private int z;
|
||||
|
||||
public A f;
|
||||
|
||||
public A();// .ctor()
|
||||
|
||||
public final int getX();// getX()
|
||||
|
||||
public final void setF(@org.jetbrains.annotations.NotNull() A);// setF(A)
|
||||
|
||||
public final void setX(int);// setX(int)
|
||||
|
||||
}
|
||||
|
||||
@@ -12,5 +12,8 @@ class A {
|
||||
var z = 1
|
||||
@JvmSynthetic get
|
||||
@JvmSynthetic set
|
||||
|
||||
@get:JvmSynthetic
|
||||
lateinit var f: A
|
||||
}
|
||||
|
||||
|
||||
@@ -3,12 +3,6 @@ public final class X /* X*/ {
|
||||
|
||||
private int w = 1 /* initializer type: int */;
|
||||
|
||||
@kotlin.jvm.JvmSynthetic()
|
||||
public final int getV();// getV()
|
||||
|
||||
@kotlin.jvm.JvmSynthetic()
|
||||
public final void setW(int);// setW(int)
|
||||
|
||||
public X();// .ctor()
|
||||
|
||||
public final int getW();// getW()
|
||||
|
||||
@@ -15,9 +15,19 @@ public final class C /* C*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final C.Factory Factory;
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String getC(@org.jetbrains.annotations.NotNull() I);// getC(I)
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public static final void foo();// foo()
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public static final void setC(@org.jetbrains.annotations.NotNull() I, @org.jetbrains.annotations.NotNull() java.lang.String);// setC(I, java.lang.String)
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public static final void setC1(@org.jetbrains.annotations.NotNull() java.lang.String);// setC1(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String getX();// getX()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user