@flock/wirespec 0.22.0 → 0.22.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/arrow-arrow-atomic.mjs +12 -12
- package/arrow-arrow-core.mjs +160 -154
- package/arrow-arrow-core.mjs.map +1 -1
- package/clikt-clikt-mordant.mjs +80 -80
- package/clikt-clikt.mjs +1541 -1541
- package/colormath-root-colormath.mjs +441 -441
- package/kotlin-kotlin-stdlib.mjs +2223 -1941
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10254 -10254
- package/kotlin-rgxgen.mjs +1808 -1808
- package/kotlinx-io-kotlinx-io-core.mjs +419 -419
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1866 -1866
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1601 -1586
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant.mjs +1326 -1318
- package/mordant-mordant.mjs.map +1 -1
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +6339 -6128
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +181 -181
- package/wirespec-src-compiler-emitters-kotlin.mjs +143 -143
- package/wirespec-src-compiler-emitters-python.mjs +179 -179
- package/wirespec-src-compiler-emitters-rust.mjs +423 -423
- package/wirespec-src-compiler-emitters-scala.mjs +176 -176
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +254 -255
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +362 -164
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +873 -403
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-asyncapi.mjs +5382 -0
- package/wirespec-src-converter-asyncapi.mjs.map +1 -0
- package/wirespec-src-converter-avro.mjs +1075 -508
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-common.mjs +20 -20
- package/wirespec-src-converter-common.mjs.map +1 -1
- package/wirespec-src-converter-graphql.mjs +5691 -0
- package/wirespec-src-converter-graphql.mjs.map +1 -0
- package/wirespec-src-converter-openapi.mjs +777 -768
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-ide-lsp.mjs +1395 -1395
- package/wirespec-src-plugin-arguments.mjs +204 -184
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +111 -108
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-npm.d.mts +198 -24
- package/wirespec-src-plugin-npm.mjs +144 -49
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +35 -35
package/arrow-arrow-core.mjs
CHANGED
|
@@ -57,10 +57,10 @@ initMetadataForCompanion(Companion_3);
|
|
|
57
57
|
initMetadataForClass(NonEmptySet, 'NonEmptySet', VOID, VOID, [KtSet, Collection]);
|
|
58
58
|
function bind(_this__u8e3s4) {
|
|
59
59
|
if (_this__u8e3s4 instanceof Left) {
|
|
60
|
-
this.
|
|
60
|
+
this.gn(_this__u8e3s4.sm_1);
|
|
61
61
|
} else {
|
|
62
62
|
if (_this__u8e3s4 instanceof Right)
|
|
63
|
-
return _this__u8e3s4.
|
|
63
|
+
return _this__u8e3s4.um_1;
|
|
64
64
|
else {
|
|
65
65
|
noWhenBranchMatchedException();
|
|
66
66
|
}
|
|
@@ -75,7 +75,7 @@ function bindAll(_this__u8e3s4) {
|
|
|
75
75
|
var _iterator__ex2g4s = this_0.t();
|
|
76
76
|
while (_iterator__ex2g4s.u()) {
|
|
77
77
|
var item = _iterator__ex2g4s.v();
|
|
78
|
-
var tmp$ret$3 = this.
|
|
78
|
+
var tmp$ret$3 = this.kn(item);
|
|
79
79
|
destination.x(tmp$ret$3);
|
|
80
80
|
}
|
|
81
81
|
return _NonEmptyList___init__impl__fxd0xp(destination);
|
|
@@ -89,7 +89,7 @@ initMetadataForClass(Value, 'Value');
|
|
|
89
89
|
initMetadataForClass(Error_0, 'Error', VOID, Value);
|
|
90
90
|
initMetadataForClass(Ok, 'Ok', VOID, Value);
|
|
91
91
|
function get_hasAccumulatedErrors() {
|
|
92
|
-
return !(this.
|
|
92
|
+
return !(this.fn() == null);
|
|
93
93
|
}
|
|
94
94
|
initMetadataForInterface(Accumulate, 'Accumulate');
|
|
95
95
|
initMetadataForClass(RaiseAccumulate, 'RaiseAccumulate', VOID, VOID, [Accumulate, Raise], [1]);
|
|
@@ -104,7 +104,7 @@ function Companion_getInstance() {
|
|
|
104
104
|
}
|
|
105
105
|
function Companion_0() {
|
|
106
106
|
Companion_instance_0 = this;
|
|
107
|
-
this.
|
|
107
|
+
this.rm_1 = new Right(Unit_instance);
|
|
108
108
|
}
|
|
109
109
|
var Companion_instance_0;
|
|
110
110
|
function Companion_getInstance_0() {
|
|
@@ -114,40 +114,40 @@ function Companion_getInstance_0() {
|
|
|
114
114
|
}
|
|
115
115
|
function Left(value) {
|
|
116
116
|
Either.call(this);
|
|
117
|
-
this.
|
|
117
|
+
this.sm_1 = value;
|
|
118
118
|
}
|
|
119
119
|
protoOf(Left).toString = function () {
|
|
120
|
-
return 'Either.Left(' + toString(this.
|
|
120
|
+
return 'Either.Left(' + toString(this.sm_1) + ')';
|
|
121
121
|
};
|
|
122
122
|
protoOf(Left).hashCode = function () {
|
|
123
|
-
return this.
|
|
123
|
+
return this.sm_1 == null ? 0 : hashCode(this.sm_1);
|
|
124
124
|
};
|
|
125
125
|
protoOf(Left).equals = function (other) {
|
|
126
126
|
if (this === other)
|
|
127
127
|
return true;
|
|
128
128
|
if (!(other instanceof Left))
|
|
129
129
|
return false;
|
|
130
|
-
if (!equals(this.
|
|
130
|
+
if (!equals(this.sm_1, other.sm_1))
|
|
131
131
|
return false;
|
|
132
132
|
return true;
|
|
133
133
|
};
|
|
134
134
|
function Right(value) {
|
|
135
135
|
Companion_getInstance_0();
|
|
136
136
|
Either.call(this);
|
|
137
|
-
this.
|
|
137
|
+
this.um_1 = value;
|
|
138
138
|
}
|
|
139
139
|
protoOf(Right).toString = function () {
|
|
140
|
-
return 'Either.Right(' + toString(this.
|
|
140
|
+
return 'Either.Right(' + toString(this.um_1) + ')';
|
|
141
141
|
};
|
|
142
142
|
protoOf(Right).hashCode = function () {
|
|
143
|
-
return this.
|
|
143
|
+
return this.um_1 == null ? 0 : hashCode(this.um_1);
|
|
144
144
|
};
|
|
145
145
|
protoOf(Right).equals = function (other) {
|
|
146
146
|
if (this === other)
|
|
147
147
|
return true;
|
|
148
148
|
if (!(other instanceof Right))
|
|
149
149
|
return false;
|
|
150
|
-
if (!equals(this.
|
|
150
|
+
if (!equals(this.um_1, other.um_1))
|
|
151
151
|
return false;
|
|
152
152
|
return true;
|
|
153
153
|
};
|
|
@@ -159,15 +159,15 @@ function Companion_getInstance_1() {
|
|
|
159
159
|
}
|
|
160
160
|
function Either() {
|
|
161
161
|
}
|
|
162
|
-
protoOf(Either).
|
|
162
|
+
protoOf(Either).tm = function () {
|
|
163
163
|
// Inline function 'arrow.core.getOrElse' call
|
|
164
164
|
var tmp;
|
|
165
165
|
if (this instanceof Left) {
|
|
166
|
-
this.
|
|
166
|
+
this.sm_1;
|
|
167
167
|
tmp = null;
|
|
168
168
|
} else {
|
|
169
169
|
if (this instanceof Right) {
|
|
170
|
-
tmp = this.
|
|
170
|
+
tmp = this.um_1;
|
|
171
171
|
} else {
|
|
172
172
|
noWhenBranchMatchedException();
|
|
173
173
|
}
|
|
@@ -178,11 +178,11 @@ protoOf(Either).toString = function () {
|
|
|
178
178
|
// Inline function 'arrow.core.Either.fold' call
|
|
179
179
|
var tmp;
|
|
180
180
|
if (this instanceof Right) {
|
|
181
|
-
var it = this.
|
|
181
|
+
var it = this.um_1;
|
|
182
182
|
tmp = 'Either.Right(' + toString(it) + ')';
|
|
183
183
|
} else {
|
|
184
184
|
if (this instanceof Left) {
|
|
185
|
-
var it_0 = this.
|
|
185
|
+
var it_0 = this.sm_1;
|
|
186
186
|
tmp = 'Either.Left(' + toString(it_0) + ')';
|
|
187
187
|
} else {
|
|
188
188
|
noWhenBranchMatchedException();
|
|
@@ -237,27 +237,27 @@ function flattenOrAccumulate(_this__u8e3s4) {
|
|
|
237
237
|
try {
|
|
238
238
|
var tmp_2 = tolerant(this_1, raise_0);
|
|
239
239
|
var $this$accumulating = new RaiseAccumulate(tmp_2, raise_1, flattenOrAccumulate$lambda(raise_1));
|
|
240
|
-
var hasErrors = $this$accumulating.
|
|
240
|
+
var hasErrors = $this$accumulating.ym();
|
|
241
241
|
// Inline function 'kotlin.also' call
|
|
242
|
-
var this_2 = $this$accumulating.
|
|
242
|
+
var this_2 = $this$accumulating.zm(element);
|
|
243
243
|
if (!hasErrors) {
|
|
244
244
|
this_0.x(this_2);
|
|
245
245
|
}
|
|
246
246
|
var res = new Ok(Unit_instance);
|
|
247
|
-
raise_1.
|
|
247
|
+
raise_1.cn();
|
|
248
248
|
// Inline function 'arrow.core.identity' call
|
|
249
249
|
tmp_1 = res;
|
|
250
250
|
} catch ($p) {
|
|
251
251
|
var tmp_3;
|
|
252
252
|
if ($p instanceof RaiseCancellationException) {
|
|
253
253
|
var e = $p;
|
|
254
|
-
raise_1.
|
|
255
|
-
var p0 = raisedOrRethrow(e, raise_1).
|
|
256
|
-
tmp_3 = this_1.
|
|
254
|
+
raise_1.cn();
|
|
255
|
+
var p0 = raisedOrRethrow(e, raise_1).dn_1;
|
|
256
|
+
tmp_3 = this_1.en(p0);
|
|
257
257
|
} else {
|
|
258
258
|
if ($p instanceof Error) {
|
|
259
259
|
var e_0 = $p;
|
|
260
|
-
raise_1.
|
|
260
|
+
raise_1.cn();
|
|
261
261
|
throw nonFatalOrThrow(e_0);
|
|
262
262
|
} else {
|
|
263
263
|
throw $p;
|
|
@@ -266,20 +266,20 @@ function flattenOrAccumulate(_this__u8e3s4) {
|
|
|
266
266
|
tmp_1 = tmp_3;
|
|
267
267
|
}
|
|
268
268
|
var res_0 = tmp_1;
|
|
269
|
-
raise_0.
|
|
269
|
+
raise_0.cn();
|
|
270
270
|
// Inline function 'arrow.core.identity' call
|
|
271
271
|
tmp_0 = res_0;
|
|
272
272
|
} catch ($p) {
|
|
273
273
|
var tmp_4;
|
|
274
274
|
if ($p instanceof RaiseCancellationException) {
|
|
275
275
|
var e_1 = $p;
|
|
276
|
-
raise_0.
|
|
276
|
+
raise_0.cn();
|
|
277
277
|
// Inline function 'arrow.core.identity' call
|
|
278
278
|
tmp_4 = raisedOrRethrow(e_1, raise_0);
|
|
279
279
|
} else {
|
|
280
280
|
if ($p instanceof Error) {
|
|
281
281
|
var e_2 = $p;
|
|
282
|
-
raise_0.
|
|
282
|
+
raise_0.cn();
|
|
283
283
|
throw nonFatalOrThrow(e_2);
|
|
284
284
|
} else {
|
|
285
285
|
throw $p;
|
|
@@ -289,29 +289,29 @@ function flattenOrAccumulate(_this__u8e3s4) {
|
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
var result = Unit_instance;
|
|
292
|
-
if ($this$with.
|
|
293
|
-
var tmp0_safe_receiver = $this$with.
|
|
292
|
+
if ($this$with.ym()) {
|
|
293
|
+
var tmp0_safe_receiver = $this$with.fn();
|
|
294
294
|
if (tmp0_safe_receiver == null)
|
|
295
295
|
null;
|
|
296
296
|
else {
|
|
297
|
-
tmp0_safe_receiver.
|
|
297
|
+
tmp0_safe_receiver.o1();
|
|
298
298
|
throwKotlinNothingValueException();
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
|
-
var res_1 = this_0.
|
|
302
|
-
raise.
|
|
301
|
+
var res_1 = this_0.q5();
|
|
302
|
+
raise.cn();
|
|
303
303
|
tmp = new Right(res_1);
|
|
304
304
|
} catch ($p) {
|
|
305
305
|
var tmp_5;
|
|
306
306
|
if ($p instanceof RaiseCancellationException) {
|
|
307
307
|
var e_3 = $p;
|
|
308
|
-
raise.
|
|
308
|
+
raise.cn();
|
|
309
309
|
var it = raisedOrRethrow(e_3, raise);
|
|
310
310
|
tmp_5 = new Left(it);
|
|
311
311
|
} else {
|
|
312
312
|
if ($p instanceof Error) {
|
|
313
313
|
var e_4 = $p;
|
|
314
|
-
raise.
|
|
314
|
+
raise.cn();
|
|
315
315
|
throw nonFatalOrThrow(e_4);
|
|
316
316
|
} else {
|
|
317
317
|
throw $p;
|
|
@@ -334,7 +334,7 @@ function flattenOrAccumulate$lambda($$this$recover) {
|
|
|
334
334
|
return function (it) {
|
|
335
335
|
// Inline function 'arrow.core.nel' call
|
|
336
336
|
var tmp$ret$0 = _NonEmptyList___init__impl__fxd0xp(listOf(it));
|
|
337
|
-
$$this$recover.
|
|
337
|
+
$$this$recover.gn(new NonEmptyList(tmp$ret$0));
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
340
|
function _NonEmptyList___init__impl__fxd0xp(all) {
|
|
@@ -349,7 +349,7 @@ function _NonEmptyList___init__impl__fxd0xp_0(head, tail) {
|
|
|
349
349
|
function NonEmptyList__equals_impl_crn5lc($this, other) {
|
|
350
350
|
var tmp;
|
|
351
351
|
if (other instanceof NonEmptyList) {
|
|
352
|
-
tmp = equals(_NonEmptyList___get_all__impl__pmf509($this), _NonEmptyList___get_all__impl__pmf509(other.
|
|
352
|
+
tmp = equals(_NonEmptyList___get_all__impl__pmf509($this), _NonEmptyList___get_all__impl__pmf509(other.dn_1));
|
|
353
353
|
} else {
|
|
354
354
|
tmp = equals(_NonEmptyList___get_all__impl__pmf509($this), other);
|
|
355
355
|
}
|
|
@@ -368,7 +368,7 @@ function _NonEmptyList___get_head__impl__q9oenq($this) {
|
|
|
368
368
|
return first(_NonEmptyList___get_all__impl__pmf509($this));
|
|
369
369
|
}
|
|
370
370
|
function _NonEmptyList___get_tail__impl__t91bd2($this) {
|
|
371
|
-
return _NonEmptyList___get_all__impl__pmf509($this).
|
|
371
|
+
return _NonEmptyList___get_all__impl__pmf509($this).o2(1, _NonEmptyList___get_all__impl__pmf509($this).b1());
|
|
372
372
|
}
|
|
373
373
|
function NonEmptyList__plus_impl_xqmb9($this, elements) {
|
|
374
374
|
return _NonEmptyList___init__impl__fxd0xp(plus(_NonEmptyList___get_all__impl__pmf509($this), elements));
|
|
@@ -381,7 +381,7 @@ function NonEmptyList__toString_impl_ozxm8z($this) {
|
|
|
381
381
|
}
|
|
382
382
|
function Companion_2() {
|
|
383
383
|
Companion_instance_2 = this;
|
|
384
|
-
this.
|
|
384
|
+
this.hn_1 = nonEmptyListOf(Unit_instance, []);
|
|
385
385
|
}
|
|
386
386
|
var Companion_instance_2;
|
|
387
387
|
function Companion_getInstance_2() {
|
|
@@ -390,7 +390,7 @@ function Companion_getInstance_2() {
|
|
|
390
390
|
return Companion_instance_2;
|
|
391
391
|
}
|
|
392
392
|
function NonEmptyList__contains_impl_w1668g($this, element) {
|
|
393
|
-
return $this.
|
|
393
|
+
return $this.i1(element);
|
|
394
394
|
}
|
|
395
395
|
function NonEmptyList__iterator_impl_kgqsin($this) {
|
|
396
396
|
return $this.t();
|
|
@@ -398,48 +398,54 @@ function NonEmptyList__iterator_impl_kgqsin($this) {
|
|
|
398
398
|
function NonEmptyList__get_impl_oqktx($this, index) {
|
|
399
399
|
return $this.c1(index);
|
|
400
400
|
}
|
|
401
|
+
function NonEmptyList__indexOf_impl_lnwyla($this, element) {
|
|
402
|
+
return $this.j1(element);
|
|
403
|
+
}
|
|
401
404
|
function NonEmptyList__listIterator_impl_8vm28t($this, index) {
|
|
402
405
|
return $this.h1(index);
|
|
403
406
|
}
|
|
404
407
|
function NonEmptyList__subList_impl_8uxff1($this, fromIndex, toIndex) {
|
|
405
|
-
return $this.
|
|
408
|
+
return $this.o2(fromIndex, toIndex);
|
|
406
409
|
}
|
|
407
410
|
function _NonEmptyList___get_size__impl__xcrchh($this) {
|
|
408
411
|
return $this.b1();
|
|
409
412
|
}
|
|
410
413
|
function NonEmptyList(all) {
|
|
411
414
|
Companion_getInstance_2();
|
|
412
|
-
this.
|
|
415
|
+
this.dn_1 = all;
|
|
413
416
|
}
|
|
414
417
|
protoOf(NonEmptyList).equals = function (other) {
|
|
415
|
-
return NonEmptyList__equals_impl_crn5lc(this.
|
|
418
|
+
return NonEmptyList__equals_impl_crn5lc(this.dn_1, other);
|
|
416
419
|
};
|
|
417
420
|
protoOf(NonEmptyList).hashCode = function () {
|
|
418
|
-
return NonEmptyList__hashCode_impl_38rpg4(this.
|
|
421
|
+
return NonEmptyList__hashCode_impl_38rpg4(this.dn_1);
|
|
419
422
|
};
|
|
420
423
|
protoOf(NonEmptyList).r = function () {
|
|
421
|
-
return NonEmptyList__isEmpty_impl_cueu5k(this.
|
|
424
|
+
return NonEmptyList__isEmpty_impl_cueu5k(this.dn_1);
|
|
422
425
|
};
|
|
423
426
|
protoOf(NonEmptyList).toString = function () {
|
|
424
|
-
return NonEmptyList__toString_impl_ozxm8z(this.
|
|
427
|
+
return NonEmptyList__toString_impl_ozxm8z(this.dn_1);
|
|
425
428
|
};
|
|
426
|
-
protoOf(NonEmptyList).
|
|
427
|
-
return NonEmptyList__contains_impl_w1668g(this.
|
|
429
|
+
protoOf(NonEmptyList).i1 = function (element) {
|
|
430
|
+
return NonEmptyList__contains_impl_w1668g(this.dn_1, element);
|
|
428
431
|
};
|
|
429
432
|
protoOf(NonEmptyList).t = function () {
|
|
430
|
-
return NonEmptyList__iterator_impl_kgqsin(this.
|
|
433
|
+
return NonEmptyList__iterator_impl_kgqsin(this.dn_1);
|
|
431
434
|
};
|
|
432
435
|
protoOf(NonEmptyList).c1 = function (index) {
|
|
433
|
-
return NonEmptyList__get_impl_oqktx(this.
|
|
436
|
+
return NonEmptyList__get_impl_oqktx(this.dn_1, index);
|
|
437
|
+
};
|
|
438
|
+
protoOf(NonEmptyList).j1 = function (element) {
|
|
439
|
+
return NonEmptyList__indexOf_impl_lnwyla(this.dn_1, element);
|
|
434
440
|
};
|
|
435
441
|
protoOf(NonEmptyList).h1 = function (index) {
|
|
436
|
-
return NonEmptyList__listIterator_impl_8vm28t(this.
|
|
442
|
+
return NonEmptyList__listIterator_impl_8vm28t(this.dn_1, index);
|
|
437
443
|
};
|
|
438
|
-
protoOf(NonEmptyList).
|
|
439
|
-
return NonEmptyList__subList_impl_8uxff1(this.
|
|
444
|
+
protoOf(NonEmptyList).o2 = function (fromIndex, toIndex) {
|
|
445
|
+
return NonEmptyList__subList_impl_8uxff1(this.dn_1, fromIndex, toIndex);
|
|
440
446
|
};
|
|
441
447
|
protoOf(NonEmptyList).b1 = function () {
|
|
442
|
-
return _NonEmptyList___get_size__impl__xcrchh(this.
|
|
448
|
+
return _NonEmptyList___get_size__impl__xcrchh(this.dn_1);
|
|
443
449
|
};
|
|
444
450
|
function nonEmptyListOf(head, t) {
|
|
445
451
|
return _NonEmptyList___init__impl__fxd0xp(plus_1(listOf(head), t));
|
|
@@ -503,43 +509,43 @@ function Companion_getInstance_3() {
|
|
|
503
509
|
return Companion_instance_3;
|
|
504
510
|
}
|
|
505
511
|
function NonEmptySet__contains_impl_tkiyt0($this, element) {
|
|
506
|
-
return $this.
|
|
512
|
+
return $this.i1(element);
|
|
507
513
|
}
|
|
508
514
|
function NonEmptySet__iterator_impl_b1bvkz($this) {
|
|
509
515
|
return $this.t();
|
|
510
516
|
}
|
|
511
517
|
function NonEmptySet__containsAll_impl_kivnxv($this, elements) {
|
|
512
|
-
return $this.
|
|
518
|
+
return $this.p2(elements);
|
|
513
519
|
}
|
|
514
520
|
function _NonEmptySet___get_size__impl__tvkxr($this) {
|
|
515
521
|
return $this.b1();
|
|
516
522
|
}
|
|
517
523
|
function NonEmptySet(elements) {
|
|
518
|
-
this.
|
|
524
|
+
this.in_1 = elements;
|
|
519
525
|
}
|
|
520
526
|
protoOf(NonEmptySet).r = function () {
|
|
521
|
-
return NonEmptySet__isEmpty_impl_56jel0(this.
|
|
527
|
+
return NonEmptySet__isEmpty_impl_56jel0(this.in_1);
|
|
522
528
|
};
|
|
523
529
|
protoOf(NonEmptySet).toString = function () {
|
|
524
|
-
return NonEmptySet__toString_impl_yfcj6n(this.
|
|
530
|
+
return NonEmptySet__toString_impl_yfcj6n(this.in_1);
|
|
525
531
|
};
|
|
526
532
|
protoOf(NonEmptySet).equals = function (other) {
|
|
527
|
-
return NonEmptySet__equals_impl_2ou2p8(this.
|
|
533
|
+
return NonEmptySet__equals_impl_2ou2p8(this.in_1, other);
|
|
528
534
|
};
|
|
529
535
|
protoOf(NonEmptySet).hashCode = function () {
|
|
530
|
-
return NonEmptySet__hashCode_impl_co6mds(this.
|
|
536
|
+
return NonEmptySet__hashCode_impl_co6mds(this.in_1);
|
|
531
537
|
};
|
|
532
|
-
protoOf(NonEmptySet).
|
|
533
|
-
return NonEmptySet__contains_impl_tkiyt0(this.
|
|
538
|
+
protoOf(NonEmptySet).i1 = function (element) {
|
|
539
|
+
return NonEmptySet__contains_impl_tkiyt0(this.in_1, element);
|
|
534
540
|
};
|
|
535
541
|
protoOf(NonEmptySet).t = function () {
|
|
536
|
-
return NonEmptySet__iterator_impl_b1bvkz(this.
|
|
542
|
+
return NonEmptySet__iterator_impl_b1bvkz(this.in_1);
|
|
537
543
|
};
|
|
538
|
-
protoOf(NonEmptySet).
|
|
539
|
-
return NonEmptySet__containsAll_impl_kivnxv(this.
|
|
544
|
+
protoOf(NonEmptySet).p2 = function (elements) {
|
|
545
|
+
return NonEmptySet__containsAll_impl_kivnxv(this.in_1, elements);
|
|
540
546
|
};
|
|
541
547
|
protoOf(NonEmptySet).b1 = function () {
|
|
542
|
-
return _NonEmptySet___get_size__impl__tvkxr(this.
|
|
548
|
+
return _NonEmptySet___get_size__impl__tvkxr(this.in_1);
|
|
543
549
|
};
|
|
544
550
|
function nonEmptySetOf(first, rest) {
|
|
545
551
|
return _NonEmptySet___init__impl__248bef_0(first, asIterable(rest));
|
|
@@ -551,33 +557,33 @@ function wrapAsNonEmptySetOrNull(_this__u8e3s4) {
|
|
|
551
557
|
return _this__u8e3s4.r() ? null : _NonEmptySet___init__impl__248bef(_this__u8e3s4);
|
|
552
558
|
}
|
|
553
559
|
function DefaultRaise(isTraced) {
|
|
554
|
-
this.
|
|
555
|
-
this.
|
|
560
|
+
this.an_1 = isTraced;
|
|
561
|
+
this.bn_1 = new AtomicBoolean(true);
|
|
556
562
|
}
|
|
557
|
-
protoOf(DefaultRaise).
|
|
558
|
-
return this.
|
|
563
|
+
protoOf(DefaultRaise).cn = function () {
|
|
564
|
+
return this.bn_1.nm(false);
|
|
559
565
|
};
|
|
560
|
-
protoOf(DefaultRaise).
|
|
566
|
+
protoOf(DefaultRaise).jn = function (r) {
|
|
561
567
|
var tmp;
|
|
562
|
-
if (this.
|
|
563
|
-
throw this.
|
|
568
|
+
if (this.bn_1.o1()) {
|
|
569
|
+
throw this.an_1 ? new Traced(r, this) : NoTrace(r, this);
|
|
564
570
|
} else {
|
|
565
571
|
throw new RaiseLeakedException();
|
|
566
572
|
}
|
|
567
573
|
};
|
|
568
|
-
protoOf(DefaultRaise).
|
|
569
|
-
return this.
|
|
574
|
+
protoOf(DefaultRaise).gn = function (r) {
|
|
575
|
+
return this.jn(r);
|
|
570
576
|
};
|
|
571
577
|
function raisedOrRethrow(_this__u8e3s4, raise) {
|
|
572
578
|
var tmp;
|
|
573
579
|
var tmp_0;
|
|
574
580
|
if (_this__u8e3s4 instanceof RaiseCancellationException) {
|
|
575
|
-
tmp_0 = _this__u8e3s4.
|
|
581
|
+
tmp_0 = _this__u8e3s4.on() === raise;
|
|
576
582
|
} else {
|
|
577
583
|
tmp_0 = false;
|
|
578
584
|
}
|
|
579
585
|
if (tmp_0) {
|
|
580
|
-
tmp = _this__u8e3s4.
|
|
586
|
+
tmp = _this__u8e3s4.pn();
|
|
581
587
|
} else {
|
|
582
588
|
throw _this__u8e3s4;
|
|
583
589
|
}
|
|
@@ -587,11 +593,11 @@ function Traced(raised, raise, cause) {
|
|
|
587
593
|
cause = cause === VOID ? null : cause;
|
|
588
594
|
RaiseCancellationException.call(this, raised, raise);
|
|
589
595
|
captureStack(this, Traced);
|
|
590
|
-
this.
|
|
596
|
+
this.sn_1 = cause;
|
|
591
597
|
delete this.cause;
|
|
592
598
|
}
|
|
593
599
|
protoOf(Traced).f = function () {
|
|
594
|
-
return this.
|
|
600
|
+
return this.sn_1;
|
|
595
601
|
};
|
|
596
602
|
function RaiseLeakedException() {
|
|
597
603
|
IllegalStateException_init_$Init$("'raise' or 'bind' was leaked outside of its context scope.\nMake sure all calls to 'raise' and 'bind' occur within the lifecycle of nullable { }, either { } or similar builders.\n\nSee Arrow documentation on 'Typed errors' for further information.", this);
|
|
@@ -614,22 +620,22 @@ function Value() {
|
|
|
614
620
|
}
|
|
615
621
|
function Error_0(raise) {
|
|
616
622
|
Value.call(this);
|
|
617
|
-
this.
|
|
623
|
+
this.tn_1 = raise;
|
|
618
624
|
}
|
|
619
|
-
protoOf(Error_0).
|
|
620
|
-
this.
|
|
625
|
+
protoOf(Error_0).o1 = function () {
|
|
626
|
+
this.tn_1();
|
|
621
627
|
return throwKotlinNothingValueException();
|
|
622
628
|
};
|
|
623
629
|
function Ok(value) {
|
|
624
630
|
Value.call(this);
|
|
625
|
-
this.
|
|
631
|
+
this.un_1 = value;
|
|
626
632
|
}
|
|
627
|
-
protoOf(Ok).
|
|
628
|
-
return this.
|
|
633
|
+
protoOf(Ok).o1 = function () {
|
|
634
|
+
return this.un_1;
|
|
629
635
|
};
|
|
630
636
|
function ListAccumulate$raiseSingle$ref(p0) {
|
|
631
637
|
var l = function (_this__u8e3s4) {
|
|
632
|
-
p0.
|
|
638
|
+
p0.yn(_this__u8e3s4);
|
|
633
639
|
};
|
|
634
640
|
l.callableName = 'raiseSingle';
|
|
635
641
|
return l;
|
|
@@ -638,22 +644,22 @@ function RaiseAccumulate$bindAll$lambda($$this$recover) {
|
|
|
638
644
|
return function (it) {
|
|
639
645
|
// Inline function 'arrow.core.nel' call
|
|
640
646
|
var tmp$ret$0 = _NonEmptyList___init__impl__fxd0xp(listOf(it));
|
|
641
|
-
$$this$recover.
|
|
647
|
+
$$this$recover.gn(new NonEmptyList(tmp$ret$0));
|
|
642
648
|
};
|
|
643
649
|
}
|
|
644
650
|
function RaiseAccumulate(accumulate, raise, raiseErrorsWith) {
|
|
645
|
-
this.
|
|
646
|
-
this.
|
|
647
|
-
this.
|
|
651
|
+
this.vm_1 = accumulate;
|
|
652
|
+
this.wm_1 = raise;
|
|
653
|
+
this.xm_1 = raiseErrorsWith;
|
|
648
654
|
}
|
|
649
|
-
protoOf(RaiseAccumulate).
|
|
650
|
-
this.
|
|
655
|
+
protoOf(RaiseAccumulate).gn = function (r) {
|
|
656
|
+
this.xm_1(r);
|
|
651
657
|
return throwKotlinNothingValueException();
|
|
652
658
|
};
|
|
653
|
-
protoOf(RaiseAccumulate).
|
|
659
|
+
protoOf(RaiseAccumulate).ln = function (_this__u8e3s4) {
|
|
654
660
|
// Inline function 'arrow.core.raise.RaiseAccumulate.mapOrAccumulate' call
|
|
655
661
|
// Inline function 'arrow.core.raise.mapOrAccumulate' call
|
|
656
|
-
var tmp0 = this.
|
|
662
|
+
var tmp0 = this.wm_1;
|
|
657
663
|
// Inline function 'arrow.core.raise.mapOrAccumulate' call
|
|
658
664
|
var iterable = _NonEmptyList___get_all__impl__pmf509(_this__u8e3s4);
|
|
659
665
|
// Inline function 'kotlin.collections.buildList' call
|
|
@@ -688,27 +694,27 @@ protoOf(RaiseAccumulate).en = function (_this__u8e3s4) {
|
|
|
688
694
|
try {
|
|
689
695
|
var tmp_1 = tolerant(this_1, raise);
|
|
690
696
|
var $this$accumulating = new RaiseAccumulate(tmp_1, raise_0, RaiseAccumulate$bindAll$lambda(raise_0));
|
|
691
|
-
var hasErrors = $this$accumulating.
|
|
697
|
+
var hasErrors = $this$accumulating.ym();
|
|
692
698
|
// Inline function 'kotlin.also' call
|
|
693
|
-
var this_2 = $this$accumulating.
|
|
699
|
+
var this_2 = $this$accumulating.kn(element);
|
|
694
700
|
if (!hasErrors) {
|
|
695
701
|
this_0.x(this_2);
|
|
696
702
|
}
|
|
697
703
|
var res = new Ok(Unit_instance);
|
|
698
|
-
raise_0.
|
|
704
|
+
raise_0.cn();
|
|
699
705
|
// Inline function 'arrow.core.identity' call
|
|
700
706
|
tmp_0 = res;
|
|
701
707
|
} catch ($p) {
|
|
702
708
|
var tmp_2;
|
|
703
709
|
if ($p instanceof RaiseCancellationException) {
|
|
704
710
|
var e = $p;
|
|
705
|
-
raise_0.
|
|
706
|
-
var p0 = raisedOrRethrow(e, raise_0).
|
|
707
|
-
tmp_2 = this_1.
|
|
711
|
+
raise_0.cn();
|
|
712
|
+
var p0 = raisedOrRethrow(e, raise_0).dn_1;
|
|
713
|
+
tmp_2 = this_1.en(p0);
|
|
708
714
|
} else {
|
|
709
715
|
if ($p instanceof Error) {
|
|
710
716
|
var e_0 = $p;
|
|
711
|
-
raise_0.
|
|
717
|
+
raise_0.cn();
|
|
712
718
|
throw nonFatalOrThrow(e_0);
|
|
713
719
|
} else {
|
|
714
720
|
throw $p;
|
|
@@ -717,20 +723,20 @@ protoOf(RaiseAccumulate).en = function (_this__u8e3s4) {
|
|
|
717
723
|
tmp_0 = tmp_2;
|
|
718
724
|
}
|
|
719
725
|
var res_0 = tmp_0;
|
|
720
|
-
raise.
|
|
726
|
+
raise.cn();
|
|
721
727
|
// Inline function 'arrow.core.identity' call
|
|
722
728
|
tmp = res_0;
|
|
723
729
|
} catch ($p) {
|
|
724
730
|
var tmp_3;
|
|
725
731
|
if ($p instanceof RaiseCancellationException) {
|
|
726
732
|
var e_1 = $p;
|
|
727
|
-
raise.
|
|
733
|
+
raise.cn();
|
|
728
734
|
// Inline function 'arrow.core.identity' call
|
|
729
735
|
tmp_3 = raisedOrRethrow(e_1, raise);
|
|
730
736
|
} else {
|
|
731
737
|
if ($p instanceof Error) {
|
|
732
738
|
var e_2 = $p;
|
|
733
|
-
raise.
|
|
739
|
+
raise.cn();
|
|
734
740
|
throw nonFatalOrThrow(e_2);
|
|
735
741
|
} else {
|
|
736
742
|
throw $p;
|
|
@@ -740,66 +746,66 @@ protoOf(RaiseAccumulate).en = function (_this__u8e3s4) {
|
|
|
740
746
|
}
|
|
741
747
|
}
|
|
742
748
|
var result = Unit_instance;
|
|
743
|
-
if ($this$with.
|
|
744
|
-
var tmp0_safe_receiver = $this$with.
|
|
749
|
+
if ($this$with.ym()) {
|
|
750
|
+
var tmp0_safe_receiver = $this$with.fn();
|
|
745
751
|
if (tmp0_safe_receiver == null)
|
|
746
752
|
null;
|
|
747
753
|
else {
|
|
748
|
-
tmp0_safe_receiver.
|
|
754
|
+
tmp0_safe_receiver.o1();
|
|
749
755
|
throwKotlinNothingValueException();
|
|
750
756
|
}
|
|
751
757
|
}
|
|
752
758
|
// Inline function 'kotlin.let' call
|
|
753
|
-
var p0_0 = this_0.
|
|
759
|
+
var p0_0 = this_0.q5();
|
|
754
760
|
return _NonEmptyList___init__impl__fxd0xp(p0_0);
|
|
755
761
|
};
|
|
756
|
-
protoOf(RaiseAccumulate).
|
|
762
|
+
protoOf(RaiseAccumulate).zm = function (_this__u8e3s4) {
|
|
757
763
|
// Inline function 'kotlin.with' call
|
|
758
|
-
return this.
|
|
764
|
+
return this.wm_1.kn(_this__u8e3s4);
|
|
759
765
|
};
|
|
760
|
-
protoOf(RaiseAccumulate).
|
|
761
|
-
return this.
|
|
762
|
-
};
|
|
763
|
-
protoOf(RaiseAccumulate).rm = function () {
|
|
764
|
-
return this.om_1.rm();
|
|
766
|
+
protoOf(RaiseAccumulate).en = function (errors) {
|
|
767
|
+
return this.vm_1.en(errors);
|
|
765
768
|
};
|
|
766
769
|
protoOf(RaiseAccumulate).ym = function () {
|
|
767
|
-
return this.
|
|
770
|
+
return this.vm_1.ym();
|
|
771
|
+
};
|
|
772
|
+
protoOf(RaiseAccumulate).fn = function () {
|
|
773
|
+
return this.vm_1.fn();
|
|
768
774
|
};
|
|
769
775
|
function Accumulate() {
|
|
770
776
|
}
|
|
771
777
|
function ListAccumulate$error$lambda(this$0) {
|
|
772
778
|
return function () {
|
|
773
|
-
this$0.
|
|
779
|
+
this$0.vn_1.gn(new NonEmptyList(_NonEmptyList___init__impl__fxd0xp(this$0.wn_1)));
|
|
774
780
|
};
|
|
775
781
|
}
|
|
776
782
|
function ListAccumulate(raise) {
|
|
777
|
-
this.
|
|
783
|
+
this.vn_1 = raise;
|
|
778
784
|
var tmp = this;
|
|
779
785
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
780
|
-
tmp.
|
|
786
|
+
tmp.wn_1 = ArrayList_init_$Create$_0();
|
|
781
787
|
var tmp_0 = this;
|
|
782
|
-
tmp_0.
|
|
788
|
+
tmp_0.xn_1 = new Error_0(ListAccumulate$error$lambda(this));
|
|
783
789
|
}
|
|
784
|
-
protoOf(ListAccumulate).
|
|
785
|
-
this.
|
|
790
|
+
protoOf(ListAccumulate).yn = function (r) {
|
|
791
|
+
this.vn_1.gn(new NonEmptyList(_NonEmptyList___init__impl__fxd0xp(plus_0(this.wn_1, r))));
|
|
786
792
|
};
|
|
787
|
-
protoOf(ListAccumulate).
|
|
788
|
-
this.
|
|
793
|
+
protoOf(ListAccumulate).zn = function (r) {
|
|
794
|
+
this.vn_1.gn(new NonEmptyList(_NonEmptyList___init__impl__fxd0xp(plus(this.wn_1, _NonEmptyList___get_all__impl__pmf509(r)))));
|
|
789
795
|
};
|
|
790
|
-
protoOf(ListAccumulate).
|
|
791
|
-
return this.
|
|
796
|
+
protoOf(ListAccumulate).gn = function (r) {
|
|
797
|
+
return this.zn(r instanceof NonEmptyList ? r.dn_1 : THROW_CCE());
|
|
792
798
|
};
|
|
793
|
-
protoOf(ListAccumulate).
|
|
794
|
-
this.
|
|
795
|
-
return this.
|
|
799
|
+
protoOf(ListAccumulate).en = function (errors) {
|
|
800
|
+
this.wn_1.g1(new NonEmptyList(errors));
|
|
801
|
+
return this.xn_1;
|
|
796
802
|
};
|
|
797
|
-
protoOf(ListAccumulate).
|
|
803
|
+
protoOf(ListAccumulate).fn = function () {
|
|
798
804
|
// Inline function 'kotlin.takeIf' call
|
|
799
|
-
var this_0 = this.
|
|
805
|
+
var this_0 = this.xn_1;
|
|
800
806
|
var tmp;
|
|
801
807
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
802
|
-
if (!this.
|
|
808
|
+
if (!this.wn_1.r()) {
|
|
803
809
|
tmp = this_0;
|
|
804
810
|
} else {
|
|
805
811
|
tmp = null;
|
|
@@ -811,24 +817,24 @@ function tolerant(_this__u8e3s4, raise) {
|
|
|
811
817
|
}
|
|
812
818
|
function TolerantAccumulate$accumulateAll$lambda(this$0, $error) {
|
|
813
819
|
return function () {
|
|
814
|
-
this$0.
|
|
820
|
+
this$0.bo_1.gn($error);
|
|
815
821
|
};
|
|
816
822
|
}
|
|
817
823
|
function TolerantAccumulate$_get_latestError_$lambda_m5qmvg(this$0, $error) {
|
|
818
824
|
return function () {
|
|
819
|
-
this$0.
|
|
825
|
+
this$0.bo_1.gn($error);
|
|
820
826
|
};
|
|
821
827
|
}
|
|
822
828
|
function TolerantAccumulate(underlying, raise) {
|
|
823
|
-
this.
|
|
824
|
-
this.
|
|
829
|
+
this.ao_1 = underlying;
|
|
830
|
+
this.bo_1 = raise;
|
|
825
831
|
}
|
|
826
|
-
protoOf(TolerantAccumulate).
|
|
827
|
-
var error = this.
|
|
832
|
+
protoOf(TolerantAccumulate).en = function (errors) {
|
|
833
|
+
var error = this.ao_1.en(errors);
|
|
828
834
|
return new Error_0(TolerantAccumulate$accumulateAll$lambda(this, error));
|
|
829
835
|
};
|
|
830
|
-
protoOf(TolerantAccumulate).
|
|
831
|
-
var tmp0_elvis_lhs = this.
|
|
836
|
+
protoOf(TolerantAccumulate).fn = function () {
|
|
837
|
+
var tmp0_elvis_lhs = this.ao_1.fn();
|
|
832
838
|
var tmp;
|
|
833
839
|
if (tmp0_elvis_lhs == null) {
|
|
834
840
|
return null;
|
|
@@ -858,32 +864,32 @@ function NoTrace(raised, raise) {
|
|
|
858
864
|
function RaiseCancellationException(raised, raise) {
|
|
859
865
|
CancellationException_init_$Init$("kotlin.coroutines.cancellation.CancellationException should never get swallowed. Always re-throw it if captured.This swallows the exception of Arrow's Raise, and leads to unexpected behavior.When working with Arrow prefer Either.catch or arrow.core.raise.catch to automatically rethrow CancellationException.", this);
|
|
860
866
|
captureStack(this, RaiseCancellationException);
|
|
861
|
-
this.
|
|
862
|
-
this.
|
|
867
|
+
this.mn_1 = raised;
|
|
868
|
+
this.nn_1 = raise;
|
|
863
869
|
}
|
|
864
|
-
protoOf(RaiseCancellationException).
|
|
870
|
+
protoOf(RaiseCancellationException).pn = function () {
|
|
865
871
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
866
872
|
// Inline function 'kotlin.js.asDynamic' call
|
|
867
873
|
var tmp1_elvis_lhs = this == null ? null : this.raised;
|
|
868
|
-
return tmp1_elvis_lhs == null ? this.
|
|
874
|
+
return tmp1_elvis_lhs == null ? this.mn_1 : tmp1_elvis_lhs;
|
|
869
875
|
};
|
|
870
|
-
protoOf(RaiseCancellationException).
|
|
876
|
+
protoOf(RaiseCancellationException).on = function () {
|
|
871
877
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
872
878
|
// Inline function 'kotlin.js.asDynamic' call
|
|
873
879
|
var tmp1_elvis_lhs = this == null ? null : this.raise;
|
|
874
|
-
return tmp1_elvis_lhs == null ? this.
|
|
880
|
+
return tmp1_elvis_lhs == null ? this.nn_1 : tmp1_elvis_lhs;
|
|
875
881
|
};
|
|
876
882
|
//region block: post-declaration
|
|
877
|
-
protoOf(DefaultRaise).
|
|
878
|
-
protoOf(DefaultRaise).
|
|
883
|
+
protoOf(DefaultRaise).kn = bind;
|
|
884
|
+
protoOf(DefaultRaise).ln = bindAll;
|
|
879
885
|
defineProp(protoOf(Traced), 'cause', function () {
|
|
880
886
|
return this.f();
|
|
881
887
|
});
|
|
882
|
-
protoOf(RaiseAccumulate).
|
|
883
|
-
protoOf(ListAccumulate).
|
|
884
|
-
protoOf(ListAccumulate).
|
|
885
|
-
protoOf(ListAccumulate).
|
|
886
|
-
protoOf(TolerantAccumulate).
|
|
888
|
+
protoOf(RaiseAccumulate).kn = bind;
|
|
889
|
+
protoOf(ListAccumulate).ym = get_hasAccumulatedErrors;
|
|
890
|
+
protoOf(ListAccumulate).kn = bind;
|
|
891
|
+
protoOf(ListAccumulate).ln = bindAll;
|
|
892
|
+
protoOf(TolerantAccumulate).ym = get_hasAccumulatedErrors;
|
|
887
893
|
//endregion
|
|
888
894
|
//region block: init
|
|
889
895
|
Companion_instance = new Companion();
|