You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: runtime/suspend-transform-annotation/src/commonMain/kotlin/love/forte/plugin/suspendtrans/annotation/SuspendTransformAnnotation.kt
+38-3Lines changed: 38 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,19 @@ public expect annotation class JvmBlocking(
62
62
* Note: If [asProperty] == `true`, the function cannot have parameters.
63
63
*
64
64
*/
65
-
valasProperty:Boolean = false
65
+
valasProperty:Boolean = false,
66
+
67
+
/**
68
+
* The name of `@JvmName`.
69
+
* Valid when not empty.
70
+
*
71
+
* If multiple markNames are effective for the same function on the same platform,
72
+
* an exception will be generated during the compilation period.
73
+
*
74
+
* Note: In the JVM, adding `@JvmName` to a non-final function is usually not allowed by the compiler.
75
+
* @since 0.13.0
76
+
*/
77
+
valmarkName:String = "",
66
78
)
67
79
68
80
/**
@@ -101,7 +113,19 @@ public expect annotation class JvmAsync(
101
113
*
102
114
* Note: If [asProperty] == `true`, the function cannot have parameters.
103
115
*/
104
-
valasProperty:Boolean = false
116
+
valasProperty:Boolean = false,
117
+
118
+
/**
119
+
* The name of `@JvmName`.
120
+
* Valid when not empty.
121
+
*
122
+
* If multiple markNames are effective for the same function on the same platform,
123
+
* an exception will be generated during the compilation period.
124
+
*
125
+
* Note: In the JVM, adding `@JvmName` to a non-final function is usually not allowed by the compiler.
126
+
* @since 0.13.0
127
+
*/
128
+
valmarkName:String = "",
105
129
)
106
130
107
131
@@ -125,5 +149,16 @@ public expect annotation class JsPromise(
125
149
* Note: If [asProperty] == `true`, the function cannot have parameters.
126
150
*
127
151
*/
128
-
valasProperty:Boolean = false
152
+
valasProperty:Boolean = false,
153
+
154
+
/**
155
+
* The name of `@JsName`.
156
+
* Valid when not empty.
157
+
*
158
+
* If multiple markNames are effective for the same function on the same platform,
159
+
* an exception will be generated during the compilation period.
0 commit comments