[K/JS] Compile Kotlin coroutines as JS generator ^KT-63038 Fixed

This commit is contained in:
Artem Kobzar
2023-12-18 17:13:07 +00:00
committed by Space Team
parent 4d07fdf97e
commit 2530cba82a
73 changed files with 2240 additions and 144 deletions
+1
View File
@@ -122,6 +122,7 @@ message Function {
STATIC = 1;
GET = 2;
SET = 3;
GENERATOR = 4;
}
}
@@ -426,6 +426,7 @@ abstract class JsAstDeserializerBase {
JsAstProtoBuf.Function.Modifier.STATIC -> JsFunction.Modifier.STATIC
JsAstProtoBuf.Function.Modifier.SET -> JsFunction.Modifier.SET
JsAstProtoBuf.Function.Modifier.GET -> JsFunction.Modifier.GET
JsAstProtoBuf.Function.Modifier.GENERATOR -> JsFunction.Modifier.GENERATOR
}
protected fun map(op: JsAstProtoBuf.BinaryOperation.Type) = when (op) {
@@ -8934,6 +8934,10 @@ public final class JsAstProtoBuf {
* <code>SET = 3;</code>
*/
SET(2, 3),
/**
* <code>GENERATOR = 4;</code>
*/
GENERATOR(3, 4),
;
/**
@@ -8948,6 +8952,10 @@ public final class JsAstProtoBuf {
* <code>SET = 3;</code>
*/
public static final int SET_VALUE = 3;
/**
* <code>GENERATOR = 4;</code>
*/
public static final int GENERATOR_VALUE = 4;
public final int getNumber() { return value; }
@@ -8957,6 +8965,7 @@ public final class JsAstProtoBuf {
case 1: return STATIC;
case 2: return GET;
case 3: return SET;
case 4: return GENERATOR;
default: return null;
}
}
@@ -442,6 +442,7 @@ abstract class JsAstSerializerBase {
JsFunction.Modifier.STATIC -> JsAstProtoBuf.Function.Modifier.STATIC
JsFunction.Modifier.SET -> JsAstProtoBuf.Function.Modifier.SET
JsFunction.Modifier.GET -> JsAstProtoBuf.Function.Modifier.GET
JsFunction.Modifier.GENERATOR -> JsAstProtoBuf.Function.Modifier.GENERATOR
}
protected fun map(op: JsBinaryOperator) = when (op) {