Skip to content

Commit 8e042e7

Browse files
committed
Update codegen test dumps for Kotlin 2.2.0-Beta1
1 parent 4ffeb3c commit 8e042e7

11 files changed

+1928
-1928
lines changed

kmp-nativecoroutines-compiler/src/testData/codegen/annotations.fir.ir.txt

Lines changed: 157 additions & 157 deletions
Large diffs are not rendered by default.

kmp-nativecoroutines-compiler/src/testData/codegen/annotations.fir.kt.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ suspend fun objCNameFunction1(): String {
8686

8787
@NativeCoroutines
8888
@OptIn(markerClass = [ExperimentalObjCName::class])
89-
@ObjCName(, swiftName = "objCNameFunction2Swift")
89+
@ObjCName(swiftName = "objCNameFunction2Swift")
9090
suspend fun objCNameFunction2(): String {
9191
return "OK9"
9292
}
@@ -189,7 +189,7 @@ val deprecatedProperty1Native: Function3<@ParameterName(name = "onItem") Functio
189189
get(): Function3<@ParameterName(name = "onItem") Function3<String, Function0<Unit>, Unit, Unit>, @ParameterName(name = "onComplete") Function2<Throwable?, Unit, Unit>, @ParameterName(name = "onCancelled") Function2<Throwable, Unit, Unit>, Function0<Unit>> {
190190
val tmp_8: CoroutineScope? = null
191191
val tmp_9: Flow<String> = <get-deprecatedProperty1>()
192-
return tmp_9.asNativeFlow<String>(scope = tmp_8)
192+
return asNativeFlow<String>(/* <this> = tmp_9, */ scope = tmp_8)
193193
}
194194

195195
@Deprecated(message = "This is deprecated 5", level = DeprecationLevel.WARNING)
@@ -198,7 +198,7 @@ val deprecatedProperty2Native: Function3<@ParameterName(name = "onItem") Functio
198198
get(): Function3<@ParameterName(name = "onItem") Function3<String, Function0<Unit>, Unit, Unit>, @ParameterName(name = "onComplete") Function2<Throwable?, Unit, Unit>, @ParameterName(name = "onCancelled") Function2<Throwable, Unit, Unit>, Function0<Unit>> {
199199
val tmp_10: CoroutineScope? = null
200200
val tmp_11: Flow<String> = <get-deprecatedProperty2>()
201-
return tmp_11.asNativeFlow<String>(scope = tmp_10)
201+
return asNativeFlow<String>(/* <this> = tmp_11, */ scope = tmp_10)
202202
}
203203

204204
@Deprecated(message = "This is deprecated 6", level = DeprecationLevel.ERROR)
@@ -207,7 +207,7 @@ val deprecatedProperty3Native: Function3<@ParameterName(name = "onItem") Functio
207207
get(): Function3<@ParameterName(name = "onItem") Function3<String, Function0<Unit>, Unit, Unit>, @ParameterName(name = "onComplete") Function2<Throwable?, Unit, Unit>, @ParameterName(name = "onCancelled") Function2<Throwable, Unit, Unit>, Function0<Unit>> {
208208
val tmp_12: CoroutineScope? = null
209209
val tmp_13: Flow<String> = <get-deprecatedProperty3>()
210-
return tmp_13.asNativeFlow<String>(scope = tmp_12)
210+
return asNativeFlow<String>(/* <this> = tmp_13, */ scope = tmp_12)
211211
}
212212

213213
@ObjCName(name = "deprecatedProperty4")
@@ -216,15 +216,15 @@ val deprecatedProperty4Native: Function3<@ParameterName(name = "onItem") Functio
216216
get(): Function3<@ParameterName(name = "onItem") Function3<String, Function0<Unit>, Unit, Unit>, @ParameterName(name = "onComplete") Function2<Throwable?, Unit, Unit>, @ParameterName(name = "onCancelled") Function2<Throwable, Unit, Unit>, Function0<Unit>> {
217217
val tmp_14: CoroutineScope? = null
218218
val tmp_15: MutableStateFlow<String> = <get-deprecatedProperty4>()
219-
return tmp_15.asNativeFlow<String>(scope = tmp_14)
219+
return asNativeFlow<String>(/* <this> = tmp_15, */ scope = tmp_14)
220220
}
221221

222222
@ObjCName(name = "objCNameProperty1ObjC")
223223
val objCNameProperty1Native: Function3<@ParameterName(name = "onItem") Function3<String, Function0<Unit>, Unit, Unit>, @ParameterName(name = "onComplete") Function2<Throwable?, Unit, Unit>, @ParameterName(name = "onCancelled") Function2<Throwable, Unit, Unit>, Function0<Unit>>
224224
get(): Function3<@ParameterName(name = "onItem") Function3<String, Function0<Unit>, Unit, Unit>, @ParameterName(name = "onComplete") Function2<Throwable?, Unit, Unit>, @ParameterName(name = "onCancelled") Function2<Throwable, Unit, Unit>, Function0<Unit>> {
225225
val tmp_16: CoroutineScope? = null
226226
val tmp_17: StateFlow<String> = <get-objCNameProperty1>()
227-
return tmp_17.asNativeFlow<String>(scope = tmp_16)
227+
return asNativeFlow<String>(/* <this> = tmp_17, */ scope = tmp_16)
228228
}
229229

230230
@ObjCName(name = "objCNameProperty1ObjCValue")
@@ -239,7 +239,7 @@ val objCNameProperty2Flow: Function3<@ParameterName(name = "onItem") Function3<S
239239
get(): Function3<@ParameterName(name = "onItem") Function3<String, Function0<Unit>, Unit, Unit>, @ParameterName(name = "onComplete") Function2<Throwable?, Unit, Unit>, @ParameterName(name = "onCancelled") Function2<Throwable, Unit, Unit>, Function0<Unit>> {
240240
val tmp_19: CoroutineScope? = null
241241
val tmp_20: StateFlow<String> = <get-objCNameProperty2>()
242-
return tmp_20.asNativeFlow<String>(scope = tmp_19)
242+
return asNativeFlow<String>(/* <this> = tmp_20, */ scope = tmp_19)
243243
}
244244

245245
@ObjCName(name = "objCNameProperty2ObjC")

kmp-nativecoroutines-compiler/src/testData/codegen/coroutinescope.fir.ir.txt

Lines changed: 294 additions & 294 deletions
Large diffs are not rendered by default.

kmp-nativecoroutines-compiler/src/testData/codegen/coroutinescope.fir.kt.txt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class MyClass2 : MyClass1 {
5555
get(): Function3<@ParameterName(name = "onItem") Function3<String, Function0<Unit>, Unit, Unit>, @ParameterName(name = "onComplete") Function2<Throwable?, Unit, Unit>, @ParameterName(name = "onCancelled") Function2<Throwable, Unit, Unit>, Function0<Unit>> {
5656
val tmp_1: CoroutineScope = <this>.<get-coroutineScope2>()
5757
val tmp_2: Flow<String> = <this>.<get-flowProperty>()
58-
return tmp_2.asNativeFlow<String>(scope = tmp_1)
58+
return asNativeFlow<String>(/* <this> = tmp_2, */ scope = tmp_1)
5959
}
6060

6161
}
@@ -99,7 +99,7 @@ class MyClass4 {
9999
fun MyClass1.returnExtSuspendValueNative(): Function3<@ParameterName(name = "onResult") Function2<String, Unit, Unit>, @ParameterName(name = "onError") Function2<Throwable, Unit, Unit>, @ParameterName(name = "onCancelled") Function2<Throwable, Unit, Unit>, Function0<Unit>> {
100100
val tmp_4: CoroutineScope = <get-coroutineScope1>()
101101
return nativeSuspend<String>(scope = tmp_4, block = local suspend fun <anonymous>(): String {
102-
return (<this>, <this>).returnExtSuspendValue()
102+
return <this>.returnExtSuspendValue(/* <this> = <this> */)
103103
}
104104
)
105105
}
@@ -135,7 +135,7 @@ class MyClass5 {
135135
fun MyClass1.returnExtSuspendValueNative(): Function3<@ParameterName(name = "onResult") Function2<String, Unit, Unit>, @ParameterName(name = "onError") Function2<Throwable, Unit, Unit>, @ParameterName(name = "onCancelled") Function2<Throwable, Unit, Unit>, Function0<Unit>> {
136136
val tmp_0: CoroutineScope? = null
137137
return nativeSuspend<String>(scope = tmp_0, block = local suspend fun <anonymous>(): String {
138-
return (<this>, <this>).returnExtSuspendValue()
138+
return <this>.returnExtSuspendValue(/* <this> = <this> */)
139139
}
140140
)
141141
}
@@ -205,18 +205,18 @@ fun box(): String {
205205
$this$runBoxTest.await<String>(nativeSuspend = MyClass1().returnSuspendValueNative())
206206
$this$runBoxTest.collect<String>(nativeFlow = MyClass2().<get-flowPropertyNative>())
207207
$this$runBoxTest.await<String>(nativeSuspend = MyClass3().returnOtherSuspendValueNative())
208-
$this$runBoxTest.collect<String>(nativeFlow = MyClass3().<get-flowExtProperty1Native>())
208+
$this$runBoxTest.collect<String>(nativeFlow = <get-flowExtProperty1Native>(/* <this> = MyClass3() */))
209209
with<MyClass4, Unit>(receiver = MyClass4(), block = local fun MyClass4.<anonymous>() {
210-
$this$runBoxTest.await<String>(nativeSuspend = ($this$with, MyClass1()).returnExtSuspendValueNative())
210+
$this$runBoxTest.await<String>(nativeSuspend = $this$with.returnExtSuspendValueNative(/* <this> = MyClass1() */))
211211
}
212212
)
213-
$this$runBoxTest.collect<String>(nativeFlow = MyClass3().<get-flowExtProperty2Native>())
213+
$this$runBoxTest.collect<String>(nativeFlow = <get-flowExtProperty2Native>(/* <this> = MyClass3() */))
214214
with<MyClass5, Unit>(receiver = MyClass5(), block = local fun MyClass5.<anonymous>() {
215-
$this$runBoxTest.await<String>(nativeSuspend = ($this$with, MyClass1()).returnExtSuspendValueNative())
215+
$this$runBoxTest.await<String>(nativeSuspend = $this$with.returnExtSuspendValueNative(/* <this> = MyClass1() */))
216216
}
217217
)
218218
$this$runBoxTest.await<String>(nativeSuspend = MyClass6().returnSuspendValueNative())
219-
$this$runBoxTest.await<String>(nativeSuspend = MyClass6().returnExtSuspendValueNative())
219+
$this$runBoxTest.await<String>(nativeSuspend = returnExtSuspendValueNative(/* <this> = MyClass6() */))
220220
$this$runBoxTest.await<String>(nativeSuspend = MyClass7().returnOtherSuspendValueNative())
221221
}
222222
)
@@ -239,7 +239,7 @@ val MyClass3.flowExtProperty2: Flow<String>
239239
fun MyClass6.returnExtSuspendValueNative(): Function3<@ParameterName(name = "onResult") Function2<String, Unit, Unit>, @ParameterName(name = "onError") Function2<Throwable, Unit, Unit>, @ParameterName(name = "onCancelled") Function2<Throwable, Unit, Unit>, Function0<Unit>> {
240240
val tmp_0: CoroutineScope? = null
241241
return nativeSuspend<String>(scope = tmp_0, block = local suspend fun <anonymous>(): String {
242-
return <this>.returnExtSuspendValue()
242+
return returnExtSuspendValue(/* <this> = <this> */)
243243
}
244244
)
245245
}
@@ -257,22 +257,22 @@ fun returnSuspendValueNative(): Function3<@ParameterName(name = "onResult") Func
257257
val MyClass3.flowExtProperty1Native: Function3<@ParameterName(name = "onItem") Function3<String, Function0<Unit>, Unit, Unit>, @ParameterName(name = "onComplete") Function2<Throwable?, Unit, Unit>, @ParameterName(name = "onCancelled") Function2<Throwable, Unit, Unit>, Function0<Unit>>
258258
get(): Function3<@ParameterName(name = "onItem") Function3<String, Function0<Unit>, Unit, Unit>, @ParameterName(name = "onComplete") Function2<Throwable?, Unit, Unit>, @ParameterName(name = "onCancelled") Function2<Throwable, Unit, Unit>, Function0<Unit>> {
259259
val tmp_2: CoroutineScope = <get-coroutineScope1>()
260-
val tmp_3: Flow<String> = <this>.<get-flowExtProperty1>()
261-
return tmp_3.asNativeFlow<String>(scope = tmp_2)
260+
val tmp_3: Flow<String> = <get-flowExtProperty1>(/* <this> = <this> */)
261+
return asNativeFlow<String>(/* <this> = tmp_3, */ scope = tmp_2)
262262
}
263263

264264
@ObjCName(name = "flowExtProperty2")
265265
val MyClass3.flowExtProperty2Native: Function3<@ParameterName(name = "onItem") Function3<String, Function0<Unit>, Unit, Unit>, @ParameterName(name = "onComplete") Function2<Throwable?, Unit, Unit>, @ParameterName(name = "onCancelled") Function2<Throwable, Unit, Unit>, Function0<Unit>>
266266
get(): Function3<@ParameterName(name = "onItem") Function3<String, Function0<Unit>, Unit, Unit>, @ParameterName(name = "onComplete") Function2<Throwable?, Unit, Unit>, @ParameterName(name = "onCancelled") Function2<Throwable, Unit, Unit>, Function0<Unit>> {
267267
val tmp_4: CoroutineScope = <this>.<get-coroutineScope3>()
268-
val tmp_5: Flow<String> = <this>.<get-flowExtProperty2>()
269-
return tmp_5.asNativeFlow<String>(scope = tmp_4)
268+
val tmp_5: Flow<String> = <get-flowExtProperty2>(/* <this> = <this> */)
269+
return asNativeFlow<String>(/* <this> = tmp_5, */ scope = tmp_4)
270270
}
271271

272272
@ObjCName(name = "flowProperty")
273273
val flowPropertyNative: Function3<@ParameterName(name = "onItem") Function3<String, Function0<Unit>, Unit, Unit>, @ParameterName(name = "onComplete") Function2<Throwable?, Unit, Unit>, @ParameterName(name = "onCancelled") Function2<Throwable, Unit, Unit>, Function0<Unit>>
274274
get(): Function3<@ParameterName(name = "onItem") Function3<String, Function0<Unit>, Unit, Unit>, @ParameterName(name = "onComplete") Function2<Throwable?, Unit, Unit>, @ParameterName(name = "onCancelled") Function2<Throwable, Unit, Unit>, Function0<Unit>> {
275275
val tmp_6: CoroutineScope = <get-coroutineScope1>()
276276
val tmp_7: Flow<String> = <get-flowProperty>()
277-
return tmp_7.asNativeFlow<String>(scope = tmp_6)
277+
return asNativeFlow<String>(/* <this> = tmp_7, */ scope = tmp_6)
278278
}

0 commit comments

Comments
 (0)