@flock/wirespec 0.15.13 → 0.15.14
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/clikt-clikt.mjs +1148 -1148
- package/colormath-root-colormath.mjs +418 -418
- package/kotlin-kotlin-stdlib.mjs +11 -11
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1766 -1766
- package/kotlinx-io-kotlinx-io-core.mjs +377 -377
- package/markdown.mjs +1850 -1850
- package/mordant-mordant.mjs +1585 -1585
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +143 -132
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +266 -266
- package/wirespec-src-converter-avro.mjs +263 -263
- package/wirespec-src-converter-openapi.mjs +161 -161
- package/wirespec-src-plugin-arguments.mjs +277 -141
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +69 -69
- package/wirespec-src-plugin-npm.mjs +6 -6
- package/wirespec-src-tools-generator.mjs +2 -2
|
@@ -190,22 +190,22 @@ initMetadataForObject(Bytes, 'Bytes');
|
|
|
190
190
|
function copy(isNullable) {
|
|
191
191
|
var tmp;
|
|
192
192
|
if (this instanceof Any) {
|
|
193
|
-
tmp = this.
|
|
193
|
+
tmp = this.v2a(isNullable == null ? this.t2a_1 : isNullable);
|
|
194
194
|
} else {
|
|
195
195
|
if (this instanceof Custom) {
|
|
196
|
-
tmp = this.
|
|
196
|
+
tmp = this.c2b(VOID, isNullable == null ? this.n23_1 : isNullable);
|
|
197
197
|
} else {
|
|
198
198
|
if (this instanceof Dict) {
|
|
199
|
-
tmp = this.
|
|
199
|
+
tmp = this.z2a(VOID, isNullable == null ? this.z23_1 : isNullable);
|
|
200
200
|
} else {
|
|
201
201
|
if (this instanceof Iterable) {
|
|
202
|
-
tmp = this.
|
|
202
|
+
tmp = this.a2b(VOID, isNullable == null ? this.p23_1 : isNullable);
|
|
203
203
|
} else {
|
|
204
204
|
if (this instanceof Primitive) {
|
|
205
|
-
tmp = this.
|
|
205
|
+
tmp = this.e2b(VOID, isNullable == null ? this.c24_1 : isNullable);
|
|
206
206
|
} else {
|
|
207
207
|
if (this instanceof Unit) {
|
|
208
|
-
tmp = this.
|
|
208
|
+
tmp = this.v2a(isNullable == null ? this.w2a_1 : isNullable);
|
|
209
209
|
} else {
|
|
210
210
|
noWhenBranchMatchedException();
|
|
211
211
|
}
|
|
@@ -1590,8 +1590,14 @@ function emitSerialized_0(_this__u8e3s4, $this) {
|
|
|
1590
1590
|
}
|
|
1591
1591
|
function emitDeserialized_1(_this__u8e3s4, $this) {
|
|
1592
1592
|
var tmp = Spacer_instance.a25(3) + _this__u8e3s4.v24_1 + ' -> Response' + _this__u8e3s4.v24_1 + '(';
|
|
1593
|
-
var tmp_0
|
|
1594
|
-
|
|
1593
|
+
var tmp_0;
|
|
1594
|
+
if (!(_this__u8e3s4.x24_1 == null)) {
|
|
1595
|
+
tmp_0 = Spacer_instance.a25(4) + 'body = serialization.deserialize(requireNotNull(response.body) { "body is null" }, typeOf<' + emit_3(_this__u8e3s4.x24_1, $this) + '>()),';
|
|
1596
|
+
} else {
|
|
1597
|
+
tmp_0 = Spacer_instance.a25(4) + 'body = Unit,';
|
|
1598
|
+
}
|
|
1599
|
+
var tmp_1 = tmp_0;
|
|
1600
|
+
return joinToString(listOfNotNull([tmp, tmp_1, orNull(joinToString(_this__u8e3s4.w24_1, ',\n', VOID, VOID, VOID, VOID, KotlinEmitter$emitDeserialized$lambda($this))), Spacer_instance.a25(3) + ')']), '\n');
|
|
1595
1601
|
}
|
|
1596
1602
|
function emitSerializedParams_0(_this__u8e3s4, $this, type, fields) {
|
|
1597
1603
|
return 'mapOf("' + _this__u8e3s4.i25_1.b1() + '" to (' + type + '.' + fields + '.' + $this.k25(_this__u8e3s4.i25_1) + '?.let{ serialization.serializeParam(it, typeOf<' + $this.x23(_this__u8e3s4.j25_1) + '>()) } ?: emptyList()))';
|
|
@@ -6470,6 +6476,9 @@ protoOf(Module).equals = function (other) {
|
|
|
6470
6476
|
function AST(modules) {
|
|
6471
6477
|
this.f29_1 = modules;
|
|
6472
6478
|
}
|
|
6479
|
+
protoOf(AST).n2a = function (modules) {
|
|
6480
|
+
return new AST(modules);
|
|
6481
|
+
};
|
|
6473
6482
|
protoOf(AST).toString = function () {
|
|
6474
6483
|
return 'AST(modules=' + this.f29_1.toString() + ')';
|
|
6475
6484
|
};
|
|
@@ -6494,7 +6503,7 @@ function _Comment___get_value__impl__8r3pla($this) {
|
|
|
6494
6503
|
}
|
|
6495
6504
|
function Companion_7() {
|
|
6496
6505
|
}
|
|
6497
|
-
protoOf(Companion_7).
|
|
6506
|
+
protoOf(Companion_7).o2a = function (comment) {
|
|
6498
6507
|
return _Comment___init__impl__cg8s2u(removeCommentMarkers(comment));
|
|
6499
6508
|
};
|
|
6500
6509
|
var Companion_instance_8;
|
|
@@ -6510,21 +6519,21 @@ function Comment__hashCode_impl_tr9dgt($this) {
|
|
|
6510
6519
|
function Comment__equals_impl_3xkmkx($this, other) {
|
|
6511
6520
|
if (!(other instanceof Comment))
|
|
6512
6521
|
return false;
|
|
6513
|
-
if (!($this === (other instanceof Comment ? other.
|
|
6522
|
+
if (!($this === (other instanceof Comment ? other.p2a_1 : THROW_CCE())))
|
|
6514
6523
|
return false;
|
|
6515
6524
|
return true;
|
|
6516
6525
|
}
|
|
6517
6526
|
function Comment(value) {
|
|
6518
|
-
this.
|
|
6527
|
+
this.p2a_1 = value;
|
|
6519
6528
|
}
|
|
6520
6529
|
protoOf(Comment).toString = function () {
|
|
6521
|
-
return Comment__toString_impl_803gny(this.
|
|
6530
|
+
return Comment__toString_impl_803gny(this.p2a_1);
|
|
6522
6531
|
};
|
|
6523
6532
|
protoOf(Comment).hashCode = function () {
|
|
6524
|
-
return Comment__hashCode_impl_tr9dgt(this.
|
|
6533
|
+
return Comment__hashCode_impl_tr9dgt(this.p2a_1);
|
|
6525
6534
|
};
|
|
6526
6535
|
protoOf(Comment).equals = function (other) {
|
|
6527
|
-
return Comment__equals_impl_3xkmkx(this.
|
|
6536
|
+
return Comment__equals_impl_3xkmkx(this.p2a_1, other);
|
|
6528
6537
|
};
|
|
6529
6538
|
function Identifier(name) {
|
|
6530
6539
|
this.l24_1 = removeBackticks(name);
|
|
@@ -6549,10 +6558,10 @@ function Precision(name, ordinal) {
|
|
|
6549
6558
|
Enum.call(this, name, ordinal);
|
|
6550
6559
|
}
|
|
6551
6560
|
function String_0() {
|
|
6552
|
-
this.
|
|
6561
|
+
this.q2a_1 = 'String';
|
|
6553
6562
|
}
|
|
6554
6563
|
protoOf(String_0).s2 = function () {
|
|
6555
|
-
return this.
|
|
6564
|
+
return this.q2a_1;
|
|
6556
6565
|
};
|
|
6557
6566
|
protoOf(String_0).toString = function () {
|
|
6558
6567
|
return 'String';
|
|
@@ -6621,10 +6630,10 @@ protoOf(Number_0).equals = function (other) {
|
|
|
6621
6630
|
return true;
|
|
6622
6631
|
};
|
|
6623
6632
|
function Boolean_0() {
|
|
6624
|
-
this.
|
|
6633
|
+
this.r2a_1 = 'Boolean';
|
|
6625
6634
|
}
|
|
6626
6635
|
protoOf(Boolean_0).s2 = function () {
|
|
6627
|
-
return this.
|
|
6636
|
+
return this.r2a_1;
|
|
6628
6637
|
};
|
|
6629
6638
|
protoOf(Boolean_0).toString = function () {
|
|
6630
6639
|
return 'Boolean';
|
|
@@ -6645,10 +6654,10 @@ function Boolean_getInstance() {
|
|
|
6645
6654
|
return Boolean_instance;
|
|
6646
6655
|
}
|
|
6647
6656
|
function Bytes() {
|
|
6648
|
-
this.
|
|
6657
|
+
this.s2a_1 = 'Bytes';
|
|
6649
6658
|
}
|
|
6650
6659
|
protoOf(Bytes).s2 = function () {
|
|
6651
|
-
return this.
|
|
6660
|
+
return this.s2a_1;
|
|
6652
6661
|
};
|
|
6653
6662
|
protoOf(Bytes).toString = function () {
|
|
6654
6663
|
return 'Bytes';
|
|
@@ -6677,23 +6686,23 @@ function Precision_P64_getInstance() {
|
|
|
6677
6686
|
return Precision_P64_instance;
|
|
6678
6687
|
}
|
|
6679
6688
|
function Any(isNullable) {
|
|
6680
|
-
this.
|
|
6681
|
-
this.
|
|
6689
|
+
this.t2a_1 = isNullable;
|
|
6690
|
+
this.u2a_1 = 'Any';
|
|
6682
6691
|
}
|
|
6683
6692
|
protoOf(Any).gm = function () {
|
|
6684
|
-
return this.
|
|
6693
|
+
return this.t2a_1;
|
|
6685
6694
|
};
|
|
6686
6695
|
protoOf(Any).b1 = function () {
|
|
6687
|
-
return this.
|
|
6696
|
+
return this.u2a_1;
|
|
6688
6697
|
};
|
|
6689
|
-
protoOf(Any).
|
|
6698
|
+
protoOf(Any).v2a = function (isNullable) {
|
|
6690
6699
|
return new Any(isNullable);
|
|
6691
6700
|
};
|
|
6692
6701
|
protoOf(Any).toString = function () {
|
|
6693
|
-
return 'Any(isNullable=' + this.
|
|
6702
|
+
return 'Any(isNullable=' + this.t2a_1 + ')';
|
|
6694
6703
|
};
|
|
6695
6704
|
protoOf(Any).hashCode = function () {
|
|
6696
|
-
return getBooleanHashCode(this.
|
|
6705
|
+
return getBooleanHashCode(this.t2a_1);
|
|
6697
6706
|
};
|
|
6698
6707
|
protoOf(Any).equals = function (other) {
|
|
6699
6708
|
if (this === other)
|
|
@@ -6701,28 +6710,28 @@ protoOf(Any).equals = function (other) {
|
|
|
6701
6710
|
if (!(other instanceof Any))
|
|
6702
6711
|
return false;
|
|
6703
6712
|
var tmp0_other_with_cast = other instanceof Any ? other : THROW_CCE();
|
|
6704
|
-
if (!(this.
|
|
6713
|
+
if (!(this.t2a_1 === tmp0_other_with_cast.t2a_1))
|
|
6705
6714
|
return false;
|
|
6706
6715
|
return true;
|
|
6707
6716
|
};
|
|
6708
6717
|
function Unit(isNullable) {
|
|
6709
|
-
this.
|
|
6710
|
-
this.
|
|
6718
|
+
this.w2a_1 = isNullable;
|
|
6719
|
+
this.x2a_1 = 'Unit';
|
|
6711
6720
|
}
|
|
6712
6721
|
protoOf(Unit).gm = function () {
|
|
6713
|
-
return this.
|
|
6722
|
+
return this.w2a_1;
|
|
6714
6723
|
};
|
|
6715
6724
|
protoOf(Unit).b1 = function () {
|
|
6716
|
-
return this.
|
|
6725
|
+
return this.x2a_1;
|
|
6717
6726
|
};
|
|
6718
|
-
protoOf(Unit).
|
|
6727
|
+
protoOf(Unit).v2a = function (isNullable) {
|
|
6719
6728
|
return new Unit(isNullable);
|
|
6720
6729
|
};
|
|
6721
6730
|
protoOf(Unit).toString = function () {
|
|
6722
|
-
return 'Unit(isNullable=' + this.
|
|
6731
|
+
return 'Unit(isNullable=' + this.w2a_1 + ')';
|
|
6723
6732
|
};
|
|
6724
6733
|
protoOf(Unit).hashCode = function () {
|
|
6725
|
-
return getBooleanHashCode(this.
|
|
6734
|
+
return getBooleanHashCode(this.w2a_1);
|
|
6726
6735
|
};
|
|
6727
6736
|
protoOf(Unit).equals = function (other) {
|
|
6728
6737
|
if (this === other)
|
|
@@ -6730,7 +6739,7 @@ protoOf(Unit).equals = function (other) {
|
|
|
6730
6739
|
if (!(other instanceof Unit))
|
|
6731
6740
|
return false;
|
|
6732
6741
|
var tmp0_other_with_cast = other instanceof Unit ? other : THROW_CCE();
|
|
6733
|
-
if (!(this.
|
|
6742
|
+
if (!(this.w2a_1 === tmp0_other_with_cast.w2a_1))
|
|
6734
6743
|
return false;
|
|
6735
6744
|
return true;
|
|
6736
6745
|
};
|
|
@@ -6745,13 +6754,13 @@ protoOf(Dict).gm = function () {
|
|
|
6745
6754
|
protoOf(Dict).b1 = function () {
|
|
6746
6755
|
return this.a24_1;
|
|
6747
6756
|
};
|
|
6748
|
-
protoOf(Dict).
|
|
6757
|
+
protoOf(Dict).y2a = function (reference, isNullable) {
|
|
6749
6758
|
return new Dict(reference, isNullable);
|
|
6750
6759
|
};
|
|
6751
|
-
protoOf(Dict).
|
|
6760
|
+
protoOf(Dict).z2a = function (reference, isNullable, $super) {
|
|
6752
6761
|
reference = reference === VOID ? this.y23_1 : reference;
|
|
6753
6762
|
isNullable = isNullable === VOID ? this.z23_1 : isNullable;
|
|
6754
|
-
return $super === VOID ? this.
|
|
6763
|
+
return $super === VOID ? this.y2a(reference, isNullable) : $super.y2a.call(this, reference, isNullable);
|
|
6755
6764
|
};
|
|
6756
6765
|
protoOf(Dict).toString = function () {
|
|
6757
6766
|
return 'Dict(reference=' + toString(this.y23_1) + ', isNullable=' + this.z23_1 + ')';
|
|
@@ -6784,13 +6793,13 @@ protoOf(Iterable).gm = function () {
|
|
|
6784
6793
|
protoOf(Iterable).b1 = function () {
|
|
6785
6794
|
return this.q23_1;
|
|
6786
6795
|
};
|
|
6787
|
-
protoOf(Iterable).
|
|
6796
|
+
protoOf(Iterable).y2a = function (reference, isNullable) {
|
|
6788
6797
|
return new Iterable(reference, isNullable);
|
|
6789
6798
|
};
|
|
6790
|
-
protoOf(Iterable).
|
|
6799
|
+
protoOf(Iterable).a2b = function (reference, isNullable, $super) {
|
|
6791
6800
|
reference = reference === VOID ? this.o23_1 : reference;
|
|
6792
6801
|
isNullable = isNullable === VOID ? this.p23_1 : isNullable;
|
|
6793
|
-
return $super === VOID ? this.
|
|
6802
|
+
return $super === VOID ? this.y2a(reference, isNullable) : $super.y2a.call(this, reference, isNullable);
|
|
6794
6803
|
};
|
|
6795
6804
|
protoOf(Iterable).toString = function () {
|
|
6796
6805
|
return 'Iterable(reference=' + toString(this.o23_1) + ', isNullable=' + this.p23_1 + ')';
|
|
@@ -6822,13 +6831,13 @@ protoOf(Custom).b1 = function () {
|
|
|
6822
6831
|
protoOf(Custom).gm = function () {
|
|
6823
6832
|
return this.n23_1;
|
|
6824
6833
|
};
|
|
6825
|
-
protoOf(Custom).
|
|
6834
|
+
protoOf(Custom).b2b = function (value, isNullable) {
|
|
6826
6835
|
return new Custom(value, isNullable);
|
|
6827
6836
|
};
|
|
6828
|
-
protoOf(Custom).
|
|
6837
|
+
protoOf(Custom).c2b = function (value, isNullable, $super) {
|
|
6829
6838
|
value = value === VOID ? this.m23_1 : value;
|
|
6830
6839
|
isNullable = isNullable === VOID ? this.n23_1 : isNullable;
|
|
6831
|
-
return $super === VOID ? this.
|
|
6840
|
+
return $super === VOID ? this.b2b(value, isNullable) : $super.b2b.call(this, value, isNullable);
|
|
6832
6841
|
};
|
|
6833
6842
|
protoOf(Custom).toString = function () {
|
|
6834
6843
|
return 'Custom(value=' + this.m23_1 + ', isNullable=' + this.n23_1 + ')';
|
|
@@ -6861,13 +6870,13 @@ protoOf(Primitive).gm = function () {
|
|
|
6861
6870
|
protoOf(Primitive).b1 = function () {
|
|
6862
6871
|
return this.d24_1;
|
|
6863
6872
|
};
|
|
6864
|
-
protoOf(Primitive).
|
|
6873
|
+
protoOf(Primitive).d2b = function (type, isNullable) {
|
|
6865
6874
|
return new Primitive(type, isNullable);
|
|
6866
6875
|
};
|
|
6867
|
-
protoOf(Primitive).
|
|
6876
|
+
protoOf(Primitive).e2b = function (type, isNullable, $super) {
|
|
6868
6877
|
type = type === VOID ? this.b24_1 : type;
|
|
6869
6878
|
isNullable = isNullable === VOID ? this.c24_1 : isNullable;
|
|
6870
|
-
return $super === VOID ? this.
|
|
6879
|
+
return $super === VOID ? this.d2b(type, isNullable) : $super.d2b.call(this, type, isNullable);
|
|
6871
6880
|
};
|
|
6872
6881
|
protoOf(Primitive).toString = function () {
|
|
6873
6882
|
return 'Primitive(type=' + toString(this.b24_1) + ', isNullable=' + this.c24_1 + ')';
|
|
@@ -6919,19 +6928,19 @@ function Type(comment, identifier, shape, extends_0) {
|
|
|
6919
6928
|
protoOf(Type).k24 = function () {
|
|
6920
6929
|
return this.m26_1;
|
|
6921
6930
|
};
|
|
6922
|
-
protoOf(Type).
|
|
6931
|
+
protoOf(Type).f2b = function (comment, identifier, shape, extends_0) {
|
|
6923
6932
|
return new Type(comment, identifier, shape, extends_0);
|
|
6924
6933
|
};
|
|
6925
|
-
protoOf(Type).
|
|
6934
|
+
protoOf(Type).g2b = function (comment, identifier, shape, extends_0, $super) {
|
|
6926
6935
|
comment = comment === VOID ? this.l26_1 : comment;
|
|
6927
6936
|
identifier = identifier === VOID ? this.m26_1 : identifier;
|
|
6928
6937
|
shape = shape === VOID ? this.n26_1 : shape;
|
|
6929
6938
|
extends_0 = extends_0 === VOID ? this.o26_1 : extends_0;
|
|
6930
6939
|
var tmp;
|
|
6931
6940
|
if ($super === VOID) {
|
|
6932
|
-
tmp = this.
|
|
6941
|
+
tmp = this.f2b(comment, identifier, shape, extends_0);
|
|
6933
6942
|
} else {
|
|
6934
|
-
var tmp_0 = $super.
|
|
6943
|
+
var tmp_0 = $super.f2b;
|
|
6935
6944
|
var tmp_1 = comment;
|
|
6936
6945
|
tmp = tmp_0.call(this, tmp_1 == null ? null : new Comment(tmp_1), identifier, shape, extends_0);
|
|
6937
6946
|
}
|
|
@@ -6976,13 +6985,13 @@ protoOf(Type).equals = function (other) {
|
|
|
6976
6985
|
};
|
|
6977
6986
|
function DefinitionIdentifier(name) {
|
|
6978
6987
|
Identifier.call(this, name);
|
|
6979
|
-
this.
|
|
6988
|
+
this.i2b_1 = name;
|
|
6980
6989
|
}
|
|
6981
6990
|
protoOf(DefinitionIdentifier).toString = function () {
|
|
6982
|
-
return 'DefinitionIdentifier(name=' + this.
|
|
6991
|
+
return 'DefinitionIdentifier(name=' + this.i2b_1 + ')';
|
|
6983
6992
|
};
|
|
6984
6993
|
protoOf(DefinitionIdentifier).hashCode = function () {
|
|
6985
|
-
return getStringHashCode(this.
|
|
6994
|
+
return getStringHashCode(this.i2b_1);
|
|
6986
6995
|
};
|
|
6987
6996
|
protoOf(DefinitionIdentifier).equals = function (other) {
|
|
6988
6997
|
if (this === other)
|
|
@@ -6990,7 +6999,7 @@ protoOf(DefinitionIdentifier).equals = function (other) {
|
|
|
6990
6999
|
if (!(other instanceof DefinitionIdentifier))
|
|
6991
7000
|
return false;
|
|
6992
7001
|
var tmp0_other_with_cast = other instanceof DefinitionIdentifier ? other : THROW_CCE();
|
|
6993
|
-
if (!(this.
|
|
7002
|
+
if (!(this.i2b_1 === tmp0_other_with_cast.i2b_1))
|
|
6994
7003
|
return false;
|
|
6995
7004
|
return true;
|
|
6996
7005
|
};
|
|
@@ -7450,13 +7459,13 @@ protoOf(Channel).equals = function (other) {
|
|
|
7450
7459
|
};
|
|
7451
7460
|
function FieldIdentifier(name) {
|
|
7452
7461
|
Identifier.call(this, name);
|
|
7453
|
-
this.
|
|
7462
|
+
this.k2b_1 = name;
|
|
7454
7463
|
}
|
|
7455
7464
|
protoOf(FieldIdentifier).toString = function () {
|
|
7456
|
-
return 'FieldIdentifier(name=' + this.
|
|
7465
|
+
return 'FieldIdentifier(name=' + this.k2b_1 + ')';
|
|
7457
7466
|
};
|
|
7458
7467
|
protoOf(FieldIdentifier).hashCode = function () {
|
|
7459
|
-
return getStringHashCode(this.
|
|
7468
|
+
return getStringHashCode(this.k2b_1);
|
|
7460
7469
|
};
|
|
7461
7470
|
protoOf(FieldIdentifier).equals = function (other) {
|
|
7462
7471
|
if (this === other)
|
|
@@ -7464,7 +7473,7 @@ protoOf(FieldIdentifier).equals = function (other) {
|
|
|
7464
7473
|
if (!(other instanceof FieldIdentifier))
|
|
7465
7474
|
return false;
|
|
7466
7475
|
var tmp0_other_with_cast = other instanceof FieldIdentifier ? other : THROW_CCE();
|
|
7467
|
-
if (!(this.
|
|
7476
|
+
if (!(this.k2b_1 === tmp0_other_with_cast.k2b_1))
|
|
7468
7477
|
return false;
|
|
7469
7478
|
return true;
|
|
7470
7479
|
};
|
|
@@ -7588,7 +7597,7 @@ function parseModule(_this__u8e3s4, $this, src, options) {
|
|
|
7588
7597
|
tmp = tmp_2;
|
|
7589
7598
|
}
|
|
7590
7599
|
var this_4 = tmp;
|
|
7591
|
-
var f =
|
|
7600
|
+
var f = $this.l2b(options);
|
|
7592
7601
|
// Inline function 'kotlin.contracts.contract' call
|
|
7593
7602
|
var tmp_3;
|
|
7594
7603
|
if (this_4 instanceof Right) {
|
|
@@ -7634,12 +7643,12 @@ function parseDefinition(_this__u8e3s4, $this) {
|
|
|
7634
7643
|
var tmp_0;
|
|
7635
7644
|
if (_this__u8e3s4.b2a_1.t29_1 instanceof Comment_0) {
|
|
7636
7645
|
// Inline function 'kotlin.also' call
|
|
7637
|
-
var this_0 = new Comment(Companion_instance_8.
|
|
7646
|
+
var this_0 = new Comment(Companion_instance_8.o2a(_this__u8e3s4.b2a_1.s29_1));
|
|
7638
7647
|
// Inline function 'kotlin.contracts.contract' call
|
|
7639
7648
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
7640
|
-
this_0.
|
|
7649
|
+
this_0.p2a_1;
|
|
7641
7650
|
raise.zk(_this__u8e3s4.f2a());
|
|
7642
|
-
tmp_0 = this_0.
|
|
7651
|
+
tmp_0 = this_0.p2a_1;
|
|
7643
7652
|
} else {
|
|
7644
7653
|
tmp_0 = null;
|
|
7645
7654
|
}
|
|
@@ -7654,7 +7663,7 @@ function parseDefinition(_this__u8e3s4, $this) {
|
|
|
7654
7663
|
// Inline function 'kotlin.with' call
|
|
7655
7664
|
// Inline function 'kotlin.contracts.contract' call
|
|
7656
7665
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
7657
|
-
var tmp$ret$2 = Parser_getInstance().j22_1.
|
|
7666
|
+
var tmp$ret$2 = Parser_getInstance().j22_1.m2b(_this__u8e3s4, comment);
|
|
7658
7667
|
tmp_3 = raise.zk(tmp$ret$2);
|
|
7659
7668
|
} else {
|
|
7660
7669
|
if (tmp2_subject instanceof EnumTypeDefinition) {
|
|
@@ -7756,9 +7765,6 @@ function parseDefinition(_this__u8e3s4, $this) {
|
|
|
7756
7765
|
}
|
|
7757
7766
|
return tmp;
|
|
7758
7767
|
}
|
|
7759
|
-
function validate($this, options) {
|
|
7760
|
-
return Parser$validate$lambda(options);
|
|
7761
|
-
}
|
|
7762
7768
|
function runOption(_this__u8e3s4, $this, bool, block) {
|
|
7763
7769
|
return bool ? block(_this__u8e3s4) : right(_this__u8e3s4);
|
|
7764
7770
|
}
|
|
@@ -7841,7 +7847,7 @@ function fillExtendsClause(_this__u8e3s4, $this) {
|
|
|
7841
7847
|
var tmp$ret$9 = new Custom(item_0.u26_1.b1(), false);
|
|
7842
7848
|
destination_2.e(tmp$ret$9);
|
|
7843
7849
|
}
|
|
7844
|
-
tmp_0 = definition.
|
|
7850
|
+
tmp_0 = definition.g2b(VOID, VOID, VOID, destination_2);
|
|
7845
7851
|
} else {
|
|
7846
7852
|
if (definition instanceof Union) {
|
|
7847
7853
|
tmp_0 = definition;
|
|
@@ -7927,7 +7933,7 @@ function fillExtendsClause(_this__u8e3s4, $this) {
|
|
|
7927
7933
|
var tmp$ret$22 = new Custom(item_3.u26_1.b1(), false);
|
|
7928
7934
|
destination_7.e(tmp$ret$22);
|
|
7929
7935
|
}
|
|
7930
|
-
tmp_3 = item_1.
|
|
7936
|
+
tmp_3 = item_1.g2b(VOID, VOID, VOID, destination_7);
|
|
7931
7937
|
} else {
|
|
7932
7938
|
if (item_1 instanceof Union) {
|
|
7933
7939
|
tmp_3 = item_1;
|
|
@@ -7973,7 +7979,7 @@ function Parser$validate$lambda$lambda($this$runOption) {
|
|
|
7973
7979
|
function Parser$validate$lambda($options) {
|
|
7974
7980
|
return function (defs) {
|
|
7975
7981
|
var tmp = Parser_getInstance();
|
|
7976
|
-
return runOption(defs, tmp, $options.
|
|
7982
|
+
return runOption(defs, tmp, $options.o2b_1, Parser$validate$lambda$lambda);
|
|
7977
7983
|
};
|
|
7978
7984
|
}
|
|
7979
7985
|
function Parser() {
|
|
@@ -7983,7 +7989,7 @@ function Parser() {
|
|
|
7983
7989
|
this.l22_1 = EndpointParser_instance;
|
|
7984
7990
|
this.m22_1 = ChannelParser_instance;
|
|
7985
7991
|
}
|
|
7986
|
-
protoOf(Parser).
|
|
7992
|
+
protoOf(Parser).p2b = function (_this__u8e3s4, modules, options) {
|
|
7987
7993
|
// Inline function 'kotlin.let' call
|
|
7988
7994
|
// Inline function 'arrow.core.Either.map' call
|
|
7989
7995
|
// Inline function 'kotlin.let' call
|
|
@@ -8058,11 +8064,14 @@ protoOf(Parser).n2b = function (_this__u8e3s4, modules, options) {
|
|
|
8058
8064
|
}
|
|
8059
8065
|
// Inline function 'kotlin.contracts.contract' call
|
|
8060
8066
|
var p0 = tmp_2;
|
|
8061
|
-
return Validator_instance.
|
|
8067
|
+
return Validator_instance.q2b(p0);
|
|
8062
8068
|
};
|
|
8063
8069
|
protoOf(Parser).n22 = function (_this__u8e3s4, modules, options, $super) {
|
|
8064
8070
|
options = options === VOID ? new ParseOptions() : options;
|
|
8065
|
-
return $super === VOID ? this.
|
|
8071
|
+
return $super === VOID ? this.p2b(_this__u8e3s4, modules, options) : $super.p2b.call(this, _this__u8e3s4, modules, options);
|
|
8072
|
+
};
|
|
8073
|
+
protoOf(Parser).l2b = function (options) {
|
|
8074
|
+
return Parser$validate$lambda(options);
|
|
8066
8075
|
};
|
|
8067
8076
|
var Parser_instance;
|
|
8068
8077
|
function Parser_getInstance() {
|
|
@@ -8073,15 +8082,15 @@ function Parser_getInstance() {
|
|
|
8073
8082
|
function ParseOptions(strict, allowUnions) {
|
|
8074
8083
|
strict = strict === VOID ? false : strict;
|
|
8075
8084
|
allowUnions = allowUnions === VOID ? true : allowUnions;
|
|
8076
|
-
this.
|
|
8077
|
-
this.
|
|
8085
|
+
this.n2b_1 = strict;
|
|
8086
|
+
this.o2b_1 = allowUnions;
|
|
8078
8087
|
}
|
|
8079
8088
|
protoOf(ParseOptions).toString = function () {
|
|
8080
|
-
return 'ParseOptions(strict=' + this.
|
|
8089
|
+
return 'ParseOptions(strict=' + this.n2b_1 + ', allowUnions=' + this.o2b_1 + ')';
|
|
8081
8090
|
};
|
|
8082
8091
|
protoOf(ParseOptions).hashCode = function () {
|
|
8083
|
-
var result = getBooleanHashCode(this.
|
|
8084
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
8092
|
+
var result = getBooleanHashCode(this.n2b_1);
|
|
8093
|
+
result = imul(result, 31) + getBooleanHashCode(this.o2b_1) | 0;
|
|
8085
8094
|
return result;
|
|
8086
8095
|
};
|
|
8087
8096
|
protoOf(ParseOptions).equals = function (other) {
|
|
@@ -8090,9 +8099,9 @@ protoOf(ParseOptions).equals = function (other) {
|
|
|
8090
8099
|
if (!(other instanceof ParseOptions))
|
|
8091
8100
|
return false;
|
|
8092
8101
|
var tmp0_other_with_cast = other instanceof ParseOptions ? other : THROW_CCE();
|
|
8093
|
-
if (!(this.
|
|
8102
|
+
if (!(this.n2b_1 === tmp0_other_with_cast.n2b_1))
|
|
8094
8103
|
return false;
|
|
8095
|
-
if (!(this.
|
|
8104
|
+
if (!(this.o2b_1 === tmp0_other_with_cast.o2b_1))
|
|
8096
8105
|
return false;
|
|
8097
8106
|
return true;
|
|
8098
8107
|
};
|
|
@@ -8232,7 +8241,7 @@ function TokenProvider(logger, tokens) {
|
|
|
8232
8241
|
tmp.e2a_1 = destination;
|
|
8233
8242
|
printTokens$default(this);
|
|
8234
8243
|
}
|
|
8235
|
-
protoOf(TokenProvider).
|
|
8244
|
+
protoOf(TokenProvider).r2b = function (_this__u8e3s4) {
|
|
8236
8245
|
// Inline function 'arrow.core.raise.either' call
|
|
8237
8246
|
// Inline function 'arrow.core.raise.fold' call
|
|
8238
8247
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -8751,12 +8760,12 @@ function TypeParser$parseWirespecType$lambda$lambda_0(it) {
|
|
|
8751
8760
|
}
|
|
8752
8761
|
function TypeParser$parseWirespecType$lambda$lambda_1($type) {
|
|
8753
8762
|
return function (it) {
|
|
8754
|
-
return new Primitive(new Integer(toPrimitivePrecision($type.
|
|
8763
|
+
return new Primitive(new Integer(toPrimitivePrecision($type.s2b_1)), it);
|
|
8755
8764
|
};
|
|
8756
8765
|
}
|
|
8757
8766
|
function TypeParser$parseWirespecType$lambda$lambda_2($type) {
|
|
8758
8767
|
return function (it) {
|
|
8759
|
-
return new Primitive(new Number_0(toPrimitivePrecision($type.
|
|
8768
|
+
return new Primitive(new Number_0(toPrimitivePrecision($type.t2b_1)), it);
|
|
8760
8769
|
};
|
|
8761
8770
|
}
|
|
8762
8771
|
function TypeParser$parseWirespecType$lambda$lambda_3(it) {
|
|
@@ -8771,7 +8780,7 @@ function Reference$Unit$_init_$ref_od8ye0() {
|
|
|
8771
8780
|
}
|
|
8772
8781
|
function TypeParser$parseWirespecType$lambda$lambda_4($this_parseToken, $this_parseWirespecType, $current) {
|
|
8773
8782
|
return function (it) {
|
|
8774
|
-
$this_parseToken.zk($this_parseWirespecType.
|
|
8783
|
+
$this_parseToken.zk($this_parseWirespecType.r2b($current));
|
|
8775
8784
|
return new Custom($current.s29_1, it);
|
|
8776
8785
|
};
|
|
8777
8786
|
}
|
|
@@ -9005,14 +9014,14 @@ function TypeParser$parseUnionTypeEntries$lambda($this_parseUnionTypeEntries) {
|
|
|
9005
9014
|
var this_0 = ArrayList_init_$Create$_0();
|
|
9006
9015
|
// Inline function 'kotlin.contracts.contract' call
|
|
9007
9016
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseUnionTypeEntries.<anonymous>.<anonymous>' call
|
|
9008
|
-
$this$parseToken.zk($this_parseUnionTypeEntries.
|
|
9017
|
+
$this$parseToken.zk($this_parseUnionTypeEntries.r2b($this_parseUnionTypeEntries.b2a_1));
|
|
9009
9018
|
this_0.e(new Custom($this_parseUnionTypeEntries.b2a_1.s29_1, false));
|
|
9010
9019
|
$this$parseToken.zk($this_parseUnionTypeEntries.f2a());
|
|
9011
9020
|
while (equals($this_parseUnionTypeEntries.b2a_1.t29_1, Pipe_instance)) {
|
|
9012
9021
|
$this$parseToken.zk($this_parseUnionTypeEntries.f2a());
|
|
9013
9022
|
var tmp0_subject_0 = $this_parseUnionTypeEntries.b2a_1.t29_1;
|
|
9014
9023
|
if (isInterface(tmp0_subject_0, TypeIdentifier)) {
|
|
9015
|
-
$this$parseToken.zk($this_parseUnionTypeEntries.
|
|
9024
|
+
$this$parseToken.zk($this_parseUnionTypeEntries.r2b($this_parseUnionTypeEntries.b2a_1));
|
|
9016
9025
|
// Inline function 'kotlin.also' call
|
|
9017
9026
|
this_0.e(new Custom($this_parseUnionTypeEntries.b2a_1.s29_1, false));
|
|
9018
9027
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -9121,7 +9130,7 @@ function TypeParser$parseUnionTypeEntries$lambda($this_parseUnionTypeEntries) {
|
|
|
9121
9130
|
}
|
|
9122
9131
|
function TypeParser() {
|
|
9123
9132
|
}
|
|
9124
|
-
protoOf(TypeParser).
|
|
9133
|
+
protoOf(TypeParser).m2b = function (_this__u8e3s4, comment) {
|
|
9125
9134
|
return parseToken(_this__u8e3s4, TypeParser$parseType$lambda(_this__u8e3s4, comment));
|
|
9126
9135
|
};
|
|
9127
9136
|
protoOf(TypeParser).j2a = function (_this__u8e3s4) {
|
|
@@ -9155,15 +9164,15 @@ function toPrimitivePrecision(_this__u8e3s4) {
|
|
|
9155
9164
|
function IdxAndLength(idx, length) {
|
|
9156
9165
|
idx = idx === VOID ? 0 : idx;
|
|
9157
9166
|
length = length === VOID ? 0 : length;
|
|
9158
|
-
this.
|
|
9159
|
-
this.
|
|
9167
|
+
this.u2b_1 = idx;
|
|
9168
|
+
this.v2b_1 = length;
|
|
9160
9169
|
}
|
|
9161
9170
|
protoOf(IdxAndLength).toString = function () {
|
|
9162
|
-
return 'IdxAndLength(idx=' + this.
|
|
9171
|
+
return 'IdxAndLength(idx=' + this.u2b_1 + ', length=' + this.v2b_1 + ')';
|
|
9163
9172
|
};
|
|
9164
9173
|
protoOf(IdxAndLength).hashCode = function () {
|
|
9165
|
-
var result = this.
|
|
9166
|
-
result = imul(result, 31) + this.
|
|
9174
|
+
var result = this.u2b_1;
|
|
9175
|
+
result = imul(result, 31) + this.v2b_1 | 0;
|
|
9167
9176
|
return result;
|
|
9168
9177
|
};
|
|
9169
9178
|
protoOf(IdxAndLength).equals = function (other) {
|
|
@@ -9172,9 +9181,9 @@ protoOf(IdxAndLength).equals = function (other) {
|
|
|
9172
9181
|
if (!(other instanceof IdxAndLength))
|
|
9173
9182
|
return false;
|
|
9174
9183
|
var tmp0_other_with_cast = other instanceof IdxAndLength ? other : THROW_CCE();
|
|
9175
|
-
if (!(this.
|
|
9184
|
+
if (!(this.u2b_1 === tmp0_other_with_cast.u2b_1))
|
|
9176
9185
|
return false;
|
|
9177
|
-
if (!(this.
|
|
9186
|
+
if (!(this.v2b_1 === tmp0_other_with_cast.v2b_1))
|
|
9178
9187
|
return false;
|
|
9179
9188
|
return true;
|
|
9180
9189
|
};
|
|
@@ -9186,14 +9195,14 @@ function Coordinates(line, position, idxAndLength) {
|
|
|
9186
9195
|
this.w29_1 = position;
|
|
9187
9196
|
this.x29_1 = idxAndLength;
|
|
9188
9197
|
}
|
|
9189
|
-
protoOf(Coordinates).
|
|
9198
|
+
protoOf(Coordinates).w2b = function (line, position, idxAndLength) {
|
|
9190
9199
|
return new Coordinates(line, position, idxAndLength);
|
|
9191
9200
|
};
|
|
9192
|
-
protoOf(Coordinates).
|
|
9201
|
+
protoOf(Coordinates).x2b = function (line, position, idxAndLength, $super) {
|
|
9193
9202
|
line = line === VOID ? this.v29_1 : line;
|
|
9194
9203
|
position = position === VOID ? this.w29_1 : position;
|
|
9195
9204
|
idxAndLength = idxAndLength === VOID ? this.x29_1 : idxAndLength;
|
|
9196
|
-
return $super === VOID ? this.
|
|
9205
|
+
return $super === VOID ? this.w2b(line, position, idxAndLength) : $super.w2b.call(this, line, position, idxAndLength);
|
|
9197
9206
|
};
|
|
9198
9207
|
protoOf(Coordinates).toString = function () {
|
|
9199
9208
|
return 'Coordinates(line=' + this.v29_1 + ', position=' + this.w29_1 + ', idxAndLength=' + this.x29_1.toString() + ')';
|
|
@@ -9223,14 +9232,14 @@ function Token(value, type, coordinates) {
|
|
|
9223
9232
|
this.t29_1 = type;
|
|
9224
9233
|
this.u29_1 = coordinates;
|
|
9225
9234
|
}
|
|
9226
|
-
protoOf(Token).
|
|
9235
|
+
protoOf(Token).y2b = function (value, type, coordinates) {
|
|
9227
9236
|
return new Token(value, type, coordinates);
|
|
9228
9237
|
};
|
|
9229
|
-
protoOf(Token).
|
|
9238
|
+
protoOf(Token).z2b = function (value, type, coordinates, $super) {
|
|
9230
9239
|
value = value === VOID ? this.s29_1 : value;
|
|
9231
9240
|
type = type === VOID ? this.t29_1 : type;
|
|
9232
9241
|
coordinates = coordinates === VOID ? this.u29_1 : coordinates;
|
|
9233
|
-
return $super === VOID ? this.
|
|
9242
|
+
return $super === VOID ? this.y2b(value, type, coordinates) : $super.y2b.call(this, value, type, coordinates);
|
|
9234
9243
|
};
|
|
9235
9244
|
protoOf(Token).toString = function () {
|
|
9236
9245
|
return 'Token(value=' + this.s29_1 + ', type=' + toString(this.t29_1) + ', coordinates=' + this.u29_1.toString() + ')';
|
|
@@ -9256,10 +9265,10 @@ protoOf(Token).equals = function (other) {
|
|
|
9256
9265
|
return true;
|
|
9257
9266
|
};
|
|
9258
9267
|
function plus_2(_this__u8e3s4, length) {
|
|
9259
|
-
return new IdxAndLength(_this__u8e3s4.
|
|
9268
|
+
return new IdxAndLength(_this__u8e3s4.u2b_1 + length | 0, length);
|
|
9260
9269
|
}
|
|
9261
9270
|
function plus_3(_this__u8e3s4, length) {
|
|
9262
|
-
return _this__u8e3s4.
|
|
9271
|
+
return _this__u8e3s4.x2b(VOID, _this__u8e3s4.w29_1 + length | 0, plus_2(_this__u8e3s4.x29_1, length));
|
|
9263
9272
|
}
|
|
9264
9273
|
function StartOfProgram() {
|
|
9265
9274
|
}
|
|
@@ -9286,7 +9295,7 @@ function FieldIdentifier_0() {
|
|
|
9286
9295
|
function TypeIdentifier() {
|
|
9287
9296
|
}
|
|
9288
9297
|
function EndOfProgram() {
|
|
9289
|
-
this.
|
|
9298
|
+
this.a2c_1 = 'EOP';
|
|
9290
9299
|
}
|
|
9291
9300
|
protoOf(EndOfProgram).toString = function () {
|
|
9292
9301
|
return 'EndOfProgram';
|
|
@@ -9789,13 +9798,13 @@ function WsBytes_getInstance() {
|
|
|
9789
9798
|
return WsBytes_instance;
|
|
9790
9799
|
}
|
|
9791
9800
|
function WsInteger(precision) {
|
|
9792
|
-
this.
|
|
9801
|
+
this.s2b_1 = precision;
|
|
9793
9802
|
}
|
|
9794
9803
|
protoOf(WsInteger).toString = function () {
|
|
9795
|
-
return 'WsInteger(precision=' + this.
|
|
9804
|
+
return 'WsInteger(precision=' + this.s2b_1.toString() + ')';
|
|
9796
9805
|
};
|
|
9797
9806
|
protoOf(WsInteger).hashCode = function () {
|
|
9798
|
-
return this.
|
|
9807
|
+
return this.s2b_1.hashCode();
|
|
9799
9808
|
};
|
|
9800
9809
|
protoOf(WsInteger).equals = function (other) {
|
|
9801
9810
|
if (this === other)
|
|
@@ -9803,7 +9812,7 @@ protoOf(WsInteger).equals = function (other) {
|
|
|
9803
9812
|
if (!(other instanceof WsInteger))
|
|
9804
9813
|
return false;
|
|
9805
9814
|
var tmp0_other_with_cast = other instanceof WsInteger ? other : THROW_CCE();
|
|
9806
|
-
if (!this.
|
|
9815
|
+
if (!this.s2b_1.equals(tmp0_other_with_cast.s2b_1))
|
|
9807
9816
|
return false;
|
|
9808
9817
|
return true;
|
|
9809
9818
|
};
|
|
@@ -9821,13 +9830,13 @@ function Precision_0(name, ordinal) {
|
|
|
9821
9830
|
Enum.call(this, name, ordinal);
|
|
9822
9831
|
}
|
|
9823
9832
|
function WsNumber(precision) {
|
|
9824
|
-
this.
|
|
9833
|
+
this.t2b_1 = precision;
|
|
9825
9834
|
}
|
|
9826
9835
|
protoOf(WsNumber).toString = function () {
|
|
9827
|
-
return 'WsNumber(precision=' + this.
|
|
9836
|
+
return 'WsNumber(precision=' + this.t2b_1.toString() + ')';
|
|
9828
9837
|
};
|
|
9829
9838
|
protoOf(WsNumber).hashCode = function () {
|
|
9830
|
-
return this.
|
|
9839
|
+
return this.t2b_1.hashCode();
|
|
9831
9840
|
};
|
|
9832
9841
|
protoOf(WsNumber).equals = function (other) {
|
|
9833
9842
|
if (this === other)
|
|
@@ -9835,7 +9844,7 @@ protoOf(WsNumber).equals = function (other) {
|
|
|
9835
9844
|
if (!(other instanceof WsNumber))
|
|
9836
9845
|
return false;
|
|
9837
9846
|
var tmp0_other_with_cast = other instanceof WsNumber ? other : THROW_CCE();
|
|
9838
|
-
if (!this.
|
|
9847
|
+
if (!this.t2b_1.equals(tmp0_other_with_cast.t2b_1))
|
|
9839
9848
|
return false;
|
|
9840
9849
|
return true;
|
|
9841
9850
|
};
|
|
@@ -10030,17 +10039,17 @@ function TokenizeOptions(removeWhitespace, specifyTypes, specifyFieldIdentifiers
|
|
|
10030
10039
|
removeWhitespace = removeWhitespace === VOID ? true : removeWhitespace;
|
|
10031
10040
|
specifyTypes = specifyTypes === VOID ? true : specifyTypes;
|
|
10032
10041
|
specifyFieldIdentifiers = specifyFieldIdentifiers === VOID ? true : specifyFieldIdentifiers;
|
|
10033
|
-
this.
|
|
10034
|
-
this.
|
|
10035
|
-
this.
|
|
10042
|
+
this.b2c_1 = removeWhitespace;
|
|
10043
|
+
this.c2c_1 = specifyTypes;
|
|
10044
|
+
this.d2c_1 = specifyFieldIdentifiers;
|
|
10036
10045
|
}
|
|
10037
10046
|
protoOf(TokenizeOptions).toString = function () {
|
|
10038
|
-
return 'TokenizeOptions(removeWhitespace=' + this.
|
|
10047
|
+
return 'TokenizeOptions(removeWhitespace=' + this.b2c_1 + ', specifyTypes=' + this.c2c_1 + ', specifyFieldIdentifiers=' + this.d2c_1 + ')';
|
|
10039
10048
|
};
|
|
10040
10049
|
protoOf(TokenizeOptions).hashCode = function () {
|
|
10041
|
-
var result = getBooleanHashCode(this.
|
|
10042
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
10043
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
10050
|
+
var result = getBooleanHashCode(this.b2c_1);
|
|
10051
|
+
result = imul(result, 31) + getBooleanHashCode(this.c2c_1) | 0;
|
|
10052
|
+
result = imul(result, 31) + getBooleanHashCode(this.d2c_1) | 0;
|
|
10044
10053
|
return result;
|
|
10045
10054
|
};
|
|
10046
10055
|
protoOf(TokenizeOptions).equals = function (other) {
|
|
@@ -10049,11 +10058,11 @@ protoOf(TokenizeOptions).equals = function (other) {
|
|
|
10049
10058
|
if (!(other instanceof TokenizeOptions))
|
|
10050
10059
|
return false;
|
|
10051
10060
|
var tmp0_other_with_cast = other instanceof TokenizeOptions ? other : THROW_CCE();
|
|
10052
|
-
if (!(this.
|
|
10061
|
+
if (!(this.b2c_1 === tmp0_other_with_cast.b2c_1))
|
|
10053
10062
|
return false;
|
|
10054
|
-
if (!(this.
|
|
10063
|
+
if (!(this.c2c_1 === tmp0_other_with_cast.c2c_1))
|
|
10055
10064
|
return false;
|
|
10056
|
-
if (!(this.
|
|
10065
|
+
if (!(this.d2c_1 === tmp0_other_with_cast.d2c_1))
|
|
10057
10066
|
return false;
|
|
10058
10067
|
return true;
|
|
10059
10068
|
};
|
|
@@ -10101,7 +10110,7 @@ function specifyFieldIdentifier(_this__u8e3s4, caseVariants) {
|
|
|
10101
10110
|
// Inline function 'community.flock.wirespec.compiler.core.tokenize.specifyFieldIdentifier.<anonymous>' call
|
|
10102
10111
|
var regex = element.sd();
|
|
10103
10112
|
var variant = element.td();
|
|
10104
|
-
var result = regex.tb(removeBackticks(_this__u8e3s4.s29_1)) ? _this__u8e3s4.
|
|
10113
|
+
var result = regex.tb(removeBackticks(_this__u8e3s4.s29_1)) ? _this__u8e3s4.z2b(VOID, variant) : null;
|
|
10105
10114
|
if (!(result == null)) {
|
|
10106
10115
|
tmp$ret$1 = result;
|
|
10107
10116
|
break $l$block;
|
|
@@ -10128,7 +10137,7 @@ function specifyType(_this__u8e3s4, entries) {
|
|
|
10128
10137
|
// Inline function 'kotlin.let' call
|
|
10129
10138
|
// Inline function 'kotlin.contracts.contract' call
|
|
10130
10139
|
// Inline function 'community.flock.wirespec.compiler.core.tokenize.specifyType.<anonymous>' call
|
|
10131
|
-
tmp_0 = _this__u8e3s4.
|
|
10140
|
+
tmp_0 = _this__u8e3s4.z2b(VOID, tmp1_safe_receiver);
|
|
10132
10141
|
}
|
|
10133
10142
|
var tmp2_elvis_lhs = tmp_0;
|
|
10134
10143
|
tmp = tmp2_elvis_lhs == null ? _this__u8e3s4 : tmp2_elvis_lhs;
|
|
@@ -10255,9 +10264,9 @@ function optimize$lambda$lambda_1($this_optimize) {
|
|
|
10255
10264
|
}
|
|
10256
10265
|
function optimize$lambda($options, $this_optimize) {
|
|
10257
10266
|
return function (tokens) {
|
|
10258
|
-
var tmp = runOption_0(tokens, $options.
|
|
10259
|
-
var tmp_0 = runOption_0(tmp, $options.
|
|
10260
|
-
return runOption_0(tmp_0, $options.
|
|
10267
|
+
var tmp = runOption_0(tokens, $options.b2c_1, optimize$lambda$lambda);
|
|
10268
|
+
var tmp_0 = runOption_0(tmp, $options.c2c_1, optimize$lambda$lambda_0($this_optimize));
|
|
10269
|
+
return runOption_0(tmp_0, $options.d2c_1, optimize$lambda$lambda_1($this_optimize));
|
|
10261
10270
|
};
|
|
10262
10271
|
}
|
|
10263
10272
|
function validateEndpoints($this, ast) {
|
|
@@ -10567,7 +10576,7 @@ function validateChannels($this, ast) {
|
|
|
10567
10576
|
}
|
|
10568
10577
|
function Validator_0() {
|
|
10569
10578
|
}
|
|
10570
|
-
protoOf(Validator_0).
|
|
10579
|
+
protoOf(Validator_0).q2b = function (ast) {
|
|
10571
10580
|
// Inline function 'arrow.core.flatMap' call
|
|
10572
10581
|
// Inline function 'kotlin.contracts.contract' call
|
|
10573
10582
|
var tmp;
|
|
@@ -10848,17 +10857,17 @@ function Logger(logLevel) {
|
|
|
10848
10857
|
}
|
|
10849
10858
|
tmp_5.s22_1 = tmp_6;
|
|
10850
10859
|
}
|
|
10851
|
-
protoOf(Logger).
|
|
10860
|
+
protoOf(Logger).e2c = function () {
|
|
10852
10861
|
return this.p22_1;
|
|
10853
10862
|
};
|
|
10854
|
-
protoOf(Logger).
|
|
10863
|
+
protoOf(Logger).f2c = function () {
|
|
10855
10864
|
return this.q22_1;
|
|
10856
10865
|
};
|
|
10857
10866
|
protoOf(Logger).t22 = function (string) {
|
|
10858
|
-
return logIf(string, this, this.
|
|
10867
|
+
return logIf(string, this, this.e2c());
|
|
10859
10868
|
};
|
|
10860
10869
|
protoOf(Logger).r29 = function (string) {
|
|
10861
|
-
return logIf(string, this, this.
|
|
10870
|
+
return logIf(string, this, this.f2c());
|
|
10862
10871
|
};
|
|
10863
10872
|
function NoLogger() {
|
|
10864
10873
|
}
|
|
@@ -10959,6 +10968,7 @@ export {
|
|
|
10959
10968
|
FieldIdentifier as FieldIdentifier2fnn30qixmpf,
|
|
10960
10969
|
Field as Field3769gf85dkeaq,
|
|
10961
10970
|
Module as Module1hus0d150u4qt,
|
|
10971
|
+
ParseOptions as ParseOptionspl50698nv4gs,
|
|
10962
10972
|
Any as Any268baxyo9do19,
|
|
10963
10973
|
Custom as Custom37hvrfgd6b0uj,
|
|
10964
10974
|
Dict as Dict3l6tdihpke4rr,
|
|
@@ -11009,6 +11019,7 @@ export {
|
|
|
11009
11019
|
KotlinShared_getInstance as KotlinShared_getInstancelb54418euihx,
|
|
11010
11020
|
TypeScriptShared_getInstance as TypeScriptShared_getInstanceso5esjccztt4,
|
|
11011
11021
|
Companion_instance_8 as Companion_instance1twsg5rpyxokb,
|
|
11022
|
+
Parser_getInstance as Parser_getInstancejwv5aymh0f8x,
|
|
11012
11023
|
Boolean_instance as Boolean_instance3qnzv8pgzox40,
|
|
11013
11024
|
Bytes_instance as Bytes_instance1at7binw0nl40,
|
|
11014
11025
|
String_instance as String_instancephyttzykqgeu,
|