@flock/wirespec 0.12.3 → 0.12.9
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.map +1 -1
- package/arrow-arrow-core.mjs.map +1 -1
- package/clikt-clikt.mjs +1167 -1167
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +425 -425
- package/colormath-root-colormath.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +71 -56
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1767 -1767
- package/kotlin-rgxgen.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +380 -380
- package/markdown.mjs +1884 -1884
- package/mordant-mordant.mjs +1640 -1640
- package/mordant-mordant.mjs.map +1 -1
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +1721 -1459
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +586 -467
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +355 -322
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +419 -357
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +1031 -393
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +396 -963
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-npm.d.ts +41 -17
- package/wirespec-src-plugin-npm.mjs +171 -173
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +35 -30
- package/wirespec-src-tools-generator.mjs.map +1 -1
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
copyToArray2j022khrow2yi as copyToArray,
|
|
12
12
|
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
|
|
13
13
|
toString1pkumu07cwy4m as toString,
|
|
14
|
-
|
|
14
|
+
ArrayList_init_$Create$2rimpp4x9tjd3 as ArrayList_init_$Create$_0,
|
|
15
15
|
listOfvhqybd2zx248 as listOf,
|
|
16
16
|
KtList3hktaavzmj137 as KtList,
|
|
17
17
|
getKClass1s3j9wy1cofik as getKClass,
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
createInvariantKTypeProjection3sfd0u0y62ozd as createInvariantKTypeProjection,
|
|
21
21
|
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
22
22
|
isInterface3d6p8outrmvmk as isInterface,
|
|
23
|
+
addAll1k27qatfgp3k5 as addAll,
|
|
23
24
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
24
25
|
import {
|
|
25
26
|
KotlinShared_getInstance114scpqa1akim as KotlinShared_getInstance,
|
|
@@ -28,11 +29,11 @@ import {
|
|
|
28
29
|
TypeScriptShared_getInstance1bw05v0xeggat as TypeScriptShared_getInstance,
|
|
29
30
|
WirespecSpec_getInstance1f3kvr92zi4ov as WirespecSpec_getInstance,
|
|
30
31
|
tokenize2ymgjd76lr1sl as tokenize,
|
|
31
|
-
|
|
32
|
+
parsem5pum03bymz2 as parse,
|
|
32
33
|
WirespecEmitterzy8hsjgf4ddx as WirespecEmitter,
|
|
33
34
|
get_noLogger1h44wq0vgj38h as get_noLogger,
|
|
34
35
|
TypeScriptEmitter15xnhgx1fp785 as TypeScriptEmitter,
|
|
35
|
-
|
|
36
|
+
Companion_instance102bxzj2ej5fu as Companion_instance,
|
|
36
37
|
JavaEmitter1iajkiqm8e1w2 as JavaEmitter,
|
|
37
38
|
KotlinEmitter3u2bd89c6zjpn as KotlinEmitter,
|
|
38
39
|
ScalaEmittergcrbho15xuc5 as ScalaEmitter,
|
|
@@ -45,17 +46,17 @@ import {
|
|
|
45
46
|
import { main18ozy59zvnjcv as main } from './wirespec-src-plugin-cli.mjs';
|
|
46
47
|
import {
|
|
47
48
|
produce6u3tkbj47p5z as produce,
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
produce2xzl2umtcmchb as produce_0,
|
|
50
|
+
produceg4211betqmhz as produce_1,
|
|
50
51
|
produceuh9i6jdi4fz0 as produce_2,
|
|
51
|
-
|
|
52
|
+
consume1246fk3da2tge as consume,
|
|
52
53
|
produce1d55z03ypnj45 as produce_3,
|
|
53
54
|
} from './wirespec-src-compiler-lib.mjs';
|
|
54
55
|
import {
|
|
55
56
|
NonEmptyList3ak25ihy2gcvs as NonEmptyList,
|
|
57
|
+
nonEmptyListOf17xawqyzwrlrt as nonEmptyListOf,
|
|
56
58
|
Left2oemzq1tpcg4i as Left,
|
|
57
59
|
Right351sh2v8odavg as Right,
|
|
58
|
-
toNonEmptyListOrNull2ovnnazjb3msz as toNonEmptyListOrNull,
|
|
59
60
|
curriedvu30mssefbqd as curried,
|
|
60
61
|
} from './arrow-arrow-core.mjs';
|
|
61
62
|
import {
|
|
@@ -66,10 +67,10 @@ import {
|
|
|
66
67
|
} from './wirespec-src-converter-openapi.mjs';
|
|
67
68
|
import {
|
|
68
69
|
AvroParser_instance25ibqzb3yimhc as AvroParser_instance,
|
|
69
|
-
|
|
70
|
+
AvroEmitter_getInstance2fev0i0aysjmp as AvroEmitter_getInstance,
|
|
70
71
|
Typel89stdvlxo83 as Type,
|
|
71
72
|
} from './wirespec-src-converter-avro.mjs';
|
|
72
|
-
import {
|
|
73
|
+
import { generate2z40chlsobs62 as generate } from './wirespec-src-tools-generator.mjs';
|
|
73
74
|
import {
|
|
74
75
|
Companion_getInstance2vtqdn0c5f5w9 as Companion_getInstance,
|
|
75
76
|
Companion_getInstance1m5a009nr2dv6 as Companion_getInstance_0,
|
|
@@ -116,10 +117,10 @@ function Shared_initEntries() {
|
|
|
116
117
|
if (Shared_entriesInitialized)
|
|
117
118
|
return Unit_instance;
|
|
118
119
|
Shared_entriesInitialized = true;
|
|
119
|
-
Shared_KOTLIN_instance = new Shared('KOTLIN', 0, KotlinShared_getInstance().
|
|
120
|
-
Shared_JAVA_instance = new Shared('JAVA', 1, JavaShared_getInstance().
|
|
121
|
-
Shared_SCALA_instance = new Shared('SCALA', 2, ScalaShared_getInstance().
|
|
122
|
-
Shared_TYPESCRIPT_instance = new Shared('TYPESCRIPT', 3, TypeScriptShared_getInstance().
|
|
120
|
+
Shared_KOTLIN_instance = new Shared('KOTLIN', 0, KotlinShared_getInstance().m29_1);
|
|
121
|
+
Shared_JAVA_instance = new Shared('JAVA', 1, JavaShared_getInstance().j29_1);
|
|
122
|
+
Shared_SCALA_instance = new Shared('SCALA', 2, ScalaShared_getInstance().o29_1);
|
|
123
|
+
Shared_TYPESCRIPT_instance = new Shared('TYPESCRIPT', 3, TypeScriptShared_getInstance().u28_1);
|
|
123
124
|
}
|
|
124
125
|
function Shared(name, ordinal, source) {
|
|
125
126
|
Enum.call(this, name, ordinal);
|
|
@@ -237,19 +238,19 @@ function tokenize_0(source) {
|
|
|
237
238
|
return copyToArray(this_2);
|
|
238
239
|
}
|
|
239
240
|
function parse_0(source) {
|
|
240
|
-
return produce_0(parse(new parse$1(), source));
|
|
241
|
+
return produce_0(parse(new parse$1(), nonEmptyListOf(source, [])));
|
|
241
242
|
}
|
|
242
243
|
function convert(source, converters) {
|
|
243
244
|
var tmp;
|
|
244
245
|
switch (converters.p2_1) {
|
|
245
246
|
case 0:
|
|
246
|
-
tmp = produce_1(OpenAPIV2Parser_instance.
|
|
247
|
+
tmp = produce_1(OpenAPIV2Parser_instance.y2e(source));
|
|
247
248
|
break;
|
|
248
249
|
case 1:
|
|
249
|
-
tmp = produce_1(OpenAPIV3Parser_instance.
|
|
250
|
+
tmp = produce_1(OpenAPIV3Parser_instance.r2f(source));
|
|
250
251
|
break;
|
|
251
252
|
case 2:
|
|
252
|
-
tmp = produce_1(AvroParser_instance.
|
|
253
|
+
tmp = produce_1(AvroParser_instance.c2e(source));
|
|
253
254
|
break;
|
|
254
255
|
default:
|
|
255
256
|
noWhenBranchMatchedException();
|
|
@@ -261,7 +262,7 @@ function generate_0(source, type) {
|
|
|
261
262
|
// Inline function 'arrow.core.Either.map' call
|
|
262
263
|
// Inline function 'kotlin.contracts.contract' call
|
|
263
264
|
// Inline function 'arrow.core.flatMap' call
|
|
264
|
-
var this_0 = parse(new generate$1(), source);
|
|
265
|
+
var this_0 = parse(new generate$1(), nonEmptyListOf(source, []));
|
|
265
266
|
// Inline function 'kotlin.contracts.contract' call
|
|
266
267
|
var tmp;
|
|
267
268
|
if (this_0 instanceof Right) {
|
|
@@ -282,202 +283,199 @@ function generate_0(source, type) {
|
|
|
282
283
|
}
|
|
283
284
|
function emit(ast, emitter, packageName) {
|
|
284
285
|
// Inline function 'kotlin.collections.map' call
|
|
286
|
+
var this_0 = ast.modules;
|
|
285
287
|
// Inline function 'kotlin.collections.mapTo' call
|
|
286
|
-
var destination = ArrayList_init_$Create$(
|
|
288
|
+
var destination = ArrayList_init_$Create$(this_0.length);
|
|
287
289
|
var inductionVariable = 0;
|
|
288
|
-
var last =
|
|
290
|
+
var last = this_0.length;
|
|
289
291
|
while (inductionVariable < last) {
|
|
290
|
-
var item =
|
|
292
|
+
var item = this_0[inductionVariable];
|
|
291
293
|
inductionVariable = inductionVariable + 1 | 0;
|
|
292
294
|
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
|
|
293
295
|
var tmp$ret$0 = consume(item);
|
|
294
296
|
destination.e(tmp$ret$0);
|
|
295
297
|
}
|
|
296
|
-
// Inline function 'kotlin.
|
|
297
|
-
// Inline function '
|
|
298
|
-
var
|
|
299
|
-
var
|
|
300
|
-
|
|
301
|
-
var
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
tmp_0 = (new ScalaEmitter(new PackageName(packageName))).k23(it, get_noLogger());
|
|
325
|
-
break;
|
|
326
|
-
case 5:
|
|
327
|
-
var tmp0 = listOf(it);
|
|
328
|
-
var tmp1_map_$receiver = OpenAPIV2Emitter_getInstance();
|
|
329
|
-
// Inline function 'kotlin.collections.map' call
|
|
298
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
299
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
300
|
+
var destination_0 = ArrayList_init_$Create$_0();
|
|
301
|
+
var _iterator__ex2g4s = destination.g();
|
|
302
|
+
while (_iterator__ex2g4s.h()) {
|
|
303
|
+
var element = _iterator__ex2g4s.i();
|
|
304
|
+
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
|
|
305
|
+
var tmp;
|
|
306
|
+
switch (emitter.p2_1) {
|
|
307
|
+
case 0:
|
|
308
|
+
tmp = (new WirespecEmitter()).x26(element, get_noLogger());
|
|
309
|
+
break;
|
|
310
|
+
case 1:
|
|
311
|
+
tmp = (new TypeScriptEmitter()).x26(element, get_noLogger());
|
|
312
|
+
break;
|
|
313
|
+
case 2:
|
|
314
|
+
tmp = (new JavaEmitter(Companion_instance.c26(packageName))).x26(element, get_noLogger());
|
|
315
|
+
break;
|
|
316
|
+
case 3:
|
|
317
|
+
tmp = (new KotlinEmitter(Companion_instance.c26(packageName))).x26(element, get_noLogger());
|
|
318
|
+
break;
|
|
319
|
+
case 4:
|
|
320
|
+
tmp = (new ScalaEmitter(Companion_instance.c26(packageName))).x26(element, get_noLogger());
|
|
321
|
+
break;
|
|
322
|
+
case 5:
|
|
323
|
+
var tmp0 = listOf(element);
|
|
324
|
+
var tmp1_map_$receiver = OpenAPIV2Emitter_getInstance();
|
|
325
|
+
// Inline function 'kotlin.collections.map' call
|
|
330
326
|
|
|
331
|
-
|
|
327
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
332
328
|
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
329
|
+
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0, 10));
|
|
330
|
+
var _iterator__ex2g4s_0 = tmp0.g();
|
|
331
|
+
while (_iterator__ex2g4s_0.h()) {
|
|
332
|
+
var item_0 = _iterator__ex2g4s_0.i();
|
|
333
|
+
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>.stub_for_inlining' call
|
|
334
|
+
var tmp$ret$3 = tmp1_map_$receiver.k2e(item_0);
|
|
335
|
+
destination_1.e(tmp$ret$3);
|
|
336
|
+
}
|
|
341
337
|
|
|
342
|
-
|
|
338
|
+
// Inline function 'kotlin.collections.map' call
|
|
343
339
|
|
|
344
|
-
|
|
345
|
-
|
|
340
|
+
var transform = encode(Companion_getInstance().g18());
|
|
341
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
346
342
|
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
343
|
+
var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_1, 10));
|
|
344
|
+
var _iterator__ex2g4s_1 = destination_1.g();
|
|
345
|
+
while (_iterator__ex2g4s_1.h()) {
|
|
346
|
+
var item_1 = _iterator__ex2g4s_1.i();
|
|
347
|
+
destination_2.e(transform(item_1));
|
|
348
|
+
}
|
|
353
349
|
|
|
354
|
-
|
|
355
|
-
|
|
350
|
+
var tmp7_map_$receiver = curried(Emitted$_init_$ref_9uzepx())('openapi');
|
|
351
|
+
// Inline function 'kotlin.collections.map' call
|
|
356
352
|
|
|
357
|
-
|
|
353
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
358
354
|
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
355
|
+
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_2, 10));
|
|
356
|
+
var _iterator__ex2g4s_2 = destination_2.g();
|
|
357
|
+
while (_iterator__ex2g4s_2.h()) {
|
|
358
|
+
var item_2 = _iterator__ex2g4s_2.i();
|
|
359
|
+
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>.stub_for_inlining' call
|
|
360
|
+
var tmp$ret$8 = tmp7_map_$receiver(item_2);
|
|
361
|
+
destination_3.e(tmp$ret$8);
|
|
362
|
+
}
|
|
367
363
|
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
364
|
+
tmp = destination_3;
|
|
365
|
+
break;
|
|
366
|
+
case 6:
|
|
367
|
+
// Inline function 'kotlin.collections.map' call
|
|
372
368
|
|
|
373
|
-
|
|
374
|
-
|
|
369
|
+
var this_1 = listOf(element);
|
|
370
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
375
371
|
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
372
|
+
var destination_4 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
373
|
+
var _iterator__ex2g4s_3 = this_1.g();
|
|
374
|
+
while (_iterator__ex2g4s_3.h()) {
|
|
375
|
+
var item_3 = _iterator__ex2g4s_3.i();
|
|
376
|
+
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>.<anonymous>' call
|
|
377
|
+
var tmp$ret$11 = OpenAPIV3Emitter_getInstance().d2f(item_3, null);
|
|
378
|
+
destination_4.e(tmp$ret$11);
|
|
379
|
+
}
|
|
384
380
|
|
|
385
|
-
|
|
381
|
+
// Inline function 'kotlin.collections.map' call
|
|
386
382
|
|
|
387
|
-
|
|
388
|
-
|
|
383
|
+
var transform_0 = encode(Companion_getInstance_0().g18());
|
|
384
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
389
385
|
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
386
|
+
var destination_5 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_4, 10));
|
|
387
|
+
var _iterator__ex2g4s_4 = destination_4.g();
|
|
388
|
+
while (_iterator__ex2g4s_4.h()) {
|
|
389
|
+
var item_4 = _iterator__ex2g4s_4.i();
|
|
390
|
+
destination_5.e(transform_0(item_4));
|
|
391
|
+
}
|
|
396
392
|
|
|
397
|
-
|
|
398
|
-
|
|
393
|
+
var tmp15_map_$receiver = curried(Emitted$_init_$ref_9uzepx_0())('openapi');
|
|
394
|
+
// Inline function 'kotlin.collections.map' call
|
|
399
395
|
|
|
400
|
-
|
|
396
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
401
397
|
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
398
|
+
var destination_6 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_5, 10));
|
|
399
|
+
var _iterator__ex2g4s_5 = destination_5.g();
|
|
400
|
+
while (_iterator__ex2g4s_5.h()) {
|
|
401
|
+
var item_5 = _iterator__ex2g4s_5.i();
|
|
402
|
+
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>.stub_for_inlining' call
|
|
403
|
+
var tmp$ret$16 = tmp15_map_$receiver(item_5);
|
|
404
|
+
destination_6.e(tmp$ret$16);
|
|
405
|
+
}
|
|
410
406
|
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
407
|
+
tmp = destination_6;
|
|
408
|
+
break;
|
|
409
|
+
case 7:
|
|
410
|
+
// Inline function 'kotlin.collections.map' call
|
|
415
411
|
|
|
416
|
-
|
|
417
|
-
|
|
412
|
+
var this_2 = listOf(element);
|
|
413
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
418
414
|
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
415
|
+
var destination_7 = ArrayList_init_$Create$(collectionSizeOrDefault(this_2, 10));
|
|
416
|
+
var _iterator__ex2g4s_6 = this_2.g();
|
|
417
|
+
while (_iterator__ex2g4s_6.h()) {
|
|
418
|
+
var item_6 = _iterator__ex2g4s_6.i();
|
|
419
|
+
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>.<anonymous>' call
|
|
420
|
+
var tmp$ret$19 = AvroEmitter_getInstance().c2d(item_6);
|
|
421
|
+
destination_7.e(tmp$ret$19);
|
|
422
|
+
}
|
|
427
423
|
|
|
428
|
-
|
|
424
|
+
// Inline function 'kotlin.collections.map' call
|
|
429
425
|
|
|
430
|
-
|
|
426
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
431
427
|
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
428
|
+
var destination_8 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_7, 10));
|
|
429
|
+
var _iterator__ex2g4s_7 = destination_7.g();
|
|
430
|
+
while (_iterator__ex2g4s_7.h()) {
|
|
431
|
+
var item_7 = _iterator__ex2g4s_7.i();
|
|
432
|
+
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>.<anonymous>' call
|
|
433
|
+
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
434
|
+
var this_3 = Default_getInstance();
|
|
435
|
+
// Inline function 'kotlinx.serialization.serializer' call
|
|
436
|
+
var this_4 = this_3.ip();
|
|
437
|
+
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
438
|
+
var this_5 = serializer(this_4, createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(Type), arrayOf([]), false))]), false));
|
|
439
|
+
var tmp$ret$23 = isInterface(this_5, KSerializer) ? this_5 : THROW_CCE();
|
|
440
|
+
var tmp$ret$25 = this_3.v15(tmp$ret$23, item_7);
|
|
441
|
+
destination_8.e(tmp$ret$25);
|
|
442
|
+
}
|
|
447
443
|
|
|
448
|
-
|
|
449
|
-
|
|
444
|
+
var tmp23_map_$receiver = curried(Emitted$_init_$ref_9uzepx_1())('avro');
|
|
445
|
+
// Inline function 'kotlin.collections.map' call
|
|
450
446
|
|
|
451
|
-
|
|
447
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
452
448
|
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
449
|
+
var destination_9 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_8, 10));
|
|
450
|
+
var _iterator__ex2g4s_8 = destination_8.g();
|
|
451
|
+
while (_iterator__ex2g4s_8.h()) {
|
|
452
|
+
var item_8 = _iterator__ex2g4s_8.i();
|
|
453
|
+
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>.stub_for_inlining' call
|
|
454
|
+
var tmp$ret$28 = tmp23_map_$receiver(item_8);
|
|
455
|
+
destination_9.e(tmp$ret$28);
|
|
456
|
+
}
|
|
461
457
|
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
458
|
+
tmp = destination_9;
|
|
459
|
+
break;
|
|
460
|
+
default:
|
|
461
|
+
noWhenBranchMatchedException();
|
|
462
|
+
break;
|
|
463
|
+
}
|
|
464
|
+
var list = tmp;
|
|
465
|
+
addAll(destination_0, list);
|
|
467
466
|
}
|
|
468
467
|
// Inline function 'kotlin.collections.map' call
|
|
469
|
-
var this_5 = tmp_0;
|
|
470
468
|
// Inline function 'kotlin.collections.mapTo' call
|
|
471
|
-
var
|
|
472
|
-
var
|
|
473
|
-
while (
|
|
474
|
-
var item_9 =
|
|
469
|
+
var destination_10 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_0, 10));
|
|
470
|
+
var _iterator__ex2g4s_9 = destination_0.g();
|
|
471
|
+
while (_iterator__ex2g4s_9.h()) {
|
|
472
|
+
var item_9 = _iterator__ex2g4s_9.i();
|
|
475
473
|
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
|
|
476
|
-
var tmp$ret$
|
|
477
|
-
|
|
474
|
+
var tmp$ret$34 = produce_3(item_9);
|
|
475
|
+
destination_10.e(tmp$ret$34);
|
|
478
476
|
}
|
|
479
477
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
480
|
-
return copyToArray(
|
|
478
|
+
return copyToArray(destination_10);
|
|
481
479
|
}
|
|
482
480
|
function encode(serializer) {
|
|
483
481
|
return encode$lambda(serializer);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/jsMain/kotlin/community/flock/wirespec/plugin/npm/Main.kt","
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/jsMain/kotlin/community/flock/wirespec/plugin/npm/Main.kt","../../../../../../../../../../../arrow/arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/NonEmptyList.kt","common/src/generated/_Collections.kt","js/src/kotlin/collectionJs.kt","../../../../../../../../../../../arrow/arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Either.kt","common/src/generated/_Arrays.kt","Z:/BuildAgent/work/b2fef8360e1bcf3d/core/commonMain/src/kotlinx/serialization/SerialFormat.kt","Z:/BuildAgent/work/b2fef8360e1bcf3d/core/commonMain/src/kotlinx/serialization/Serializers.kt","Z:/BuildAgent/work/b2fef8360e1bcf3d/core/commonMain/src/kotlinx/serialization/internal/Platform.common.kt"],"sourcesContent":[null,null,null,null,null,null,null,null,null],"names":["values","valueOf","value","<init>","source","<get-source>","cli","args","tokenize","item","parse","convert","converters","generate","type","emit","ast","emitter","packageName","element","list","encode","serializer","Emitted$<init>$ref","Emitted$<init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