Update stubBuilder/deserialization tests on coroutines
This commit is contained in:
committed by
Stanislav Erokhin
parent
a3338b2230
commit
4737b3dd7f
@@ -1,9 +1,8 @@
|
|||||||
package test
|
package test
|
||||||
class Controller {
|
class Controller {
|
||||||
suspend fun suspendFun(x: Continuation<String>) {}
|
suspend fun suspendFun() {}
|
||||||
operator fun handleResult(x: Int, y: Continuation<Nothing>) {}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun builder(coroutine c: Controller.() -> Continuation<Unit>) {
|
fun builder(c: suspend Controller.() -> Unit) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
public fun builder(/*0*/ coroutine c: test.Controller.() -> kotlin.coroutines.Continuation<kotlin.Unit>): kotlin.Unit
|
public fun builder(/*0*/ c: suspend test.Controller.() -> kotlin.Unit): kotlin.Unit
|
||||||
|
|
||||||
public final class Controller {
|
public final class Controller {
|
||||||
/*primary*/ public constructor Controller()
|
/*primary*/ public constructor Controller()
|
||||||
public final operator fun handleResult(/*0*/ x: kotlin.Int, /*1*/ y: kotlin.coroutines.Continuation<kotlin.Nothing>): kotlin.Unit
|
public final suspend fun suspendFun(): kotlin.Unit
|
||||||
public final suspend fun suspendFun(/*0*/ x: kotlin.coroutines.Continuation<kotlin.String>): kotlin.Unit
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
package test
|
package test
|
||||||
|
import kotlin.coroutines.*
|
||||||
|
|
||||||
data class Modifiers(val x: Int) {
|
data class Modifiers(val x: Int) {
|
||||||
external fun extFun()
|
external fun extFun()
|
||||||
@@ -20,5 +21,5 @@ data class Modifiers(val x: Int) {
|
|||||||
|
|
||||||
suspend fun suspend(x: Continuation<Int>) {}
|
suspend fun suspend(x: Continuation<Int>) {}
|
||||||
|
|
||||||
fun builder(coroutine c: Any.() -> Continuation<Unit>) {}
|
fun builder(c: suspend Any.() -> Unit) {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,8 +32,8 @@ PsiJetFileStubImpl[package=test]
|
|||||||
MODIFIER_LIST[public final]
|
MODIFIER_LIST[public final]
|
||||||
VALUE_PARAMETER_LIST
|
VALUE_PARAMETER_LIST
|
||||||
VALUE_PARAMETER[fqName=null, hasDefaultValue=false, hasValOrVar=false, isMutable=false, name=c]
|
VALUE_PARAMETER[fqName=null, hasDefaultValue=false, hasValOrVar=false, isMutable=false, name=c]
|
||||||
MODIFIER_LIST[coroutine]
|
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
|
MODIFIER_LIST[suspend]
|
||||||
FUNCTION_TYPE
|
FUNCTION_TYPE
|
||||||
FUNCTION_TYPE_RECEIVER
|
FUNCTION_TYPE_RECEIVER
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
@@ -45,17 +45,8 @@ PsiJetFileStubImpl[package=test]
|
|||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
USER_TYPE
|
REFERENCE_EXPRESSION[referencedName=kotlin]
|
||||||
REFERENCE_EXPRESSION[referencedName=kotlin]
|
REFERENCE_EXPRESSION[referencedName=Unit]
|
||||||
REFERENCE_EXPRESSION[referencedName=coroutines]
|
|
||||||
REFERENCE_EXPRESSION[referencedName=Continuation]
|
|
||||||
TYPE_ARGUMENT_LIST
|
|
||||||
TYPE_PROJECTION[projectionKind=NONE]
|
|
||||||
TYPE_REFERENCE
|
|
||||||
USER_TYPE
|
|
||||||
USER_TYPE
|
|
||||||
REFERENCE_EXPRESSION[referencedName=kotlin]
|
|
||||||
REFERENCE_EXPRESSION[referencedName=Unit]
|
|
||||||
TYPE_REFERENCE
|
TYPE_REFERENCE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
USER_TYPE
|
USER_TYPE
|
||||||
|
|||||||
Reference in New Issue
Block a user