Update stubBuilder/deserialization tests on coroutines

This commit is contained in:
Denis Zharkov
2016-12-15 10:59:31 +03:00
committed by Stanislav Erokhin
parent a3338b2230
commit 4737b3dd7f
4 changed files with 9 additions and 19 deletions
@@ -1,9 +1,8 @@
package test
class Controller {
suspend fun suspendFun(x: Continuation<String>) {}
operator fun handleResult(x: Int, y: Continuation<Nothing>) {}
suspend fun suspendFun() {}
}
fun builder(coroutine c: Controller.() -> Continuation<Unit>) {
fun builder(c: suspend Controller.() -> Unit) {
}
@@ -1,9 +1,8 @@
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 {
/*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(/*0*/ x: kotlin.coroutines.Continuation<kotlin.String>): kotlin.Unit
public final suspend fun suspendFun(): kotlin.Unit
}
@@ -1,4 +1,5 @@
package test
import kotlin.coroutines.*
data class Modifiers(val x: Int) {
external fun extFun()
@@ -20,5 +21,5 @@ data class Modifiers(val x: 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]
VALUE_PARAMETER_LIST
VALUE_PARAMETER[fqName=null, hasDefaultValue=false, hasValOrVar=false, isMutable=false, name=c]
MODIFIER_LIST[coroutine]
TYPE_REFERENCE
MODIFIER_LIST[suspend]
FUNCTION_TYPE
FUNCTION_TYPE_RECEIVER
TYPE_REFERENCE
@@ -45,17 +45,8 @@ PsiJetFileStubImpl[package=test]
TYPE_REFERENCE
USER_TYPE
USER_TYPE
USER_TYPE
REFERENCE_EXPRESSION[referencedName=kotlin]
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]
REFERENCE_EXPRESSION[referencedName=kotlin]
REFERENCE_EXPRESSION[referencedName=Unit]
TYPE_REFERENCE
USER_TYPE
USER_TYPE