@flock/wirespec 0.19.4 → 0.19.6
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 +78 -78
- package/clikt-clikt.mjs +1312 -1312
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +426 -426
- package/kotlin-kotlin-stdlib.mjs +78 -77
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +9632 -9632
- package/kotlin-rgxgen.mjs +1759 -1759
- package/kotlinx-io-kotlinx-io-core.mjs +403 -403
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1729 -1729
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1467 -1467
- 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 +311 -340
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +143 -143
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +204 -196
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +349 -349
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +123 -123
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +194 -194
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +22 -22
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +3584 -3460
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +227 -58
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +473 -473
- package/wirespec-src-converter-openapi.mjs +342 -342
- package/wirespec-src-ide-lsp.mjs +1346 -1346
- package/wirespec-src-plugin-arguments.mjs +131 -131
- package/wirespec-src-plugin-cli.mjs +87 -87
- package/wirespec-src-plugin-npm.d.mts +39 -2
- package/wirespec-src-plugin-npm.mjs +21 -21
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +2 -2
package/kotlin-kotlin-stdlib.mjs
CHANGED
|
@@ -37,11 +37,6 @@ 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
|
-
}
|
|
45
40
|
if (typeof Math.clz32 === 'undefined') {
|
|
46
41
|
Math.clz32 = function (log, LN2) {
|
|
47
42
|
return function (x) {
|
|
@@ -53,6 +48,11 @@ if (typeof Math.clz32 === 'undefined') {
|
|
|
53
48
|
};
|
|
54
49
|
}(Math.log, Math.LN2);
|
|
55
50
|
}
|
|
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.endsWith === 'undefined') {
|
|
57
57
|
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
58
58
|
var subjectString = this.toString();
|
|
@@ -10366,7 +10366,7 @@ function substringAfter(_this__u8e3s4, delimiter, missingDelimiterValue) {
|
|
|
10366
10366
|
}
|
|
10367
10367
|
function substringAfterLast(_this__u8e3s4, delimiter, missingDelimiterValue) {
|
|
10368
10368
|
missingDelimiterValue = missingDelimiterValue === VOID ? _this__u8e3s4 : missingDelimiterValue;
|
|
10369
|
-
var index =
|
|
10369
|
+
var index = lastIndexOf(_this__u8e3s4, delimiter);
|
|
10370
10370
|
return index === -1 ? missingDelimiterValue : substring(_this__u8e3s4, index + 1 | 0, _this__u8e3s4.length);
|
|
10371
10371
|
}
|
|
10372
10372
|
function isBlank(_this__u8e3s4) {
|
|
@@ -10399,7 +10399,7 @@ function removePrefix(_this__u8e3s4, prefix) {
|
|
|
10399
10399
|
}
|
|
10400
10400
|
function substringAfterLast_0(_this__u8e3s4, delimiter, missingDelimiterValue) {
|
|
10401
10401
|
missingDelimiterValue = missingDelimiterValue === VOID ? _this__u8e3s4 : missingDelimiterValue;
|
|
10402
|
-
var index =
|
|
10402
|
+
var index = lastIndexOf_0(_this__u8e3s4, delimiter);
|
|
10403
10403
|
return index === -1 ? missingDelimiterValue : substring(_this__u8e3s4, index + delimiter.length | 0, _this__u8e3s4.length);
|
|
10404
10404
|
}
|
|
10405
10405
|
function trimEnd(_this__u8e3s4, chars) {
|
|
@@ -10451,6 +10451,29 @@ function endsWith_0(_this__u8e3s4, char, ignoreCase) {
|
|
|
10451
10451
|
function substring_1(_this__u8e3s4, range) {
|
|
10452
10452
|
return substring(_this__u8e3s4, range.xc(), range.yc() + 1 | 0);
|
|
10453
10453
|
}
|
|
10454
|
+
function lastIndexOf(_this__u8e3s4, char, startIndex, ignoreCase) {
|
|
10455
|
+
startIndex = startIndex === VOID ? get_lastIndex_4(_this__u8e3s4) : startIndex;
|
|
10456
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
10457
|
+
var tmp;
|
|
10458
|
+
var tmp_0;
|
|
10459
|
+
if (ignoreCase) {
|
|
10460
|
+
tmp_0 = true;
|
|
10461
|
+
} else {
|
|
10462
|
+
tmp_0 = !(typeof _this__u8e3s4 === 'string');
|
|
10463
|
+
}
|
|
10464
|
+
if (tmp_0) {
|
|
10465
|
+
// Inline function 'kotlin.charArrayOf' call
|
|
10466
|
+
var tmp$ret$0 = charArrayOf([char]);
|
|
10467
|
+
tmp = lastIndexOfAny(_this__u8e3s4, tmp$ret$0, startIndex, ignoreCase);
|
|
10468
|
+
} else {
|
|
10469
|
+
// Inline function 'kotlin.text.nativeLastIndexOf' call
|
|
10470
|
+
// Inline function 'kotlin.text.nativeLastIndexOf' call
|
|
10471
|
+
var str = toString(char);
|
|
10472
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
10473
|
+
tmp = _this__u8e3s4.lastIndexOf(str, startIndex);
|
|
10474
|
+
}
|
|
10475
|
+
return tmp;
|
|
10476
|
+
}
|
|
10454
10477
|
function removeSuffix(_this__u8e3s4, suffix) {
|
|
10455
10478
|
if (endsWith_1(_this__u8e3s4, suffix)) {
|
|
10456
10479
|
return substring(_this__u8e3s4, 0, _this__u8e3s4.length - charSequenceLength(suffix) | 0);
|
|
@@ -10499,7 +10522,7 @@ function indexOf_5(_this__u8e3s4, char, startIndex, ignoreCase) {
|
|
|
10499
10522
|
}
|
|
10500
10523
|
return tmp;
|
|
10501
10524
|
}
|
|
10502
|
-
function
|
|
10525
|
+
function lastIndexOf_0(_this__u8e3s4, string, startIndex, ignoreCase) {
|
|
10503
10526
|
startIndex = startIndex === VOID ? get_lastIndex_4(_this__u8e3s4) : startIndex;
|
|
10504
10527
|
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
10505
10528
|
var tmp;
|
|
@@ -10653,29 +10676,6 @@ function rangesDelimitedBy(_this__u8e3s4, delimiters, startIndex, ignoreCase, li
|
|
|
10653
10676
|
function substring_2(_this__u8e3s4, range) {
|
|
10654
10677
|
return toString_1(charSequenceSubSequence(_this__u8e3s4, range.xc(), range.yc() + 1 | 0));
|
|
10655
10678
|
}
|
|
10656
|
-
function lastIndexOf_0(_this__u8e3s4, char, startIndex, ignoreCase) {
|
|
10657
|
-
startIndex = startIndex === VOID ? get_lastIndex_4(_this__u8e3s4) : startIndex;
|
|
10658
|
-
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
10659
|
-
var tmp;
|
|
10660
|
-
var tmp_0;
|
|
10661
|
-
if (ignoreCase) {
|
|
10662
|
-
tmp_0 = true;
|
|
10663
|
-
} else {
|
|
10664
|
-
tmp_0 = !(typeof _this__u8e3s4 === 'string');
|
|
10665
|
-
}
|
|
10666
|
-
if (tmp_0) {
|
|
10667
|
-
// Inline function 'kotlin.charArrayOf' call
|
|
10668
|
-
var tmp$ret$0 = charArrayOf([char]);
|
|
10669
|
-
tmp = lastIndexOfAny(_this__u8e3s4, tmp$ret$0, startIndex, ignoreCase);
|
|
10670
|
-
} else {
|
|
10671
|
-
// Inline function 'kotlin.text.nativeLastIndexOf' call
|
|
10672
|
-
// Inline function 'kotlin.text.nativeLastIndexOf' call
|
|
10673
|
-
var str = toString(char);
|
|
10674
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
10675
|
-
tmp = _this__u8e3s4.lastIndexOf(str, startIndex);
|
|
10676
|
-
}
|
|
10677
|
-
return tmp;
|
|
10678
|
-
}
|
|
10679
10679
|
function trimStart_0(_this__u8e3s4) {
|
|
10680
10680
|
var tmp$ret$1;
|
|
10681
10681
|
$l$block: {
|
|
@@ -10779,6 +10779,50 @@ function removeSurrounding_0(_this__u8e3s4, prefix, suffix) {
|
|
|
10779
10779
|
}
|
|
10780
10780
|
return _this__u8e3s4;
|
|
10781
10781
|
}
|
|
10782
|
+
function lastIndexOfAny(_this__u8e3s4, chars, startIndex, ignoreCase) {
|
|
10783
|
+
startIndex = startIndex === VOID ? get_lastIndex_4(_this__u8e3s4) : startIndex;
|
|
10784
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
10785
|
+
var tmp;
|
|
10786
|
+
if (!ignoreCase && chars.length === 1) {
|
|
10787
|
+
tmp = typeof _this__u8e3s4 === 'string';
|
|
10788
|
+
} else {
|
|
10789
|
+
tmp = false;
|
|
10790
|
+
}
|
|
10791
|
+
if (tmp) {
|
|
10792
|
+
var char = single(chars);
|
|
10793
|
+
// Inline function 'kotlin.text.nativeLastIndexOf' call
|
|
10794
|
+
// Inline function 'kotlin.text.nativeLastIndexOf' call
|
|
10795
|
+
var str = toString(char);
|
|
10796
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
10797
|
+
return _this__u8e3s4.lastIndexOf(str, startIndex);
|
|
10798
|
+
}
|
|
10799
|
+
var inductionVariable = coerceAtMost(startIndex, get_lastIndex_4(_this__u8e3s4));
|
|
10800
|
+
if (0 <= inductionVariable)
|
|
10801
|
+
do {
|
|
10802
|
+
var index = inductionVariable;
|
|
10803
|
+
inductionVariable = inductionVariable + -1 | 0;
|
|
10804
|
+
var charAtIndex = charSequenceGet(_this__u8e3s4, index);
|
|
10805
|
+
var tmp$ret$4;
|
|
10806
|
+
$l$block: {
|
|
10807
|
+
// Inline function 'kotlin.collections.any' call
|
|
10808
|
+
var inductionVariable_0 = 0;
|
|
10809
|
+
var last = chars.length;
|
|
10810
|
+
while (inductionVariable_0 < last) {
|
|
10811
|
+
var element = chars[inductionVariable_0];
|
|
10812
|
+
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
10813
|
+
if (equals_1(element, charAtIndex, ignoreCase)) {
|
|
10814
|
+
tmp$ret$4 = true;
|
|
10815
|
+
break $l$block;
|
|
10816
|
+
}
|
|
10817
|
+
}
|
|
10818
|
+
tmp$ret$4 = false;
|
|
10819
|
+
}
|
|
10820
|
+
if (tmp$ret$4)
|
|
10821
|
+
return index;
|
|
10822
|
+
}
|
|
10823
|
+
while (0 <= inductionVariable);
|
|
10824
|
+
return -1;
|
|
10825
|
+
}
|
|
10782
10826
|
function endsWith_1(_this__u8e3s4, suffix, ignoreCase) {
|
|
10783
10827
|
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
10784
10828
|
var tmp;
|
|
@@ -11006,7 +11050,7 @@ protoOf(DelimitedRangesSequence).t = function () {
|
|
|
11006
11050
|
function findAnyOf(_this__u8e3s4, strings, startIndex, ignoreCase, last) {
|
|
11007
11051
|
if (!ignoreCase && strings.a1() === 1) {
|
|
11008
11052
|
var string = single_1(strings);
|
|
11009
|
-
var index = !last ? indexOf_6(_this__u8e3s4, string, startIndex) :
|
|
11053
|
+
var index = !last ? indexOf_6(_this__u8e3s4, string, startIndex) : lastIndexOf_0(_this__u8e3s4, string, startIndex);
|
|
11010
11054
|
return index < 0 ? null : to(index, string);
|
|
11011
11055
|
}
|
|
11012
11056
|
var indices = !last ? numberRangeToNumber(coerceAtLeast(startIndex, 0), charSequenceLength(_this__u8e3s4)) : downTo(coerceAtMost(startIndex, get_lastIndex_4(_this__u8e3s4)), 0);
|
|
@@ -11065,50 +11109,6 @@ function findAnyOf(_this__u8e3s4, strings, startIndex, ignoreCase, last) {
|
|
|
11065
11109
|
}
|
|
11066
11110
|
return null;
|
|
11067
11111
|
}
|
|
11068
|
-
function lastIndexOfAny(_this__u8e3s4, chars, startIndex, ignoreCase) {
|
|
11069
|
-
startIndex = startIndex === VOID ? get_lastIndex_4(_this__u8e3s4) : startIndex;
|
|
11070
|
-
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
11071
|
-
var tmp;
|
|
11072
|
-
if (!ignoreCase && chars.length === 1) {
|
|
11073
|
-
tmp = typeof _this__u8e3s4 === 'string';
|
|
11074
|
-
} else {
|
|
11075
|
-
tmp = false;
|
|
11076
|
-
}
|
|
11077
|
-
if (tmp) {
|
|
11078
|
-
var char = single(chars);
|
|
11079
|
-
// Inline function 'kotlin.text.nativeLastIndexOf' call
|
|
11080
|
-
// Inline function 'kotlin.text.nativeLastIndexOf' call
|
|
11081
|
-
var str = toString(char);
|
|
11082
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
11083
|
-
return _this__u8e3s4.lastIndexOf(str, startIndex);
|
|
11084
|
-
}
|
|
11085
|
-
var inductionVariable = coerceAtMost(startIndex, get_lastIndex_4(_this__u8e3s4));
|
|
11086
|
-
if (0 <= inductionVariable)
|
|
11087
|
-
do {
|
|
11088
|
-
var index = inductionVariable;
|
|
11089
|
-
inductionVariable = inductionVariable + -1 | 0;
|
|
11090
|
-
var charAtIndex = charSequenceGet(_this__u8e3s4, index);
|
|
11091
|
-
var tmp$ret$4;
|
|
11092
|
-
$l$block: {
|
|
11093
|
-
// Inline function 'kotlin.collections.any' call
|
|
11094
|
-
var inductionVariable_0 = 0;
|
|
11095
|
-
var last = chars.length;
|
|
11096
|
-
while (inductionVariable_0 < last) {
|
|
11097
|
-
var element = chars[inductionVariable_0];
|
|
11098
|
-
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
11099
|
-
if (equals_1(element, charAtIndex, ignoreCase)) {
|
|
11100
|
-
tmp$ret$4 = true;
|
|
11101
|
-
break $l$block;
|
|
11102
|
-
}
|
|
11103
|
-
}
|
|
11104
|
-
tmp$ret$4 = false;
|
|
11105
|
-
}
|
|
11106
|
-
if (tmp$ret$4)
|
|
11107
|
-
return index;
|
|
11108
|
-
}
|
|
11109
|
-
while (0 <= inductionVariable);
|
|
11110
|
-
return -1;
|
|
11111
|
-
}
|
|
11112
11112
|
function regionMatchesImpl(_this__u8e3s4, thisOffset, other, otherOffset, length, ignoreCase) {
|
|
11113
11113
|
if (otherOffset < 0 || thisOffset < 0 || thisOffset > (charSequenceLength(_this__u8e3s4) - length | 0) || otherOffset > (charSequenceLength(other) - length | 0)) {
|
|
11114
11114
|
return false;
|
|
@@ -13995,7 +13995,8 @@ export {
|
|
|
13995
13995
|
isUpperCase as isUpperCase16ivdixranflt,
|
|
13996
13996
|
isWhitespace as isWhitespace25occ8z1ed1s9,
|
|
13997
13997
|
get_lastIndex_4 as get_lastIndexld83bqhfgcdd,
|
|
13998
|
-
lastIndexOf as
|
|
13998
|
+
lastIndexOf as lastIndexOfpmd3ei5son2n,
|
|
13999
|
+
lastIndexOf_0 as lastIndexOf2d52xhix5ymjr,
|
|
13999
14000
|
lineSequence as lineSequencefj20mplblw0p,
|
|
14000
14001
|
lines as lines3g90sq0zeq43v,
|
|
14001
14002
|
prependIndent as prependIndentkl9wuvcodvmu,
|