@flock/wirespec 0.20.0-RC.10 → 0.20.0-RC.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin-kotlin-stdlib.mjs +5 -5
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +13 -13
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +13 -13
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +157 -148
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +75 -75
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +72 -72
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +90 -90
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +10 -10
- package/wirespec-src-compiler-emitters-scala.mjs +9 -9
- package/wirespec-src-compiler-emitters-typescript.mjs +79 -79
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +41 -31
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +53 -53
- package/wirespec-src-compiler-lib.mjs +30 -30
- package/wirespec-src-converter-avro.mjs +6 -6
- package/wirespec-src-converter-openapi.mjs +79 -79
- package/wirespec-src-tools-generator.mjs +11 -11
|
@@ -272,7 +272,7 @@ function encodeSerializableValue(serializer, value) {
|
|
|
272
272
|
serializer.m22(this, value);
|
|
273
273
|
}
|
|
274
274
|
function encodeNullableSerializableValue(serializer, value) {
|
|
275
|
-
var isNullabilitySupported = serializer.l22().
|
|
275
|
+
var isNullabilitySupported = serializer.l22().xu();
|
|
276
276
|
if (isNullabilitySupported) {
|
|
277
277
|
return this.d27(isInterface(serializer, SerializationStrategy) ? serializer : THROW_CCE(), value);
|
|
278
278
|
}
|
|
@@ -836,7 +836,7 @@ function _init_properties_SerializersCache_kt__hgwi2p() {
|
|
|
836
836
|
}
|
|
837
837
|
function get_nullable(_this__u8e3s4) {
|
|
838
838
|
var tmp;
|
|
839
|
-
if (_this__u8e3s4.l22().
|
|
839
|
+
if (_this__u8e3s4.l22().xu()) {
|
|
840
840
|
tmp = isInterface(_this__u8e3s4, KSerializer) ? _this__u8e3s4 : THROW_CCE();
|
|
841
841
|
} else {
|
|
842
842
|
tmp = new NullableSerializer(_this__u8e3s4);
|
|
@@ -993,8 +993,8 @@ protoOf(ContextDescriptor).w23 = function (index) {
|
|
|
993
993
|
protoOf(ContextDescriptor).x23 = function () {
|
|
994
994
|
return this.o23_1.x23();
|
|
995
995
|
};
|
|
996
|
-
protoOf(ContextDescriptor).
|
|
997
|
-
return this.o23_1.
|
|
996
|
+
protoOf(ContextDescriptor).xu = function () {
|
|
997
|
+
return this.o23_1.xu();
|
|
998
998
|
};
|
|
999
999
|
protoOf(ContextDescriptor).y23 = function () {
|
|
1000
1000
|
return this.o23_1.y23();
|
|
@@ -1592,7 +1592,7 @@ protoOf(AbstractDecoder).x25 = function (descriptor, index, deserializer, previo
|
|
|
1592
1592
|
};
|
|
1593
1593
|
protoOf(AbstractDecoder).z25 = function (descriptor, index, deserializer, previousValue) {
|
|
1594
1594
|
// Inline function 'kotlinx.serialization.encoding.decodeIfNullable' call
|
|
1595
|
-
var isNullabilitySupported = deserializer.l22().
|
|
1595
|
+
var isNullabilitySupported = deserializer.l22().xu();
|
|
1596
1596
|
var tmp;
|
|
1597
1597
|
if (isNullabilitySupported || this.w24()) {
|
|
1598
1598
|
tmp = this.j25(deserializer, previousValue);
|
|
@@ -3114,7 +3114,7 @@ protoOf(SerialDescriptorForNullable).r23 = function () {
|
|
|
3114
3114
|
protoOf(SerialDescriptorForNullable).u24 = function () {
|
|
3115
3115
|
return this.n23_1;
|
|
3116
3116
|
};
|
|
3117
|
-
protoOf(SerialDescriptorForNullable).
|
|
3117
|
+
protoOf(SerialDescriptorForNullable).xu = function () {
|
|
3118
3118
|
return true;
|
|
3119
3119
|
};
|
|
3120
3120
|
protoOf(SerialDescriptorForNullable).equals = function (other) {
|
|
@@ -4951,7 +4951,7 @@ function TaggedDecoder$decodeNullableSerializableElement$lambda(this$0, $deseria
|
|
|
4951
4951
|
return function () {
|
|
4952
4952
|
var tmp0 = this$0;
|
|
4953
4953
|
// Inline function 'kotlinx.serialization.encoding.decodeIfNullable' call
|
|
4954
|
-
var isNullabilitySupported = $deserializer.l22().
|
|
4954
|
+
var isNullabilitySupported = $deserializer.l22().xu();
|
|
4955
4955
|
var tmp;
|
|
4956
4956
|
if (isNullabilitySupported || tmp0.w24()) {
|
|
4957
4957
|
tmp = this$0.j25($deserializer, $previousValue);
|
|
@@ -5921,7 +5921,7 @@ protoOf(createParametrizedCache$1).k23 = function (key, types) {
|
|
|
5921
5921
|
return tmp;
|
|
5922
5922
|
};
|
|
5923
5923
|
//region block: post-declaration
|
|
5924
|
-
protoOf(SerialDescriptorImpl).
|
|
5924
|
+
protoOf(SerialDescriptorImpl).xu = get_isNullable;
|
|
5925
5925
|
protoOf(SerialDescriptorImpl).y23 = get_isInline;
|
|
5926
5926
|
protoOf(AbstractDecoder).y25 = decodeSerializableElement$default;
|
|
5927
5927
|
protoOf(AbstractDecoder).k25 = decodeSerializableValue;
|
|
@@ -5932,19 +5932,19 @@ protoOf(AbstractEncoder).h27 = beginCollection;
|
|
|
5932
5932
|
protoOf(AbstractEncoder).d27 = encodeSerializableValue;
|
|
5933
5933
|
protoOf(AbstractEncoder).f27 = encodeNullableSerializableValue;
|
|
5934
5934
|
protoOf(AbstractEncoder).i27 = shouldEncodeElementDefault;
|
|
5935
|
-
protoOf(ListLikeDescriptor).
|
|
5935
|
+
protoOf(ListLikeDescriptor).xu = get_isNullable;
|
|
5936
5936
|
protoOf(ListLikeDescriptor).y23 = get_isInline;
|
|
5937
5937
|
protoOf(ListLikeDescriptor).a24 = get_annotations;
|
|
5938
|
-
protoOf(MapLikeDescriptor).
|
|
5938
|
+
protoOf(MapLikeDescriptor).xu = get_isNullable;
|
|
5939
5939
|
protoOf(MapLikeDescriptor).y23 = get_isInline;
|
|
5940
5940
|
protoOf(MapLikeDescriptor).a24 = get_annotations;
|
|
5941
|
-
protoOf(PluginGeneratedSerialDescriptor).
|
|
5941
|
+
protoOf(PluginGeneratedSerialDescriptor).xu = get_isNullable;
|
|
5942
5942
|
protoOf(PluginGeneratedSerialDescriptor).y23 = get_isInline;
|
|
5943
5943
|
protoOf(InlinePrimitiveDescriptor$1).p2d = typeParametersSerializers;
|
|
5944
|
-
protoOf(NothingSerialDescriptor).
|
|
5944
|
+
protoOf(NothingSerialDescriptor).xu = get_isNullable;
|
|
5945
5945
|
protoOf(NothingSerialDescriptor).y23 = get_isInline;
|
|
5946
5946
|
protoOf(NothingSerialDescriptor).a24 = get_annotations;
|
|
5947
|
-
protoOf(PrimitiveSerialDescriptor_0).
|
|
5947
|
+
protoOf(PrimitiveSerialDescriptor_0).xu = get_isNullable;
|
|
5948
5948
|
protoOf(PrimitiveSerialDescriptor_0).y23 = get_isInline;
|
|
5949
5949
|
protoOf(PrimitiveSerialDescriptor_0).a24 = get_annotations;
|
|
5950
5950
|
protoOf(TaggedDecoder).y25 = decodeSerializableElement$default;
|
|
@@ -934,8 +934,8 @@ protoOf(JsonArrayDescriptor).w23 = function (index) {
|
|
|
934
934
|
protoOf(JsonArrayDescriptor).x23 = function () {
|
|
935
935
|
return this.e2q_1.x23();
|
|
936
936
|
};
|
|
937
|
-
protoOf(JsonArrayDescriptor).
|
|
938
|
-
return this.e2q_1.
|
|
937
|
+
protoOf(JsonArrayDescriptor).xu = function () {
|
|
938
|
+
return this.e2q_1.xu();
|
|
939
939
|
};
|
|
940
940
|
protoOf(JsonArrayDescriptor).y23 = function () {
|
|
941
941
|
return this.e2q_1.y23();
|
|
@@ -1002,8 +1002,8 @@ protoOf(JsonObjectDescriptor).w23 = function (index) {
|
|
|
1002
1002
|
protoOf(JsonObjectDescriptor).x23 = function () {
|
|
1003
1003
|
return this.h2q_1.x23();
|
|
1004
1004
|
};
|
|
1005
|
-
protoOf(JsonObjectDescriptor).
|
|
1006
|
-
return this.h2q_1.
|
|
1005
|
+
protoOf(JsonObjectDescriptor).xu = function () {
|
|
1006
|
+
return this.h2q_1.xu();
|
|
1007
1007
|
};
|
|
1008
1008
|
protoOf(JsonObjectDescriptor).y23 = function () {
|
|
1009
1009
|
return this.h2q_1.y23();
|
|
@@ -1332,7 +1332,7 @@ protoOf(ComposerWithPrettyPrint).s2q = function () {
|
|
|
1332
1332
|
this.t2q(_Char___init__impl__6a9atx(32));
|
|
1333
1333
|
};
|
|
1334
1334
|
function readIfAbsent($this, descriptor, index) {
|
|
1335
|
-
$this.s2r_1 = (!descriptor.w23(index) && descriptor.v23(index).
|
|
1335
|
+
$this.s2r_1 = (!descriptor.w23(index) && descriptor.v23(index).xu());
|
|
1336
1336
|
return $this.s2r_1;
|
|
1337
1337
|
}
|
|
1338
1338
|
function JsonElementMarker$readIfAbsent$ref(p0) {
|
|
@@ -2220,7 +2220,7 @@ function coerceInputValue($this, descriptor, index) {
|
|
|
2220
2220
|
var isOptional = descriptor.w23(index);
|
|
2221
2221
|
var elementDescriptor = descriptor.v23(index);
|
|
2222
2222
|
var tmp;
|
|
2223
|
-
if (isOptional && !elementDescriptor.
|
|
2223
|
+
if (isOptional && !elementDescriptor.xu()) {
|
|
2224
2224
|
tmp = $this.n2n_1.o2u(true);
|
|
2225
2225
|
} else {
|
|
2226
2226
|
tmp = false;
|
|
@@ -2231,7 +2231,7 @@ function coerceInputValue($this, descriptor, index) {
|
|
|
2231
2231
|
}
|
|
2232
2232
|
if (equals(elementDescriptor.x23(), ENUM_getInstance())) {
|
|
2233
2233
|
var tmp_0;
|
|
2234
|
-
if (elementDescriptor.
|
|
2234
|
+
if (elementDescriptor.xu()) {
|
|
2235
2235
|
tmp_0 = $this.n2n_1.o2u(false);
|
|
2236
2236
|
} else {
|
|
2237
2237
|
tmp_0 = false;
|
|
@@ -2250,7 +2250,7 @@ function coerceInputValue($this, descriptor, index) {
|
|
|
2250
2250
|
}
|
|
2251
2251
|
var enumValue = tmp_1;
|
|
2252
2252
|
var enumIndex = getJsonNameIndex(elementDescriptor, tmp0, enumValue);
|
|
2253
|
-
var coerceToNull = !tmp0.c2n_1.w2o_1 && elementDescriptor.
|
|
2253
|
+
var coerceToNull = !tmp0.c2n_1.w2o_1 && elementDescriptor.xu();
|
|
2254
2254
|
if (enumIndex === -3 && (isOptional || coerceToNull)) {
|
|
2255
2255
|
$this.n2n_1.a2t();
|
|
2256
2256
|
tmp$ret$1 = true;
|
|
@@ -3782,7 +3782,7 @@ function coerceInputValue_0($this, descriptor, index, tag) {
|
|
|
3782
3782
|
var isOptional = descriptor.w23(index);
|
|
3783
3783
|
var elementDescriptor = descriptor.v23(index);
|
|
3784
3784
|
var tmp;
|
|
3785
|
-
if (isOptional && !elementDescriptor.
|
|
3785
|
+
if (isOptional && !elementDescriptor.xu()) {
|
|
3786
3786
|
var tmp_0 = $this.l2v(tag);
|
|
3787
3787
|
tmp = tmp_0 instanceof JsonNull;
|
|
3788
3788
|
} else {
|
|
@@ -3794,7 +3794,7 @@ function coerceInputValue_0($this, descriptor, index, tag) {
|
|
|
3794
3794
|
}
|
|
3795
3795
|
if (equals(elementDescriptor.x23(), ENUM_getInstance())) {
|
|
3796
3796
|
var tmp_1;
|
|
3797
|
-
if (elementDescriptor.
|
|
3797
|
+
if (elementDescriptor.xu()) {
|
|
3798
3798
|
var tmp_2 = $this.l2v(tag);
|
|
3799
3799
|
tmp_1 = tmp_2 instanceof JsonNull;
|
|
3800
3800
|
} else {
|
|
@@ -3816,7 +3816,7 @@ function coerceInputValue_0($this, descriptor, index, tag) {
|
|
|
3816
3816
|
}
|
|
3817
3817
|
var enumValue = tmp_4;
|
|
3818
3818
|
var enumIndex = getJsonNameIndex(elementDescriptor, tmp0, enumValue);
|
|
3819
|
-
var coerceToNull = !tmp0.c2n_1.w2o_1 && elementDescriptor.
|
|
3819
|
+
var coerceToNull = !tmp0.c2n_1.w2o_1 && elementDescriptor.xu();
|
|
3820
3820
|
if (enumIndex === -3 && (isOptional || coerceToNull)) {
|
|
3821
3821
|
tmp$ret$1 = true;
|
|
3822
3822
|
break $l$block_2;
|
|
@@ -3827,7 +3827,7 @@ function coerceInputValue_0($this, descriptor, index, tag) {
|
|
|
3827
3827
|
return tmp$ret$1;
|
|
3828
3828
|
}
|
|
3829
3829
|
function absenceIsNull($this, descriptor, index) {
|
|
3830
|
-
$this.h2w_1 = (!$this.i2p().c2n_1.w2o_1 && !descriptor.w23(index) && descriptor.v23(index).
|
|
3830
|
+
$this.h2w_1 = (!$this.i2p().c2n_1.w2o_1 && !descriptor.w23(index) && descriptor.v23(index).xu());
|
|
3831
3831
|
return $this.h2w_1;
|
|
3832
3832
|
}
|
|
3833
3833
|
function JsonTreeDecoder(json, value, polymorphicDiscriminator, polyDescriptor) {
|
|
@@ -5483,7 +5483,7 @@ function createMapForCache(initialCapacity) {
|
|
|
5483
5483
|
return HashMap_init_$Create$(initialCapacity);
|
|
5484
5484
|
}
|
|
5485
5485
|
//region block: post-declaration
|
|
5486
|
-
protoOf(defer$1).
|
|
5486
|
+
protoOf(defer$1).xu = get_isNullable;
|
|
5487
5487
|
protoOf(defer$1).y23 = get_isInline;
|
|
5488
5488
|
protoOf(defer$1).a24 = get_annotations;
|
|
5489
5489
|
protoOf(PolymorphismValidator).v2m = contextual;
|