@flock/wirespec 0.20.0-RC.1 → 0.20.0-RC.2
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-mordant.mjs +38 -38
- package/colormath-root-colormath.mjs +426 -426
- package/kotest-kotest-property.mjs +348 -348
- package/kotlin-kotlin-stdlib.mjs +78 -77
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +9624 -9624
- package/kotlin-rgxgen.mjs +1757 -1757
- package/kotlinx-io-kotlinx-io-core.mjs +403 -403
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1745 -1745
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1454 -1454
- package/mordant-mordant.mjs +1157 -1157
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +13 -1
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +209 -238
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +167 -167
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +214 -206
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +249 -249
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +101 -101
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +209 -209
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +26 -26
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +2546 -2422
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +472 -472
- package/wirespec-src-converter-openapi.mjs +335 -335
- package/wirespec-src-ide-lsp.mjs +1346 -1346
- package/wirespec-src-integration-kotest.mjs +257 -257
- package/wirespec-src-plugin-arguments.mjs +128 -128
- package/wirespec-src-plugin-cli.mjs +84 -84
- package/wirespec-src-plugin-npm.mjs +18 -18
- package/wirespec-src-tools-generator.mjs +2 -2
package/kotlin-kotlin-stdlib.mjs
CHANGED
|
@@ -37,6 +37,11 @@ if (typeof Array.prototype.fill === 'undefined') {
|
|
|
37
37
|
Object.defineProperty(TypedArray.prototype, 'fill', {value: Array.prototype.fill});
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
|
+
if (typeof Math.log2 === 'undefined') {
|
|
41
|
+
Math.log2 = function (x) {
|
|
42
|
+
return Math.log(x) * Math.LOG2E;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
40
45
|
if (typeof Math.clz32 === 'undefined') {
|
|
41
46
|
Math.clz32 = function (log, LN2) {
|
|
42
47
|
return function (x) {
|
|
@@ -48,11 +53,6 @@ if (typeof Math.clz32 === 'undefined') {
|
|
|
48
53
|
};
|
|
49
54
|
}(Math.log, Math.LN2);
|
|
50
55
|
}
|
|
51
|
-
if (typeof Math.log2 === 'undefined') {
|
|
52
|
-
Math.log2 = function (x) {
|
|
53
|
-
return Math.log(x) * Math.LOG2E;
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
56
|
if (typeof String.prototype.startsWith === 'undefined') {
|
|
57
57
|
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
58
58
|
position = position || 0;
|
|
@@ -12072,7 +12072,7 @@ function substringAfter(_this__u8e3s4, delimiter, missingDelimiterValue) {
|
|
|
12072
12072
|
}
|
|
12073
12073
|
function substringAfterLast(_this__u8e3s4, delimiter, missingDelimiterValue) {
|
|
12074
12074
|
missingDelimiterValue = missingDelimiterValue === VOID ? _this__u8e3s4 : missingDelimiterValue;
|
|
12075
|
-
var index =
|
|
12075
|
+
var index = lastIndexOf(_this__u8e3s4, delimiter);
|
|
12076
12076
|
return index === -1 ? missingDelimiterValue : substring(_this__u8e3s4, index + 1 | 0, _this__u8e3s4.length);
|
|
12077
12077
|
}
|
|
12078
12078
|
function isBlank(_this__u8e3s4) {
|
|
@@ -12105,7 +12105,7 @@ function removePrefix(_this__u8e3s4, prefix) {
|
|
|
12105
12105
|
}
|
|
12106
12106
|
function substringAfterLast_0(_this__u8e3s4, delimiter, missingDelimiterValue) {
|
|
12107
12107
|
missingDelimiterValue = missingDelimiterValue === VOID ? _this__u8e3s4 : missingDelimiterValue;
|
|
12108
|
-
var index =
|
|
12108
|
+
var index = lastIndexOf_0(_this__u8e3s4, delimiter);
|
|
12109
12109
|
return index === -1 ? missingDelimiterValue : substring(_this__u8e3s4, index + delimiter.length | 0, _this__u8e3s4.length);
|
|
12110
12110
|
}
|
|
12111
12111
|
function trimEnd(_this__u8e3s4, chars) {
|
|
@@ -12157,6 +12157,29 @@ function endsWith_0(_this__u8e3s4, char, ignoreCase) {
|
|
|
12157
12157
|
function substring_1(_this__u8e3s4, range) {
|
|
12158
12158
|
return substring(_this__u8e3s4, range.yc(), range.zc() + 1 | 0);
|
|
12159
12159
|
}
|
|
12160
|
+
function lastIndexOf(_this__u8e3s4, char, startIndex, ignoreCase) {
|
|
12161
|
+
startIndex = startIndex === VOID ? get_lastIndex_4(_this__u8e3s4) : startIndex;
|
|
12162
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
12163
|
+
var tmp;
|
|
12164
|
+
var tmp_0;
|
|
12165
|
+
if (ignoreCase) {
|
|
12166
|
+
tmp_0 = true;
|
|
12167
|
+
} else {
|
|
12168
|
+
tmp_0 = !(typeof _this__u8e3s4 === 'string');
|
|
12169
|
+
}
|
|
12170
|
+
if (tmp_0) {
|
|
12171
|
+
// Inline function 'kotlin.charArrayOf' call
|
|
12172
|
+
var tmp$ret$0 = charArrayOf([char]);
|
|
12173
|
+
tmp = lastIndexOfAny(_this__u8e3s4, tmp$ret$0, startIndex, ignoreCase);
|
|
12174
|
+
} else {
|
|
12175
|
+
// Inline function 'kotlin.text.nativeLastIndexOf' call
|
|
12176
|
+
// Inline function 'kotlin.text.nativeLastIndexOf' call
|
|
12177
|
+
var str = toString(char);
|
|
12178
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
12179
|
+
tmp = _this__u8e3s4.lastIndexOf(str, startIndex);
|
|
12180
|
+
}
|
|
12181
|
+
return tmp;
|
|
12182
|
+
}
|
|
12160
12183
|
function removeSuffix(_this__u8e3s4, suffix) {
|
|
12161
12184
|
if (endsWith_1(_this__u8e3s4, suffix)) {
|
|
12162
12185
|
return substring(_this__u8e3s4, 0, _this__u8e3s4.length - charSequenceLength(suffix) | 0);
|
|
@@ -12205,7 +12228,7 @@ function indexOf_5(_this__u8e3s4, char, startIndex, ignoreCase) {
|
|
|
12205
12228
|
}
|
|
12206
12229
|
return tmp;
|
|
12207
12230
|
}
|
|
12208
|
-
function
|
|
12231
|
+
function lastIndexOf_0(_this__u8e3s4, string, startIndex, ignoreCase) {
|
|
12209
12232
|
startIndex = startIndex === VOID ? get_lastIndex_4(_this__u8e3s4) : startIndex;
|
|
12210
12233
|
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
12211
12234
|
var tmp;
|
|
@@ -12359,29 +12382,6 @@ function rangesDelimitedBy(_this__u8e3s4, delimiters, startIndex, ignoreCase, li
|
|
|
12359
12382
|
function substring_2(_this__u8e3s4, range) {
|
|
12360
12383
|
return toString_1(charSequenceSubSequence(_this__u8e3s4, range.yc(), range.zc() + 1 | 0));
|
|
12361
12384
|
}
|
|
12362
|
-
function lastIndexOf_0(_this__u8e3s4, char, startIndex, ignoreCase) {
|
|
12363
|
-
startIndex = startIndex === VOID ? get_lastIndex_4(_this__u8e3s4) : startIndex;
|
|
12364
|
-
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
12365
|
-
var tmp;
|
|
12366
|
-
var tmp_0;
|
|
12367
|
-
if (ignoreCase) {
|
|
12368
|
-
tmp_0 = true;
|
|
12369
|
-
} else {
|
|
12370
|
-
tmp_0 = !(typeof _this__u8e3s4 === 'string');
|
|
12371
|
-
}
|
|
12372
|
-
if (tmp_0) {
|
|
12373
|
-
// Inline function 'kotlin.charArrayOf' call
|
|
12374
|
-
var tmp$ret$0 = charArrayOf([char]);
|
|
12375
|
-
tmp = lastIndexOfAny(_this__u8e3s4, tmp$ret$0, startIndex, ignoreCase);
|
|
12376
|
-
} else {
|
|
12377
|
-
// Inline function 'kotlin.text.nativeLastIndexOf' call
|
|
12378
|
-
// Inline function 'kotlin.text.nativeLastIndexOf' call
|
|
12379
|
-
var str = toString(char);
|
|
12380
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
12381
|
-
tmp = _this__u8e3s4.lastIndexOf(str, startIndex);
|
|
12382
|
-
}
|
|
12383
|
-
return tmp;
|
|
12384
|
-
}
|
|
12385
12385
|
function trimStart_0(_this__u8e3s4) {
|
|
12386
12386
|
var tmp$ret$1;
|
|
12387
12387
|
$l$block: {
|
|
@@ -12485,6 +12485,50 @@ function removeSurrounding_0(_this__u8e3s4, prefix, suffix) {
|
|
|
12485
12485
|
}
|
|
12486
12486
|
return _this__u8e3s4;
|
|
12487
12487
|
}
|
|
12488
|
+
function lastIndexOfAny(_this__u8e3s4, chars, startIndex, ignoreCase) {
|
|
12489
|
+
startIndex = startIndex === VOID ? get_lastIndex_4(_this__u8e3s4) : startIndex;
|
|
12490
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
12491
|
+
var tmp;
|
|
12492
|
+
if (!ignoreCase && chars.length === 1) {
|
|
12493
|
+
tmp = typeof _this__u8e3s4 === 'string';
|
|
12494
|
+
} else {
|
|
12495
|
+
tmp = false;
|
|
12496
|
+
}
|
|
12497
|
+
if (tmp) {
|
|
12498
|
+
var char = single(chars);
|
|
12499
|
+
// Inline function 'kotlin.text.nativeLastIndexOf' call
|
|
12500
|
+
// Inline function 'kotlin.text.nativeLastIndexOf' call
|
|
12501
|
+
var str = toString(char);
|
|
12502
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
12503
|
+
return _this__u8e3s4.lastIndexOf(str, startIndex);
|
|
12504
|
+
}
|
|
12505
|
+
var inductionVariable = coerceAtMost(startIndex, get_lastIndex_4(_this__u8e3s4));
|
|
12506
|
+
if (0 <= inductionVariable)
|
|
12507
|
+
do {
|
|
12508
|
+
var index = inductionVariable;
|
|
12509
|
+
inductionVariable = inductionVariable + -1 | 0;
|
|
12510
|
+
var charAtIndex = charSequenceGet(_this__u8e3s4, index);
|
|
12511
|
+
var tmp$ret$4;
|
|
12512
|
+
$l$block: {
|
|
12513
|
+
// Inline function 'kotlin.collections.any' call
|
|
12514
|
+
var inductionVariable_0 = 0;
|
|
12515
|
+
var last = chars.length;
|
|
12516
|
+
while (inductionVariable_0 < last) {
|
|
12517
|
+
var element = chars[inductionVariable_0];
|
|
12518
|
+
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
12519
|
+
if (equals_1(element, charAtIndex, ignoreCase)) {
|
|
12520
|
+
tmp$ret$4 = true;
|
|
12521
|
+
break $l$block;
|
|
12522
|
+
}
|
|
12523
|
+
}
|
|
12524
|
+
tmp$ret$4 = false;
|
|
12525
|
+
}
|
|
12526
|
+
if (tmp$ret$4)
|
|
12527
|
+
return index;
|
|
12528
|
+
}
|
|
12529
|
+
while (0 <= inductionVariable);
|
|
12530
|
+
return -1;
|
|
12531
|
+
}
|
|
12488
12532
|
function endsWith_1(_this__u8e3s4, suffix, ignoreCase) {
|
|
12489
12533
|
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
12490
12534
|
var tmp;
|
|
@@ -12712,7 +12756,7 @@ protoOf(DelimitedRangesSequence).t = function () {
|
|
|
12712
12756
|
function findAnyOf(_this__u8e3s4, strings, startIndex, ignoreCase, last) {
|
|
12713
12757
|
if (!ignoreCase && strings.b1() === 1) {
|
|
12714
12758
|
var string = single_1(strings);
|
|
12715
|
-
var index = !last ? indexOf_6(_this__u8e3s4, string, startIndex) :
|
|
12759
|
+
var index = !last ? indexOf_6(_this__u8e3s4, string, startIndex) : lastIndexOf_0(_this__u8e3s4, string, startIndex);
|
|
12716
12760
|
return index < 0 ? null : to(index, string);
|
|
12717
12761
|
}
|
|
12718
12762
|
var indices = !last ? numberRangeToNumber(coerceAtLeast(startIndex, 0), charSequenceLength(_this__u8e3s4)) : downTo(coerceAtMost(startIndex, get_lastIndex_4(_this__u8e3s4)), 0);
|
|
@@ -12771,50 +12815,6 @@ function findAnyOf(_this__u8e3s4, strings, startIndex, ignoreCase, last) {
|
|
|
12771
12815
|
}
|
|
12772
12816
|
return null;
|
|
12773
12817
|
}
|
|
12774
|
-
function lastIndexOfAny(_this__u8e3s4, chars, startIndex, ignoreCase) {
|
|
12775
|
-
startIndex = startIndex === VOID ? get_lastIndex_4(_this__u8e3s4) : startIndex;
|
|
12776
|
-
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
12777
|
-
var tmp;
|
|
12778
|
-
if (!ignoreCase && chars.length === 1) {
|
|
12779
|
-
tmp = typeof _this__u8e3s4 === 'string';
|
|
12780
|
-
} else {
|
|
12781
|
-
tmp = false;
|
|
12782
|
-
}
|
|
12783
|
-
if (tmp) {
|
|
12784
|
-
var char = single(chars);
|
|
12785
|
-
// Inline function 'kotlin.text.nativeLastIndexOf' call
|
|
12786
|
-
// Inline function 'kotlin.text.nativeLastIndexOf' call
|
|
12787
|
-
var str = toString(char);
|
|
12788
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
12789
|
-
return _this__u8e3s4.lastIndexOf(str, startIndex);
|
|
12790
|
-
}
|
|
12791
|
-
var inductionVariable = coerceAtMost(startIndex, get_lastIndex_4(_this__u8e3s4));
|
|
12792
|
-
if (0 <= inductionVariable)
|
|
12793
|
-
do {
|
|
12794
|
-
var index = inductionVariable;
|
|
12795
|
-
inductionVariable = inductionVariable + -1 | 0;
|
|
12796
|
-
var charAtIndex = charSequenceGet(_this__u8e3s4, index);
|
|
12797
|
-
var tmp$ret$4;
|
|
12798
|
-
$l$block: {
|
|
12799
|
-
// Inline function 'kotlin.collections.any' call
|
|
12800
|
-
var inductionVariable_0 = 0;
|
|
12801
|
-
var last = chars.length;
|
|
12802
|
-
while (inductionVariable_0 < last) {
|
|
12803
|
-
var element = chars[inductionVariable_0];
|
|
12804
|
-
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
12805
|
-
if (equals_1(element, charAtIndex, ignoreCase)) {
|
|
12806
|
-
tmp$ret$4 = true;
|
|
12807
|
-
break $l$block;
|
|
12808
|
-
}
|
|
12809
|
-
}
|
|
12810
|
-
tmp$ret$4 = false;
|
|
12811
|
-
}
|
|
12812
|
-
if (tmp$ret$4)
|
|
12813
|
-
return index;
|
|
12814
|
-
}
|
|
12815
|
-
while (0 <= inductionVariable);
|
|
12816
|
-
return -1;
|
|
12817
|
-
}
|
|
12818
12818
|
function regionMatchesImpl(_this__u8e3s4, thisOffset, other, otherOffset, length, ignoreCase) {
|
|
12819
12819
|
if (otherOffset < 0 || thisOffset < 0 || thisOffset > (charSequenceLength(_this__u8e3s4) - length | 0) || otherOffset > (charSequenceLength(other) - length | 0)) {
|
|
12820
12820
|
return false;
|
|
@@ -16770,7 +16770,8 @@ export {
|
|
|
16770
16770
|
isUpperCase as isUpperCase16ivdixranflt,
|
|
16771
16771
|
isWhitespace as isWhitespace25occ8z1ed1s9,
|
|
16772
16772
|
get_lastIndex_4 as get_lastIndexld83bqhfgcdd,
|
|
16773
|
-
lastIndexOf as
|
|
16773
|
+
lastIndexOf as lastIndexOfpmd3ei5son2n,
|
|
16774
|
+
lastIndexOf_0 as lastIndexOf2d52xhix5ymjr,
|
|
16774
16775
|
last_3 as last2n4gf5az1lkn4,
|
|
16775
16776
|
lineSequence as lineSequencefj20mplblw0p,
|
|
16776
16777
|
lines as lines3g90sq0zeq43v,
|