@zenwave360/dsl 1.10.0-next.6.2 → 1.10.0-next.8.1
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/README.md +27 -0
- package/kotlin/antlr-kotlin-antlr-kotlin-runtime.mjs +3 -3
- package/kotlin/dsl-kotlin.d.mts +2 -1
- package/kotlin/dsl-kotlin.mjs +1137 -391
- package/kotlin/dsl-kotlin.mjs.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.mjs +90 -10
- package/kotlin/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/package.json +6 -2
|
@@ -105,20 +105,20 @@ initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
|
|
|
105
105
|
initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [AbstractMutableCollection, KtMutableList]);
|
|
106
106
|
initMetadataForClass(AbstractMap, 'AbstractMap', VOID, VOID, [KtMap]);
|
|
107
107
|
initMetadataForClass(AbstractMutableMap, 'AbstractMutableMap', VOID, AbstractMap, [AbstractMap, KtMutableMap]);
|
|
108
|
-
initMetadataForClass(AbstractMutableSet, 'AbstractMutableSet', VOID, AbstractMutableCollection, [AbstractMutableCollection,
|
|
108
|
+
initMetadataForClass(AbstractMutableSet, 'AbstractMutableSet', VOID, AbstractMutableCollection, [AbstractMutableCollection, KtSet, MutableCollection]);
|
|
109
109
|
initMetadataForCompanion(Companion_2);
|
|
110
110
|
initMetadataForInterface(RandomAccess, 'RandomAccess');
|
|
111
111
|
initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [AbstractMutableList, KtMutableList, RandomAccess]);
|
|
112
112
|
initMetadataForClass(HashMap, 'HashMap', HashMap_init_$Create$, AbstractMutableMap, [AbstractMutableMap, KtMutableMap]);
|
|
113
|
-
initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [
|
|
113
|
+
initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [KtSet, MutableCollection, AbstractMutableSet]);
|
|
114
114
|
initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [MutableCollection, AbstractMutableCollection]);
|
|
115
|
-
initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [
|
|
115
|
+
initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [KtSet, MutableCollection, AbstractMutableSet]);
|
|
116
116
|
initMetadataForClass(HashMapEntrySet, 'HashMapEntrySet', VOID, HashMapEntrySetBase);
|
|
117
117
|
initMetadataForClass(HashMapKeysDefault$iterator$1);
|
|
118
118
|
initMetadataForClass(HashMapKeysDefault, 'HashMapKeysDefault', VOID, AbstractMutableSet);
|
|
119
119
|
initMetadataForClass(HashMapValuesDefault$iterator$1);
|
|
120
120
|
initMetadataForClass(HashMapValuesDefault, 'HashMapValuesDefault', VOID, AbstractMutableCollection);
|
|
121
|
-
initMetadataForClass(HashSet, 'HashSet', HashSet_init_$Create$, AbstractMutableSet, [AbstractMutableSet,
|
|
121
|
+
initMetadataForClass(HashSet, 'HashSet', HashSet_init_$Create$, AbstractMutableSet, [AbstractMutableSet, KtSet, MutableCollection]);
|
|
122
122
|
initMetadataForCompanion(Companion_3);
|
|
123
123
|
initMetadataForClass(Itr, 'Itr');
|
|
124
124
|
initMetadataForClass(KeysItr, 'KeysItr', VOID, Itr);
|
|
@@ -163,7 +163,7 @@ function containsAllEntries(m) {
|
|
|
163
163
|
initMetadataForInterface(InternalMap, 'InternalMap');
|
|
164
164
|
initMetadataForClass(InternalHashMap, 'InternalHashMap', InternalHashMap_init_$Create$, VOID, [InternalMap]);
|
|
165
165
|
initMetadataForClass(LinkedHashMap, 'LinkedHashMap', LinkedHashMap_init_$Create$, HashMap, [HashMap, KtMutableMap]);
|
|
166
|
-
initMetadataForClass(LinkedHashSet, 'LinkedHashSet', LinkedHashSet_init_$Create$, HashSet, [HashSet,
|
|
166
|
+
initMetadataForClass(LinkedHashSet, 'LinkedHashSet', LinkedHashSet_init_$Create$, HashSet, [HashSet, KtSet, MutableCollection]);
|
|
167
167
|
initMetadataForClass(BaseOutput, 'BaseOutput');
|
|
168
168
|
initMetadataForClass(NodeJsOutput, 'NodeJsOutput', VOID, BaseOutput);
|
|
169
169
|
initMetadataForClass(BufferedOutput, 'BufferedOutput', BufferedOutput, BaseOutput);
|
|
@@ -269,6 +269,16 @@ function joinToString(_this__u8e3s4, separator, prefix, postfix, limit, truncate
|
|
|
269
269
|
transform = transform === VOID ? null : transform;
|
|
270
270
|
return joinTo(_this__u8e3s4, StringBuilder_init_$Create$_0(), separator, prefix, postfix, limit, truncated, transform).toString();
|
|
271
271
|
}
|
|
272
|
+
function toSet(_this__u8e3s4) {
|
|
273
|
+
switch (_this__u8e3s4.length) {
|
|
274
|
+
case 0:
|
|
275
|
+
return emptySet();
|
|
276
|
+
case 1:
|
|
277
|
+
return setOf(_this__u8e3s4[0]);
|
|
278
|
+
default:
|
|
279
|
+
return toCollection(_this__u8e3s4, LinkedHashSet_init_$Create$_1(mapCapacity(_this__u8e3s4.length)));
|
|
280
|
+
}
|
|
281
|
+
}
|
|
272
282
|
function indexOf(_this__u8e3s4, element) {
|
|
273
283
|
if (element == null) {
|
|
274
284
|
var inductionVariable = 0;
|
|
@@ -297,6 +307,9 @@ function indexOf(_this__u8e3s4, element) {
|
|
|
297
307
|
}
|
|
298
308
|
return -1;
|
|
299
309
|
}
|
|
310
|
+
function filterNotNull(_this__u8e3s4) {
|
|
311
|
+
return filterNotNullTo(_this__u8e3s4, ArrayList_init_$Create$());
|
|
312
|
+
}
|
|
300
313
|
function get_lastIndex(_this__u8e3s4) {
|
|
301
314
|
return _this__u8e3s4.length - 1 | 0;
|
|
302
315
|
}
|
|
@@ -339,6 +352,18 @@ function toCollection(_this__u8e3s4, destination) {
|
|
|
339
352
|
}
|
|
340
353
|
return destination;
|
|
341
354
|
}
|
|
355
|
+
function filterNotNullTo(_this__u8e3s4, destination) {
|
|
356
|
+
var inductionVariable = 0;
|
|
357
|
+
var last = _this__u8e3s4.length;
|
|
358
|
+
while (inductionVariable < last) {
|
|
359
|
+
var element = _this__u8e3s4[inductionVariable];
|
|
360
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
361
|
+
if (!(element == null)) {
|
|
362
|
+
destination.f(element);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
return destination;
|
|
366
|
+
}
|
|
342
367
|
function single(_this__u8e3s4) {
|
|
343
368
|
var tmp;
|
|
344
369
|
switch (_this__u8e3s4.length) {
|
|
@@ -439,7 +464,7 @@ function asSequence(_this__u8e3s4) {
|
|
|
439
464
|
function toMutableList(_this__u8e3s4) {
|
|
440
465
|
return ArrayList_init_$Create$_1(_this__u8e3s4);
|
|
441
466
|
}
|
|
442
|
-
function
|
|
467
|
+
function toSet_0(_this__u8e3s4) {
|
|
443
468
|
if (isInterface(_this__u8e3s4, Collection)) {
|
|
444
469
|
var tmp;
|
|
445
470
|
switch (_this__u8e3s4.j()) {
|
|
@@ -2211,6 +2236,9 @@ function decodeVarLenBase64(base64, fromBase64, resultLength) {
|
|
|
2211
2236
|
}
|
|
2212
2237
|
return result;
|
|
2213
2238
|
}
|
|
2239
|
+
function isDigitImpl(_this__u8e3s4) {
|
|
2240
|
+
return digitToIntImpl(_this__u8e3s4) >= 0;
|
|
2241
|
+
}
|
|
2214
2242
|
function digitToIntImpl(_this__u8e3s4) {
|
|
2215
2243
|
// Inline function 'kotlin.code' call
|
|
2216
2244
|
var ch = Char__toInt_impl_vasixd(_this__u8e3s4);
|
|
@@ -4946,6 +4974,15 @@ function uppercaseChar(_this__u8e3s4) {
|
|
|
4946
4974
|
function isHighSurrogate(_this__u8e3s4) {
|
|
4947
4975
|
return _Char___init__impl__6a9atx(55296) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(56319) : false;
|
|
4948
4976
|
}
|
|
4977
|
+
function isDigit(_this__u8e3s4) {
|
|
4978
|
+
if (_Char___init__impl__6a9atx(48) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(57) : false) {
|
|
4979
|
+
return true;
|
|
4980
|
+
}
|
|
4981
|
+
if (Char__compareTo_impl_ypi4mb(_this__u8e3s4, _Char___init__impl__6a9atx(128)) < 0) {
|
|
4982
|
+
return false;
|
|
4983
|
+
}
|
|
4984
|
+
return isDigitImpl(_this__u8e3s4);
|
|
4985
|
+
}
|
|
4949
4986
|
function isLetter(_this__u8e3s4) {
|
|
4950
4987
|
if ((_Char___init__impl__6a9atx(97) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(122) : false) || (_Char___init__impl__6a9atx(65) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(90) : false)) {
|
|
4951
4988
|
return true;
|
|
@@ -5059,7 +5096,7 @@ function Regex$replace$lambda($replacement) {
|
|
|
5059
5096
|
function Regex(pattern, options) {
|
|
5060
5097
|
Companion_getInstance_4();
|
|
5061
5098
|
this.a9_1 = pattern;
|
|
5062
|
-
this.b9_1 =
|
|
5099
|
+
this.b9_1 = toSet_0(options);
|
|
5063
5100
|
this.c9_1 = new RegExp(pattern, toFlags(options, 'gu'));
|
|
5064
5101
|
this.d9_1 = null;
|
|
5065
5102
|
this.e9_1 = null;
|
|
@@ -5545,6 +5582,31 @@ function replace_0(_this__u8e3s4, oldChar, newChar, ignoreCase) {
|
|
|
5545
5582
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5546
5583
|
return _this__u8e3s4.replace(tmp2, replacement);
|
|
5547
5584
|
}
|
|
5585
|
+
function equals_0(_this__u8e3s4, other, ignoreCase) {
|
|
5586
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
5587
|
+
if (_this__u8e3s4 == null)
|
|
5588
|
+
return other == null;
|
|
5589
|
+
if (other == null)
|
|
5590
|
+
return false;
|
|
5591
|
+
if (!ignoreCase)
|
|
5592
|
+
return _this__u8e3s4 == other;
|
|
5593
|
+
if (!(_this__u8e3s4.length === other.length))
|
|
5594
|
+
return false;
|
|
5595
|
+
var inductionVariable = 0;
|
|
5596
|
+
var last = _this__u8e3s4.length;
|
|
5597
|
+
if (inductionVariable < last)
|
|
5598
|
+
do {
|
|
5599
|
+
var index = inductionVariable;
|
|
5600
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
5601
|
+
var thisChar = charCodeAt(_this__u8e3s4, index);
|
|
5602
|
+
var otherChar = charCodeAt(other, index);
|
|
5603
|
+
if (!equals_1(thisChar, otherChar, ignoreCase)) {
|
|
5604
|
+
return false;
|
|
5605
|
+
}
|
|
5606
|
+
}
|
|
5607
|
+
while (inductionVariable < last);
|
|
5608
|
+
return true;
|
|
5609
|
+
}
|
|
5548
5610
|
function regionMatches(_this__u8e3s4, thisOffset, other, otherOffset, length, ignoreCase) {
|
|
5549
5611
|
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
5550
5612
|
return regionMatchesImpl(_this__u8e3s4, thisOffset, other, otherOffset, length, ignoreCase);
|
|
@@ -6697,6 +6759,12 @@ function emptyList() {
|
|
|
6697
6759
|
function get_indices(_this__u8e3s4) {
|
|
6698
6760
|
return numberRangeToNumber(0, _this__u8e3s4.j() - 1 | 0);
|
|
6699
6761
|
}
|
|
6762
|
+
function listOfNotNull(element) {
|
|
6763
|
+
return !(element == null) ? listOf(element) : emptyList();
|
|
6764
|
+
}
|
|
6765
|
+
function listOfNotNull_0(elements) {
|
|
6766
|
+
return filterNotNull(elements);
|
|
6767
|
+
}
|
|
6700
6768
|
function EmptyList() {
|
|
6701
6769
|
EmptyList_instance = this;
|
|
6702
6770
|
this.kb_1 = new Long(-1478467534, -1720727600);
|
|
@@ -7100,6 +7168,9 @@ var EmptySequence_instance;
|
|
|
7100
7168
|
function EmptySequence_getInstance() {
|
|
7101
7169
|
return EmptySequence_instance;
|
|
7102
7170
|
}
|
|
7171
|
+
function setOf_0(elements) {
|
|
7172
|
+
return toSet(elements);
|
|
7173
|
+
}
|
|
7103
7174
|
function emptySet() {
|
|
7104
7175
|
return EmptySet_getInstance();
|
|
7105
7176
|
}
|
|
@@ -7360,7 +7431,7 @@ function appendElement(_this__u8e3s4, element, transform) {
|
|
|
7360
7431
|
}
|
|
7361
7432
|
}
|
|
7362
7433
|
}
|
|
7363
|
-
function
|
|
7434
|
+
function equals_1(_this__u8e3s4, other, ignoreCase) {
|
|
7364
7435
|
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
7365
7436
|
if (_this__u8e3s4 === other)
|
|
7366
7437
|
return true;
|
|
@@ -8292,7 +8363,7 @@ function indexOfAny(_this__u8e3s4, chars, startIndex, ignoreCase) {
|
|
|
8292
8363
|
while (inductionVariable_0 < last_0) {
|
|
8293
8364
|
var element = chars[inductionVariable_0];
|
|
8294
8365
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
8295
|
-
if (
|
|
8366
|
+
if (equals_1(element, charAtIndex, ignoreCase)) {
|
|
8296
8367
|
tmp$ret$4 = true;
|
|
8297
8368
|
break $l$block;
|
|
8298
8369
|
}
|
|
@@ -8419,7 +8490,7 @@ function regionMatchesImpl(_this__u8e3s4, thisOffset, other, otherOffset, length
|
|
|
8419
8490
|
do {
|
|
8420
8491
|
var index = inductionVariable;
|
|
8421
8492
|
inductionVariable = inductionVariable + 1 | 0;
|
|
8422
|
-
if (!
|
|
8493
|
+
if (!equals_1(charSequenceGet(_this__u8e3s4, thisOffset + index | 0), charSequenceGet(other, otherOffset + index | 0), ignoreCase))
|
|
8423
8494
|
return false;
|
|
8424
8495
|
}
|
|
8425
8496
|
while (inductionVariable < length);
|
|
@@ -8792,6 +8863,8 @@ export {
|
|
|
8792
8863
|
joinToString_1 as joinToString1cxrrlmo0chqs,
|
|
8793
8864
|
joinToString as joinToStringxqcavsxcmh4q,
|
|
8794
8865
|
get_lastIndex as get_lastIndexx0qsydpfv3mu,
|
|
8866
|
+
listOfNotNull as listOfNotNull1v4ggfackvuny,
|
|
8867
|
+
listOfNotNull_0 as listOfNotNull2woi2boe01ub4,
|
|
8795
8868
|
listOf as listOfvhqybd2zx248,
|
|
8796
8869
|
listOf_0 as listOf1jh22dvmctj1r,
|
|
8797
8870
|
mapCapacity as mapCapacity1h45rc3eh9p2l,
|
|
@@ -8801,16 +8874,20 @@ export {
|
|
|
8801
8874
|
minOrNull as minOrNull1g8m0136x75mg,
|
|
8802
8875
|
mutableMapOf as mutableMapOfk2y3zt1azl40,
|
|
8803
8876
|
plus as plus310ted5e4i90h,
|
|
8877
|
+
setOf_0 as setOf45ia9pnfhe90,
|
|
8804
8878
|
sortWith as sortWith4fnm6b3vw03s,
|
|
8805
8879
|
sorted as sorted354mfsiv4s7x5,
|
|
8806
8880
|
toList as toList3jhuyej2anx2q,
|
|
8807
8881
|
toMutableMap as toMutableMapr5f3w62lv8sk,
|
|
8882
|
+
toSet_0 as toSet2orjxp16sotqu,
|
|
8808
8883
|
compareValues as compareValues1n2ayl87ihzfk,
|
|
8809
8884
|
enumEntries as enumEntries20mr21zbe3az4,
|
|
8810
8885
|
println as println2shhhgwwt4c61,
|
|
8811
8886
|
bitwiseAnd as bitwiseAnd2g7wmsfd45l12,
|
|
8887
|
+
compare as compare2uud5j30pw5xc,
|
|
8812
8888
|
equalsLong as equalsLong28bsrfhwvd686,
|
|
8813
8889
|
shiftLeft as shiftLeft1ck77p6vapyra,
|
|
8890
|
+
toNumber as toNumberlmbpvqo27r53,
|
|
8814
8891
|
FunctionAdapter as FunctionAdapter3lcrrz3moet5b,
|
|
8815
8892
|
arrayIterator as arrayIterator3lgwvgteckzhv,
|
|
8816
8893
|
captureStack as captureStack1fzi4aczwc4hg,
|
|
@@ -8840,7 +8917,10 @@ export {
|
|
|
8840
8917
|
contains_1 as contains3ue2qo8xhmpf1,
|
|
8841
8918
|
dropLast as dropLastlqc2oyv04br0,
|
|
8842
8919
|
endsWith as endsWith3cq61xxngobwh,
|
|
8920
|
+
equals_0 as equals2v6cggk171b6e,
|
|
8843
8921
|
indexOf_0 as indexOf1xbs558u7wr52,
|
|
8922
|
+
isBlank as isBlank1dvkhjjvox3p0,
|
|
8923
|
+
isDigit as isDigit3mimrri4wkzop,
|
|
8844
8924
|
isHighSurrogate as isHighSurrogate11jfjw70ar0zf,
|
|
8845
8925
|
isUpperCase as isUpperCase16ivdixranflt,
|
|
8846
8926
|
removePrefix as removePrefix279df90bhrqqg,
|