Remove experimental coroutines support. Part 2

This commit is contained in:
Ilmir Usmanov
2021-08-24 13:15:49 +02:00
committed by TeamCityServer
parent 0ae18372c5
commit 1f8dd45c2b
22 changed files with 4 additions and 790 deletions
@@ -457,7 +457,7 @@ class DescriptorSerializer private constructor(
}
private fun MutableVersionRequirementTable.writeVersionRequirementDependingOnCoroutinesVersion(): Int =
writeVersionRequirement(if (extension.releaseCoroutines()) LanguageFeature.ReleaseCoroutines else LanguageFeature.Coroutines)
writeVersionRequirement(LanguageFeature.ReleaseCoroutines)
private fun CallableMemberDescriptor.isSuspendOrHasSuspendTypesInSignature(): Boolean {
if (this is FunctionDescriptor && isSuspend) return true
@@ -92,6 +92,4 @@ abstract class SerializerExtension {
open fun serializeErrorType(type: KotlinType, builder: ProtoBuf.Type.Builder) {
throw IllegalStateException("Cannot serialize error type: $type")
}
open fun releaseCoroutines(): Boolean = false
}