@flock/wirespec 0.22.6 → 0.22.8
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 +11 -11
- package/arrow-arrow-core.mjs +150 -150
- package/clikt-clikt-mordant.mjs +80 -80
- package/clikt-clikt.mjs +1488 -1488
- package/colormath-root-colormath.mjs +441 -441
- package/kotlin-kotlin-stdlib.mjs +1626 -1604
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10134 -10134
- package/kotlin-rgxgen.mjs +1802 -1802
- package/kotlinx-io-kotlinx-io-core.mjs +414 -414
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1816 -1816
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1570 -1570
- package/mordant-mordant.mjs +1280 -1280
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +6797 -6957
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +177 -177
- package/wirespec-src-compiler-emitters-kotlin.mjs +132 -132
- package/wirespec-src-compiler-emitters-python.mjs +166 -166
- package/wirespec-src-compiler-emitters-rust.mjs +1501 -2116
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +165 -165
- package/wirespec-src-compiler-emitters-typescript.mjs +214 -214
- package/wirespec-src-compiler-emitters-wirespec.mjs +178 -198
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +282 -282
- package/wirespec-src-converter-asyncapi.mjs +849 -767
- package/wirespec-src-converter-asyncapi.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +596 -595
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-common.mjs +18 -18
- package/wirespec-src-converter-graphql.mjs +1064 -1064
- package/wirespec-src-converter-openapi.mjs +774 -662
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-ide-lsp.mjs +1375 -1375
- package/wirespec-src-plugin-arguments.mjs +200 -190
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +112 -112
- package/wirespec-src-plugin-extensions.mjs +1034 -998
- package/wirespec-src-plugin-extensions.mjs.map +1 -1
- package/wirespec-src-plugin-npm.mjs +54 -54
- package/wirespec-src-tools-generator.mjs +32 -32
|
@@ -166,6 +166,7 @@ import {
|
|
|
166
166
|
Rpc1w89psy5tk702 as Rpc,
|
|
167
167
|
Enumoqsp4e7al89r as Enum_1,
|
|
168
168
|
HasName33ghsv8lnn7sd as HasName,
|
|
169
|
+
Kind_VALUE_CLASS_getInstance4am4633l6xde as Kind_VALUE_CLASS_getInstance,
|
|
169
170
|
Unionccsavx6nrdr2 as Union_0,
|
|
170
171
|
TransformScope3fhztkr2eyk36 as TransformScope,
|
|
171
172
|
TransformerBuilder26pbjl5nmg6wa as TransformerBuilder,
|
|
@@ -227,13 +228,13 @@ function wrap(expr, depth) {
|
|
|
227
228
|
var call = this.ot() ? '?.' : '.';
|
|
228
229
|
var tmp;
|
|
229
230
|
if (this instanceof Wrap) {
|
|
230
|
-
tmp = this.
|
|
231
|
+
tmp = this.v35_1 ? expr + '?.let { ' + v + ' -> ' + this.u35_1 + '(' + v + ') }' : this.u35_1 + '(' + expr + ')';
|
|
231
232
|
} else {
|
|
232
233
|
if (this instanceof Each) {
|
|
233
|
-
tmp = expr + call + 'map { ' + v + ' -> ' + this.
|
|
234
|
+
tmp = expr + call + 'map { ' + v + ' -> ' + this.x35_1.w35(v, depth + 1 | 0) + ' }';
|
|
234
235
|
} else {
|
|
235
236
|
if (this instanceof Values) {
|
|
236
|
-
tmp = expr + call + 'mapValues { (_, ' + v + ') -> ' + this.
|
|
237
|
+
tmp = expr + call + 'mapValues { (_, ' + v + ') -> ' + this.z35_1.w35(v, depth + 1 | 0) + ' }';
|
|
237
238
|
} else {
|
|
238
239
|
noWhenBranchMatchedException();
|
|
239
240
|
}
|
|
@@ -243,7 +244,7 @@ function wrap(expr, depth) {
|
|
|
243
244
|
}
|
|
244
245
|
function wrap$default(expr, depth, $super) {
|
|
245
246
|
depth = depth === VOID ? 0 : depth;
|
|
246
|
-
return $super === VOID ? this.
|
|
247
|
+
return $super === VOID ? this.w35(expr, depth) : wrap(expr, depth);
|
|
247
248
|
}
|
|
248
249
|
initMetadataForInterface(Refinement, 'Refinement');
|
|
249
250
|
initMetadataForClass(Wrap, 'Wrap', VOID, VOID, [Refinement]);
|
|
@@ -274,7 +275,7 @@ var AVRO_PRIMITIVES;
|
|
|
274
275
|
function AvroExtension(packageName, language) {
|
|
275
276
|
var tmp = this;
|
|
276
277
|
var tmp_0;
|
|
277
|
-
switch (language.
|
|
278
|
+
switch (language.f3_1) {
|
|
278
279
|
case 0:
|
|
279
280
|
tmp_0 = new JavaAvroSource(packageName);
|
|
280
281
|
break;
|
|
@@ -287,25 +288,25 @@ function AvroExtension(packageName, language) {
|
|
|
287
288
|
var message = 'AvroExtension supports Java and Kotlin targets only, got ' + toString(language);
|
|
288
289
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
289
290
|
}
|
|
290
|
-
tmp.
|
|
291
|
+
tmp.h33_1 = tmp_0;
|
|
291
292
|
}
|
|
292
|
-
protoOf(AvroExtension).
|
|
293
|
+
protoOf(AvroExtension).j1b = function (ir, ast) {
|
|
293
294
|
// Inline function 'kotlin.collections.buildList' call
|
|
294
295
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
295
296
|
// Inline function 'kotlin.apply' call
|
|
296
297
|
var this_0 = ArrayList_init_$Create$();
|
|
297
298
|
// Inline function 'kotlin.collections.forEach' call
|
|
298
|
-
var _iterator__ex2g4s = (new NonEmptyList(ast.
|
|
299
|
+
var _iterator__ex2g4s = (new NonEmptyList(ast.fp_1)).t();
|
|
299
300
|
while (_iterator__ex2g4s.u()) {
|
|
300
301
|
var element = _iterator__ex2g4s.v();
|
|
301
302
|
// Inline function 'kotlin.collections.forEach' call
|
|
302
|
-
var _iterator__ex2g4s_0 = (new NonEmptyList(element.
|
|
303
|
+
var _iterator__ex2g4s_0 = (new NonEmptyList(element.hp_1)).t();
|
|
303
304
|
while (_iterator__ex2g4s_0.u()) {
|
|
304
305
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
305
|
-
this_0.g1(this.
|
|
306
|
+
this_0.g1(this.h33_1.i33(element_0, element));
|
|
306
307
|
}
|
|
307
308
|
}
|
|
308
|
-
var avroFiles = this_0.
|
|
309
|
+
var avroFiles = this_0.r5();
|
|
309
310
|
var base = new NonEmptyList(ir);
|
|
310
311
|
var tmp0_elvis_lhs = toNonEmptyListOrNull(plus(base, avroFiles));
|
|
311
312
|
var tmp;
|
|
@@ -325,7 +326,7 @@ function emit($this, identifier) {
|
|
|
325
326
|
if (identifier instanceof FieldIdentifier) {
|
|
326
327
|
// Inline function 'kotlin.let' call
|
|
327
328
|
var it = sanitizeSymbol($this, identifier.o1());
|
|
328
|
-
tmp = JavaGenerator_getInstance().
|
|
329
|
+
tmp = JavaGenerator_getInstance().m1c_1.i1(it) ? '_' + it : it;
|
|
329
330
|
} else {
|
|
330
331
|
noWhenBranchMatchedException();
|
|
331
332
|
}
|
|
@@ -343,7 +344,7 @@ function sanitizeSymbol($this, $receiver) {
|
|
|
343
344
|
var item = _iterator__ex2g4s.v();
|
|
344
345
|
var _unary__edvuaz = index;
|
|
345
346
|
index = _unary__edvuaz + 1 | 0;
|
|
346
|
-
var tmp$ret$2 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.
|
|
347
|
+
var tmp$ret$2 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.zr(item) : item;
|
|
347
348
|
destination.x(tmp$ret$2);
|
|
348
349
|
}
|
|
349
350
|
var tmp = asSequence(joinToString(destination, ''));
|
|
@@ -373,10 +374,10 @@ function emit_0($this, $receiver) {
|
|
|
373
374
|
function emitType($this, $receiver) {
|
|
374
375
|
var tmp;
|
|
375
376
|
if ($receiver instanceof Dict) {
|
|
376
|
-
tmp = 'java.util.Map<String, ' + emit_0($this, $receiver.
|
|
377
|
+
tmp = 'java.util.Map<String, ' + emit_0($this, $receiver.cq_1) + '>';
|
|
377
378
|
} else {
|
|
378
379
|
if ($receiver instanceof Iterable) {
|
|
379
|
-
tmp = 'java.util.List<' + emit_0($this, $receiver.
|
|
380
|
+
tmp = 'java.util.List<' + emit_0($this, $receiver.zp_1) + '>';
|
|
380
381
|
} else {
|
|
381
382
|
if ($receiver instanceof Unit) {
|
|
382
383
|
tmp = 'void';
|
|
@@ -385,17 +386,17 @@ function emitType($this, $receiver) {
|
|
|
385
386
|
tmp = 'Object';
|
|
386
387
|
} else {
|
|
387
388
|
if ($receiver instanceof Custom) {
|
|
388
|
-
tmp = $receiver.
|
|
389
|
+
tmp = $receiver.b1a_1;
|
|
389
390
|
} else {
|
|
390
391
|
if ($receiver instanceof Primitive) {
|
|
391
|
-
var t = $receiver.
|
|
392
|
+
var t = $receiver.d1a_1;
|
|
392
393
|
var tmp_0;
|
|
393
394
|
if (t instanceof String_0) {
|
|
394
395
|
tmp_0 = 'String';
|
|
395
396
|
} else {
|
|
396
397
|
if (t instanceof Integer) {
|
|
397
398
|
var tmp_1;
|
|
398
|
-
switch (t.
|
|
399
|
+
switch (t.l1a_1.f3_1) {
|
|
399
400
|
case 0:
|
|
400
401
|
tmp_1 = 'Integer';
|
|
401
402
|
break;
|
|
@@ -410,7 +411,7 @@ function emitType($this, $receiver) {
|
|
|
410
411
|
} else {
|
|
411
412
|
if (t instanceof Number_0) {
|
|
412
413
|
var tmp_2;
|
|
413
|
-
switch (t.
|
|
414
|
+
switch (t.g1a_1.f3_1) {
|
|
414
415
|
case 0:
|
|
415
416
|
tmp_2 = 'Float';
|
|
416
417
|
break;
|
|
@@ -449,10 +450,10 @@ function emitType($this, $receiver) {
|
|
|
449
450
|
function emitRoot($this, $receiver) {
|
|
450
451
|
var tmp;
|
|
451
452
|
if ($receiver instanceof Dict) {
|
|
452
|
-
tmp = emitRoot($this, $receiver.
|
|
453
|
+
tmp = emitRoot($this, $receiver.cq_1);
|
|
453
454
|
} else {
|
|
454
455
|
if ($receiver instanceof Iterable) {
|
|
455
|
-
tmp = emitRoot($this, $receiver.
|
|
456
|
+
tmp = emitRoot($this, $receiver.zp_1);
|
|
456
457
|
} else {
|
|
457
458
|
if ($receiver instanceof Unit) {
|
|
458
459
|
tmp = 'void';
|
|
@@ -464,23 +465,23 @@ function emitRoot($this, $receiver) {
|
|
|
464
465
|
return tmp;
|
|
465
466
|
}
|
|
466
467
|
function schemaField($this, definition, module_0) {
|
|
467
|
-
return trimMargin('\n |public static final org.apache.avro.Schema SCHEMA =\n | new org.apache.avro.Schema.Parser().parse("' + schema($this.
|
|
468
|
+
return trimMargin('\n |public static final org.apache.avro.Schema SCHEMA =\n | new org.apache.avro.Schema.Parser().parse("' + schema($this.j33_1, definition, module_0) + '");\n |\n ');
|
|
468
469
|
}
|
|
469
470
|
function toValue($this, field) {
|
|
470
|
-
var reference = field.
|
|
471
|
+
var reference = field.qp_1;
|
|
471
472
|
var tmp;
|
|
472
473
|
if (reference instanceof Iterable) {
|
|
473
|
-
tmp = 'data.' + emit($this, field.
|
|
474
|
+
tmp = 'data.' + emit($this, field.pp_1) + '().stream().map(it -> ' + avroClass(reference.zp_1.o1()) + '.to(it)).toList()';
|
|
474
475
|
} else {
|
|
475
476
|
if (reference instanceof Custom) {
|
|
476
|
-
tmp = avroClass(emit_0($this, field.
|
|
477
|
+
tmp = avroClass(emit_0($this, field.qp_1)) + '.to(data.' + emit($this, field.pp_1) + '())';
|
|
477
478
|
} else {
|
|
478
479
|
if (reference instanceof Primitive) {
|
|
479
480
|
var tmp_0;
|
|
480
|
-
if (reference.
|
|
481
|
-
tmp_0 = 'java.nio.ByteBuffer.wrap(data.' + emit($this, field.
|
|
481
|
+
if (reference.d1a_1 instanceof Bytes) {
|
|
482
|
+
tmp_0 = 'java.nio.ByteBuffer.wrap(data.' + emit($this, field.pp_1) + '())';
|
|
482
483
|
} else {
|
|
483
|
-
tmp_0 = 'data.' + emit($this, field.
|
|
484
|
+
tmp_0 = 'data.' + emit($this, field.pp_1) + '()' + (reference.e1a_1 ? '.orElse(null)' : '');
|
|
484
485
|
}
|
|
485
486
|
tmp = tmp_0;
|
|
486
487
|
} else {
|
|
@@ -499,16 +500,31 @@ function JavaAvroSource$sanitizeSymbol$lambda(it) {
|
|
|
499
500
|
}
|
|
500
501
|
function JavaAvroSource$fromValue$lambda(this$0, $module) {
|
|
501
502
|
return function (index, field) {
|
|
502
|
-
var reference = field.
|
|
503
|
+
var reference = field.qp_1;
|
|
503
504
|
var tmp;
|
|
504
505
|
if (reference instanceof Iterable) {
|
|
505
|
-
tmp = '((java.util.List<org.apache.avro.generic.GenericData.Record>) record.get(' + index + ')).stream().map(it -> ' + avroClass(emitRoot(this$0, reference.
|
|
506
|
+
tmp = '((java.util.List<org.apache.avro.generic.GenericData.Record>) record.get(' + index + ')).stream().map(it -> ' + avroClass(emitRoot(this$0, reference.zp_1)) + '.from(it)).toList()';
|
|
506
507
|
} else {
|
|
507
508
|
if (reference instanceof Custom) {
|
|
508
|
-
tmp = reference.
|
|
509
|
+
tmp = reference.c1a_1 ? '(' + emit_0(this$0, reference) + ') java.util.Optional.ofNullable((' + emitRoot(this$0, field.qp_1) + ') record.get(' + index + '))' : isEnum(reference, $module) ? avroClass(emit_0(this$0, field.qp_1)) + '.from((org.apache.avro.generic.GenericData.EnumSymbol) record.get(' + index + '))' : avroClass(emit_0(this$0, field.qp_1)) + '.from((org.apache.avro.generic.GenericData.Record) record.get(' + index + '))';
|
|
509
510
|
} else {
|
|
510
511
|
if (reference instanceof Primitive) {
|
|
511
|
-
|
|
512
|
+
var tmp_0;
|
|
513
|
+
if (reference.e1a_1) {
|
|
514
|
+
tmp_0 = '(' + emit_0(this$0, reference) + ') java.util.Optional.ofNullable((' + emitRoot(this$0, field.qp_1) + ') record.get(' + index + '))';
|
|
515
|
+
} else {
|
|
516
|
+
if (equals(reference.d1a_1, Bytes_instance)) {
|
|
517
|
+
tmp_0 = '(' + emit_0(this$0, reference) + ') ((java.nio.ByteBuffer) record.get(' + index + ')).array()';
|
|
518
|
+
} else {
|
|
519
|
+
var tmp_1 = reference.d1a_1;
|
|
520
|
+
if (tmp_1 instanceof String_0) {
|
|
521
|
+
tmp_0 = '(' + emit_0(this$0, reference) + ') record.get(' + index + ').toString()';
|
|
522
|
+
} else {
|
|
523
|
+
tmp_0 = '(' + emit_0(this$0, reference) + ') record.get(' + index + ')';
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
tmp = tmp_0;
|
|
512
528
|
} else {
|
|
513
529
|
tmp = '(' + emit_0(this$0, reference) + ') record.get(' + index + ')';
|
|
514
530
|
}
|
|
@@ -518,15 +534,15 @@ function JavaAvroSource$fromValue$lambda(this$0, $module) {
|
|
|
518
534
|
};
|
|
519
535
|
}
|
|
520
536
|
function JavaAvroSource(packageName) {
|
|
521
|
-
this.
|
|
537
|
+
this.j33_1 = packageName;
|
|
522
538
|
}
|
|
523
|
-
protoOf(JavaAvroSource).
|
|
539
|
+
protoOf(JavaAvroSource).i33 = function (definition, module_0) {
|
|
524
540
|
var tmp;
|
|
525
541
|
if (definition instanceof Type) {
|
|
526
|
-
var tmp_0 = emit(this, definition.
|
|
542
|
+
var tmp_0 = emit(this, definition.lp_1);
|
|
527
543
|
var tmp_1 = schemaField(this, definition, module_0);
|
|
528
544
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
529
|
-
var this_0 = get_fields(definition.
|
|
545
|
+
var this_0 = get_fields(definition.mp_1);
|
|
530
546
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
531
547
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
532
548
|
var index = 0;
|
|
@@ -536,12 +552,12 @@ protoOf(JavaAvroSource).d33 = function (definition, module_0) {
|
|
|
536
552
|
var _unary__edvuaz = index;
|
|
537
553
|
index = _unary__edvuaz + 1 | 0;
|
|
538
554
|
var index_0 = checkIndexOverflow(_unary__edvuaz);
|
|
539
|
-
var tmp$ret$2 = to(emit(this, item.
|
|
555
|
+
var tmp$ret$2 = to(emit(this, item.pp_1), fromValue(this, module_0)(index_0, item));
|
|
540
556
|
destination.x(tmp$ret$2);
|
|
541
557
|
}
|
|
542
558
|
var tmp_2 = destination;
|
|
543
559
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
544
|
-
var this_1 = get_fields(definition.
|
|
560
|
+
var this_1 = get_fields(definition.mp_1);
|
|
545
561
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
546
562
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
547
563
|
var index_1 = 0;
|
|
@@ -553,10 +569,10 @@ protoOf(JavaAvroSource).d33 = function (definition, module_0) {
|
|
|
553
569
|
var tmp$ret$5 = 'record.put(' + checkIndexOverflow(_unary__edvuaz_0) + ', ' + toValue(this, item_0) + ')';
|
|
554
570
|
destination_0.x(tmp$ret$5);
|
|
555
571
|
}
|
|
556
|
-
tmp = listOf(typeAvroFile(this.
|
|
572
|
+
tmp = listOf(typeAvroFile(this.j33_1, tmp_0, tmp_1, 'new org.apache.avro.generic.GenericData.Record(SCHEMA)', tmp_2, destination_0));
|
|
557
573
|
} else {
|
|
558
574
|
if (definition instanceof Enum_0) {
|
|
559
|
-
tmp = listOf(enumAvroFile(this.
|
|
575
|
+
tmp = listOf(enumAvroFile(this.j33_1, emit(this, definition.rs_1), schemaField(this, definition, module_0), emit(this, definition.rs_1) + '.valueOf(record.toString())', 'new org.apache.avro.generic.GenericData.EnumSymbol(SCHEMA, data.name())'));
|
|
560
576
|
} else {
|
|
561
577
|
tmp = emptyList();
|
|
562
578
|
}
|
|
@@ -571,7 +587,7 @@ function emit_1($this, identifier) {
|
|
|
571
587
|
if (identifier instanceof FieldIdentifier) {
|
|
572
588
|
// Inline function 'kotlin.let' call
|
|
573
589
|
var it = sanitize($this, identifier);
|
|
574
|
-
tmp = KotlinGenerator_getInstance().
|
|
590
|
+
tmp = KotlinGenerator_getInstance().o1c_1.i1(it) ? addBackticks(it) : it;
|
|
575
591
|
} else {
|
|
576
592
|
noWhenBranchMatchedException();
|
|
577
593
|
}
|
|
@@ -589,7 +605,7 @@ function sanitize($this, $receiver) {
|
|
|
589
605
|
var item = _iterator__ex2g4s.v();
|
|
590
606
|
var _unary__edvuaz = index;
|
|
591
607
|
index = _unary__edvuaz + 1 | 0;
|
|
592
|
-
var tmp$ret$2 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.
|
|
608
|
+
var tmp$ret$2 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.zr(item) : item;
|
|
593
609
|
destination.x(tmp$ret$2);
|
|
594
610
|
}
|
|
595
611
|
var tmp = asSequence(joinToString(destination, ''));
|
|
@@ -614,10 +630,10 @@ function sanitize($this, $receiver) {
|
|
|
614
630
|
function emit_2($this, $receiver) {
|
|
615
631
|
var tmp;
|
|
616
632
|
if ($receiver instanceof Dict) {
|
|
617
|
-
tmp = 'Map<String, ' + emit_2($this, $receiver.
|
|
633
|
+
tmp = 'Map<String, ' + emit_2($this, $receiver.cq_1) + '>';
|
|
618
634
|
} else {
|
|
619
635
|
if ($receiver instanceof Iterable) {
|
|
620
|
-
tmp = 'List<' + emit_2($this, $receiver.
|
|
636
|
+
tmp = 'List<' + emit_2($this, $receiver.zp_1) + '>';
|
|
621
637
|
} else {
|
|
622
638
|
if ($receiver instanceof Unit) {
|
|
623
639
|
tmp = 'Unit';
|
|
@@ -626,17 +642,17 @@ function emit_2($this, $receiver) {
|
|
|
626
642
|
tmp = 'Any';
|
|
627
643
|
} else {
|
|
628
644
|
if ($receiver instanceof Custom) {
|
|
629
|
-
tmp = $receiver.
|
|
645
|
+
tmp = $receiver.b1a_1;
|
|
630
646
|
} else {
|
|
631
647
|
if ($receiver instanceof Primitive) {
|
|
632
|
-
var t = $receiver.
|
|
648
|
+
var t = $receiver.d1a_1;
|
|
633
649
|
var tmp_0;
|
|
634
650
|
if (t instanceof String_0) {
|
|
635
651
|
tmp_0 = 'String';
|
|
636
652
|
} else {
|
|
637
653
|
if (t instanceof Integer) {
|
|
638
654
|
var tmp_1;
|
|
639
|
-
switch (t.
|
|
655
|
+
switch (t.l1a_1.f3_1) {
|
|
640
656
|
case 0:
|
|
641
657
|
tmp_1 = 'Int';
|
|
642
658
|
break;
|
|
@@ -651,7 +667,7 @@ function emit_2($this, $receiver) {
|
|
|
651
667
|
} else {
|
|
652
668
|
if (t instanceof Number_0) {
|
|
653
669
|
var tmp_2;
|
|
654
|
-
switch (t.
|
|
670
|
+
switch (t.g1a_1.f3_1) {
|
|
655
671
|
case 0:
|
|
656
672
|
tmp_2 = 'Float';
|
|
657
673
|
break;
|
|
@@ -690,21 +706,21 @@ function emit_2($this, $receiver) {
|
|
|
690
706
|
return $receiver.ot() ? it + '?' : it;
|
|
691
707
|
}
|
|
692
708
|
function avroObject($this, reference) {
|
|
693
|
-
return avroClass(emit_2($this, reference.
|
|
709
|
+
return avroClass(emit_2($this, reference.x1a(false)));
|
|
694
710
|
}
|
|
695
711
|
function schemaField_0($this, definition, module_0, explicitType) {
|
|
696
712
|
var declaration = explicitType ? 'val SCHEMA: org.apache.avro.Schema' : 'val SCHEMA';
|
|
697
|
-
return declaration + ' = org.apache.avro.Schema.Parser().parse("' + schema($this.
|
|
713
|
+
return declaration + ' = org.apache.avro.Schema.Parser().parse("' + schema($this.k33_1, definition, module_0) + '")';
|
|
698
714
|
}
|
|
699
715
|
function toValue_0($this, field) {
|
|
700
|
-
var value = 'data.' + emit_1($this, field.
|
|
701
|
-
var access = field.
|
|
702
|
-
var reference = field.
|
|
716
|
+
var value = 'data.' + emit_1($this, field.pp_1);
|
|
717
|
+
var access = field.qp_1.ot() ? value + '?' : value;
|
|
718
|
+
var reference = field.qp_1;
|
|
703
719
|
var tmp;
|
|
704
720
|
if (reference instanceof Iterable) {
|
|
705
721
|
var tmp_0;
|
|
706
|
-
if (reference.
|
|
707
|
-
tmp_0 = access + '.map{' + avroObject($this, reference.
|
|
722
|
+
if (reference.zp_1 instanceof Custom) {
|
|
723
|
+
tmp_0 = access + '.map{' + avroObject($this, reference.zp_1) + '.to(it)}';
|
|
708
724
|
} else {
|
|
709
725
|
tmp_0 = value;
|
|
710
726
|
}
|
|
@@ -712,18 +728,18 @@ function toValue_0($this, field) {
|
|
|
712
728
|
} else {
|
|
713
729
|
if (reference instanceof Dict) {
|
|
714
730
|
var tmp_1;
|
|
715
|
-
if (reference.
|
|
716
|
-
tmp_1 = access + '.mapValues{' + avroObject($this, reference.
|
|
731
|
+
if (reference.cq_1 instanceof Custom) {
|
|
732
|
+
tmp_1 = access + '.mapValues{' + avroObject($this, reference.cq_1) + '.to(it.value)}';
|
|
717
733
|
} else {
|
|
718
734
|
tmp_1 = value;
|
|
719
735
|
}
|
|
720
736
|
tmp = tmp_1;
|
|
721
737
|
} else {
|
|
722
738
|
if (reference instanceof Custom) {
|
|
723
|
-
tmp = field.
|
|
739
|
+
tmp = field.qp_1.ot() ? access + '.let{' + avroObject($this, reference) + '.to(it)}' : avroObject($this, reference) + '.to(' + value + ')';
|
|
724
740
|
} else {
|
|
725
741
|
if (reference instanceof Primitive) {
|
|
726
|
-
tmp = equals(reference.
|
|
742
|
+
tmp = equals(reference.d1a_1, Bytes_instance) && reference.e1a_1 ? access + '.let{java.nio.ByteBuffer.wrap(it)}' : equals(reference.d1a_1, Bytes_instance) ? 'java.nio.ByteBuffer.wrap(' + value + ')' : value;
|
|
727
743
|
} else {
|
|
728
744
|
// Inline function 'kotlin.error' call
|
|
729
745
|
var message = 'Cannot emit Avro: ' + toString(reference);
|
|
@@ -744,7 +760,7 @@ function element($this, module_0, reference, value) {
|
|
|
744
760
|
} else {
|
|
745
761
|
if (reference instanceof Primitive) {
|
|
746
762
|
var tmp_0;
|
|
747
|
-
if (reference.
|
|
763
|
+
if (reference.d1a_1 instanceof String_0) {
|
|
748
764
|
tmp_0 = value + '.toString()';
|
|
749
765
|
} else {
|
|
750
766
|
tmp_0 = value + ' as ' + emit_2($this, reference);
|
|
@@ -763,22 +779,22 @@ function KotlinAvroSource$sanitize$lambda(it) {
|
|
|
763
779
|
}
|
|
764
780
|
function KotlinAvroSource$fromValue$lambda(this$0, $module) {
|
|
765
781
|
return function (index, field) {
|
|
766
|
-
var reference = field.
|
|
782
|
+
var reference = field.qp_1;
|
|
767
783
|
var get = 'record.get(' + index + ')';
|
|
768
784
|
var orNull = reference.ot() ? '?' : '';
|
|
769
785
|
var tmp;
|
|
770
786
|
if (reference instanceof Iterable) {
|
|
771
|
-
tmp = '(' + get + ' as kotlin.collections.List<*>' + orNull + ')' + orNull + '.map{' + element(this$0, $module, reference.
|
|
787
|
+
tmp = '(' + get + ' as kotlin.collections.List<*>' + orNull + ')' + orNull + '.map{' + element(this$0, $module, reference.zp_1, 'it') + '}';
|
|
772
788
|
} else {
|
|
773
789
|
if (reference instanceof Dict) {
|
|
774
|
-
tmp = '(' + get + ' as kotlin.collections.Map<*, *>' + orNull + ')' + orNull + '.entries' + orNull + '.associate{it.key.toString() to ' + element(this$0, $module, reference.
|
|
790
|
+
tmp = '(' + get + ' as kotlin.collections.Map<*, *>' + orNull + ')' + orNull + '.entries' + orNull + '.associate{it.key.toString() to ' + element(this$0, $module, reference.cq_1, 'it.value') + '}';
|
|
775
791
|
} else {
|
|
776
792
|
if (reference instanceof Custom) {
|
|
777
793
|
var carrier = isEnum(reference, $module) ? 'org.apache.avro.generic.GenericData.EnumSymbol' : 'org.apache.avro.generic.GenericData.Record';
|
|
778
|
-
tmp = reference.
|
|
794
|
+
tmp = reference.c1a_1 ? '(' + get + ' as ' + carrier + '?)?.let{' + avroObject(this$0, reference) + '.from(it)}' : element(this$0, $module, reference, get);
|
|
779
795
|
} else {
|
|
780
796
|
if (reference instanceof Primitive) {
|
|
781
|
-
var tmp1_subject = reference.
|
|
797
|
+
var tmp1_subject = reference.d1a_1;
|
|
782
798
|
var tmp_0;
|
|
783
799
|
if (tmp1_subject instanceof Bytes) {
|
|
784
800
|
tmp_0 = '(' + get + ' as java.nio.ByteBuffer' + orNull + ')' + orNull + '.array()';
|
|
@@ -802,15 +818,15 @@ function KotlinAvroSource$fromValue$lambda(this$0, $module) {
|
|
|
802
818
|
};
|
|
803
819
|
}
|
|
804
820
|
function KotlinAvroSource(packageName) {
|
|
805
|
-
this.
|
|
821
|
+
this.k33_1 = packageName;
|
|
806
822
|
}
|
|
807
|
-
protoOf(KotlinAvroSource).
|
|
823
|
+
protoOf(KotlinAvroSource).i33 = function (definition, module_0) {
|
|
808
824
|
var tmp;
|
|
809
825
|
if (definition instanceof Type) {
|
|
810
|
-
var tmp_0 = emit_1(this, definition.
|
|
826
|
+
var tmp_0 = emit_1(this, definition.lp_1);
|
|
811
827
|
var tmp_1 = schemaField_0(this, definition, module_0, false);
|
|
812
828
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
813
|
-
var this_0 = get_fields(definition.
|
|
829
|
+
var this_0 = get_fields(definition.mp_1);
|
|
814
830
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
815
831
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
816
832
|
var index = 0;
|
|
@@ -820,12 +836,12 @@ protoOf(KotlinAvroSource).d33 = function (definition, module_0) {
|
|
|
820
836
|
var _unary__edvuaz = index;
|
|
821
837
|
index = _unary__edvuaz + 1 | 0;
|
|
822
838
|
var index_0 = checkIndexOverflow(_unary__edvuaz);
|
|
823
|
-
var tmp$ret$2 = to(emit_1(this, item.
|
|
839
|
+
var tmp$ret$2 = to(emit_1(this, item.pp_1), fromValue_0(this, module_0)(index_0, item));
|
|
824
840
|
destination.x(tmp$ret$2);
|
|
825
841
|
}
|
|
826
842
|
var tmp_2 = destination;
|
|
827
843
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
828
|
-
var this_1 = get_fields(definition.
|
|
844
|
+
var this_1 = get_fields(definition.mp_1);
|
|
829
845
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
830
846
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
831
847
|
var index_1 = 0;
|
|
@@ -837,10 +853,10 @@ protoOf(KotlinAvroSource).d33 = function (definition, module_0) {
|
|
|
837
853
|
var tmp$ret$5 = 'record.put(' + checkIndexOverflow(_unary__edvuaz_0) + ', ' + toValue_0(this, item_0) + ')';
|
|
838
854
|
destination_0.x(tmp$ret$5);
|
|
839
855
|
}
|
|
840
|
-
tmp = listOf(typeAvroFile(this.
|
|
856
|
+
tmp = listOf(typeAvroFile(this.k33_1, tmp_0, tmp_1, 'org.apache.avro.generic.GenericData.Record(SCHEMA)', tmp_2, destination_0));
|
|
841
857
|
} else {
|
|
842
858
|
if (definition instanceof Enum_0) {
|
|
843
|
-
tmp = listOf(enumAvroFile(this.
|
|
859
|
+
tmp = listOf(enumAvroFile(this.k33_1, emit_1(this, definition.rs_1), schemaField_0(this, definition, module_0, true), emit_1(this, definition.rs_1) + '.valueOf(record.toString())', 'org.apache.avro.generic.GenericData.EnumSymbol(SCHEMA, data.name)'));
|
|
844
860
|
} else {
|
|
845
861
|
tmp = emptyList();
|
|
846
862
|
}
|
|
@@ -865,7 +881,7 @@ function schema(packageName, definition, module_0) {
|
|
|
865
881
|
var tmp;
|
|
866
882
|
if (tmp2_elvis_lhs == null) {
|
|
867
883
|
// Inline function 'kotlin.error' call
|
|
868
|
-
var message = 'Cannot emit avro: ' + definition.
|
|
884
|
+
var message = 'Cannot emit avro: ' + definition.es().o1();
|
|
869
885
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
870
886
|
} else {
|
|
871
887
|
tmp = tmp2_elvis_lhs;
|
|
@@ -879,7 +895,7 @@ function avroClass(_this__u8e3s4) {
|
|
|
879
895
|
function isEnum(_this__u8e3s4, module_0) {
|
|
880
896
|
_init_properties_AvroExtension_kt__50nkjp();
|
|
881
897
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
882
|
-
var tmp0 = new NonEmptyList(module_0.
|
|
898
|
+
var tmp0 = new NonEmptyList(module_0.hp_1);
|
|
883
899
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
884
900
|
var destination = ArrayList_init_$Create$();
|
|
885
901
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -905,7 +921,7 @@ function isEnum(_this__u8e3s4, module_0) {
|
|
|
905
921
|
var _iterator__ex2g4s_0 = destination.t();
|
|
906
922
|
while (_iterator__ex2g4s_0.u()) {
|
|
907
923
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
908
|
-
if (element_0.
|
|
924
|
+
if (element_0.rs_1.o1() === _this__u8e3s4.o1()) {
|
|
909
925
|
tmp$ret$2 = true;
|
|
910
926
|
break $l$block_0;
|
|
911
927
|
}
|
|
@@ -920,10 +936,10 @@ function emitAvroSchema(packageName, definition, module_0) {
|
|
|
920
936
|
var $this$with = AvroJsonEmitter_getInstance();
|
|
921
937
|
var tmp;
|
|
922
938
|
if (definition instanceof Type) {
|
|
923
|
-
tmp = $this$with.
|
|
939
|
+
tmp = $this$with.s31(definition, module_0, mutableListOf([definition.lp_1.o1()])).r32(VOID, VOID, packageName.bt_1);
|
|
924
940
|
} else {
|
|
925
941
|
if (definition instanceof Enum_0) {
|
|
926
|
-
tmp = $this$with.
|
|
942
|
+
tmp = $this$with.p31(definition);
|
|
927
943
|
} else {
|
|
928
944
|
tmp = null;
|
|
929
945
|
}
|
|
@@ -946,11 +962,11 @@ function emitAvroSchema(packageName, definition, module_0) {
|
|
|
946
962
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
947
963
|
var this_0 = Default_getInstance();
|
|
948
964
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
949
|
-
var this_1 = this_0.
|
|
965
|
+
var this_1 = this_0.l25();
|
|
950
966
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
951
967
|
var this_2 = serializer(this_1, createKType(getKClass(Type_0), arrayOf([]), false));
|
|
952
968
|
var tmp$ret$6 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
953
|
-
tmp_1 = this_0.
|
|
969
|
+
tmp_1 = this_0.q2m(tmp$ret$6, tmp1_safe_receiver);
|
|
954
970
|
}
|
|
955
971
|
var tmp2_safe_receiver = tmp_1;
|
|
956
972
|
return tmp2_safe_receiver == null ? null : escaped(tmp2_safe_receiver);
|
|
@@ -959,16 +975,16 @@ function flatten(_this__u8e3s4, defined) {
|
|
|
959
975
|
_init_properties_AvroExtension_kt__50nkjp();
|
|
960
976
|
var tmp;
|
|
961
977
|
if (_this__u8e3s4 instanceof RecordType) {
|
|
962
|
-
defined.x(_this__u8e3s4.
|
|
978
|
+
defined.x(_this__u8e3s4.v30_1);
|
|
963
979
|
// Inline function 'kotlin.collections.map' call
|
|
964
|
-
var this_0 = _this__u8e3s4.
|
|
980
|
+
var this_0 = _this__u8e3s4.x30_1;
|
|
965
981
|
// Inline function 'kotlin.collections.mapTo' call
|
|
966
982
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
967
983
|
var _iterator__ex2g4s = this_0.t();
|
|
968
984
|
while (_iterator__ex2g4s.u()) {
|
|
969
985
|
var item = _iterator__ex2g4s.v();
|
|
970
986
|
// Inline function 'kotlin.collections.map' call
|
|
971
|
-
var this_1 = item.
|
|
987
|
+
var this_1 = item.c31_1;
|
|
972
988
|
// Inline function 'kotlin.collections.mapTo' call
|
|
973
989
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
974
990
|
var _iterator__ex2g4s_0 = this_1.t();
|
|
@@ -977,17 +993,17 @@ function flatten(_this__u8e3s4, defined) {
|
|
|
977
993
|
var tmp$ret$5 = flatten(item_0, defined);
|
|
978
994
|
destination_0.x(tmp$ret$5);
|
|
979
995
|
}
|
|
980
|
-
var tmp$ret$2 = item.
|
|
996
|
+
var tmp$ret$2 = item.m32(VOID, TypeList_init_$Create$(destination_0));
|
|
981
997
|
destination.x(tmp$ret$2);
|
|
982
998
|
}
|
|
983
|
-
tmp = _this__u8e3s4.
|
|
999
|
+
tmp = _this__u8e3s4.r32(VOID, VOID, VOID, destination);
|
|
984
1000
|
} else {
|
|
985
1001
|
if (_this__u8e3s4 instanceof ArrayType) {
|
|
986
|
-
tmp = _this__u8e3s4.
|
|
1002
|
+
tmp = _this__u8e3s4.t32(VOID, flatten(_this__u8e3s4.a31_1, defined));
|
|
987
1003
|
} else {
|
|
988
1004
|
if (_this__u8e3s4 instanceof EnumType) {
|
|
989
1005
|
// Inline function 'kotlin.also' call
|
|
990
|
-
defined.x(_this__u8e3s4.
|
|
1006
|
+
defined.x(_this__u8e3s4.r30_1);
|
|
991
1007
|
tmp = _this__u8e3s4;
|
|
992
1008
|
} else {
|
|
993
1009
|
if (_this__u8e3s4 instanceof LogicalType) {
|
|
@@ -995,20 +1011,20 @@ function flatten(_this__u8e3s4, defined) {
|
|
|
995
1011
|
} else {
|
|
996
1012
|
if (_this__u8e3s4 instanceof SimpleType) {
|
|
997
1013
|
var tmp_0;
|
|
998
|
-
if (get_AVRO_PRIMITIVES().i1(_this__u8e3s4.
|
|
1014
|
+
if (get_AVRO_PRIMITIVES().i1(_this__u8e3s4.h30_1) || defined.i1(_this__u8e3s4.h30_1)) {
|
|
999
1015
|
tmp_0 = _this__u8e3s4;
|
|
1000
1016
|
} else {
|
|
1001
|
-
defined.x(_this__u8e3s4.
|
|
1002
|
-
tmp_0 = _this__u8e3s4.
|
|
1017
|
+
defined.x(_this__u8e3s4.h30_1);
|
|
1018
|
+
tmp_0 = _this__u8e3s4.p32('<<<<<' + _this__u8e3s4.h30_1 + '>>>>>');
|
|
1003
1019
|
}
|
|
1004
1020
|
tmp = tmp_0;
|
|
1005
1021
|
} else {
|
|
1006
1022
|
if (_this__u8e3s4 instanceof MapType) {
|
|
1007
|
-
tmp = _this__u8e3s4.
|
|
1023
|
+
tmp = _this__u8e3s4.u32(VOID, flatten(_this__u8e3s4.l30_1, defined));
|
|
1008
1024
|
} else {
|
|
1009
1025
|
if (_this__u8e3s4 instanceof UnionType) {
|
|
1010
1026
|
// Inline function 'kotlin.collections.map' call
|
|
1011
|
-
var this_2 = _this__u8e3s4.
|
|
1027
|
+
var this_2 = _this__u8e3s4.j30_1;
|
|
1012
1028
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1013
1029
|
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
|
|
1014
1030
|
var _iterator__ex2g4s_1 = this_2.t();
|
|
@@ -1017,7 +1033,7 @@ function flatten(_this__u8e3s4, defined) {
|
|
|
1017
1033
|
var tmp$ret$10 = flatten(item_1, defined);
|
|
1018
1034
|
destination_1.x(tmp$ret$10);
|
|
1019
1035
|
}
|
|
1020
|
-
tmp = _this__u8e3s4.
|
|
1036
|
+
tmp = _this__u8e3s4.w32(VOID, TypeList_init_$Create$(destination_1));
|
|
1021
1037
|
} else {
|
|
1022
1038
|
noWhenBranchMatchedException();
|
|
1023
1039
|
}
|
|
@@ -1031,9 +1047,9 @@ function flatten(_this__u8e3s4, defined) {
|
|
|
1031
1047
|
}
|
|
1032
1048
|
function typeAvroFile$lambda$lambda$lambda($typeName, $fromArgs) {
|
|
1033
1049
|
return function ($this$function) {
|
|
1034
|
-
$this$function.
|
|
1035
|
-
$this$function.
|
|
1036
|
-
var tmp = $this$function.
|
|
1050
|
+
$this$function.a14('record', $this$function.e15('org.apache.avro.generic.GenericData.Record', []));
|
|
1051
|
+
$this$function.x13($this$function.e15($typeName, []));
|
|
1052
|
+
var tmp = $this$function.e15($typeName, []);
|
|
1037
1053
|
// Inline function 'kotlin.collections.associate' call
|
|
1038
1054
|
var this_0 = $fromArgs;
|
|
1039
1055
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
@@ -1042,80 +1058,80 @@ function typeAvroFile$lambda$lambda$lambda($typeName, $fromArgs) {
|
|
|
1042
1058
|
var _iterator__ex2g4s = this_0.t();
|
|
1043
1059
|
while (_iterator__ex2g4s.u()) {
|
|
1044
1060
|
var element = _iterator__ex2g4s.v();
|
|
1045
|
-
var name = element.
|
|
1046
|
-
var value = element.
|
|
1047
|
-
var tmp_0 = Companion_getInstance().
|
|
1061
|
+
var name = element.af();
|
|
1062
|
+
var value = element.bf();
|
|
1063
|
+
var tmp_0 = Companion_getInstance().au(name);
|
|
1048
1064
|
var tmp_1 = new RawExpression(value);
|
|
1049
1065
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1050
1066
|
var pair = to(tmp_0, isInterface(tmp_1, Expression) ? tmp_1 : THROW_CCE());
|
|
1051
|
-
destination.
|
|
1067
|
+
destination.w2(pair.gf_1, pair.hf_1);
|
|
1052
1068
|
}
|
|
1053
|
-
$this$function.
|
|
1069
|
+
$this$function.d14(new ConstructorStatement(tmp, destination));
|
|
1054
1070
|
return Unit_instance;
|
|
1055
1071
|
};
|
|
1056
1072
|
}
|
|
1057
1073
|
function typeAvroFile$lambda$lambda$lambda_0($typeName, $recordConstructor, $toPuts) {
|
|
1058
1074
|
return function ($this$function) {
|
|
1059
|
-
$this$function.
|
|
1060
|
-
$this$function.
|
|
1061
|
-
$this$function.
|
|
1075
|
+
$this$function.a14('data', $this$function.e15($typeName, []));
|
|
1076
|
+
$this$function.x13($this$function.e15('org.apache.avro.generic.GenericData.Record', []));
|
|
1077
|
+
$this$function.e14('record', new RawExpression($recordConstructor));
|
|
1062
1078
|
// Inline function 'kotlin.collections.forEach' call
|
|
1063
1079
|
var _iterator__ex2g4s = $toPuts.t();
|
|
1064
1080
|
while (_iterator__ex2g4s.u()) {
|
|
1065
1081
|
var element = _iterator__ex2g4s.v();
|
|
1066
|
-
$this$function.
|
|
1082
|
+
$this$function.w14(element);
|
|
1067
1083
|
}
|
|
1068
|
-
$this$function.
|
|
1084
|
+
$this$function.d14(new VariableReference(Companion_getInstance().au('record')));
|
|
1069
1085
|
return Unit_instance;
|
|
1070
1086
|
};
|
|
1071
1087
|
}
|
|
1072
1088
|
function typeAvroFile$lambda$lambda($schemaField, $typeName, $fromArgs, $recordConstructor, $toPuts) {
|
|
1073
1089
|
return function ($this$namespace) {
|
|
1074
|
-
$this$namespace.
|
|
1075
|
-
$this$namespace.
|
|
1076
|
-
$this$namespace.
|
|
1090
|
+
$this$namespace.w14($schemaField);
|
|
1091
|
+
$this$namespace.k16('from', true, VOID, typeAvroFile$lambda$lambda$lambda($typeName, $fromArgs));
|
|
1092
|
+
$this$namespace.k16('to', true, VOID, typeAvroFile$lambda$lambda$lambda_0($typeName, $recordConstructor, $toPuts));
|
|
1077
1093
|
return Unit_instance;
|
|
1078
1094
|
};
|
|
1079
1095
|
}
|
|
1080
1096
|
function typeAvroFile$lambda($packageName, $typeName, $schemaField, $fromArgs, $recordConstructor, $toPuts) {
|
|
1081
1097
|
return function ($this$file) {
|
|
1082
|
-
$this$file.
|
|
1083
|
-
$this$file.
|
|
1098
|
+
$this$file.q17($packageName.bt_1 + '.avro');
|
|
1099
|
+
$this$file.g16($packageName.bt_1 + '.model', $typeName);
|
|
1084
1100
|
var tmp = $typeName + 'Avro';
|
|
1085
|
-
$this$file.
|
|
1101
|
+
$this$file.s16(tmp, VOID, typeAvroFile$lambda$lambda($schemaField, $typeName, $fromArgs, $recordConstructor, $toPuts));
|
|
1086
1102
|
return Unit_instance;
|
|
1087
1103
|
};
|
|
1088
1104
|
}
|
|
1089
1105
|
function enumAvroFile$lambda$lambda$lambda($enumName, $fromExpr) {
|
|
1090
1106
|
return function ($this$function) {
|
|
1091
|
-
$this$function.
|
|
1092
|
-
$this$function.
|
|
1093
|
-
$this$function.
|
|
1107
|
+
$this$function.a14('record', $this$function.e15('org.apache.avro.generic.GenericData.EnumSymbol', []));
|
|
1108
|
+
$this$function.x13($this$function.e15($enumName, []));
|
|
1109
|
+
$this$function.d14(new RawExpression($fromExpr));
|
|
1094
1110
|
return Unit_instance;
|
|
1095
1111
|
};
|
|
1096
1112
|
}
|
|
1097
1113
|
function enumAvroFile$lambda$lambda$lambda_0($enumName, $toExpr) {
|
|
1098
1114
|
return function ($this$function) {
|
|
1099
|
-
$this$function.
|
|
1100
|
-
$this$function.
|
|
1101
|
-
$this$function.
|
|
1115
|
+
$this$function.a14('data', $this$function.e15($enumName, []));
|
|
1116
|
+
$this$function.x13($this$function.e15('org.apache.avro.generic.GenericData.EnumSymbol', []));
|
|
1117
|
+
$this$function.d14(new RawExpression($toExpr));
|
|
1102
1118
|
return Unit_instance;
|
|
1103
1119
|
};
|
|
1104
1120
|
}
|
|
1105
1121
|
function enumAvroFile$lambda$lambda($schemaField, $enumName, $fromExpr, $toExpr) {
|
|
1106
1122
|
return function ($this$namespace) {
|
|
1107
|
-
$this$namespace.
|
|
1108
|
-
$this$namespace.
|
|
1109
|
-
$this$namespace.
|
|
1123
|
+
$this$namespace.w14($schemaField);
|
|
1124
|
+
$this$namespace.k16('from', true, VOID, enumAvroFile$lambda$lambda$lambda($enumName, $fromExpr));
|
|
1125
|
+
$this$namespace.k16('to', true, VOID, enumAvroFile$lambda$lambda$lambda_0($enumName, $toExpr));
|
|
1110
1126
|
return Unit_instance;
|
|
1111
1127
|
};
|
|
1112
1128
|
}
|
|
1113
1129
|
function enumAvroFile$lambda($packageName, $enumName, $schemaField, $fromExpr, $toExpr) {
|
|
1114
1130
|
return function ($this$file) {
|
|
1115
|
-
$this$file.
|
|
1116
|
-
$this$file.
|
|
1131
|
+
$this$file.q17($packageName.bt_1 + '.avro');
|
|
1132
|
+
$this$file.g16($packageName.bt_1 + '.model', $enumName);
|
|
1117
1133
|
var tmp = $enumName + 'Avro';
|
|
1118
|
-
$this$file.
|
|
1134
|
+
$this$file.s16(tmp, VOID, enumAvroFile$lambda$lambda($schemaField, $enumName, $fromExpr, $toExpr));
|
|
1119
1135
|
return Unit_instance;
|
|
1120
1136
|
};
|
|
1121
1137
|
}
|
|
@@ -1128,7 +1144,7 @@ function _init_properties_AvroExtension_kt__50nkjp() {
|
|
|
1128
1144
|
}
|
|
1129
1145
|
function annotate($this, $receiver, recordNames, unionMemberNames) {
|
|
1130
1146
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1131
|
-
var tmp0 = $receiver.
|
|
1147
|
+
var tmp0 = $receiver.gv_1;
|
|
1132
1148
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1133
1149
|
var destination = ArrayList_init_$Create$();
|
|
1134
1150
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -1136,11 +1152,11 @@ function annotate($this, $receiver, recordNames, unionMemberNames) {
|
|
|
1136
1152
|
var element = _iterator__ex2g4s.v();
|
|
1137
1153
|
var tmp;
|
|
1138
1154
|
if (element instanceof Union) {
|
|
1139
|
-
tmp = listOf_0([Companion_getInstance_0().
|
|
1155
|
+
tmp = listOf_0([Companion_getInstance_0().m33_1, element]);
|
|
1140
1156
|
} else {
|
|
1141
1157
|
if (element instanceof Struct) {
|
|
1142
|
-
var pascal = element.
|
|
1143
|
-
tmp = !recordNames.i1(pascal) ? listOf(element) : unionMemberNames.i1(pascal) ? listOf_0([Companion_getInstance_0().
|
|
1158
|
+
var pascal = element.fx_1.du();
|
|
1159
|
+
tmp = !recordNames.i1(pascal) ? listOf(element) : unionMemberNames.i1(pascal) ? listOf_0([Companion_getInstance_0().n33(pascal), annotateFields($this, element)]) : listOf(annotateFields($this, element));
|
|
1144
1160
|
} else {
|
|
1145
1161
|
tmp = listOf(element);
|
|
1146
1162
|
}
|
|
@@ -1148,11 +1164,11 @@ function annotate($this, $receiver, recordNames, unionMemberNames) {
|
|
|
1148
1164
|
var list = tmp;
|
|
1149
1165
|
addAll(destination, list);
|
|
1150
1166
|
}
|
|
1151
|
-
return $receiver.
|
|
1167
|
+
return $receiver.jv(VOID, destination);
|
|
1152
1168
|
}
|
|
1153
1169
|
function annotateFields($this, $receiver) {
|
|
1154
1170
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1155
|
-
var tmp0 = $receiver.
|
|
1171
|
+
var tmp0 = $receiver.gx_1;
|
|
1156
1172
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1157
1173
|
var destination = ArrayList_init_$Create$();
|
|
1158
1174
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -1160,24 +1176,24 @@ function annotateFields($this, $receiver) {
|
|
|
1160
1176
|
var element = _iterator__ex2g4s.v();
|
|
1161
1177
|
var tmp;
|
|
1162
1178
|
if (element instanceof Field) {
|
|
1163
|
-
tmp = listOf_0([Companion_getInstance_0().
|
|
1179
|
+
tmp = listOf_0([Companion_getInstance_0().o33(element.aw_1.bu()), element]);
|
|
1164
1180
|
} else {
|
|
1165
1181
|
tmp = listOf(element);
|
|
1166
1182
|
}
|
|
1167
1183
|
var list = tmp;
|
|
1168
1184
|
addAll(destination, list);
|
|
1169
1185
|
}
|
|
1170
|
-
return $receiver.
|
|
1186
|
+
return $receiver.qx(VOID, destination);
|
|
1171
1187
|
}
|
|
1172
1188
|
function Companion() {
|
|
1173
1189
|
Companion_instance_1 = this;
|
|
1174
|
-
this.
|
|
1175
|
-
this.
|
|
1190
|
+
this.l33_1 = 'com.fasterxml.jackson.annotation';
|
|
1191
|
+
this.m33_1 = new RawElement('@com.fasterxml.jackson.annotation.JsonTypeInfo(use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, property = "type")\n');
|
|
1176
1192
|
}
|
|
1177
|
-
protoOf(Companion).
|
|
1193
|
+
protoOf(Companion).o33 = function (name) {
|
|
1178
1194
|
return new RawElement('@com.fasterxml.jackson.annotation.JsonProperty("' + name + '")');
|
|
1179
1195
|
};
|
|
1180
|
-
protoOf(Companion).
|
|
1196
|
+
protoOf(Companion).n33 = function (name) {
|
|
1181
1197
|
return new RawElement('@com.fasterxml.jackson.annotation.JsonTypeName("' + name + '")\n');
|
|
1182
1198
|
};
|
|
1183
1199
|
var Companion_instance_1;
|
|
@@ -1187,44 +1203,44 @@ function Companion_getInstance_0() {
|
|
|
1187
1203
|
return Companion_instance_1;
|
|
1188
1204
|
}
|
|
1189
1205
|
function JacksonExtension$extend$lambda(it) {
|
|
1190
|
-
return new NonEmptyList(it.
|
|
1206
|
+
return new NonEmptyList(it.hp_1);
|
|
1191
1207
|
}
|
|
1192
1208
|
function JacksonExtension$extend$lambda_0(it) {
|
|
1193
1209
|
return it instanceof Type;
|
|
1194
1210
|
}
|
|
1195
1211
|
function JacksonExtension$extend$lambda_1(it) {
|
|
1196
|
-
return it.
|
|
1212
|
+
return it.lp_1.o1();
|
|
1197
1213
|
}
|
|
1198
1214
|
function Name$Companion$of$ref(p0) {
|
|
1199
1215
|
var l = function (_this__u8e3s4) {
|
|
1200
|
-
return p0.
|
|
1216
|
+
return p0.au(_this__u8e3s4);
|
|
1201
1217
|
};
|
|
1202
1218
|
l.callableName = 'of';
|
|
1203
1219
|
return l;
|
|
1204
1220
|
}
|
|
1205
1221
|
function JacksonExtension$extend$lambda_2(it) {
|
|
1206
|
-
return it.
|
|
1222
|
+
return it.du();
|
|
1207
1223
|
}
|
|
1208
1224
|
function JacksonExtension$extend$lambda_3(it) {
|
|
1209
1225
|
return it instanceof File;
|
|
1210
1226
|
}
|
|
1211
1227
|
function JacksonExtension$extend$lambda_4(it) {
|
|
1212
|
-
return it.
|
|
1228
|
+
return it.gv_1;
|
|
1213
1229
|
}
|
|
1214
1230
|
function JacksonExtension$extend$lambda_5(it) {
|
|
1215
1231
|
return it instanceof Union;
|
|
1216
1232
|
}
|
|
1217
1233
|
function JacksonExtension$extend$lambda_6(it) {
|
|
1218
|
-
return it.
|
|
1234
|
+
return it.nw_1;
|
|
1219
1235
|
}
|
|
1220
1236
|
function JacksonExtension$extend$lambda_7(it) {
|
|
1221
|
-
return it.
|
|
1237
|
+
return it.ru_1.du();
|
|
1222
1238
|
}
|
|
1223
1239
|
function JacksonExtension() {
|
|
1224
1240
|
Companion_getInstance_0();
|
|
1225
1241
|
}
|
|
1226
|
-
protoOf(JacksonExtension).
|
|
1227
|
-
var tmp = asSequence_0(new NonEmptyList(ast.
|
|
1242
|
+
protoOf(JacksonExtension).j1b = function (ir, ast) {
|
|
1243
|
+
var tmp = asSequence_0(new NonEmptyList(ast.fp_1));
|
|
1228
1244
|
// Inline function 'kotlin.sequences.filterIsInstance' call
|
|
1229
1245
|
var this_0 = flatMap(tmp, JacksonExtension$extend$lambda);
|
|
1230
1246
|
var tmp_0 = filter(this_0, JacksonExtension$extend$lambda_0);
|
|
@@ -1273,13 +1289,13 @@ function Target(name, ordinal) {
|
|
|
1273
1289
|
Enum.call(this, name, ordinal);
|
|
1274
1290
|
}
|
|
1275
1291
|
function Model_0(type, builder, fields) {
|
|
1276
|
-
this.
|
|
1277
|
-
this.
|
|
1278
|
-
this.
|
|
1292
|
+
this.p33_1 = type;
|
|
1293
|
+
this.q33_1 = builder;
|
|
1294
|
+
this.r33_1 = fields;
|
|
1279
1295
|
}
|
|
1280
1296
|
function withBuilders($this, $receiver, target, recordNames) {
|
|
1281
1297
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1282
|
-
var tmp0 = $receiver.
|
|
1298
|
+
var tmp0 = $receiver.gv_1;
|
|
1283
1299
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1284
1300
|
var destination = ArrayList_init_$Create$();
|
|
1285
1301
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -1304,19 +1320,19 @@ function withBuilders($this, $receiver, target, recordNames) {
|
|
|
1304
1320
|
var list = tmp2_elvis_lhs == null ? listOf(element) : tmp2_elvis_lhs;
|
|
1305
1321
|
addAll(destination, list);
|
|
1306
1322
|
}
|
|
1307
|
-
return $receiver.
|
|
1323
|
+
return $receiver.jv(VOID, destination);
|
|
1308
1324
|
}
|
|
1309
1325
|
function isRecord($this, $receiver, recordNames) {
|
|
1310
1326
|
var tmp;
|
|
1311
1327
|
var tmp_0;
|
|
1312
|
-
if (recordNames.i1($receiver.
|
|
1328
|
+
if (recordNames.i1($receiver.fx_1.du())) {
|
|
1313
1329
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1314
1330
|
tmp_0 = !fieldList($receiver).r();
|
|
1315
1331
|
} else {
|
|
1316
1332
|
tmp_0 = false;
|
|
1317
1333
|
}
|
|
1318
1334
|
if (tmp_0) {
|
|
1319
|
-
var tmp0 = $receiver.
|
|
1335
|
+
var tmp0 = $receiver.jx_1;
|
|
1320
1336
|
var tmp$ret$1;
|
|
1321
1337
|
$l$block_0: {
|
|
1322
1338
|
// Inline function 'kotlin.collections.none' call
|
|
@@ -1335,7 +1351,7 @@ function isRecord($this, $receiver, recordNames) {
|
|
|
1335
1351
|
var element = _iterator__ex2g4s.v();
|
|
1336
1352
|
var tmp_2;
|
|
1337
1353
|
if (element instanceof Struct) {
|
|
1338
|
-
tmp_2 = element.
|
|
1354
|
+
tmp_2 = element.fx_1.equals(Companion_getInstance_1().s33_1);
|
|
1339
1355
|
} else {
|
|
1340
1356
|
tmp_2 = false;
|
|
1341
1357
|
}
|
|
@@ -1354,15 +1370,15 @@ function isRecord($this, $receiver, recordNames) {
|
|
|
1354
1370
|
}
|
|
1355
1371
|
function withBuilder($this, $receiver, target) {
|
|
1356
1372
|
// Inline function 'kotlin.let' call
|
|
1357
|
-
var pascal = $receiver.
|
|
1373
|
+
var pascal = $receiver.fx_1.du();
|
|
1358
1374
|
var tmp;
|
|
1359
|
-
switch (target.
|
|
1375
|
+
switch (target.f3_1) {
|
|
1360
1376
|
case 0:
|
|
1361
1377
|
case 1:
|
|
1362
|
-
tmp = Custom_init_$Create$(Companion_getInstance_1().
|
|
1378
|
+
tmp = Custom_init_$Create$(Companion_getInstance_1().s33_1.bu());
|
|
1363
1379
|
break;
|
|
1364
1380
|
case 2:
|
|
1365
|
-
tmp = Custom_init_$Create$(pascal + '.' + Companion_getInstance_1().
|
|
1381
|
+
tmp = Custom_init_$Create$(pascal + '.' + Companion_getInstance_1().s33_1.bu());
|
|
1366
1382
|
break;
|
|
1367
1383
|
default:
|
|
1368
1384
|
noWhenBranchMatchedException();
|
|
@@ -1371,14 +1387,14 @@ function withBuilder($this, $receiver, target) {
|
|
|
1371
1387
|
var builder_0 = tmp;
|
|
1372
1388
|
var model = new Model_0(Custom_init_$Create$(pascal), builder_0, fieldList($receiver));
|
|
1373
1389
|
var tmp_0;
|
|
1374
|
-
switch (target.
|
|
1390
|
+
switch (target.f3_1) {
|
|
1375
1391
|
case 0:
|
|
1376
|
-
tmp_0 = listOf($receiver.
|
|
1392
|
+
tmp_0 = listOf($receiver.qx(VOID, VOID, VOID, VOID, plus_0(plus_0(plus_0($receiver.jx_1, entryPoint($this, model)), toBuilder($this, model)), builder($this, model, target))));
|
|
1377
1393
|
break;
|
|
1378
1394
|
case 1:
|
|
1379
1395
|
// Inline function 'kotlin.collections.filterNot' call
|
|
1380
1396
|
|
|
1381
|
-
var tmp0 = $receiver.
|
|
1397
|
+
var tmp0 = $receiver.jx_1;
|
|
1382
1398
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
1383
1399
|
|
|
1384
1400
|
var destination = ArrayList_init_$Create$();
|
|
@@ -1388,7 +1404,7 @@ function withBuilder($this, $receiver, target) {
|
|
|
1388
1404
|
var tmp_1;
|
|
1389
1405
|
if (element instanceof RawElement) {
|
|
1390
1406
|
// Inline function 'kotlin.text.trim' call
|
|
1391
|
-
var this_0 = element.
|
|
1407
|
+
var this_0 = element.ey_1;
|
|
1392
1408
|
tmp_1 = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())) === 'companion object';
|
|
1393
1409
|
} else {
|
|
1394
1410
|
tmp_1 = false;
|
|
@@ -1398,10 +1414,10 @@ function withBuilder($this, $receiver, target) {
|
|
|
1398
1414
|
}
|
|
1399
1415
|
}
|
|
1400
1416
|
|
|
1401
|
-
tmp_0 = listOf($receiver.
|
|
1417
|
+
tmp_0 = listOf($receiver.qx(VOID, VOID, VOID, VOID, plus_0(plus_0(plus_0(destination, Companion_getInstance_1().u33_1), toBuilder($this, model)), builder($this, model, target))));
|
|
1402
1418
|
break;
|
|
1403
1419
|
case 2:
|
|
1404
|
-
tmp_0 = listOf_0([$receiver.
|
|
1420
|
+
tmp_0 = listOf_0([$receiver.qx(VOID, VOID, VOID, VOID, plus_0($receiver.jx_1, toBuilder($this, model))), new Namespace($receiver.fx_1, listOf_0([entryPoint($this, model), builder($this, model, target)]))]);
|
|
1405
1421
|
break;
|
|
1406
1422
|
default:
|
|
1407
1423
|
noWhenBranchMatchedException();
|
|
@@ -1410,10 +1426,10 @@ function withBuilder($this, $receiver, target) {
|
|
|
1410
1426
|
return tmp_0;
|
|
1411
1427
|
}
|
|
1412
1428
|
function entryPoint($this, $receiver) {
|
|
1413
|
-
var tmp = Companion_getInstance().
|
|
1429
|
+
var tmp = Companion_getInstance().au('builder');
|
|
1414
1430
|
var tmp_0 = emptyList();
|
|
1415
1431
|
// Inline function 'kotlin.collections.associate' call
|
|
1416
|
-
var this_0 = $receiver.
|
|
1432
|
+
var this_0 = $receiver.r33_1;
|
|
1417
1433
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1418
1434
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1419
1435
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -1421,16 +1437,16 @@ function entryPoint($this, $receiver) {
|
|
|
1421
1437
|
while (_iterator__ex2g4s.u()) {
|
|
1422
1438
|
var element = _iterator__ex2g4s.v();
|
|
1423
1439
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1424
|
-
var pair = to(element.
|
|
1425
|
-
destination.
|
|
1440
|
+
var pair = to(element.aw_1, NullableEmpty_instance);
|
|
1441
|
+
destination.w2(pair.gf_1, pair.hf_1);
|
|
1426
1442
|
}
|
|
1427
|
-
return new Function(tmp, VOID, tmp_0, $receiver.
|
|
1443
|
+
return new Function(tmp, VOID, tmp_0, $receiver.q33_1, listOf(new ReturnStatement(new ConstructorStatement($receiver.q33_1, destination))), VOID, true);
|
|
1428
1444
|
}
|
|
1429
1445
|
function toBuilder($this, $receiver) {
|
|
1430
|
-
var tmp = Companion_getInstance().
|
|
1446
|
+
var tmp = Companion_getInstance().au('toBuilder');
|
|
1431
1447
|
var tmp_0 = emptyList();
|
|
1432
1448
|
// Inline function 'kotlin.collections.associate' call
|
|
1433
|
-
var this_0 = $receiver.
|
|
1449
|
+
var this_0 = $receiver.r33_1;
|
|
1434
1450
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1435
1451
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1436
1452
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -1440,7 +1456,7 @@ function toBuilder($this, $receiver) {
|
|
|
1440
1456
|
// Inline function 'kotlin.let' call
|
|
1441
1457
|
var self_1 = self_0($this, element);
|
|
1442
1458
|
var tmp_1;
|
|
1443
|
-
var tmp_2 = element.
|
|
1459
|
+
var tmp_2 = element.bw_1;
|
|
1444
1460
|
if (tmp_2 instanceof Nullable) {
|
|
1445
1461
|
tmp_1 = self_1;
|
|
1446
1462
|
} else {
|
|
@@ -1448,26 +1464,26 @@ function toBuilder($this, $receiver) {
|
|
|
1448
1464
|
}
|
|
1449
1465
|
var tmp$ret$3 = tmp_1;
|
|
1450
1466
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1451
|
-
var pair = to(element.
|
|
1452
|
-
destination.
|
|
1467
|
+
var pair = to(element.aw_1, tmp$ret$3);
|
|
1468
|
+
destination.w2(pair.gf_1, pair.hf_1);
|
|
1453
1469
|
}
|
|
1454
|
-
return new Function(tmp, VOID, tmp_0, $receiver.
|
|
1470
|
+
return new Function(tmp, VOID, tmp_0, $receiver.q33_1, listOf(new ReturnStatement(new ConstructorStatement($receiver.q33_1, destination))));
|
|
1455
1471
|
}
|
|
1456
1472
|
function builder($this, $receiver, target) {
|
|
1457
|
-
var tmp = Companion_getInstance_1().
|
|
1473
|
+
var tmp = Companion_getInstance_1().s33_1;
|
|
1458
1474
|
// Inline function 'kotlin.collections.map' call
|
|
1459
|
-
var this_0 = $receiver.
|
|
1475
|
+
var this_0 = $receiver.r33_1;
|
|
1460
1476
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1461
1477
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
1462
1478
|
var _iterator__ex2g4s = this_0.t();
|
|
1463
1479
|
while (_iterator__ex2g4s.u()) {
|
|
1464
1480
|
var item = _iterator__ex2g4s.v();
|
|
1465
|
-
var tmp$ret$2 = new Field(item.
|
|
1481
|
+
var tmp$ret$2 = new Field(item.aw_1, optional($this, item.bw_1), VOID, VOID, VOID, VOID, VOID, NullableEmpty_instance);
|
|
1466
1482
|
destination.x(tmp$ret$2);
|
|
1467
1483
|
}
|
|
1468
1484
|
var tmp_0 = destination;
|
|
1469
1485
|
// Inline function 'kotlin.collections.map' call
|
|
1470
|
-
var this_1 = $receiver.
|
|
1486
|
+
var this_1 = $receiver.r33_1;
|
|
1471
1487
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1472
1488
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
1473
1489
|
var _iterator__ex2g4s_0 = this_1.t();
|
|
@@ -1479,10 +1495,10 @@ function builder($this, $receiver, target) {
|
|
|
1479
1495
|
return new Struct(tmp, tmp_0, VOID, VOID, plus_0(destination_0, build($this, $receiver, target)), VOID, Visibility_PUBLIC_getInstance());
|
|
1480
1496
|
}
|
|
1481
1497
|
function wither($this, $receiver, field) {
|
|
1482
|
-
var tmp = new Name(plus(listOf('with'), Companion_getInstance().
|
|
1483
|
-
var tmp_0 = listOf(new Parameter(Companion_getInstance_1().
|
|
1498
|
+
var tmp = new Name(plus(listOf('with'), Companion_getInstance().au(field.aw_1.bu()).yt_1));
|
|
1499
|
+
var tmp_0 = listOf(new Parameter(Companion_getInstance_1().t33_1, required($this, field.bw_1)));
|
|
1484
1500
|
// Inline function 'kotlin.collections.associate' call
|
|
1485
|
-
var this_0 = $receiver.
|
|
1501
|
+
var this_0 = $receiver.r33_1;
|
|
1486
1502
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1487
1503
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1488
1504
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -1490,16 +1506,16 @@ function wither($this, $receiver, field) {
|
|
|
1490
1506
|
while (_iterator__ex2g4s.u()) {
|
|
1491
1507
|
var element = _iterator__ex2g4s.v();
|
|
1492
1508
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1493
|
-
var pair = to(element.
|
|
1494
|
-
destination.
|
|
1509
|
+
var pair = to(element.aw_1, element.aw_1.equals(field.aw_1) ? new NullableOf(new VariableReference(Companion_getInstance_1().t33_1)) : self_0($this, element));
|
|
1510
|
+
destination.w2(pair.gf_1, pair.hf_1);
|
|
1495
1511
|
}
|
|
1496
|
-
return new Function(tmp, VOID, tmp_0, $receiver.
|
|
1512
|
+
return new Function(tmp, VOID, tmp_0, $receiver.q33_1, listOf(new ReturnStatement(new ConstructorStatement($receiver.q33_1, destination))));
|
|
1497
1513
|
}
|
|
1498
1514
|
function build($this, $receiver, target) {
|
|
1499
|
-
var tmp = Companion_getInstance().
|
|
1515
|
+
var tmp = Companion_getInstance().au('build');
|
|
1500
1516
|
var tmp_0 = emptyList();
|
|
1501
1517
|
// Inline function 'kotlin.collections.associate' call
|
|
1502
|
-
var this_0 = $receiver.
|
|
1518
|
+
var this_0 = $receiver.r33_1;
|
|
1503
1519
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1504
1520
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1505
1521
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -1507,31 +1523,31 @@ function build($this, $receiver, target) {
|
|
|
1507
1523
|
while (_iterator__ex2g4s.u()) {
|
|
1508
1524
|
var element = _iterator__ex2g4s.v();
|
|
1509
1525
|
var tmp_1;
|
|
1510
|
-
var tmp_2 = element.
|
|
1526
|
+
var tmp_2 = element.bw_1;
|
|
1511
1527
|
if (tmp_2 instanceof Nullable) {
|
|
1512
1528
|
tmp_1 = self_0($this, element);
|
|
1513
1529
|
} else {
|
|
1514
|
-
tmp_1 = require_0($this, element, target, $receiver.
|
|
1530
|
+
tmp_1 = require_0($this, element, target, $receiver.p33_1);
|
|
1515
1531
|
}
|
|
1516
1532
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1517
|
-
var pair = to(element.
|
|
1518
|
-
destination.
|
|
1533
|
+
var pair = to(element.aw_1, tmp_1);
|
|
1534
|
+
destination.w2(pair.gf_1, pair.hf_1);
|
|
1519
1535
|
}
|
|
1520
|
-
return new Function(tmp, VOID, tmp_0, $receiver.
|
|
1536
|
+
return new Function(tmp, VOID, tmp_0, $receiver.p33_1, listOf(new ReturnStatement(new ConstructorStatement($receiver.p33_1, destination))));
|
|
1521
1537
|
}
|
|
1522
1538
|
function require_0($this, $receiver, target, model) {
|
|
1523
1539
|
// Inline function 'kotlin.let' call
|
|
1524
|
-
var message = model.
|
|
1540
|
+
var message = model.ru_1.du() + '.' + trim_0($receiver.aw_1.bu(), charArrayOf([_Char___init__impl__6a9atx(96)])) + ' is required';
|
|
1525
1541
|
var tmp;
|
|
1526
|
-
switch (target.
|
|
1542
|
+
switch (target.f3_1) {
|
|
1527
1543
|
case 0:
|
|
1528
|
-
tmp = new FunctionCall(self_0($this, $receiver), VOID, Companion_getInstance().
|
|
1544
|
+
tmp = new FunctionCall(self_0($this, $receiver), VOID, Companion_getInstance().au('orElseThrow'), mapOf(to(Companion_getInstance().au('exceptionSupplier'), new RawExpression('() -> new IllegalStateException("' + message + '")'))));
|
|
1529
1545
|
break;
|
|
1530
1546
|
case 1:
|
|
1531
|
-
tmp = new FunctionCall(VOID, VOID, Companion_getInstance().
|
|
1547
|
+
tmp = new FunctionCall(VOID, VOID, Companion_getInstance().au('checkNotNull'), mapOf_0([to(Companion_getInstance_1().t33_1, self_0($this, $receiver)), to(Companion_getInstance().au('lazyMessage'), new RawExpression('{ "' + message + '" }'))]));
|
|
1532
1548
|
break;
|
|
1533
1549
|
case 2:
|
|
1534
|
-
tmp = new FunctionCall(self_0($this, $receiver), VOID, Companion_getInstance().
|
|
1550
|
+
tmp = new FunctionCall(self_0($this, $receiver), VOID, Companion_getInstance().au('getOrElse'), mapOf(to(Companion_getInstance().au('default'), new RawExpression('throw new IllegalStateException("' + message + '")'))));
|
|
1535
1551
|
break;
|
|
1536
1552
|
default:
|
|
1537
1553
|
noWhenBranchMatchedException();
|
|
@@ -1540,7 +1556,7 @@ function require_0($this, $receiver, target, model) {
|
|
|
1540
1556
|
return tmp;
|
|
1541
1557
|
}
|
|
1542
1558
|
function self_0($this, $receiver) {
|
|
1543
|
-
return new FieldCall(new RawExpression('this'), $receiver.
|
|
1559
|
+
return new FieldCall(new RawExpression('this'), $receiver.aw_1);
|
|
1544
1560
|
}
|
|
1545
1561
|
function optional($this, $receiver) {
|
|
1546
1562
|
var tmp0_elvis_lhs = $receiver instanceof Nullable ? $receiver : null;
|
|
@@ -1548,14 +1564,14 @@ function optional($this, $receiver) {
|
|
|
1548
1564
|
}
|
|
1549
1565
|
function required($this, $receiver) {
|
|
1550
1566
|
var tmp0_safe_receiver = $receiver instanceof Nullable ? $receiver : null;
|
|
1551
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1567
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.vu_1;
|
|
1552
1568
|
return tmp1_elvis_lhs == null ? $receiver : tmp1_elvis_lhs;
|
|
1553
1569
|
}
|
|
1554
1570
|
function Companion_0() {
|
|
1555
1571
|
Companion_instance_2 = this;
|
|
1556
|
-
this.
|
|
1557
|
-
this.
|
|
1558
|
-
this.
|
|
1572
|
+
this.s33_1 = Companion_getInstance().au('Builder');
|
|
1573
|
+
this.t33_1 = Companion_getInstance().au('value');
|
|
1574
|
+
this.u33_1 = new RawElement('companion object {\n fun builder(): Builder = Builder()\n}');
|
|
1559
1575
|
}
|
|
1560
1576
|
var Companion_instance_2;
|
|
1561
1577
|
function Companion_getInstance_1() {
|
|
@@ -1564,13 +1580,13 @@ function Companion_getInstance_1() {
|
|
|
1564
1580
|
return Companion_instance_2;
|
|
1565
1581
|
}
|
|
1566
1582
|
function JvmBuilderExtension$extend$lambda(it) {
|
|
1567
|
-
return new NonEmptyList(it.
|
|
1583
|
+
return new NonEmptyList(it.hp_1);
|
|
1568
1584
|
}
|
|
1569
1585
|
function JvmBuilderExtension$extend$lambda_0(it) {
|
|
1570
1586
|
return it instanceof Type;
|
|
1571
1587
|
}
|
|
1572
1588
|
function JvmBuilderExtension$extend$lambda_1(it) {
|
|
1573
|
-
return Companion_getInstance().
|
|
1589
|
+
return Companion_getInstance().au(it.lp_1.o1()).du();
|
|
1574
1590
|
}
|
|
1575
1591
|
function Target_Java_getInstance() {
|
|
1576
1592
|
Target_initEntries();
|
|
@@ -1586,10 +1602,10 @@ function Target_Scala_getInstance() {
|
|
|
1586
1602
|
}
|
|
1587
1603
|
function JvmBuilderExtension(language) {
|
|
1588
1604
|
Companion_getInstance_1();
|
|
1589
|
-
this.
|
|
1605
|
+
this.v33_1 = language;
|
|
1590
1606
|
var tmp = this;
|
|
1591
1607
|
var tmp_0;
|
|
1592
|
-
switch (this.
|
|
1608
|
+
switch (this.v33_1.f3_1) {
|
|
1593
1609
|
case 0:
|
|
1594
1610
|
tmp_0 = Target_Java_getInstance();
|
|
1595
1611
|
break;
|
|
@@ -1614,16 +1630,16 @@ function JvmBuilderExtension(language) {
|
|
|
1614
1630
|
noWhenBranchMatchedException();
|
|
1615
1631
|
break;
|
|
1616
1632
|
}
|
|
1617
|
-
tmp.
|
|
1633
|
+
tmp.w33_1 = tmp_0;
|
|
1618
1634
|
}
|
|
1619
|
-
protoOf(JvmBuilderExtension).
|
|
1620
|
-
var tmp0_safe_receiver = this.
|
|
1635
|
+
protoOf(JvmBuilderExtension).j1b = function (ir, ast) {
|
|
1636
|
+
var tmp0_safe_receiver = this.w33_1;
|
|
1621
1637
|
var tmp;
|
|
1622
1638
|
if (tmp0_safe_receiver == null) {
|
|
1623
1639
|
tmp = null;
|
|
1624
1640
|
} else {
|
|
1625
1641
|
// Inline function 'kotlin.let' call
|
|
1626
|
-
var tmp_0 = asSequence_0(new NonEmptyList(ast.
|
|
1642
|
+
var tmp_0 = asSequence_0(new NonEmptyList(ast.fp_1));
|
|
1627
1643
|
// Inline function 'kotlin.sequences.filterIsInstance' call
|
|
1628
1644
|
var this_0 = flatMap(tmp_0, JvmBuilderExtension$extend$lambda);
|
|
1629
1645
|
var tmp_1 = filter(this_0, JvmBuilderExtension$extend$lambda_0);
|
|
@@ -1656,39 +1672,39 @@ protoOf(JvmBuilderExtension).f1b = function (ir, ast) {
|
|
|
1656
1672
|
};
|
|
1657
1673
|
function Companion_1() {
|
|
1658
1674
|
}
|
|
1659
|
-
protoOf(Companion_1).
|
|
1660
|
-
var payloadRef = channel.
|
|
1661
|
-
var payloadType = KotlinGenerator_getInstance().
|
|
1675
|
+
protoOf(Companion_1).x33 = function (channel, types, refined) {
|
|
1676
|
+
var payloadRef = channel.zq_1;
|
|
1677
|
+
var payloadType = KotlinGenerator_getInstance().p1c(convert(payloadRef));
|
|
1662
1678
|
var payloadCustom = payloadRef instanceof Custom ? payloadRef : null;
|
|
1663
1679
|
var tmp;
|
|
1664
1680
|
if (payloadCustom == null) {
|
|
1665
1681
|
tmp = null;
|
|
1666
1682
|
} else {
|
|
1667
1683
|
// Inline function 'kotlin.let' call
|
|
1668
|
-
tmp = Companion_instance_4.
|
|
1684
|
+
tmp = Companion_instance_4.y33(payloadCustom.b1a_1, types, refined);
|
|
1669
1685
|
}
|
|
1670
1686
|
var tmp1_elvis_lhs = tmp;
|
|
1671
1687
|
var payloadFieldShapes = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
1672
|
-
return new ChannelShape(Companion_getInstance().
|
|
1688
|
+
return new ChannelShape(Companion_getInstance().au(channel.yq_1.o1()).du(), payloadType, payloadFieldShapes, Companion_instance_4.z33(listOf(payloadRef)));
|
|
1673
1689
|
};
|
|
1674
1690
|
var Companion_instance_3;
|
|
1675
1691
|
function Companion_getInstance_2() {
|
|
1676
1692
|
return Companion_instance_3;
|
|
1677
1693
|
}
|
|
1678
1694
|
function ChannelShape(name, payloadType, payloadFieldShapes, modelImports) {
|
|
1679
|
-
this.
|
|
1680
|
-
this.
|
|
1681
|
-
this.
|
|
1682
|
-
this.
|
|
1695
|
+
this.a34_1 = name;
|
|
1696
|
+
this.b34_1 = payloadType;
|
|
1697
|
+
this.c34_1 = payloadFieldShapes;
|
|
1698
|
+
this.d34_1 = modelImports;
|
|
1683
1699
|
}
|
|
1684
1700
|
protoOf(ChannelShape).toString = function () {
|
|
1685
|
-
return 'ChannelShape(name=' + this.
|
|
1701
|
+
return 'ChannelShape(name=' + this.a34_1 + ', payloadType=' + this.b34_1 + ', payloadFieldShapes=' + toString(this.c34_1) + ', modelImports=' + toString(this.d34_1) + ')';
|
|
1686
1702
|
};
|
|
1687
1703
|
protoOf(ChannelShape).hashCode = function () {
|
|
1688
|
-
var result = getStringHashCode(this.
|
|
1689
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1690
|
-
result = imul(result, 31) + hashCode(this.
|
|
1691
|
-
result = imul(result, 31) + hashCode(this.
|
|
1704
|
+
var result = getStringHashCode(this.a34_1);
|
|
1705
|
+
result = imul(result, 31) + getStringHashCode(this.b34_1) | 0;
|
|
1706
|
+
result = imul(result, 31) + hashCode(this.c34_1) | 0;
|
|
1707
|
+
result = imul(result, 31) + hashCode(this.d34_1) | 0;
|
|
1692
1708
|
return result;
|
|
1693
1709
|
};
|
|
1694
1710
|
protoOf(ChannelShape).equals = function (other) {
|
|
@@ -1696,46 +1712,46 @@ protoOf(ChannelShape).equals = function (other) {
|
|
|
1696
1712
|
return true;
|
|
1697
1713
|
if (!(other instanceof ChannelShape))
|
|
1698
1714
|
return false;
|
|
1699
|
-
if (!(this.
|
|
1715
|
+
if (!(this.a34_1 === other.a34_1))
|
|
1700
1716
|
return false;
|
|
1701
|
-
if (!(this.
|
|
1717
|
+
if (!(this.b34_1 === other.b34_1))
|
|
1702
1718
|
return false;
|
|
1703
|
-
if (!equals(this.
|
|
1719
|
+
if (!equals(this.c34_1, other.c34_1))
|
|
1704
1720
|
return false;
|
|
1705
|
-
if (!equals(this.
|
|
1721
|
+
if (!equals(this.d34_1, other.d34_1))
|
|
1706
1722
|
return false;
|
|
1707
1723
|
return true;
|
|
1708
1724
|
};
|
|
1709
1725
|
function ChannelDslFile$build$lambda$lambda$lambda($builder, $arbPayload, $payload) {
|
|
1710
1726
|
return function ($this$function) {
|
|
1711
|
-
$this$function.
|
|
1712
|
-
$this$function.
|
|
1713
|
-
$this$function.
|
|
1714
|
-
$this$function.
|
|
1715
|
-
$this$function.
|
|
1727
|
+
$this$function.z13(Visibility_PUBLIC_getInstance());
|
|
1728
|
+
$this$function.c14('block', $this$function.g15(Unit_instance_0, Custom_init_$Create$($builder)), $this$function.h15('{}'));
|
|
1729
|
+
$this$function.x13($arbPayload);
|
|
1730
|
+
$this$function.w14('val builder = ' + $builder + '().apply(block)');
|
|
1731
|
+
$this$function.w14('return generatedGen { generator, rs -> builder.applyTo(' + $payload + 'Generator.generate(generator, emptyList()), rs) }');
|
|
1716
1732
|
return Unit_instance;
|
|
1717
1733
|
};
|
|
1718
1734
|
}
|
|
1719
1735
|
function ChannelDslFile$build$lambda$lambda$lambda_0($arbPayload, $payload, $shape) {
|
|
1720
1736
|
return function ($this$function) {
|
|
1721
|
-
$this$function.
|
|
1722
|
-
$this$function.
|
|
1723
|
-
$this$function.
|
|
1737
|
+
$this$function.z13(Visibility_PUBLIC_getInstance());
|
|
1738
|
+
$this$function.x13($arbPayload);
|
|
1739
|
+
$this$function.d14($this$function.h15('channelCall<' + $payload + '>(' + $shape.a34_1 + '::class).messageGen()'));
|
|
1724
1740
|
return Unit_instance;
|
|
1725
1741
|
};
|
|
1726
1742
|
}
|
|
1727
1743
|
function ChannelDslFile$build$lambda$lambda($isRecord, $payload, $arbPayload, $shape) {
|
|
1728
1744
|
return function ($this$struct) {
|
|
1729
|
-
$this$struct.
|
|
1730
|
-
$this$struct.
|
|
1731
|
-
$this$struct.
|
|
1745
|
+
$this$struct.v15();
|
|
1746
|
+
$this$struct.z13(Visibility_PUBLIC_getInstance());
|
|
1747
|
+
$this$struct.w15(Visibility_INTERNAL_getInstance());
|
|
1732
1748
|
var tmp;
|
|
1733
1749
|
if ($isRecord) {
|
|
1734
|
-
var builder = RecordBuilder_instance.
|
|
1735
|
-
$this$struct.
|
|
1750
|
+
var builder = RecordBuilder_instance.e34($payload);
|
|
1751
|
+
$this$struct.k16('message', VOID, VOID, ChannelDslFile$build$lambda$lambda$lambda(builder, $arbPayload, $payload));
|
|
1736
1752
|
tmp = Unit_instance;
|
|
1737
1753
|
} else {
|
|
1738
|
-
$this$struct.
|
|
1754
|
+
$this$struct.k16('message', VOID, VOID, ChannelDslFile$build$lambda$lambda$lambda_0($arbPayload, $payload, $shape));
|
|
1739
1755
|
tmp = Unit_instance;
|
|
1740
1756
|
}
|
|
1741
1757
|
return Unit_instance;
|
|
@@ -1743,49 +1759,49 @@ function ChannelDslFile$build$lambda$lambda($isRecord, $payload, $arbPayload, $s
|
|
|
1743
1759
|
}
|
|
1744
1760
|
function ChannelDslFile$build$lambda$lambda_0($genPayload, $payload, $shape) {
|
|
1745
1761
|
return function ($this$asyncFunction) {
|
|
1746
|
-
$this$asyncFunction.
|
|
1747
|
-
$this$asyncFunction.
|
|
1748
|
-
$this$asyncFunction.
|
|
1749
|
-
$this$asyncFunction.
|
|
1750
|
-
$this$asyncFunction.
|
|
1751
|
-
$this$asyncFunction.
|
|
1752
|
-
$this$asyncFunction.
|
|
1753
|
-
$this$asyncFunction.
|
|
1754
|
-
$this$asyncFunction.
|
|
1762
|
+
$this$asyncFunction.z13(Visibility_PUBLIC_getInstance());
|
|
1763
|
+
$this$asyncFunction.y13($genPayload);
|
|
1764
|
+
$this$asyncFunction.c14('topic', new Nullable(String_instance), $this$asyncFunction.h15('null'));
|
|
1765
|
+
$this$asyncFunction.c14('key', new Nullable(String_instance), $this$asyncFunction.h15('null'));
|
|
1766
|
+
$this$asyncFunction.x13(Custom_init_$Create$($payload));
|
|
1767
|
+
$this$asyncFunction.w14('val call = channelCall<' + $payload + '>(' + $shape.a34_1 + '::class)');
|
|
1768
|
+
$this$asyncFunction.w14('topic?.let { call.topic(it) }');
|
|
1769
|
+
$this$asyncFunction.w14('key?.let { call.key(it) }');
|
|
1770
|
+
$this$asyncFunction.d14($this$asyncFunction.h15('call.send(this)'));
|
|
1755
1771
|
return Unit_instance;
|
|
1756
1772
|
};
|
|
1757
1773
|
}
|
|
1758
1774
|
function ChannelDslFile$build$lambda($kotestPkg, $shape, $emitSend, $packageName, $payload, $channelPkg, $modelPkg, $arbPayload, $genPayload) {
|
|
1759
1775
|
return function ($this$file) {
|
|
1760
|
-
$this$file.
|
|
1776
|
+
$this$file.q17($kotestPkg);
|
|
1761
1777
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1762
|
-
var isRecord = !$shape.
|
|
1778
|
+
var isRecord = !$shape.c34_1.r();
|
|
1763
1779
|
var tmp;
|
|
1764
1780
|
if ($emitSend || !isRecord) {
|
|
1765
|
-
$this$file.
|
|
1781
|
+
$this$file.g16('community.flock.wirespec.integration.kotest.dsl', 'channelCall');
|
|
1766
1782
|
tmp = Unit_instance;
|
|
1767
1783
|
}
|
|
1768
1784
|
var tmp_0;
|
|
1769
1785
|
if (isRecord) {
|
|
1770
|
-
$this$file.
|
|
1771
|
-
$this$file.
|
|
1786
|
+
$this$file.g16('community.flock.wirespec.integration.kotest.dsl', 'generatedGen');
|
|
1787
|
+
$this$file.g16($packageName.bt_1 + '.generator', $payload + 'Generator');
|
|
1772
1788
|
tmp_0 = Unit_instance;
|
|
1773
1789
|
}
|
|
1774
|
-
$this$file.
|
|
1775
|
-
$this$file.
|
|
1776
|
-
$this$file.
|
|
1790
|
+
$this$file.g16('io.kotest.property', 'Arb');
|
|
1791
|
+
$this$file.g16('io.kotest.property', 'Gen');
|
|
1792
|
+
$this$file.g16($channelPkg, $shape.a34_1);
|
|
1777
1793
|
// Inline function 'kotlin.collections.forEach' call
|
|
1778
|
-
var _iterator__ex2g4s = $shape.
|
|
1794
|
+
var _iterator__ex2g4s = $shape.d34_1.t();
|
|
1779
1795
|
while (_iterator__ex2g4s.u()) {
|
|
1780
1796
|
var element = _iterator__ex2g4s.v();
|
|
1781
|
-
$this$file.
|
|
1797
|
+
$this$file.g16($modelPkg, Companion_getInstance().au(element).du());
|
|
1782
1798
|
}
|
|
1783
|
-
var tmp_1 = $shape.
|
|
1784
|
-
$this$file.
|
|
1785
|
-
$this$file.
|
|
1799
|
+
var tmp_1 = $shape.a34_1 + 'Generate';
|
|
1800
|
+
$this$file.r17(tmp_1, ChannelDslFile$build$lambda$lambda(isRecord, $payload, $arbPayload, $shape));
|
|
1801
|
+
$this$file.i16('generate', Custom_init_$Create$($shape.a34_1 + 'Generate'), VOID, Visibility_PUBLIC_getInstance(), Custom_init_$Create$($shape.a34_1), VOID, VOID, new FunctionCall(VOID, VOID, Companion_getInstance().au($shape.a34_1 + 'Generate')));
|
|
1786
1802
|
var tmp_2;
|
|
1787
1803
|
if ($emitSend) {
|
|
1788
|
-
$this$file.
|
|
1804
|
+
$this$file.o16('send', VOID, VOID, ChannelDslFile$build$lambda$lambda_0($genPayload, $payload, $shape));
|
|
1789
1805
|
tmp_2 = Unit_instance;
|
|
1790
1806
|
}
|
|
1791
1807
|
return Unit_instance;
|
|
@@ -1793,16 +1809,16 @@ function ChannelDslFile$build$lambda($kotestPkg, $shape, $emitSend, $packageName
|
|
|
1793
1809
|
}
|
|
1794
1810
|
function ChannelDslFile() {
|
|
1795
1811
|
}
|
|
1796
|
-
protoOf(ChannelDslFile).
|
|
1797
|
-
var shape = Companion_instance_3.
|
|
1812
|
+
protoOf(ChannelDslFile).f34 = function (channel, packageName, types, refined, emitSend) {
|
|
1813
|
+
var shape = Companion_instance_3.x33(channel, types, refined);
|
|
1798
1814
|
var kotestPkg = packageName.bt_1 + '.kotest';
|
|
1799
1815
|
var channelPkg = packageName.bt_1 + '.channel';
|
|
1800
1816
|
var modelPkg = packageName.bt_1 + '.model';
|
|
1801
|
-
var fileName = Companion_instance_0.at(kotestPkg).dt() + (shape.
|
|
1802
|
-
var payload = shape.
|
|
1817
|
+
var fileName = Companion_instance_0.at(kotestPkg).dt() + (shape.a34_1 + 'Dsl');
|
|
1818
|
+
var payload = shape.b34_1;
|
|
1803
1819
|
var genPayload = Custom_init_$Create$('Gen', listOf(Custom_init_$Create$(payload)));
|
|
1804
1820
|
var arbPayload = Custom_init_$Create$('Arb', listOf(Custom_init_$Create$(payload)));
|
|
1805
|
-
var tmp = Companion_getInstance().
|
|
1821
|
+
var tmp = Companion_getInstance().au(fileName);
|
|
1806
1822
|
return file(tmp, ChannelDslFile$build$lambda(kotestPkg, shape, emitSend, packageName, payload, channelPkg, modelPkg, arbPayload, genPayload));
|
|
1807
1823
|
};
|
|
1808
1824
|
var ChannelDslFile_instance;
|
|
@@ -1810,17 +1826,17 @@ function ChannelDslFile_getInstance() {
|
|
|
1810
1826
|
return ChannelDslFile_instance;
|
|
1811
1827
|
}
|
|
1812
1828
|
function Slot(name, genFn, fields) {
|
|
1813
|
-
this.
|
|
1814
|
-
this.
|
|
1815
|
-
this.
|
|
1829
|
+
this.g34_1 = name;
|
|
1830
|
+
this.h34_1 = genFn;
|
|
1831
|
+
this.i34_1 = fields;
|
|
1816
1832
|
}
|
|
1817
1833
|
protoOf(Slot).toString = function () {
|
|
1818
|
-
return 'Slot(name=' + this.
|
|
1834
|
+
return 'Slot(name=' + this.g34_1 + ', genFn=' + this.h34_1 + ', fields=' + toString(this.i34_1) + ')';
|
|
1819
1835
|
};
|
|
1820
1836
|
protoOf(Slot).hashCode = function () {
|
|
1821
|
-
var result = getStringHashCode(this.
|
|
1822
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1823
|
-
result = imul(result, 31) + hashCode(this.
|
|
1837
|
+
var result = getStringHashCode(this.g34_1);
|
|
1838
|
+
result = imul(result, 31) + getStringHashCode(this.h34_1) | 0;
|
|
1839
|
+
result = imul(result, 31) + hashCode(this.i34_1) | 0;
|
|
1824
1840
|
return result;
|
|
1825
1841
|
};
|
|
1826
1842
|
protoOf(Slot).equals = function (other) {
|
|
@@ -1828,24 +1844,24 @@ protoOf(Slot).equals = function (other) {
|
|
|
1828
1844
|
return true;
|
|
1829
1845
|
if (!(other instanceof Slot))
|
|
1830
1846
|
return false;
|
|
1831
|
-
if (!(this.
|
|
1847
|
+
if (!(this.g34_1 === other.g34_1))
|
|
1832
1848
|
return false;
|
|
1833
|
-
if (!(this.
|
|
1849
|
+
if (!(this.h34_1 === other.h34_1))
|
|
1834
1850
|
return false;
|
|
1835
|
-
if (!equals(this.
|
|
1851
|
+
if (!equals(this.i34_1, other.i34_1))
|
|
1836
1852
|
return false;
|
|
1837
1853
|
return true;
|
|
1838
1854
|
};
|
|
1839
1855
|
function presentSlots($this, shape) {
|
|
1840
1856
|
// Inline function 'kotlin.collections.filter' call
|
|
1841
|
-
var tmp0 = listOf_0([new Slot('path', 'pathGen', shape.
|
|
1857
|
+
var tmp0 = listOf_0([new Slot('path', 'pathGen', shape.k34_1), new Slot('query', 'queryGen', shape.l34_1), new Slot('header', 'headerGen', shape.m34_1)]);
|
|
1842
1858
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1843
1859
|
var destination = ArrayList_init_$Create$();
|
|
1844
1860
|
var _iterator__ex2g4s = tmp0.t();
|
|
1845
1861
|
while (_iterator__ex2g4s.u()) {
|
|
1846
1862
|
var element = _iterator__ex2g4s.v();
|
|
1847
1863
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1848
|
-
if (!element.
|
|
1864
|
+
if (!element.i34_1.r()) {
|
|
1849
1865
|
destination.x(element);
|
|
1850
1866
|
}
|
|
1851
1867
|
}
|
|
@@ -1859,7 +1875,7 @@ function requiredSlots($this, shape) {
|
|
|
1859
1875
|
var _iterator__ex2g4s = tmp0.t();
|
|
1860
1876
|
while (_iterator__ex2g4s.u()) {
|
|
1861
1877
|
var element = _iterator__ex2g4s.v();
|
|
1862
|
-
var tmp0_0 = element.
|
|
1878
|
+
var tmp0_0 = element.i34_1;
|
|
1863
1879
|
var tmp$ret$3;
|
|
1864
1880
|
$l$block_0: {
|
|
1865
1881
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -1876,7 +1892,7 @@ function requiredSlots($this, shape) {
|
|
|
1876
1892
|
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
1877
1893
|
while (_iterator__ex2g4s_0.u()) {
|
|
1878
1894
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1879
|
-
if (!element_0.
|
|
1895
|
+
if (!element_0.v34_1) {
|
|
1880
1896
|
tmp$ret$3 = true;
|
|
1881
1897
|
break $l$block_0;
|
|
1882
1898
|
}
|
|
@@ -1905,7 +1921,7 @@ function cap($this, name) {
|
|
|
1905
1921
|
return tmp;
|
|
1906
1922
|
}
|
|
1907
1923
|
function slotBuilderName($this, shape, slot) {
|
|
1908
|
-
return shape.
|
|
1924
|
+
return shape.j34_1 + cap($this, slot.g34_1) + 'Builder';
|
|
1909
1925
|
}
|
|
1910
1926
|
function genOf($this, inner) {
|
|
1911
1927
|
return Custom_init_$Create$('Gen', listOf(inner));
|
|
@@ -1929,26 +1945,26 @@ function suspendScopeType($this, scope) {
|
|
|
1929
1945
|
return new Function_0(emptyList(), Unit_instance_0, Custom_init_$Create$(scope), true);
|
|
1930
1946
|
}
|
|
1931
1947
|
function buildGenerateWrapper($this, $receiver, shape) {
|
|
1932
|
-
var tmp = shape.
|
|
1933
|
-
$receiver.
|
|
1948
|
+
var tmp = shape.j34_1 + 'Generate';
|
|
1949
|
+
$receiver.r17(tmp, EndpointDslFile$buildGenerateWrapper$lambda(shape));
|
|
1934
1950
|
}
|
|
1935
1951
|
function buildRequestCall($this, $receiver, shape) {
|
|
1936
|
-
$receiver.
|
|
1952
|
+
$receiver.o16('call', VOID, VOID, EndpointDslFile$buildRequestCall$lambda(shape));
|
|
1937
1953
|
}
|
|
1938
1954
|
function buildResponseMock($this, $receiver, shape) {
|
|
1939
|
-
$receiver.
|
|
1955
|
+
$receiver.o16('mock', VOID, VOID, EndpointDslFile$buildResponseMock$lambda(shape));
|
|
1940
1956
|
}
|
|
1941
1957
|
function buildResponseScope($this, $receiver, shape, variant) {
|
|
1942
|
-
var scopeName = shape.
|
|
1943
|
-
var variantType = shape.
|
|
1944
|
-
var tmp0_safe_receiver = variant.
|
|
1958
|
+
var scopeName = shape.j34_1 + variant.x34_1 + 'Scope';
|
|
1959
|
+
var variantType = shape.j34_1 + '.' + variant.x34_1;
|
|
1960
|
+
var tmp0_safe_receiver = variant.z34_1;
|
|
1945
1961
|
var tmp;
|
|
1946
1962
|
if (tmp0_safe_receiver == null) {
|
|
1947
1963
|
tmp = null;
|
|
1948
1964
|
} else {
|
|
1949
1965
|
// Inline function 'kotlin.takeIf' call
|
|
1950
1966
|
var tmp_0;
|
|
1951
|
-
if (!variant.
|
|
1967
|
+
if (!variant.y34_1.equals(BodyKind_None_getInstance())) {
|
|
1952
1968
|
tmp_0 = tmp0_safe_receiver;
|
|
1953
1969
|
} else {
|
|
1954
1970
|
tmp_0 = null;
|
|
@@ -1956,11 +1972,11 @@ function buildResponseScope($this, $receiver, shape, variant) {
|
|
|
1956
1972
|
tmp = tmp_0;
|
|
1957
1973
|
}
|
|
1958
1974
|
var bodyType = tmp;
|
|
1959
|
-
$receiver.
|
|
1975
|
+
$receiver.r17(scopeName, EndpointDslFile$buildResponseScope$lambda(shape, variantType, bodyType, variant));
|
|
1960
1976
|
}
|
|
1961
1977
|
function buildScopeClass($this, $receiver, shape, present, required) {
|
|
1962
|
-
var tmp = shape.
|
|
1963
|
-
$receiver.
|
|
1978
|
+
var tmp = shape.j34_1 + 'Scope';
|
|
1979
|
+
$receiver.r17(tmp, EndpointDslFile$buildScopeClass$lambda(shape, present, required));
|
|
1964
1980
|
}
|
|
1965
1981
|
function renderFlushBody($this, shape, present, required) {
|
|
1966
1982
|
// Inline function 'kotlin.text.buildString' call
|
|
@@ -1972,7 +1988,7 @@ function renderFlushBody($this, shape, present, required) {
|
|
|
1972
1988
|
var _iterator__ex2g4s = required.t();
|
|
1973
1989
|
while (_iterator__ex2g4s.u()) {
|
|
1974
1990
|
var item = _iterator__ex2g4s.v();
|
|
1975
|
-
var tmp$ret$5 = item.
|
|
1991
|
+
var tmp$ret$5 = item.g34_1;
|
|
1976
1992
|
destination.x(tmp$ret$5);
|
|
1977
1993
|
}
|
|
1978
1994
|
var requiredNames = toSet_0(destination);
|
|
@@ -1989,14 +2005,14 @@ function renderFlushBody($this, shape, present, required) {
|
|
|
1989
2005
|
while (_iterator__ex2g4s_0.u()) {
|
|
1990
2006
|
var element = _iterator__ex2g4s_0.v();
|
|
1991
2007
|
var builderClass = slotBuilderName(EndpointDslFile_instance, shape, element);
|
|
1992
|
-
var builderVar = element.
|
|
1993
|
-
if (requiredNames.i1(element.
|
|
2008
|
+
var builderVar = element.g34_1 + 'Builder';
|
|
2009
|
+
if (requiredNames.i1(element.g34_1)) {
|
|
1994
2010
|
// Inline function 'kotlin.text.appendLine' call
|
|
1995
|
-
var value_1 = 'val ' + builderVar + ' = ' + builderClass + '().apply(' + element.
|
|
2011
|
+
var value_1 = 'val ' + builderVar + ' = ' + builderClass + '().apply(' + element.g34_1 + ' ?: error("' + shape.j34_1 + ': required `' + element.g34_1 + '` block is missing"))';
|
|
1996
2012
|
// Inline function 'kotlin.text.appendLine' call
|
|
1997
2013
|
this_0.q(value_1).s(_Char___init__impl__6a9atx(10));
|
|
1998
2014
|
// Inline function 'kotlin.collections.forEach' call
|
|
1999
|
-
var _iterator__ex2g4s_1 = element.
|
|
2015
|
+
var _iterator__ex2g4s_1 = element.i34_1.t();
|
|
2000
2016
|
while (_iterator__ex2g4s_1.u()) {
|
|
2001
2017
|
var element_0 = _iterator__ex2g4s_1.v();
|
|
2002
2018
|
// Inline function 'kotlin.text.appendLine' call
|
|
@@ -2006,11 +2022,11 @@ function renderFlushBody($this, shape, present, required) {
|
|
|
2006
2022
|
}
|
|
2007
2023
|
} else {
|
|
2008
2024
|
// Inline function 'kotlin.text.appendLine' call
|
|
2009
|
-
var value_3 = 'val ' + builderVar + ' = ' + element.
|
|
2025
|
+
var value_3 = 'val ' + builderVar + ' = ' + element.g34_1 + '?.let { block -> ' + builderClass + '().apply(block) }';
|
|
2010
2026
|
// Inline function 'kotlin.text.appendLine' call
|
|
2011
2027
|
this_0.q(value_3).s(_Char___init__impl__6a9atx(10));
|
|
2012
2028
|
// Inline function 'kotlin.collections.forEach' call
|
|
2013
|
-
var _iterator__ex2g4s_2 = element.
|
|
2029
|
+
var _iterator__ex2g4s_2 = element.i34_1.t();
|
|
2014
2030
|
while (_iterator__ex2g4s_2.u()) {
|
|
2015
2031
|
var element_1 = _iterator__ex2g4s_2.v();
|
|
2016
2032
|
// Inline function 'kotlin.text.appendLine' call
|
|
@@ -2021,16 +2037,16 @@ function renderFlushBody($this, shape, present, required) {
|
|
|
2021
2037
|
}
|
|
2022
2038
|
}
|
|
2023
2039
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
2024
|
-
if (!shape.
|
|
2040
|
+
if (!shape.q34_1.r()) {
|
|
2025
2041
|
var elementType = requireBodyElementType(EndpointDslFile_instance, shape);
|
|
2026
|
-
var isList = shape.
|
|
2042
|
+
var isList = shape.n34_1.equals(BodyKind_List_getInstance());
|
|
2027
2043
|
var body = new RecordRef(elementType, isList, false, false);
|
|
2028
2044
|
// Inline function 'kotlin.text.appendLine' call
|
|
2029
2045
|
var value_5 = 'body?.let { block ->';
|
|
2030
2046
|
// Inline function 'kotlin.text.appendLine' call
|
|
2031
2047
|
this_0.q(value_5).s(_Char___init__impl__6a9atx(10));
|
|
2032
2048
|
// Inline function 'kotlin.text.appendLine' call
|
|
2033
|
-
var value_6 = ' val builder = ' + RecordBuilder_instance.
|
|
2049
|
+
var value_6 = ' val builder = ' + RecordBuilder_instance.e34(elementType) + '().apply(block)';
|
|
2034
2050
|
// Inline function 'kotlin.text.appendLine' call
|
|
2035
2051
|
this_0.q(value_6).s(_Char___init__impl__6a9atx(10));
|
|
2036
2052
|
if (isList) {
|
|
@@ -2040,14 +2056,14 @@ function renderFlushBody($this, shape, present, required) {
|
|
|
2040
2056
|
this_0.q(value_7).s(_Char___init__impl__6a9atx(10));
|
|
2041
2057
|
}
|
|
2042
2058
|
// Inline function 'kotlin.text.appendLine' call
|
|
2043
|
-
var value_8 = ' inner.bodyTransform { base, rs -> ' + body.
|
|
2059
|
+
var value_8 = ' inner.bodyTransform { base, rs -> ' + body.g35('base', 'builder') + ' }';
|
|
2044
2060
|
// Inline function 'kotlin.text.appendLine' call
|
|
2045
2061
|
this_0.q(value_8).s(_Char___init__impl__6a9atx(10));
|
|
2046
2062
|
// Inline function 'kotlin.text.appendLine' call
|
|
2047
2063
|
// Inline function 'kotlin.text.appendLine' call
|
|
2048
2064
|
this_0.q('}').s(_Char___init__impl__6a9atx(10));
|
|
2049
2065
|
}
|
|
2050
|
-
if (shape.
|
|
2066
|
+
if (shape.n34_1.equals(BodyKind_Primitive_getInstance())) {
|
|
2051
2067
|
// Inline function 'kotlin.text.appendLine' call
|
|
2052
2068
|
var value_9 = 'body?.let { gen ->';
|
|
2053
2069
|
// Inline function 'kotlin.text.appendLine' call
|
|
@@ -2065,26 +2081,26 @@ function renderFlushBody($this, shape, present, required) {
|
|
|
2065
2081
|
function registerLine($this, shape, slot, builderVar, field, indent, nullableBuilder) {
|
|
2066
2082
|
nullableBuilder = nullableBuilder === VOID ? false : nullableBuilder;
|
|
2067
2083
|
var access = nullableBuilder ? '?.' : '.';
|
|
2068
|
-
var ref = builderVar + access + escapeKotlinIdentifier(field.
|
|
2084
|
+
var ref = builderVar + access + escapeKotlinIdentifier(field.t34_1);
|
|
2069
2085
|
var tmp;
|
|
2070
|
-
if (field.
|
|
2086
|
+
if (field.v34_1) {
|
|
2071
2087
|
tmp = 'Arb.constant(null)';
|
|
2072
2088
|
} else {
|
|
2073
|
-
tmp = 'error("' + shape.
|
|
2089
|
+
tmp = 'error("' + shape.j34_1 + '.' + slot.g34_1 + ': required `' + field.t34_1 + '` is missing")';
|
|
2074
2090
|
}
|
|
2075
2091
|
var fallback = tmp;
|
|
2076
|
-
return indent + 'inner.' + slot.
|
|
2092
|
+
return indent + 'inner.' + slot.h34_1 + '("' + field.t34_1 + '", ' + ref + ' ?: ' + fallback + ')';
|
|
2077
2093
|
}
|
|
2078
2094
|
function buildSlotBuilder($this, $receiver, shape, slot) {
|
|
2079
2095
|
var tmp = slotBuilderName($this, shape, slot);
|
|
2080
|
-
$receiver.
|
|
2096
|
+
$receiver.r17(tmp, EndpointDslFile$buildSlotBuilder$lambda(slot));
|
|
2081
2097
|
}
|
|
2082
2098
|
function requireBodyElementType($this, $receiver) {
|
|
2083
|
-
var tmp0_elvis_lhs = $receiver.
|
|
2099
|
+
var tmp0_elvis_lhs = $receiver.o34_1;
|
|
2084
2100
|
var tmp;
|
|
2085
2101
|
if (tmp0_elvis_lhs == null) {
|
|
2086
2102
|
// Inline function 'kotlin.error' call
|
|
2087
|
-
var message = 'bodyFieldShapes present but no bodyElementType for ' + $receiver.
|
|
2103
|
+
var message = 'bodyFieldShapes present but no bodyElementType for ' + $receiver.j34_1;
|
|
2088
2104
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2089
2105
|
} else {
|
|
2090
2106
|
tmp = tmp0_elvis_lhs;
|
|
@@ -2092,11 +2108,11 @@ function requireBodyElementType($this, $receiver) {
|
|
|
2092
2108
|
return tmp;
|
|
2093
2109
|
}
|
|
2094
2110
|
function requireBodyPrimitiveType($this, $receiver) {
|
|
2095
|
-
var tmp0_elvis_lhs = $receiver.
|
|
2111
|
+
var tmp0_elvis_lhs = $receiver.p34_1;
|
|
2096
2112
|
var tmp;
|
|
2097
2113
|
if (tmp0_elvis_lhs == null) {
|
|
2098
2114
|
// Inline function 'kotlin.error' call
|
|
2099
|
-
var message = 'BodyKind.Primitive but no bodyPrimitiveType for ' + $receiver.
|
|
2115
|
+
var message = 'BodyKind.Primitive but no bodyPrimitiveType for ' + $receiver.j34_1;
|
|
2100
2116
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2101
2117
|
} else {
|
|
2102
2118
|
tmp = tmp0_elvis_lhs;
|
|
@@ -2105,30 +2121,30 @@ function requireBodyPrimitiveType($this, $receiver) {
|
|
|
2105
2121
|
}
|
|
2106
2122
|
function EndpointDslFile$build$lambda($kotestPkg, $shape, $endpointPkg, $present, $modelPkg, $required) {
|
|
2107
2123
|
return function ($this$file) {
|
|
2108
|
-
$this$file.
|
|
2109
|
-
$this$file.
|
|
2110
|
-
$this$file.
|
|
2111
|
-
$this$file.
|
|
2124
|
+
$this$file.q17($kotestPkg);
|
|
2125
|
+
$this$file.g16('community.flock.wirespec.integration.kotest.dsl', 'endpointCall');
|
|
2126
|
+
$this$file.g16('community.flock.wirespec.integration.kotest.dsl', 'requestCall');
|
|
2127
|
+
$this$file.g16('community.flock.wirespec.integration.kotest.dsl', 'WirespecScenarioDsl');
|
|
2112
2128
|
var tmp;
|
|
2113
2129
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
2114
|
-
if (!$shape.
|
|
2115
|
-
$this$file.
|
|
2116
|
-
$this$file.
|
|
2130
|
+
if (!$shape.r34_1.r()) {
|
|
2131
|
+
$this$file.g16('community.flock.wirespec.integration.kotest.dsl', 'responseCall');
|
|
2132
|
+
$this$file.g16('community.flock.wirespec.integration.kotest.dsl', 'responseMock');
|
|
2117
2133
|
tmp = Unit_instance;
|
|
2118
2134
|
}
|
|
2119
2135
|
var tmp_0;
|
|
2120
|
-
if ($shape.
|
|
2121
|
-
$this$file.
|
|
2136
|
+
if ($shape.n34_1.equals(BodyKind_Primitive_getInstance())) {
|
|
2137
|
+
$this$file.g16('community.flock.wirespec.integration.kotest.dsl', 'draw');
|
|
2122
2138
|
tmp_0 = Unit_instance;
|
|
2123
2139
|
}
|
|
2124
|
-
$this$file.
|
|
2125
|
-
$this$file.
|
|
2126
|
-
$this$file.
|
|
2127
|
-
var isListBody = $shape.
|
|
2140
|
+
$this$file.g16($endpointPkg, $shape.j34_1);
|
|
2141
|
+
$this$file.g16('io.kotest.property', 'Gen');
|
|
2142
|
+
$this$file.g16('io.kotest.property', 'Arb');
|
|
2143
|
+
var isListBody = $shape.n34_1.equals(BodyKind_List_getInstance());
|
|
2128
2144
|
var tmp_1;
|
|
2129
2145
|
var tmp_2;
|
|
2130
2146
|
var tmp_3;
|
|
2131
|
-
var tmp0 = plus(plus($shape.
|
|
2147
|
+
var tmp0 = plus(plus($shape.k34_1, $shape.l34_1), $shape.m34_1);
|
|
2132
2148
|
var tmp$ret$1;
|
|
2133
2149
|
$l$block_0: {
|
|
2134
2150
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -2145,7 +2161,7 @@ function EndpointDslFile$build$lambda($kotestPkg, $shape, $endpointPkg, $present
|
|
|
2145
2161
|
var _iterator__ex2g4s = tmp0.t();
|
|
2146
2162
|
while (_iterator__ex2g4s.u()) {
|
|
2147
2163
|
var element = _iterator__ex2g4s.v();
|
|
2148
|
-
if (element.
|
|
2164
|
+
if (element.v34_1) {
|
|
2149
2165
|
tmp$ret$1 = true;
|
|
2150
2166
|
break $l$block_0;
|
|
2151
2167
|
}
|
|
@@ -2161,12 +2177,12 @@ function EndpointDslFile$build$lambda($kotestPkg, $shape, $endpointPkg, $present
|
|
|
2161
2177
|
if (tmp_3) {
|
|
2162
2178
|
tmp_2 = true;
|
|
2163
2179
|
} else {
|
|
2164
|
-
tmp_2 = $shape.
|
|
2180
|
+
tmp_2 = $shape.n34_1.equals(BodyKind_Primitive_getInstance());
|
|
2165
2181
|
}
|
|
2166
2182
|
if (tmp_2) {
|
|
2167
2183
|
tmp_1 = true;
|
|
2168
2184
|
} else {
|
|
2169
|
-
var tmp0_0 = $shape.
|
|
2185
|
+
var tmp0_0 = $shape.r34_1;
|
|
2170
2186
|
var tmp$ret$4;
|
|
2171
2187
|
$l$block_2: {
|
|
2172
2188
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -2184,11 +2200,11 @@ function EndpointDslFile$build$lambda($kotestPkg, $shape, $endpointPkg, $present
|
|
|
2184
2200
|
while (_iterator__ex2g4s_0.u()) {
|
|
2185
2201
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
2186
2202
|
var tmp_6;
|
|
2187
|
-
if (!(element_0.
|
|
2203
|
+
if (!(element_0.z34_1 == null)) {
|
|
2188
2204
|
tmp_6 = true;
|
|
2189
2205
|
} else {
|
|
2190
2206
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
2191
|
-
tmp_6 = !element_0.
|
|
2207
|
+
tmp_6 = !element_0.b35_1.r();
|
|
2192
2208
|
}
|
|
2193
2209
|
if (tmp_6) {
|
|
2194
2210
|
tmp$ret$4 = true;
|
|
@@ -2202,32 +2218,32 @@ function EndpointDslFile$build$lambda($kotestPkg, $shape, $endpointPkg, $present
|
|
|
2202
2218
|
var needsArbConstant = tmp_1;
|
|
2203
2219
|
var tmp_7;
|
|
2204
2220
|
if (isListBody) {
|
|
2205
|
-
$this$file.
|
|
2221
|
+
$this$file.g16('io.kotest.property.arbitrary', 'int');
|
|
2206
2222
|
tmp_7 = Unit_instance;
|
|
2207
2223
|
}
|
|
2208
2224
|
var tmp_8;
|
|
2209
2225
|
if (needsArbConstant) {
|
|
2210
|
-
$this$file.
|
|
2226
|
+
$this$file.g16('io.kotest.property.arbitrary', 'constant');
|
|
2211
2227
|
tmp_8 = Unit_instance;
|
|
2212
2228
|
}
|
|
2213
2229
|
// Inline function 'kotlin.collections.forEach' call
|
|
2214
|
-
var _iterator__ex2g4s_1 = $shape.
|
|
2230
|
+
var _iterator__ex2g4s_1 = $shape.s34_1.t();
|
|
2215
2231
|
while (_iterator__ex2g4s_1.u()) {
|
|
2216
2232
|
var element_1 = _iterator__ex2g4s_1.v();
|
|
2217
|
-
$this$file.
|
|
2233
|
+
$this$file.g16($modelPkg, Companion_getInstance().au(element_1).du());
|
|
2218
2234
|
}
|
|
2219
2235
|
buildGenerateWrapper(EndpointDslFile_instance, $this$file, $shape);
|
|
2220
|
-
$this$file.
|
|
2236
|
+
$this$file.i16('generate', Custom_init_$Create$($shape.j34_1 + 'Generate'), VOID, Visibility_PUBLIC_getInstance(), Custom_init_$Create$($shape.j34_1), VOID, VOID, new FunctionCall(VOID, VOID, Companion_getInstance().au($shape.j34_1 + 'Generate')));
|
|
2221
2237
|
buildRequestCall(EndpointDslFile_instance, $this$file, $shape);
|
|
2222
2238
|
var tmp_9;
|
|
2223
2239
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
2224
|
-
if (!$shape.
|
|
2240
|
+
if (!$shape.r34_1.r()) {
|
|
2225
2241
|
buildResponseMock(EndpointDslFile_instance, $this$file, $shape);
|
|
2226
2242
|
tmp_9 = Unit_instance;
|
|
2227
2243
|
}
|
|
2228
2244
|
buildScopeClass(EndpointDslFile_instance, $this$file, $shape, $present, $required);
|
|
2229
2245
|
// Inline function 'kotlin.collections.forEach' call
|
|
2230
|
-
var _iterator__ex2g4s_2 = $shape.
|
|
2246
|
+
var _iterator__ex2g4s_2 = $shape.r34_1.t();
|
|
2231
2247
|
while (_iterator__ex2g4s_2.u()) {
|
|
2232
2248
|
var element_2 = _iterator__ex2g4s_2.v();
|
|
2233
2249
|
buildResponseScope(EndpointDslFile_instance, $this$file, $shape, element_2);
|
|
@@ -2243,206 +2259,206 @@ function EndpointDslFile$build$lambda($kotestPkg, $shape, $endpointPkg, $present
|
|
|
2243
2259
|
}
|
|
2244
2260
|
function EndpointDslFile$buildGenerateWrapper$lambda$lambda($shape) {
|
|
2245
2261
|
return function ($this$asyncFunction) {
|
|
2246
|
-
$this$asyncFunction.
|
|
2247
|
-
$this$asyncFunction.
|
|
2248
|
-
$this$asyncFunction.
|
|
2249
|
-
$this$asyncFunction.
|
|
2250
|
-
$this$asyncFunction.
|
|
2251
|
-
$this$asyncFunction.
|
|
2262
|
+
$this$asyncFunction.z13(Visibility_PUBLIC_getInstance());
|
|
2263
|
+
$this$asyncFunction.a14('block', suspendScopeType(EndpointDslFile_instance, $shape.j34_1 + 'Scope'));
|
|
2264
|
+
$this$asyncFunction.x13(arbOf_0(EndpointDslFile_instance, $shape.j34_1 + '.Request'));
|
|
2265
|
+
$this$asyncFunction.e14('scope', new FunctionCall(VOID, VOID, Companion_getInstance().au($shape.j34_1 + 'Scope')));
|
|
2266
|
+
$this$asyncFunction.o14('block', VariableReference_init_$Create$('scope'));
|
|
2267
|
+
$this$asyncFunction.d14(new FunctionCall(VariableReference_init_$Create$('scope'), VOID, Companion_getInstance().au('buildRequest')));
|
|
2252
2268
|
return Unit_instance;
|
|
2253
2269
|
};
|
|
2254
2270
|
}
|
|
2255
2271
|
function EndpointDslFile$buildGenerateWrapper$lambda$lambda_0($scopeName, $shape, $variant) {
|
|
2256
2272
|
return function ($this$function) {
|
|
2257
|
-
$this$function.
|
|
2258
|
-
$this$function.
|
|
2259
|
-
$this$function.
|
|
2260
|
-
$this$function.
|
|
2273
|
+
$this$function.z13(Visibility_PUBLIC_getInstance());
|
|
2274
|
+
$this$function.c14('block', blockType(EndpointDslFile_instance, $scopeName), $this$function.h15('{}'));
|
|
2275
|
+
$this$function.x13(arbOf_0(EndpointDslFile_instance, $shape.j34_1 + '.' + $variant.x34_1));
|
|
2276
|
+
$this$function.d14($this$function.h15($scopeName + '().apply(block).build()'));
|
|
2261
2277
|
return Unit_instance;
|
|
2262
2278
|
};
|
|
2263
2279
|
}
|
|
2264
2280
|
function EndpointDslFile$buildGenerateWrapper$lambda($shape) {
|
|
2265
2281
|
return function ($this$struct) {
|
|
2266
|
-
$this$struct.
|
|
2267
|
-
$this$struct.
|
|
2268
|
-
$this$struct.
|
|
2269
|
-
$this$struct.
|
|
2282
|
+
$this$struct.v15();
|
|
2283
|
+
$this$struct.z13(Visibility_PUBLIC_getInstance());
|
|
2284
|
+
$this$struct.w15(Visibility_INTERNAL_getInstance());
|
|
2285
|
+
$this$struct.o16('request', VOID, VOID, EndpointDslFile$buildGenerateWrapper$lambda$lambda($shape));
|
|
2270
2286
|
// Inline function 'kotlin.collections.forEach' call
|
|
2271
|
-
var _iterator__ex2g4s = $shape.
|
|
2287
|
+
var _iterator__ex2g4s = $shape.r34_1.t();
|
|
2272
2288
|
while (_iterator__ex2g4s.u()) {
|
|
2273
2289
|
var element = _iterator__ex2g4s.v();
|
|
2274
|
-
var scopeName = $shape.
|
|
2275
|
-
var tmp = 'response' + element.
|
|
2276
|
-
$this$struct.
|
|
2290
|
+
var scopeName = $shape.j34_1 + element.x34_1 + 'Scope';
|
|
2291
|
+
var tmp = 'response' + element.w34_1;
|
|
2292
|
+
$this$struct.k16(tmp, VOID, VOID, EndpointDslFile$buildGenerateWrapper$lambda$lambda_0(scopeName, $shape, element));
|
|
2277
2293
|
}
|
|
2278
2294
|
return Unit_instance;
|
|
2279
2295
|
};
|
|
2280
2296
|
}
|
|
2281
2297
|
function EndpointDslFile$buildRequestCall$lambda($shape) {
|
|
2282
2298
|
return function ($this$asyncFunction) {
|
|
2283
|
-
$this$asyncFunction.
|
|
2284
|
-
$this$asyncFunction.
|
|
2285
|
-
$this$asyncFunction.
|
|
2286
|
-
$this$asyncFunction.
|
|
2299
|
+
$this$asyncFunction.z13(Visibility_PUBLIC_getInstance());
|
|
2300
|
+
$this$asyncFunction.y13(genOf_0(EndpointDslFile_instance, $shape.j34_1 + '.Request'));
|
|
2301
|
+
$this$asyncFunction.x13(Custom_init_$Create$($shape.j34_1 + '.Response<*>'));
|
|
2302
|
+
$this$asyncFunction.d14($this$asyncFunction.h15('requestCall(' + $shape.j34_1 + '.api, ' + $shape.j34_1 + ', this)'));
|
|
2287
2303
|
return Unit_instance;
|
|
2288
2304
|
};
|
|
2289
2305
|
}
|
|
2290
2306
|
function EndpointDslFile$buildResponseMock$lambda($shape) {
|
|
2291
2307
|
return function ($this$asyncFunction) {
|
|
2292
|
-
$this$asyncFunction.
|
|
2293
|
-
$this$asyncFunction.
|
|
2294
|
-
$this$asyncFunction.
|
|
2295
|
-
$this$asyncFunction.
|
|
2296
|
-
$this$asyncFunction.
|
|
2308
|
+
$this$asyncFunction.z13(Visibility_PUBLIC_getInstance());
|
|
2309
|
+
$this$asyncFunction.y13(genOf_0(EndpointDslFile_instance, $shape.j34_1 + '.Response<*>'));
|
|
2310
|
+
$this$asyncFunction.a14('predicate', new Function_0(listOf(Custom_init_$Create$($shape.j34_1 + '.Request')), Boolean_instance));
|
|
2311
|
+
$this$asyncFunction.x13(Unit_instance_0);
|
|
2312
|
+
$this$asyncFunction.d14($this$asyncFunction.h15('responseMock(' + $shape.j34_1 + '.api, this, predicate)'));
|
|
2297
2313
|
return Unit_instance;
|
|
2298
2314
|
};
|
|
2299
2315
|
}
|
|
2300
2316
|
function EndpointDslFile$buildResponseScope$lambda$lambda($variantType, $bodyType, $variant) {
|
|
2301
2317
|
return function ($this$function) {
|
|
2302
|
-
$this$function.
|
|
2303
|
-
$this$function.
|
|
2318
|
+
$this$function.z13(Visibility_PUBLIC_getInstance());
|
|
2319
|
+
$this$function.x13(arbOf_0(EndpointDslFile_instance, $variantType));
|
|
2304
2320
|
var tmp;
|
|
2305
2321
|
if (!($bodyType == null)) {
|
|
2306
|
-
$this$function.
|
|
2322
|
+
$this$function.w14('body?.let { inner.body(it) }');
|
|
2307
2323
|
tmp = Unit_instance;
|
|
2308
2324
|
}
|
|
2309
2325
|
// Inline function 'kotlin.collections.forEach' call
|
|
2310
|
-
var _iterator__ex2g4s = $variant.
|
|
2326
|
+
var _iterator__ex2g4s = $variant.b35_1.t();
|
|
2311
2327
|
while (_iterator__ex2g4s.u()) {
|
|
2312
2328
|
var element = _iterator__ex2g4s.v();
|
|
2313
|
-
$this$function.
|
|
2329
|
+
$this$function.w14(escapeKotlinIdentifier(element.t34_1) + '?.let { inner.headerGen("' + element.t34_1 + '", it) }');
|
|
2314
2330
|
}
|
|
2315
|
-
$this$function.
|
|
2316
|
-
$this$function.
|
|
2331
|
+
$this$function.w14('@Suppress("UNCHECKED_CAST")');
|
|
2332
|
+
$this$function.d14($this$function.j15(new FunctionCall(VariableReference_init_$Create$('inner'), VOID, Companion_getInstance().au('buildGen')), arbOf_0(EndpointDslFile_instance, $variantType)));
|
|
2317
2333
|
return Unit_instance;
|
|
2318
2334
|
};
|
|
2319
2335
|
}
|
|
2320
2336
|
function EndpointDslFile$buildResponseScope$lambda($shape, $variantType, $bodyType, $variant) {
|
|
2321
2337
|
return function ($this$struct) {
|
|
2322
|
-
$this$struct.
|
|
2323
|
-
$this$struct.
|
|
2324
|
-
$this$struct.
|
|
2325
|
-
$this$struct.
|
|
2326
|
-
$this$struct.
|
|
2338
|
+
$this$struct.v15();
|
|
2339
|
+
$this$struct.u15('@WirespecScenarioDsl');
|
|
2340
|
+
$this$struct.z13(Visibility_PUBLIC_getInstance());
|
|
2341
|
+
$this$struct.w15(Visibility_INTERNAL_getInstance());
|
|
2342
|
+
$this$struct.w14('private val inner = responseCall(' + $shape.j34_1 + ', ' + $variantType + '::class)');
|
|
2327
2343
|
var tmp;
|
|
2328
2344
|
if (!($bodyType == null)) {
|
|
2329
|
-
$this$struct.
|
|
2345
|
+
$this$struct.i16('body', genNullableOf(EndpointDslFile_instance, $bodyType), true, Visibility_PUBLIC_getInstance(), VOID, VOID, $this$struct.h15('null'));
|
|
2330
2346
|
valueSetter($this$struct, 'body', $bodyType);
|
|
2331
2347
|
tmp = Unit_instance;
|
|
2332
2348
|
}
|
|
2333
2349
|
// Inline function 'kotlin.collections.forEach' call
|
|
2334
|
-
var _iterator__ex2g4s = $variant.
|
|
2350
|
+
var _iterator__ex2g4s = $variant.b35_1.t();
|
|
2335
2351
|
while (_iterator__ex2g4s.u()) {
|
|
2336
2352
|
var element = _iterator__ex2g4s.v();
|
|
2337
|
-
$this$struct.
|
|
2338
|
-
valueSetter($this$struct, element.
|
|
2353
|
+
$this$struct.i16(element.t34_1, genNullableOf(EndpointDslFile_instance, element.u34_1), true, Visibility_PUBLIC_getInstance(), VOID, VOID, $this$struct.h15('null'));
|
|
2354
|
+
valueSetter($this$struct, element.t34_1, element.u34_1);
|
|
2339
2355
|
}
|
|
2340
|
-
$this$struct.
|
|
2356
|
+
$this$struct.k16('build', VOID, VOID, EndpointDslFile$buildResponseScope$lambda$lambda($variantType, $bodyType, $variant));
|
|
2341
2357
|
return Unit_instance;
|
|
2342
2358
|
};
|
|
2343
2359
|
}
|
|
2344
2360
|
function EndpointDslFile$buildScopeClass$lambda$lambda($builderClass, $slot) {
|
|
2345
2361
|
return function ($this$function) {
|
|
2346
|
-
$this$function.
|
|
2347
|
-
$this$function.
|
|
2348
|
-
$this$function.
|
|
2362
|
+
$this$function.z13(Visibility_PUBLIC_getInstance());
|
|
2363
|
+
$this$function.a14('block', blockType(EndpointDslFile_instance, $builderClass));
|
|
2364
|
+
$this$function.w14('this.' + $slot.g34_1 + ' = block');
|
|
2349
2365
|
return Unit_instance;
|
|
2350
2366
|
};
|
|
2351
2367
|
}
|
|
2352
2368
|
function EndpointDslFile$buildScopeClass$lambda$lambda_0($builderName) {
|
|
2353
2369
|
return function ($this$function) {
|
|
2354
|
-
$this$function.
|
|
2355
|
-
$this$function.
|
|
2356
|
-
$this$function.
|
|
2370
|
+
$this$function.z13(Visibility_PUBLIC_getInstance());
|
|
2371
|
+
$this$function.a14('block', blockType(EndpointDslFile_instance, $builderName));
|
|
2372
|
+
$this$function.w14('this.body = block');
|
|
2357
2373
|
return Unit_instance;
|
|
2358
2374
|
};
|
|
2359
2375
|
}
|
|
2360
2376
|
function EndpointDslFile$buildScopeClass$lambda$lambda_1($shape, $present, $required) {
|
|
2361
2377
|
return function ($this$function) {
|
|
2362
|
-
$this$function.
|
|
2378
|
+
$this$function.z13(Visibility_PRIVATE_getInstance());
|
|
2363
2379
|
// Inline function 'kotlin.text.trimEnd' call
|
|
2364
2380
|
var this_0 = renderFlushBody(EndpointDslFile_instance, $shape, $present, $required);
|
|
2365
2381
|
var tmp$ret$0 = toString(trimEnd(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
2366
|
-
$this$function.
|
|
2382
|
+
$this$function.w14(tmp$ret$0);
|
|
2367
2383
|
return Unit_instance;
|
|
2368
2384
|
};
|
|
2369
2385
|
}
|
|
2370
2386
|
function EndpointDslFile$buildScopeClass$lambda$lambda_2($shape) {
|
|
2371
2387
|
return function ($this$function) {
|
|
2372
|
-
$this$function.
|
|
2373
|
-
$this$function.
|
|
2374
|
-
$this$function.
|
|
2375
|
-
$this$function.
|
|
2388
|
+
$this$function.z13(Visibility_PUBLIC_getInstance());
|
|
2389
|
+
$this$function.x13(arbOf_0(EndpointDslFile_instance, $shape.j34_1 + '.Request'));
|
|
2390
|
+
$this$function.w14('flush()');
|
|
2391
|
+
$this$function.d14($this$function.h15('inner.buildRequestGen()'));
|
|
2376
2392
|
return Unit_instance;
|
|
2377
2393
|
};
|
|
2378
2394
|
}
|
|
2379
2395
|
function EndpointDslFile$buildScopeClass$lambda($shape, $present, $required) {
|
|
2380
2396
|
return function ($this$struct) {
|
|
2381
|
-
$this$struct.
|
|
2382
|
-
$this$struct.
|
|
2383
|
-
$this$struct.
|
|
2384
|
-
$this$struct.
|
|
2385
|
-
$this$struct.
|
|
2397
|
+
$this$struct.v15();
|
|
2398
|
+
$this$struct.u15('@WirespecScenarioDsl');
|
|
2399
|
+
$this$struct.z13(Visibility_PUBLIC_getInstance());
|
|
2400
|
+
$this$struct.w15(Visibility_INTERNAL_getInstance());
|
|
2401
|
+
$this$struct.w14('private val inner = endpointCall(' + $shape.j34_1 + '.api, ' + $shape.j34_1 + ')');
|
|
2386
2402
|
// Inline function 'kotlin.collections.forEach' call
|
|
2387
2403
|
var _iterator__ex2g4s = $present.t();
|
|
2388
2404
|
while (_iterator__ex2g4s.u()) {
|
|
2389
2405
|
var element = _iterator__ex2g4s.v();
|
|
2390
2406
|
var builderClass = slotBuilderName(EndpointDslFile_instance, $shape, element);
|
|
2391
|
-
$this$struct.
|
|
2392
|
-
$this$struct.
|
|
2407
|
+
$this$struct.i16(element.g34_1, new Nullable(blockType(EndpointDslFile_instance, builderClass)), true, Visibility_PRIVATE_getInstance(), VOID, VOID, $this$struct.h15('null'));
|
|
2408
|
+
$this$struct.k16(element.g34_1, VOID, VOID, EndpointDslFile$buildScopeClass$lambda$lambda(builderClass, element));
|
|
2393
2409
|
}
|
|
2394
2410
|
var tmp;
|
|
2395
2411
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
2396
|
-
if (!$shape.
|
|
2397
|
-
var builderName = RecordBuilder_instance.
|
|
2398
|
-
$this$struct.
|
|
2399
|
-
$this$struct.
|
|
2412
|
+
if (!$shape.q34_1.r()) {
|
|
2413
|
+
var builderName = RecordBuilder_instance.e34(requireBodyElementType(EndpointDslFile_instance, $shape));
|
|
2414
|
+
$this$struct.i16('body', new Nullable(blockType(EndpointDslFile_instance, builderName)), true, Visibility_PRIVATE_getInstance(), VOID, VOID, $this$struct.h15('null'));
|
|
2415
|
+
$this$struct.k16('body', VOID, VOID, EndpointDslFile$buildScopeClass$lambda$lambda_0(builderName));
|
|
2400
2416
|
var tmp_0;
|
|
2401
|
-
if ($shape.
|
|
2402
|
-
$this$struct.
|
|
2417
|
+
if ($shape.n34_1.equals(BodyKind_List_getInstance())) {
|
|
2418
|
+
$this$struct.i16('bodyCount', Custom_init_$Create$('IntRange'), true, Visibility_PUBLIC_getInstance(), VOID, VOID, $this$struct.h15('1..3'));
|
|
2403
2419
|
tmp_0 = Unit_instance;
|
|
2404
2420
|
}
|
|
2405
2421
|
tmp = tmp_0;
|
|
2406
2422
|
}
|
|
2407
2423
|
var tmp_1;
|
|
2408
|
-
if ($shape.
|
|
2424
|
+
if ($shape.n34_1.equals(BodyKind_Primitive_getInstance())) {
|
|
2409
2425
|
var bodyType = requireBodyPrimitiveType(EndpointDslFile_instance, $shape);
|
|
2410
|
-
$this$struct.
|
|
2426
|
+
$this$struct.i16('body', genNullableOf(EndpointDslFile_instance, bodyType), true, Visibility_PUBLIC_getInstance(), VOID, VOID, $this$struct.h15('null'));
|
|
2411
2427
|
valueSetter($this$struct, 'body', bodyType);
|
|
2412
2428
|
tmp_1 = Unit_instance;
|
|
2413
2429
|
}
|
|
2414
|
-
$this$struct.
|
|
2415
|
-
$this$struct.
|
|
2416
|
-
$this$struct.
|
|
2430
|
+
$this$struct.i16('flushed', Boolean_instance, true, Visibility_PRIVATE_getInstance(), VOID, VOID, $this$struct.h15('false'));
|
|
2431
|
+
$this$struct.k16('flush', VOID, VOID, EndpointDslFile$buildScopeClass$lambda$lambda_1($shape, $present, $required));
|
|
2432
|
+
$this$struct.k16('buildRequest', VOID, VOID, EndpointDslFile$buildScopeClass$lambda$lambda_2($shape));
|
|
2417
2433
|
return Unit_instance;
|
|
2418
2434
|
};
|
|
2419
2435
|
}
|
|
2420
2436
|
function EndpointDslFile$buildSlotBuilder$lambda($slot) {
|
|
2421
2437
|
return function ($this$struct) {
|
|
2422
|
-
$this$struct.
|
|
2423
|
-
$this$struct.
|
|
2424
|
-
$this$struct.
|
|
2438
|
+
$this$struct.v15();
|
|
2439
|
+
$this$struct.u15('@WirespecScenarioDsl');
|
|
2440
|
+
$this$struct.z13(Visibility_PUBLIC_getInstance());
|
|
2425
2441
|
// Inline function 'kotlin.collections.forEach' call
|
|
2426
|
-
var _iterator__ex2g4s = $slot.
|
|
2442
|
+
var _iterator__ex2g4s = $slot.i34_1.t();
|
|
2427
2443
|
while (_iterator__ex2g4s.u()) {
|
|
2428
2444
|
var element = _iterator__ex2g4s.v();
|
|
2429
|
-
$this$struct.
|
|
2430
|
-
valueSetter($this$struct, element.
|
|
2445
|
+
$this$struct.i16(element.t34_1, genNullableOf(EndpointDslFile_instance, element.u34_1), true, Visibility_PUBLIC_getInstance(), VOID, VOID, $this$struct.h15('null'));
|
|
2446
|
+
valueSetter($this$struct, element.t34_1, element.u34_1);
|
|
2431
2447
|
}
|
|
2432
2448
|
return Unit_instance;
|
|
2433
2449
|
};
|
|
2434
2450
|
}
|
|
2435
2451
|
function EndpointDslFile() {
|
|
2436
2452
|
}
|
|
2437
|
-
protoOf(EndpointDslFile).
|
|
2438
|
-
var shape = Companion_instance_4.
|
|
2453
|
+
protoOf(EndpointDslFile).h35 = function (endpoint, packageName, types, refined) {
|
|
2454
|
+
var shape = Companion_instance_4.i35(endpoint, types, refined);
|
|
2439
2455
|
var present = presentSlots(this, shape);
|
|
2440
2456
|
var required = requiredSlots(this, shape);
|
|
2441
2457
|
var kotestPkg = packageName.bt_1 + '.kotest';
|
|
2442
2458
|
var endpointPkg = packageName.bt_1 + '.endpoint';
|
|
2443
2459
|
var modelPkg = packageName.bt_1 + '.model';
|
|
2444
|
-
var fileName = Companion_instance_0.at(kotestPkg).dt() + (shape.
|
|
2445
|
-
var tmp = Companion_getInstance().
|
|
2460
|
+
var fileName = Companion_instance_0.at(kotestPkg).dt() + (shape.j34_1 + 'Dsl');
|
|
2461
|
+
var tmp = Companion_getInstance().au(fileName);
|
|
2446
2462
|
return file(tmp, EndpointDslFile$build$lambda(kotestPkg, shape, endpointPkg, present, modelPkg, required));
|
|
2447
2463
|
};
|
|
2448
2464
|
var EndpointDslFile_instance;
|
|
@@ -2464,20 +2480,20 @@ function BodyKind_initEntries() {
|
|
|
2464
2480
|
BodyKind_Primitive_instance = new BodyKind('Primitive', 3);
|
|
2465
2481
|
}
|
|
2466
2482
|
function Primitive_0(name, type, refinement) {
|
|
2467
|
-
this.
|
|
2468
|
-
this.
|
|
2469
|
-
this.
|
|
2483
|
+
this.j35_1 = name;
|
|
2484
|
+
this.k35_1 = type;
|
|
2485
|
+
this.l35_1 = refinement;
|
|
2470
2486
|
}
|
|
2471
2487
|
protoOf(Primitive_0).m = function () {
|
|
2472
|
-
return this.
|
|
2488
|
+
return this.j35_1;
|
|
2473
2489
|
};
|
|
2474
2490
|
protoOf(Primitive_0).toString = function () {
|
|
2475
|
-
return 'Primitive(name=' + this.
|
|
2491
|
+
return 'Primitive(name=' + this.j35_1 + ', type=' + toString(this.k35_1) + ', refinement=' + toString_1(this.l35_1) + ')';
|
|
2476
2492
|
};
|
|
2477
2493
|
protoOf(Primitive_0).hashCode = function () {
|
|
2478
|
-
var result = getStringHashCode(this.
|
|
2479
|
-
result = imul(result, 31) + hashCode(this.
|
|
2480
|
-
result = imul(result, 31) + (this.
|
|
2494
|
+
var result = getStringHashCode(this.j35_1);
|
|
2495
|
+
result = imul(result, 31) + hashCode(this.k35_1) | 0;
|
|
2496
|
+
result = imul(result, 31) + (this.l35_1 == null ? 0 : hashCode(this.l35_1)) | 0;
|
|
2481
2497
|
return result;
|
|
2482
2498
|
};
|
|
2483
2499
|
protoOf(Primitive_0).equals = function (other) {
|
|
@@ -2485,27 +2501,27 @@ protoOf(Primitive_0).equals = function (other) {
|
|
|
2485
2501
|
return true;
|
|
2486
2502
|
if (!(other instanceof Primitive_0))
|
|
2487
2503
|
return false;
|
|
2488
|
-
if (!(this.
|
|
2504
|
+
if (!(this.j35_1 === other.j35_1))
|
|
2489
2505
|
return false;
|
|
2490
|
-
if (!equals(this.
|
|
2506
|
+
if (!equals(this.k35_1, other.k35_1))
|
|
2491
2507
|
return false;
|
|
2492
|
-
if (!equals(this.
|
|
2508
|
+
if (!equals(this.l35_1, other.l35_1))
|
|
2493
2509
|
return false;
|
|
2494
2510
|
return true;
|
|
2495
2511
|
};
|
|
2496
2512
|
function Nested(name, record) {
|
|
2497
|
-
this.
|
|
2498
|
-
this.
|
|
2513
|
+
this.m35_1 = name;
|
|
2514
|
+
this.n35_1 = record;
|
|
2499
2515
|
}
|
|
2500
2516
|
protoOf(Nested).m = function () {
|
|
2501
|
-
return this.
|
|
2517
|
+
return this.m35_1;
|
|
2502
2518
|
};
|
|
2503
2519
|
protoOf(Nested).toString = function () {
|
|
2504
|
-
return 'Nested(name=' + this.
|
|
2520
|
+
return 'Nested(name=' + this.m35_1 + ', record=' + this.n35_1.toString() + ')';
|
|
2505
2521
|
};
|
|
2506
2522
|
protoOf(Nested).hashCode = function () {
|
|
2507
|
-
var result = getStringHashCode(this.
|
|
2508
|
-
result = imul(result, 31) + this.
|
|
2523
|
+
var result = getStringHashCode(this.m35_1);
|
|
2524
|
+
result = imul(result, 31) + this.n35_1.hashCode() | 0;
|
|
2509
2525
|
return result;
|
|
2510
2526
|
};
|
|
2511
2527
|
protoOf(Nested).equals = function (other) {
|
|
@@ -2513,9 +2529,9 @@ protoOf(Nested).equals = function (other) {
|
|
|
2513
2529
|
return true;
|
|
2514
2530
|
if (!(other instanceof Nested))
|
|
2515
2531
|
return false;
|
|
2516
|
-
if (!(this.
|
|
2532
|
+
if (!(this.m35_1 === other.m35_1))
|
|
2517
2533
|
return false;
|
|
2518
|
-
if (!this.
|
|
2534
|
+
if (!this.n35_1.equals(other.n35_1))
|
|
2519
2535
|
return false;
|
|
2520
2536
|
return true;
|
|
2521
2537
|
};
|
|
@@ -2531,17 +2547,17 @@ function classifyBody($this, reference) {
|
|
|
2531
2547
|
tmp = to(BodyKind_None_getInstance(), null);
|
|
2532
2548
|
} else {
|
|
2533
2549
|
if (reference instanceof Custom) {
|
|
2534
|
-
tmp = to(BodyKind_Object_getInstance(), reference.
|
|
2550
|
+
tmp = to(BodyKind_Object_getInstance(), reference.b1a_1);
|
|
2535
2551
|
} else {
|
|
2536
2552
|
if (reference instanceof Iterable) {
|
|
2537
|
-
var tmp_1 = reference.
|
|
2553
|
+
var tmp_1 = reference.zp_1;
|
|
2538
2554
|
var tmp1_safe_receiver = tmp_1 instanceof Custom ? tmp_1 : null;
|
|
2539
2555
|
var tmp_2;
|
|
2540
2556
|
if (tmp1_safe_receiver == null) {
|
|
2541
2557
|
tmp_2 = null;
|
|
2542
2558
|
} else {
|
|
2543
2559
|
// Inline function 'kotlin.let' call
|
|
2544
|
-
tmp_2 = to(BodyKind_List_getInstance(), tmp1_safe_receiver.
|
|
2560
|
+
tmp_2 = to(BodyKind_List_getInstance(), tmp1_safe_receiver.b1a_1);
|
|
2545
2561
|
}
|
|
2546
2562
|
var tmp2_elvis_lhs = tmp_2;
|
|
2547
2563
|
tmp = tmp2_elvis_lhs == null ? to(BodyKind_None_getInstance(), null) : tmp2_elvis_lhs;
|
|
@@ -2559,21 +2575,21 @@ function classifyBody($this, reference) {
|
|
|
2559
2575
|
function mapWithRefinedUnwrap($this, reference, refined) {
|
|
2560
2576
|
var tmp;
|
|
2561
2577
|
if (reference instanceof Custom) {
|
|
2562
|
-
var tmp1_safe_receiver = refined.
|
|
2563
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2564
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
2578
|
+
var tmp1_safe_receiver = refined.t2(reference.b1a_1);
|
|
2579
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ns_1;
|
|
2580
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.y1f(VOID, reference.c1a_1);
|
|
2565
2581
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : convert(tmp3_safe_receiver);
|
|
2566
2582
|
tmp = tmp4_elvis_lhs == null ? convert(reference) : tmp4_elvis_lhs;
|
|
2567
2583
|
} else {
|
|
2568
2584
|
if (reference instanceof Iterable) {
|
|
2569
2585
|
// Inline function 'kotlin.let' call
|
|
2570
|
-
var it = new Array_0(mapWithRefinedUnwrap($this, reference.
|
|
2571
|
-
tmp = reference.
|
|
2586
|
+
var it = new Array_0(mapWithRefinedUnwrap($this, reference.zp_1, refined));
|
|
2587
|
+
tmp = reference.aq_1 ? new Nullable(it) : it;
|
|
2572
2588
|
} else {
|
|
2573
2589
|
if (reference instanceof Dict) {
|
|
2574
2590
|
// Inline function 'kotlin.let' call
|
|
2575
|
-
var it_0 = new Dict_0(String_instance, mapWithRefinedUnwrap($this, reference.
|
|
2576
|
-
tmp = reference.
|
|
2591
|
+
var it_0 = new Dict_0(String_instance, mapWithRefinedUnwrap($this, reference.cq_1, refined));
|
|
2592
|
+
tmp = reference.dq_1 ? new Nullable(it_0) : it_0;
|
|
2577
2593
|
} else {
|
|
2578
2594
|
tmp = convert(reference);
|
|
2579
2595
|
}
|
|
@@ -2583,17 +2599,17 @@ function mapWithRefinedUnwrap($this, reference, refined) {
|
|
|
2583
2599
|
}
|
|
2584
2600
|
function NamedTypedField(name, type, isNullable) {
|
|
2585
2601
|
isNullable = isNullable === VOID ? false : isNullable;
|
|
2586
|
-
this.
|
|
2587
|
-
this.
|
|
2588
|
-
this.
|
|
2602
|
+
this.t34_1 = name;
|
|
2603
|
+
this.u34_1 = type;
|
|
2604
|
+
this.v34_1 = isNullable;
|
|
2589
2605
|
}
|
|
2590
2606
|
protoOf(NamedTypedField).toString = function () {
|
|
2591
|
-
return 'NamedTypedField(name=' + this.
|
|
2607
|
+
return 'NamedTypedField(name=' + this.t34_1 + ', type=' + toString(this.u34_1) + ', isNullable=' + this.v34_1 + ')';
|
|
2592
2608
|
};
|
|
2593
2609
|
protoOf(NamedTypedField).hashCode = function () {
|
|
2594
|
-
var result = getStringHashCode(this.
|
|
2595
|
-
result = imul(result, 31) + hashCode(this.
|
|
2596
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2610
|
+
var result = getStringHashCode(this.t34_1);
|
|
2611
|
+
result = imul(result, 31) + hashCode(this.u34_1) | 0;
|
|
2612
|
+
result = imul(result, 31) + getBooleanHashCode(this.v34_1) | 0;
|
|
2597
2613
|
return result;
|
|
2598
2614
|
};
|
|
2599
2615
|
protoOf(NamedTypedField).equals = function (other) {
|
|
@@ -2601,32 +2617,32 @@ protoOf(NamedTypedField).equals = function (other) {
|
|
|
2601
2617
|
return true;
|
|
2602
2618
|
if (!(other instanceof NamedTypedField))
|
|
2603
2619
|
return false;
|
|
2604
|
-
if (!(this.
|
|
2620
|
+
if (!(this.t34_1 === other.t34_1))
|
|
2605
2621
|
return false;
|
|
2606
|
-
if (!equals(this.
|
|
2622
|
+
if (!equals(this.u34_1, other.u34_1))
|
|
2607
2623
|
return false;
|
|
2608
|
-
if (!(this.
|
|
2624
|
+
if (!(this.v34_1 === other.v34_1))
|
|
2609
2625
|
return false;
|
|
2610
2626
|
return true;
|
|
2611
2627
|
};
|
|
2612
2628
|
function ResponseVariantShape(status, className, bodyKind, bodyType, bodyElementType, headerFields) {
|
|
2613
|
-
this.
|
|
2614
|
-
this.
|
|
2615
|
-
this.
|
|
2616
|
-
this.
|
|
2617
|
-
this.
|
|
2618
|
-
this.
|
|
2629
|
+
this.w34_1 = status;
|
|
2630
|
+
this.x34_1 = className;
|
|
2631
|
+
this.y34_1 = bodyKind;
|
|
2632
|
+
this.z34_1 = bodyType;
|
|
2633
|
+
this.a35_1 = bodyElementType;
|
|
2634
|
+
this.b35_1 = headerFields;
|
|
2619
2635
|
}
|
|
2620
2636
|
protoOf(ResponseVariantShape).toString = function () {
|
|
2621
|
-
return 'ResponseVariantShape(status=' + this.
|
|
2637
|
+
return 'ResponseVariantShape(status=' + this.w34_1 + ', className=' + this.x34_1 + ', bodyKind=' + this.y34_1.toString() + ', bodyType=' + toString_1(this.z34_1) + ', bodyElementType=' + this.a35_1 + ', headerFields=' + toString(this.b35_1) + ')';
|
|
2622
2638
|
};
|
|
2623
2639
|
protoOf(ResponseVariantShape).hashCode = function () {
|
|
2624
|
-
var result = getStringHashCode(this.
|
|
2625
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2626
|
-
result = imul(result, 31) + this.
|
|
2627
|
-
result = imul(result, 31) + (this.
|
|
2628
|
-
result = imul(result, 31) + (this.
|
|
2629
|
-
result = imul(result, 31) + hashCode(this.
|
|
2640
|
+
var result = getStringHashCode(this.w34_1);
|
|
2641
|
+
result = imul(result, 31) + getStringHashCode(this.x34_1) | 0;
|
|
2642
|
+
result = imul(result, 31) + this.y34_1.hashCode() | 0;
|
|
2643
|
+
result = imul(result, 31) + (this.z34_1 == null ? 0 : hashCode(this.z34_1)) | 0;
|
|
2644
|
+
result = imul(result, 31) + (this.a35_1 == null ? 0 : getStringHashCode(this.a35_1)) | 0;
|
|
2645
|
+
result = imul(result, 31) + hashCode(this.b35_1) | 0;
|
|
2630
2646
|
return result;
|
|
2631
2647
|
};
|
|
2632
2648
|
protoOf(ResponseVariantShape).equals = function (other) {
|
|
@@ -2634,17 +2650,17 @@ protoOf(ResponseVariantShape).equals = function (other) {
|
|
|
2634
2650
|
return true;
|
|
2635
2651
|
if (!(other instanceof ResponseVariantShape))
|
|
2636
2652
|
return false;
|
|
2637
|
-
if (!(this.
|
|
2653
|
+
if (!(this.w34_1 === other.w34_1))
|
|
2638
2654
|
return false;
|
|
2639
|
-
if (!(this.
|
|
2655
|
+
if (!(this.x34_1 === other.x34_1))
|
|
2640
2656
|
return false;
|
|
2641
|
-
if (!this.
|
|
2657
|
+
if (!this.y34_1.equals(other.y34_1))
|
|
2642
2658
|
return false;
|
|
2643
|
-
if (!equals(this.
|
|
2659
|
+
if (!equals(this.z34_1, other.z34_1))
|
|
2644
2660
|
return false;
|
|
2645
|
-
if (!(this.
|
|
2661
|
+
if (!(this.a35_1 == other.a35_1))
|
|
2646
2662
|
return false;
|
|
2647
|
-
if (!equals(this.
|
|
2663
|
+
if (!equals(this.b35_1, other.b35_1))
|
|
2648
2664
|
return false;
|
|
2649
2665
|
return true;
|
|
2650
2666
|
};
|
|
@@ -2653,9 +2669,9 @@ function BodyKind(name, ordinal) {
|
|
|
2653
2669
|
}
|
|
2654
2670
|
function Companion_2() {
|
|
2655
2671
|
}
|
|
2656
|
-
protoOf(Companion_2).
|
|
2672
|
+
protoOf(Companion_2).i35 = function (endpoint, types, refined) {
|
|
2657
2673
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
2658
|
-
var tmp0 = endpoint.
|
|
2674
|
+
var tmp0 = endpoint.ir_1;
|
|
2659
2675
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
2660
2676
|
var destination = ArrayList_init_$Create$();
|
|
2661
2677
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -2671,38 +2687,38 @@ protoOf(Companion_2).d35 = function (endpoint, types, refined) {
|
|
|
2671
2687
|
var _iterator__ex2g4s_0 = destination.t();
|
|
2672
2688
|
while (_iterator__ex2g4s_0.u()) {
|
|
2673
2689
|
var item = _iterator__ex2g4s_0.v();
|
|
2674
|
-
var tmp$ret$4 = new NamedTypedField(item.
|
|
2690
|
+
var tmp$ret$4 = new NamedTypedField(item.nr_1.o1(), convert(item.or_1), item.or_1.ot());
|
|
2675
2691
|
destination_0.x(tmp$ret$4);
|
|
2676
2692
|
}
|
|
2677
2693
|
var pathFields = destination_0;
|
|
2678
2694
|
// Inline function 'kotlin.collections.map' call
|
|
2679
|
-
var this_0 = get_fields(endpoint.
|
|
2695
|
+
var this_0 = get_fields(endpoint.jr_1);
|
|
2680
2696
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2681
2697
|
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2682
2698
|
var _iterator__ex2g4s_1 = this_0.t();
|
|
2683
2699
|
while (_iterator__ex2g4s_1.u()) {
|
|
2684
2700
|
var item_0 = _iterator__ex2g4s_1.v();
|
|
2685
|
-
var tmp$ret$7 = new NamedTypedField(item_0.
|
|
2701
|
+
var tmp$ret$7 = new NamedTypedField(item_0.pp_1.o1(), convert(item_0.qp_1), item_0.qp_1.ot());
|
|
2686
2702
|
destination_1.x(tmp$ret$7);
|
|
2687
2703
|
}
|
|
2688
2704
|
var queryFields = destination_1;
|
|
2689
2705
|
// Inline function 'kotlin.collections.map' call
|
|
2690
|
-
var this_1 = get_fields(endpoint.
|
|
2706
|
+
var this_1 = get_fields(endpoint.kr_1);
|
|
2691
2707
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2692
2708
|
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
2693
2709
|
var _iterator__ex2g4s_2 = this_1.t();
|
|
2694
2710
|
while (_iterator__ex2g4s_2.u()) {
|
|
2695
2711
|
var item_1 = _iterator__ex2g4s_2.v();
|
|
2696
|
-
var tmp$ret$10 = new NamedTypedField(item_1.
|
|
2712
|
+
var tmp$ret$10 = new NamedTypedField(item_1.pp_1.o1(), convert(item_1.qp_1), item_1.qp_1.ot());
|
|
2697
2713
|
destination_2.x(tmp$ret$10);
|
|
2698
2714
|
}
|
|
2699
2715
|
var headerFields = destination_2;
|
|
2700
|
-
var tmp0_safe_receiver = firstOrNull_0(endpoint.
|
|
2701
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2702
|
-
var bodyRef = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2716
|
+
var tmp0_safe_receiver = firstOrNull_0(endpoint.lr_1);
|
|
2717
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pr_1;
|
|
2718
|
+
var bodyRef = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.rr_1;
|
|
2703
2719
|
var _destruct__k2r9zo = classifyBody(this, bodyRef);
|
|
2704
|
-
var bodyKind = _destruct__k2r9zo.
|
|
2705
|
-
var bodyElementType = _destruct__k2r9zo.
|
|
2720
|
+
var bodyKind = _destruct__k2r9zo.af();
|
|
2721
|
+
var bodyElementType = _destruct__k2r9zo.bf();
|
|
2706
2722
|
var tmp;
|
|
2707
2723
|
if (bodyRef == null) {
|
|
2708
2724
|
tmp = null;
|
|
@@ -2725,7 +2741,7 @@ protoOf(Companion_2).d35 = function (endpoint, types, refined) {
|
|
|
2725
2741
|
// Inline function 'kotlin.let' call
|
|
2726
2742
|
var tmp_2;
|
|
2727
2743
|
if (tmp4_safe_receiver instanceof Nullable) {
|
|
2728
|
-
tmp_2 = tmp4_safe_receiver.
|
|
2744
|
+
tmp_2 = tmp4_safe_receiver.vu_1;
|
|
2729
2745
|
} else {
|
|
2730
2746
|
tmp_2 = tmp4_safe_receiver;
|
|
2731
2747
|
}
|
|
@@ -2737,12 +2753,12 @@ protoOf(Companion_2).d35 = function (endpoint, types, refined) {
|
|
|
2737
2753
|
tmp_3 = null;
|
|
2738
2754
|
} else {
|
|
2739
2755
|
// Inline function 'kotlin.let' call
|
|
2740
|
-
tmp_3 = Companion_instance_4.
|
|
2756
|
+
tmp_3 = Companion_instance_4.y33(bodyElementType, types, refined);
|
|
2741
2757
|
}
|
|
2742
2758
|
var tmp6_elvis_lhs = tmp_3;
|
|
2743
2759
|
var bodyFieldShapes = tmp6_elvis_lhs == null ? emptyList() : tmp6_elvis_lhs;
|
|
2744
2760
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2745
|
-
var tmp0_0 = endpoint.
|
|
2761
|
+
var tmp0_0 = endpoint.mr_1;
|
|
2746
2762
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2747
2763
|
var destination_3 = ArrayList_init_$Create$();
|
|
2748
2764
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -2752,7 +2768,7 @@ protoOf(Companion_2).d35 = function (endpoint, types, refined) {
|
|
|
2752
2768
|
var tmp$ret$21;
|
|
2753
2769
|
$l$block_0: {
|
|
2754
2770
|
// Inline function 'kotlin.takeIf' call
|
|
2755
|
-
var this_2 = element_0.
|
|
2771
|
+
var this_2 = element_0.sr_1;
|
|
2756
2772
|
var tmp_4;
|
|
2757
2773
|
var tmp$ret$24;
|
|
2758
2774
|
$l$block: {
|
|
@@ -2782,8 +2798,8 @@ protoOf(Companion_2).d35 = function (endpoint, types, refined) {
|
|
|
2782
2798
|
tmp_5 = tmp0_elvis_lhs;
|
|
2783
2799
|
}
|
|
2784
2800
|
var status = tmp_5;
|
|
2785
|
-
var tmp1_safe_receiver_0 = element_0.
|
|
2786
|
-
var respBodyRef = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
2801
|
+
var tmp1_safe_receiver_0 = element_0.ur_1;
|
|
2802
|
+
var respBodyRef = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.rr_1;
|
|
2787
2803
|
var tmp_6;
|
|
2788
2804
|
if (respBodyRef == null) {
|
|
2789
2805
|
tmp_6 = null;
|
|
@@ -2799,17 +2815,17 @@ protoOf(Companion_2).d35 = function (endpoint, types, refined) {
|
|
|
2799
2815
|
}
|
|
2800
2816
|
var respBodyType = tmp_6;
|
|
2801
2817
|
var _destruct__k2r9zo_0 = classifyBody(Companion_instance_4, respBodyRef);
|
|
2802
|
-
var respBodyKind = _destruct__k2r9zo_0.
|
|
2803
|
-
var respElementName = _destruct__k2r9zo_0.
|
|
2818
|
+
var respBodyKind = _destruct__k2r9zo_0.af();
|
|
2819
|
+
var respElementName = _destruct__k2r9zo_0.bf();
|
|
2804
2820
|
var tmp_8 = 'Response' + status;
|
|
2805
2821
|
// Inline function 'kotlin.collections.map' call
|
|
2806
|
-
var this_3 = get_fields(element_0.
|
|
2822
|
+
var this_3 = get_fields(element_0.tr_1);
|
|
2807
2823
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2808
2824
|
var destination_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_3, 10));
|
|
2809
2825
|
var _iterator__ex2g4s_4 = this_3.t();
|
|
2810
2826
|
while (_iterator__ex2g4s_4.u()) {
|
|
2811
2827
|
var item_2 = _iterator__ex2g4s_4.v();
|
|
2812
|
-
var tmp$ret$30 = new NamedTypedField(item_2.
|
|
2828
|
+
var tmp$ret$30 = new NamedTypedField(item_2.pp_1.o1(), convert(item_2.qp_1), item_2.qp_1.ot());
|
|
2813
2829
|
destination_4.x(tmp$ret$30);
|
|
2814
2830
|
}
|
|
2815
2831
|
tmp$ret$21 = new ResponseVariantShape(status, tmp_8, respBodyKind, respBodyType, respElementName, destination_4);
|
|
@@ -2828,7 +2844,7 @@ protoOf(Companion_2).d35 = function (endpoint, types, refined) {
|
|
|
2828
2844
|
var _iterator__ex2g4s_5 = destination_3.t();
|
|
2829
2845
|
while (_iterator__ex2g4s_5.u()) {
|
|
2830
2846
|
var e = _iterator__ex2g4s_5.v();
|
|
2831
|
-
var key = e.
|
|
2847
|
+
var key = e.w34_1;
|
|
2832
2848
|
if (set.x(key)) {
|
|
2833
2849
|
list.x(e);
|
|
2834
2850
|
}
|
|
@@ -2839,7 +2855,7 @@ protoOf(Companion_2).d35 = function (endpoint, types, refined) {
|
|
|
2839
2855
|
// Inline function 'kotlin.apply' call
|
|
2840
2856
|
var this_4 = ArrayList_init_$Create$();
|
|
2841
2857
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
2842
|
-
var tmp0_1 = endpoint.
|
|
2858
|
+
var tmp0_1 = endpoint.ir_1;
|
|
2843
2859
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
2844
2860
|
var destination_5 = ArrayList_init_$Create$();
|
|
2845
2861
|
var _iterator__ex2g4s_6 = tmp0_1.t();
|
|
@@ -2853,29 +2869,29 @@ protoOf(Companion_2).d35 = function (endpoint, types, refined) {
|
|
|
2853
2869
|
var _iterator__ex2g4s_7 = destination_5.t();
|
|
2854
2870
|
while (_iterator__ex2g4s_7.u()) {
|
|
2855
2871
|
var element_3 = _iterator__ex2g4s_7.v();
|
|
2856
|
-
this_4.x(element_3.
|
|
2872
|
+
this_4.x(element_3.or_1);
|
|
2857
2873
|
}
|
|
2858
2874
|
// Inline function 'kotlin.collections.forEach' call
|
|
2859
|
-
var _iterator__ex2g4s_8 = get_fields(endpoint.
|
|
2875
|
+
var _iterator__ex2g4s_8 = get_fields(endpoint.jr_1).t();
|
|
2860
2876
|
while (_iterator__ex2g4s_8.u()) {
|
|
2861
2877
|
var element_4 = _iterator__ex2g4s_8.v();
|
|
2862
|
-
this_4.x(element_4.
|
|
2878
|
+
this_4.x(element_4.qp_1);
|
|
2863
2879
|
}
|
|
2864
2880
|
// Inline function 'kotlin.collections.forEach' call
|
|
2865
|
-
var _iterator__ex2g4s_9 = get_fields(endpoint.
|
|
2881
|
+
var _iterator__ex2g4s_9 = get_fields(endpoint.kr_1).t();
|
|
2866
2882
|
while (_iterator__ex2g4s_9.u()) {
|
|
2867
2883
|
var element_5 = _iterator__ex2g4s_9.v();
|
|
2868
|
-
this_4.x(element_5.
|
|
2884
|
+
this_4.x(element_5.qp_1);
|
|
2869
2885
|
}
|
|
2870
2886
|
if (!(bodyRef == null)) {
|
|
2871
2887
|
this_4.x(bodyRef);
|
|
2872
2888
|
}
|
|
2873
2889
|
// Inline function 'kotlin.collections.forEach' call
|
|
2874
|
-
var _iterator__ex2g4s_10 = endpoint.
|
|
2890
|
+
var _iterator__ex2g4s_10 = endpoint.mr_1.t();
|
|
2875
2891
|
while (_iterator__ex2g4s_10.u()) {
|
|
2876
2892
|
var element_6 = _iterator__ex2g4s_10.v();
|
|
2877
|
-
var tmp0_safe_receiver_1 = element_6.
|
|
2878
|
-
var tmp1_safe_receiver_1 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.
|
|
2893
|
+
var tmp0_safe_receiver_1 = element_6.ur_1;
|
|
2894
|
+
var tmp1_safe_receiver_1 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.rr_1;
|
|
2879
2895
|
if (tmp1_safe_receiver_1 == null)
|
|
2880
2896
|
null;
|
|
2881
2897
|
else {
|
|
@@ -2883,38 +2899,38 @@ protoOf(Companion_2).d35 = function (endpoint, types, refined) {
|
|
|
2883
2899
|
this_4.x(tmp1_safe_receiver_1);
|
|
2884
2900
|
}
|
|
2885
2901
|
// Inline function 'kotlin.collections.forEach' call
|
|
2886
|
-
var _iterator__ex2g4s_11 = get_fields(element_6.
|
|
2902
|
+
var _iterator__ex2g4s_11 = get_fields(element_6.tr_1).t();
|
|
2887
2903
|
while (_iterator__ex2g4s_11.u()) {
|
|
2888
2904
|
var element_7 = _iterator__ex2g4s_11.v();
|
|
2889
|
-
this_4.x(element_7.
|
|
2905
|
+
this_4.x(element_7.qp_1);
|
|
2890
2906
|
}
|
|
2891
2907
|
}
|
|
2892
|
-
var refs = this_4.
|
|
2893
|
-
var modelImports = this.
|
|
2894
|
-
return new EndpointShape(Companion_getInstance().
|
|
2908
|
+
var refs = this_4.r5();
|
|
2909
|
+
var modelImports = this.z33(refs);
|
|
2910
|
+
return new EndpointShape(Companion_getInstance().au(endpoint.gr_1.o1()).du(), pathFields, queryFields, headerFields, bodyKind, bodyElementType, bodyPrimitiveType, bodyFieldShapes, responseVariants, modelImports);
|
|
2895
2911
|
};
|
|
2896
|
-
protoOf(Companion_2).
|
|
2912
|
+
protoOf(Companion_2).z33 = function (refs) {
|
|
2897
2913
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2898
2914
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2899
2915
|
var destination = ArrayList_init_$Create$();
|
|
2900
2916
|
var _iterator__ex2g4s = refs.t();
|
|
2901
2917
|
while (_iterator__ex2g4s.u()) {
|
|
2902
2918
|
var element = _iterator__ex2g4s.v();
|
|
2903
|
-
var list = this.
|
|
2919
|
+
var list = this.o35(element);
|
|
2904
2920
|
addAll(destination, list);
|
|
2905
2921
|
}
|
|
2906
2922
|
return distinct(destination);
|
|
2907
2923
|
};
|
|
2908
|
-
protoOf(Companion_2).
|
|
2924
|
+
protoOf(Companion_2).o35 = function (reference) {
|
|
2909
2925
|
var tmp;
|
|
2910
2926
|
if (reference instanceof Custom) {
|
|
2911
|
-
tmp = listOf(reference.
|
|
2927
|
+
tmp = listOf(reference.b1a_1);
|
|
2912
2928
|
} else {
|
|
2913
2929
|
if (reference instanceof Iterable) {
|
|
2914
|
-
tmp = this.
|
|
2930
|
+
tmp = this.o35(reference.zp_1);
|
|
2915
2931
|
} else {
|
|
2916
2932
|
if (reference instanceof Dict) {
|
|
2917
|
-
tmp = this.
|
|
2933
|
+
tmp = this.o35(reference.cq_1);
|
|
2918
2934
|
} else {
|
|
2919
2935
|
tmp = emptyList();
|
|
2920
2936
|
}
|
|
@@ -2922,9 +2938,9 @@ protoOf(Companion_2).j35 = function (reference) {
|
|
|
2922
2938
|
}
|
|
2923
2939
|
return tmp;
|
|
2924
2940
|
};
|
|
2925
|
-
protoOf(Companion_2).
|
|
2926
|
-
var tmp0_safe_receiver = types.
|
|
2927
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2941
|
+
protoOf(Companion_2).y33 = function (typeName, types, refined) {
|
|
2942
|
+
var tmp0_safe_receiver = types.t2(typeName);
|
|
2943
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.mp_1;
|
|
2928
2944
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2929
2945
|
var tmp0_elvis_lhs = tmp1_safe_receiver == null ? null : get_fields(tmp1_safe_receiver);
|
|
2930
2946
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2934,16 +2950,16 @@ protoOf(Companion_2).t33 = function (typeName, types, refined) {
|
|
|
2934
2950
|
var _iterator__ex2g4s = this_0.t();
|
|
2935
2951
|
while (_iterator__ex2g4s.u()) {
|
|
2936
2952
|
var item = _iterator__ex2g4s.v();
|
|
2937
|
-
var tmp0_safe_receiver_0 = Companion_instance_5.
|
|
2953
|
+
var tmp0_safe_receiver_0 = Companion_instance_5.p35(item.qp_1, types);
|
|
2938
2954
|
var tmp;
|
|
2939
2955
|
if (tmp0_safe_receiver_0 == null) {
|
|
2940
2956
|
tmp = null;
|
|
2941
2957
|
} else {
|
|
2942
2958
|
// Inline function 'kotlin.let' call
|
|
2943
|
-
tmp = new Nested(item.
|
|
2959
|
+
tmp = new Nested(item.pp_1.o1(), tmp0_safe_receiver_0);
|
|
2944
2960
|
}
|
|
2945
2961
|
var tmp1_elvis_lhs = tmp;
|
|
2946
|
-
var tmp$ret$3 = tmp1_elvis_lhs == null ? new Primitive_0(item.
|
|
2962
|
+
var tmp$ret$3 = tmp1_elvis_lhs == null ? new Primitive_0(item.pp_1.o1(), mapWithRefinedUnwrap(Companion_instance_4, item.qp_1, refined), Companion_instance_6.q35(item.qp_1, refined)) : tmp1_elvis_lhs;
|
|
2947
2963
|
destination.x(tmp$ret$3);
|
|
2948
2964
|
}
|
|
2949
2965
|
return destination;
|
|
@@ -2969,31 +2985,31 @@ function BodyKind_Primitive_getInstance() {
|
|
|
2969
2985
|
return BodyKind_Primitive_instance;
|
|
2970
2986
|
}
|
|
2971
2987
|
function EndpointShape(name, pathFields, queryFields, headerFields, bodyKind, bodyElementType, bodyPrimitiveType, bodyFieldShapes, responseVariants, modelImports) {
|
|
2972
|
-
this.
|
|
2973
|
-
this.
|
|
2974
|
-
this.
|
|
2975
|
-
this.
|
|
2976
|
-
this.
|
|
2977
|
-
this.
|
|
2978
|
-
this.
|
|
2979
|
-
this.
|
|
2980
|
-
this.
|
|
2981
|
-
this.
|
|
2988
|
+
this.j34_1 = name;
|
|
2989
|
+
this.k34_1 = pathFields;
|
|
2990
|
+
this.l34_1 = queryFields;
|
|
2991
|
+
this.m34_1 = headerFields;
|
|
2992
|
+
this.n34_1 = bodyKind;
|
|
2993
|
+
this.o34_1 = bodyElementType;
|
|
2994
|
+
this.p34_1 = bodyPrimitiveType;
|
|
2995
|
+
this.q34_1 = bodyFieldShapes;
|
|
2996
|
+
this.r34_1 = responseVariants;
|
|
2997
|
+
this.s34_1 = modelImports;
|
|
2982
2998
|
}
|
|
2983
2999
|
protoOf(EndpointShape).toString = function () {
|
|
2984
|
-
return 'EndpointShape(name=' + this.
|
|
3000
|
+
return 'EndpointShape(name=' + this.j34_1 + ', pathFields=' + toString(this.k34_1) + ', queryFields=' + toString(this.l34_1) + ', headerFields=' + toString(this.m34_1) + ', bodyKind=' + this.n34_1.toString() + ', bodyElementType=' + this.o34_1 + ', bodyPrimitiveType=' + toString_1(this.p34_1) + ', bodyFieldShapes=' + toString(this.q34_1) + ', responseVariants=' + toString(this.r34_1) + ', modelImports=' + toString(this.s34_1) + ')';
|
|
2985
3001
|
};
|
|
2986
3002
|
protoOf(EndpointShape).hashCode = function () {
|
|
2987
|
-
var result = getStringHashCode(this.
|
|
2988
|
-
result = imul(result, 31) + hashCode(this.
|
|
2989
|
-
result = imul(result, 31) + hashCode(this.g34_1) | 0;
|
|
2990
|
-
result = imul(result, 31) + hashCode(this.h34_1) | 0;
|
|
2991
|
-
result = imul(result, 31) + this.i34_1.hashCode() | 0;
|
|
2992
|
-
result = imul(result, 31) + (this.j34_1 == null ? 0 : getStringHashCode(this.j34_1)) | 0;
|
|
2993
|
-
result = imul(result, 31) + (this.k34_1 == null ? 0 : hashCode(this.k34_1)) | 0;
|
|
3003
|
+
var result = getStringHashCode(this.j34_1);
|
|
3004
|
+
result = imul(result, 31) + hashCode(this.k34_1) | 0;
|
|
2994
3005
|
result = imul(result, 31) + hashCode(this.l34_1) | 0;
|
|
2995
3006
|
result = imul(result, 31) + hashCode(this.m34_1) | 0;
|
|
2996
|
-
result = imul(result, 31) +
|
|
3007
|
+
result = imul(result, 31) + this.n34_1.hashCode() | 0;
|
|
3008
|
+
result = imul(result, 31) + (this.o34_1 == null ? 0 : getStringHashCode(this.o34_1)) | 0;
|
|
3009
|
+
result = imul(result, 31) + (this.p34_1 == null ? 0 : hashCode(this.p34_1)) | 0;
|
|
3010
|
+
result = imul(result, 31) + hashCode(this.q34_1) | 0;
|
|
3011
|
+
result = imul(result, 31) + hashCode(this.r34_1) | 0;
|
|
3012
|
+
result = imul(result, 31) + hashCode(this.s34_1) | 0;
|
|
2997
3013
|
return result;
|
|
2998
3014
|
};
|
|
2999
3015
|
protoOf(EndpointShape).equals = function (other) {
|
|
@@ -3001,25 +3017,25 @@ protoOf(EndpointShape).equals = function (other) {
|
|
|
3001
3017
|
return true;
|
|
3002
3018
|
if (!(other instanceof EndpointShape))
|
|
3003
3019
|
return false;
|
|
3004
|
-
if (!(this.
|
|
3020
|
+
if (!(this.j34_1 === other.j34_1))
|
|
3005
3021
|
return false;
|
|
3006
|
-
if (!equals(this.
|
|
3022
|
+
if (!equals(this.k34_1, other.k34_1))
|
|
3007
3023
|
return false;
|
|
3008
|
-
if (!equals(this.
|
|
3024
|
+
if (!equals(this.l34_1, other.l34_1))
|
|
3009
3025
|
return false;
|
|
3010
|
-
if (!equals(this.
|
|
3026
|
+
if (!equals(this.m34_1, other.m34_1))
|
|
3011
3027
|
return false;
|
|
3012
|
-
if (!this.
|
|
3028
|
+
if (!this.n34_1.equals(other.n34_1))
|
|
3013
3029
|
return false;
|
|
3014
|
-
if (!(this.
|
|
3030
|
+
if (!(this.o34_1 == other.o34_1))
|
|
3015
3031
|
return false;
|
|
3016
|
-
if (!equals(this.
|
|
3032
|
+
if (!equals(this.p34_1, other.p34_1))
|
|
3017
3033
|
return false;
|
|
3018
|
-
if (!equals(this.
|
|
3034
|
+
if (!equals(this.q34_1, other.q34_1))
|
|
3019
3035
|
return false;
|
|
3020
|
-
if (!equals(this.
|
|
3036
|
+
if (!equals(this.r34_1, other.r34_1))
|
|
3021
3037
|
return false;
|
|
3022
|
-
if (!equals(this.
|
|
3038
|
+
if (!equals(this.s34_1, other.s34_1))
|
|
3023
3039
|
return false;
|
|
3024
3040
|
return true;
|
|
3025
3041
|
};
|
|
@@ -3033,22 +3049,22 @@ function blockField($this, fieldName) {
|
|
|
3033
3049
|
return escapeKotlinIdentifier('_' + fieldName + 'Block');
|
|
3034
3050
|
}
|
|
3035
3051
|
function nestedBlock($this, $receiver, fieldName, record) {
|
|
3036
|
-
var nested = $this.
|
|
3037
|
-
$receiver.
|
|
3038
|
-
valueSetter($receiver, fieldName, record.
|
|
3039
|
-
$receiver.
|
|
3052
|
+
var nested = $this.e34(record.c35_1);
|
|
3053
|
+
$receiver.i16(fieldName, genNullable($this, record.r35()), true, Visibility_PUBLIC_getInstance(), VOID, VOID, $receiver.h15('null'));
|
|
3054
|
+
valueSetter($receiver, fieldName, record.r35());
|
|
3055
|
+
$receiver.i16('_' + fieldName + 'Block', new Nullable(blockType_0($this, nested)), true, Visibility_PRIVATE_getInstance(), VOID, VOID, $receiver.h15('null'));
|
|
3040
3056
|
var tmp = fieldName + 'Block';
|
|
3041
|
-
$receiver.
|
|
3057
|
+
$receiver.k16(tmp, VOID, VOID, RecordBuilder$nestedBlock$lambda(nested, fieldName));
|
|
3042
3058
|
}
|
|
3043
3059
|
function copyExpr($this, fields) {
|
|
3044
3060
|
return joinToString(fields, ',\n', 'base.copy(\n', ',\n)', VOID, VOID, RecordBuilder$copyExpr$lambda);
|
|
3045
3061
|
}
|
|
3046
3062
|
function RecordBuilder$buildBuilderClass$lambda$lambda($model, $fields) {
|
|
3047
3063
|
return function ($this$function) {
|
|
3048
|
-
$this$function.
|
|
3049
|
-
$this$function.
|
|
3050
|
-
$this$function.
|
|
3051
|
-
$this$function.
|
|
3064
|
+
$this$function.z13(Visibility_INTERNAL_getInstance());
|
|
3065
|
+
$this$function.a14('base', $model);
|
|
3066
|
+
$this$function.a14('rs', Custom_init_$Create$('RandomSource'));
|
|
3067
|
+
$this$function.x13($model);
|
|
3052
3068
|
// Inline function 'kotlin.takeIf' call
|
|
3053
3069
|
var this_0 = $fields;
|
|
3054
3070
|
var tmp;
|
|
@@ -3067,40 +3083,40 @@ function RecordBuilder$buildBuilderClass$lambda$lambda($model, $fields) {
|
|
|
3067
3083
|
tmp_0 = copyExpr(RecordBuilder_instance, tmp0_safe_receiver);
|
|
3068
3084
|
}
|
|
3069
3085
|
var tmp1_elvis_lhs = tmp_0;
|
|
3070
|
-
$this$function.
|
|
3086
|
+
$this$function.d14($this$function.h15(tmp1_elvis_lhs == null ? 'base' : tmp1_elvis_lhs));
|
|
3071
3087
|
return Unit_instance;
|
|
3072
3088
|
};
|
|
3073
3089
|
}
|
|
3074
3090
|
function RecordBuilder$buildBuilderClass$lambda($fields, $typeName) {
|
|
3075
3091
|
return function ($this$struct) {
|
|
3076
|
-
$this$struct.
|
|
3077
|
-
$this$struct.
|
|
3078
|
-
$this$struct.
|
|
3092
|
+
$this$struct.v15();
|
|
3093
|
+
$this$struct.u15('@WirespecScenarioDsl');
|
|
3094
|
+
$this$struct.z13(Visibility_PUBLIC_getInstance());
|
|
3079
3095
|
// Inline function 'kotlin.collections.forEach' call
|
|
3080
3096
|
var _iterator__ex2g4s = $fields.t();
|
|
3081
3097
|
while (_iterator__ex2g4s.u()) {
|
|
3082
3098
|
var element = _iterator__ex2g4s.v();
|
|
3083
3099
|
if (element instanceof Primitive_0) {
|
|
3084
|
-
$this$struct.
|
|
3085
|
-
valueSetter($this$struct, element.
|
|
3100
|
+
$this$struct.i16(element.j35_1, genNullable(RecordBuilder_instance, element.k35_1), true, Visibility_PUBLIC_getInstance(), VOID, VOID, $this$struct.h15('null'));
|
|
3101
|
+
valueSetter($this$struct, element.j35_1, element.k35_1);
|
|
3086
3102
|
} else {
|
|
3087
3103
|
if (element instanceof Nested) {
|
|
3088
|
-
nestedBlock(RecordBuilder_instance, $this$struct, element.
|
|
3104
|
+
nestedBlock(RecordBuilder_instance, $this$struct, element.m35_1, element.n35_1);
|
|
3089
3105
|
} else {
|
|
3090
3106
|
noWhenBranchMatchedException();
|
|
3091
3107
|
}
|
|
3092
3108
|
}
|
|
3093
3109
|
}
|
|
3094
|
-
var model = Custom_init_$Create$(Companion_getInstance().
|
|
3095
|
-
$this$struct.
|
|
3110
|
+
var model = Custom_init_$Create$(Companion_getInstance().au($typeName).du());
|
|
3111
|
+
$this$struct.k16('applyTo', VOID, VOID, RecordBuilder$buildBuilderClass$lambda$lambda(model, $fields));
|
|
3096
3112
|
return Unit_instance;
|
|
3097
3113
|
};
|
|
3098
3114
|
}
|
|
3099
3115
|
function RecordBuilder$nestedBlock$lambda($nested, $fieldName) {
|
|
3100
3116
|
return function ($this$function) {
|
|
3101
|
-
$this$function.
|
|
3102
|
-
$this$function.
|
|
3103
|
-
$this$function.
|
|
3117
|
+
$this$function.z13(Visibility_PUBLIC_getInstance());
|
|
3118
|
+
$this$function.a14('block', blockType_0(RecordBuilder_instance, $nested));
|
|
3119
|
+
$this$function.w14(blockField(RecordBuilder_instance, $fieldName) + ' = block');
|
|
3104
3120
|
return Unit_instance;
|
|
3105
3121
|
};
|
|
3106
3122
|
}
|
|
@@ -3110,20 +3126,20 @@ function RecordBuilder$copyExpr$lambda(f) {
|
|
|
3110
3126
|
var base = 'base.' + name;
|
|
3111
3127
|
var tmp;
|
|
3112
3128
|
if (f instanceof Primitive_0) {
|
|
3113
|
-
var tmp1_safe_receiver = f.
|
|
3114
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
3129
|
+
var tmp1_safe_receiver = f.l35_1;
|
|
3130
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s35('gen.draw(rs)');
|
|
3115
3131
|
tmp = pinned + '.let { gen -> if (gen == null) ' + base + ' else ' + (tmp2_elvis_lhs == null ? 'gen.draw(rs)' : tmp2_elvis_lhs) + ' }';
|
|
3116
3132
|
} else {
|
|
3117
3133
|
if (f instanceof Nested) {
|
|
3118
|
-
var nested = RecordBuilder_instance.
|
|
3134
|
+
var nested = RecordBuilder_instance.e34(f.n35_1.c35_1) + '().apply(block)';
|
|
3119
3135
|
var tmp_0;
|
|
3120
|
-
if (f.
|
|
3121
|
-
tmp_0 = '?.let { block -> ' + nested + ' }?.let { nested -> ' + f.
|
|
3136
|
+
if (f.n35_1.d35_1) {
|
|
3137
|
+
tmp_0 = '?.let { block -> ' + nested + ' }?.let { nested -> ' + f.n35_1.g35(base, 'nested') + ' }';
|
|
3122
3138
|
} else {
|
|
3123
|
-
tmp_0 = '?.let { block -> ' + f.
|
|
3139
|
+
tmp_0 = '?.let { block -> ' + f.n35_1.g35(base, nested) + ' }';
|
|
3124
3140
|
}
|
|
3125
3141
|
var viaBlock = tmp_0;
|
|
3126
|
-
tmp = pinned + '?.draw(rs) ?: this.' + blockField(RecordBuilder_instance, f.
|
|
3142
|
+
tmp = pinned + '?.draw(rs) ?: this.' + blockField(RecordBuilder_instance, f.m35_1) + viaBlock + ' ?: ' + base;
|
|
3127
3143
|
} else {
|
|
3128
3144
|
noWhenBranchMatchedException();
|
|
3129
3145
|
}
|
|
@@ -3133,11 +3149,11 @@ function RecordBuilder$copyExpr$lambda(f) {
|
|
|
3133
3149
|
}
|
|
3134
3150
|
function RecordBuilder() {
|
|
3135
3151
|
}
|
|
3136
|
-
protoOf(RecordBuilder).
|
|
3137
|
-
return Companion_getInstance().
|
|
3152
|
+
protoOf(RecordBuilder).e34 = function (typeName) {
|
|
3153
|
+
return Companion_getInstance().au(typeName).du() + 'Builder';
|
|
3138
3154
|
};
|
|
3139
|
-
protoOf(RecordBuilder).
|
|
3140
|
-
var tmp = this.
|
|
3155
|
+
protoOf(RecordBuilder).t35 = function (typeName, fields) {
|
|
3156
|
+
var tmp = this.e34(typeName);
|
|
3141
3157
|
return struct(tmp, RecordBuilder$buildBuilderClass$lambda(fields, typeName));
|
|
3142
3158
|
};
|
|
3143
3159
|
var RecordBuilder_instance;
|
|
@@ -3146,15 +3162,15 @@ function RecordBuilder_getInstance() {
|
|
|
3146
3162
|
}
|
|
3147
3163
|
function Companion_3() {
|
|
3148
3164
|
}
|
|
3149
|
-
protoOf(Companion_3).
|
|
3165
|
+
protoOf(Companion_3).p35 = function (reference, types) {
|
|
3150
3166
|
var tmp;
|
|
3151
3167
|
if (reference instanceof Custom) {
|
|
3152
3168
|
// Inline function 'kotlin.takeIf' call
|
|
3153
3169
|
var tmp_0;
|
|
3154
3170
|
// Inline function 'kotlin.collections.contains' call
|
|
3155
3171
|
// Inline function 'kotlin.collections.containsKey' call
|
|
3156
|
-
var key = reference.
|
|
3157
|
-
if ((isInterface(types, KtMap) ? types : THROW_CCE()).
|
|
3172
|
+
var key = reference.b1a_1;
|
|
3173
|
+
if ((isInterface(types, KtMap) ? types : THROW_CCE()).r2(key)) {
|
|
3158
3174
|
tmp_0 = reference;
|
|
3159
3175
|
} else {
|
|
3160
3176
|
tmp_0 = null;
|
|
@@ -3165,12 +3181,12 @@ protoOf(Companion_3).k35 = function (reference, types) {
|
|
|
3165
3181
|
tmp_1 = null;
|
|
3166
3182
|
} else {
|
|
3167
3183
|
// Inline function 'kotlin.let' call
|
|
3168
|
-
tmp_1 = new RecordRef(tmp1_safe_receiver.
|
|
3184
|
+
tmp_1 = new RecordRef(tmp1_safe_receiver.b1a_1, false, tmp1_safe_receiver.c1a_1, false);
|
|
3169
3185
|
}
|
|
3170
3186
|
tmp = tmp_1;
|
|
3171
3187
|
} else {
|
|
3172
3188
|
if (reference instanceof Iterable) {
|
|
3173
|
-
var tmp_2 = reference.
|
|
3189
|
+
var tmp_2 = reference.zp_1;
|
|
3174
3190
|
var tmp2_safe_receiver = tmp_2 instanceof Custom ? tmp_2 : null;
|
|
3175
3191
|
var tmp_3;
|
|
3176
3192
|
if (tmp2_safe_receiver == null) {
|
|
@@ -3180,8 +3196,8 @@ protoOf(Companion_3).k35 = function (reference, types) {
|
|
|
3180
3196
|
var tmp_4;
|
|
3181
3197
|
// Inline function 'kotlin.collections.contains' call
|
|
3182
3198
|
// Inline function 'kotlin.collections.containsKey' call
|
|
3183
|
-
var key_0 = tmp2_safe_receiver.
|
|
3184
|
-
if ((isInterface(types, KtMap) ? types : THROW_CCE()).
|
|
3199
|
+
var key_0 = tmp2_safe_receiver.b1a_1;
|
|
3200
|
+
if ((isInterface(types, KtMap) ? types : THROW_CCE()).r2(key_0)) {
|
|
3185
3201
|
tmp_4 = tmp2_safe_receiver;
|
|
3186
3202
|
} else {
|
|
3187
3203
|
tmp_4 = null;
|
|
@@ -3194,7 +3210,7 @@ protoOf(Companion_3).k35 = function (reference, types) {
|
|
|
3194
3210
|
tmp_5 = null;
|
|
3195
3211
|
} else {
|
|
3196
3212
|
// Inline function 'kotlin.let' call
|
|
3197
|
-
tmp_5 = new RecordRef(tmp3_safe_receiver.
|
|
3213
|
+
tmp_5 = new RecordRef(tmp3_safe_receiver.b1a_1, true, reference.aq_1, tmp3_safe_receiver.c1a_1);
|
|
3198
3214
|
}
|
|
3199
3215
|
tmp = tmp_5;
|
|
3200
3216
|
} else {
|
|
@@ -3208,27 +3224,27 @@ function Companion_getInstance_4() {
|
|
|
3208
3224
|
return Companion_instance_5;
|
|
3209
3225
|
}
|
|
3210
3226
|
function RecordRef(typeName, isList, isNullable, isElementNullable) {
|
|
3211
|
-
this.
|
|
3212
|
-
this.
|
|
3213
|
-
this.
|
|
3214
|
-
this.
|
|
3227
|
+
this.c35_1 = typeName;
|
|
3228
|
+
this.d35_1 = isList;
|
|
3229
|
+
this.e35_1 = isNullable;
|
|
3230
|
+
this.f35_1 = isElementNullable;
|
|
3215
3231
|
}
|
|
3216
|
-
protoOf(RecordRef).
|
|
3232
|
+
protoOf(RecordRef).r35 = function () {
|
|
3217
3233
|
// Inline function 'kotlin.let' call
|
|
3218
|
-
var it = Custom_init_$Create$(this.
|
|
3219
|
-
return this.
|
|
3234
|
+
var it = Custom_init_$Create$(this.c35_1);
|
|
3235
|
+
return this.d35_1 ? new Array_0(it) : it;
|
|
3220
3236
|
};
|
|
3221
|
-
protoOf(RecordRef).
|
|
3222
|
-
return this.
|
|
3237
|
+
protoOf(RecordRef).g35 = function (value, builder) {
|
|
3238
|
+
return this.d35_1 ? value + (this.e35_1 ? '?.' : '.') + 'map { e -> ' + ((this.f35_1 ? 'e?.let { ' + builder + '.applyTo(it, rs) }' : builder + '.applyTo(e, rs)') + ' }') : this.e35_1 ? value + '?.let { ' + builder + '.applyTo(it, rs) }' : builder + '.applyTo(' + value + ', rs)';
|
|
3223
3239
|
};
|
|
3224
3240
|
protoOf(RecordRef).toString = function () {
|
|
3225
|
-
return 'RecordRef(typeName=' + this.
|
|
3241
|
+
return 'RecordRef(typeName=' + this.c35_1 + ', isList=' + this.d35_1 + ', isNullable=' + this.e35_1 + ', isElementNullable=' + this.f35_1 + ')';
|
|
3226
3242
|
};
|
|
3227
3243
|
protoOf(RecordRef).hashCode = function () {
|
|
3228
|
-
var result = getStringHashCode(this.
|
|
3229
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
3230
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
3231
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
3244
|
+
var result = getStringHashCode(this.c35_1);
|
|
3245
|
+
result = imul(result, 31) + getBooleanHashCode(this.d35_1) | 0;
|
|
3246
|
+
result = imul(result, 31) + getBooleanHashCode(this.e35_1) | 0;
|
|
3247
|
+
result = imul(result, 31) + getBooleanHashCode(this.f35_1) | 0;
|
|
3232
3248
|
return result;
|
|
3233
3249
|
};
|
|
3234
3250
|
protoOf(RecordRef).equals = function (other) {
|
|
@@ -3236,29 +3252,29 @@ protoOf(RecordRef).equals = function (other) {
|
|
|
3236
3252
|
return true;
|
|
3237
3253
|
if (!(other instanceof RecordRef))
|
|
3238
3254
|
return false;
|
|
3239
|
-
if (!(this.
|
|
3255
|
+
if (!(this.c35_1 === other.c35_1))
|
|
3240
3256
|
return false;
|
|
3241
|
-
if (!(this.
|
|
3257
|
+
if (!(this.d35_1 === other.d35_1))
|
|
3242
3258
|
return false;
|
|
3243
|
-
if (!(this.
|
|
3259
|
+
if (!(this.e35_1 === other.e35_1))
|
|
3244
3260
|
return false;
|
|
3245
|
-
if (!(this.
|
|
3261
|
+
if (!(this.f35_1 === other.f35_1))
|
|
3246
3262
|
return false;
|
|
3247
3263
|
return true;
|
|
3248
3264
|
};
|
|
3249
3265
|
function Wrap(typeName, isNullable) {
|
|
3250
|
-
this.
|
|
3251
|
-
this.
|
|
3266
|
+
this.u35_1 = typeName;
|
|
3267
|
+
this.v35_1 = isNullable;
|
|
3252
3268
|
}
|
|
3253
3269
|
protoOf(Wrap).ot = function () {
|
|
3254
|
-
return this.
|
|
3270
|
+
return this.v35_1;
|
|
3255
3271
|
};
|
|
3256
3272
|
protoOf(Wrap).toString = function () {
|
|
3257
|
-
return 'Wrap(typeName=' + this.
|
|
3273
|
+
return 'Wrap(typeName=' + this.u35_1 + ', isNullable=' + this.v35_1 + ')';
|
|
3258
3274
|
};
|
|
3259
3275
|
protoOf(Wrap).hashCode = function () {
|
|
3260
|
-
var result = getStringHashCode(this.
|
|
3261
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
3276
|
+
var result = getStringHashCode(this.u35_1);
|
|
3277
|
+
result = imul(result, 31) + getBooleanHashCode(this.v35_1) | 0;
|
|
3262
3278
|
return result;
|
|
3263
3279
|
};
|
|
3264
3280
|
protoOf(Wrap).equals = function (other) {
|
|
@@ -3266,25 +3282,25 @@ protoOf(Wrap).equals = function (other) {
|
|
|
3266
3282
|
return true;
|
|
3267
3283
|
if (!(other instanceof Wrap))
|
|
3268
3284
|
return false;
|
|
3269
|
-
if (!(this.
|
|
3285
|
+
if (!(this.u35_1 === other.u35_1))
|
|
3270
3286
|
return false;
|
|
3271
|
-
if (!(this.
|
|
3287
|
+
if (!(this.v35_1 === other.v35_1))
|
|
3272
3288
|
return false;
|
|
3273
3289
|
return true;
|
|
3274
3290
|
};
|
|
3275
3291
|
function Each(element, isNullable) {
|
|
3276
|
-
this.
|
|
3277
|
-
this.
|
|
3292
|
+
this.x35_1 = element;
|
|
3293
|
+
this.y35_1 = isNullable;
|
|
3278
3294
|
}
|
|
3279
3295
|
protoOf(Each).ot = function () {
|
|
3280
|
-
return this.
|
|
3296
|
+
return this.y35_1;
|
|
3281
3297
|
};
|
|
3282
3298
|
protoOf(Each).toString = function () {
|
|
3283
|
-
return 'Each(element=' + toString(this.
|
|
3299
|
+
return 'Each(element=' + toString(this.x35_1) + ', isNullable=' + this.y35_1 + ')';
|
|
3284
3300
|
};
|
|
3285
3301
|
protoOf(Each).hashCode = function () {
|
|
3286
|
-
var result = hashCode(this.
|
|
3287
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
3302
|
+
var result = hashCode(this.x35_1);
|
|
3303
|
+
result = imul(result, 31) + getBooleanHashCode(this.y35_1) | 0;
|
|
3288
3304
|
return result;
|
|
3289
3305
|
};
|
|
3290
3306
|
protoOf(Each).equals = function (other) {
|
|
@@ -3292,25 +3308,25 @@ protoOf(Each).equals = function (other) {
|
|
|
3292
3308
|
return true;
|
|
3293
3309
|
if (!(other instanceof Each))
|
|
3294
3310
|
return false;
|
|
3295
|
-
if (!equals(this.
|
|
3311
|
+
if (!equals(this.x35_1, other.x35_1))
|
|
3296
3312
|
return false;
|
|
3297
|
-
if (!(this.
|
|
3313
|
+
if (!(this.y35_1 === other.y35_1))
|
|
3298
3314
|
return false;
|
|
3299
3315
|
return true;
|
|
3300
3316
|
};
|
|
3301
3317
|
function Values(value, isNullable) {
|
|
3302
|
-
this.
|
|
3303
|
-
this.
|
|
3318
|
+
this.z35_1 = value;
|
|
3319
|
+
this.a36_1 = isNullable;
|
|
3304
3320
|
}
|
|
3305
3321
|
protoOf(Values).ot = function () {
|
|
3306
|
-
return this.
|
|
3322
|
+
return this.a36_1;
|
|
3307
3323
|
};
|
|
3308
3324
|
protoOf(Values).toString = function () {
|
|
3309
|
-
return 'Values(value=' + toString(this.
|
|
3325
|
+
return 'Values(value=' + toString(this.z35_1) + ', isNullable=' + this.a36_1 + ')';
|
|
3310
3326
|
};
|
|
3311
3327
|
protoOf(Values).hashCode = function () {
|
|
3312
|
-
var result = hashCode(this.
|
|
3313
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
3328
|
+
var result = hashCode(this.z35_1);
|
|
3329
|
+
result = imul(result, 31) + getBooleanHashCode(this.a36_1) | 0;
|
|
3314
3330
|
return result;
|
|
3315
3331
|
};
|
|
3316
3332
|
protoOf(Values).equals = function (other) {
|
|
@@ -3318,24 +3334,24 @@ protoOf(Values).equals = function (other) {
|
|
|
3318
3334
|
return true;
|
|
3319
3335
|
if (!(other instanceof Values))
|
|
3320
3336
|
return false;
|
|
3321
|
-
if (!equals(this.
|
|
3337
|
+
if (!equals(this.z35_1, other.z35_1))
|
|
3322
3338
|
return false;
|
|
3323
|
-
if (!(this.
|
|
3339
|
+
if (!(this.a36_1 === other.a36_1))
|
|
3324
3340
|
return false;
|
|
3325
3341
|
return true;
|
|
3326
3342
|
};
|
|
3327
3343
|
function Companion_4() {
|
|
3328
3344
|
}
|
|
3329
|
-
protoOf(Companion_4).
|
|
3345
|
+
protoOf(Companion_4).q35 = function (reference, refined) {
|
|
3330
3346
|
var tmp;
|
|
3331
3347
|
if (reference instanceof Custom) {
|
|
3332
3348
|
// Inline function 'kotlin.takeIf' call
|
|
3333
|
-
var this_0 = new Wrap(Companion_getInstance().
|
|
3349
|
+
var this_0 = new Wrap(Companion_getInstance().au(reference.b1a_1).du(), reference.c1a_1);
|
|
3334
3350
|
var tmp_0;
|
|
3335
3351
|
// Inline function 'kotlin.collections.contains' call
|
|
3336
3352
|
// Inline function 'kotlin.collections.containsKey' call
|
|
3337
|
-
var key = reference.
|
|
3338
|
-
if ((isInterface(refined, KtMap) ? refined : THROW_CCE()).
|
|
3353
|
+
var key = reference.b1a_1;
|
|
3354
|
+
if ((isInterface(refined, KtMap) ? refined : THROW_CCE()).r2(key)) {
|
|
3339
3355
|
tmp_0 = this_0;
|
|
3340
3356
|
} else {
|
|
3341
3357
|
tmp_0 = null;
|
|
@@ -3343,24 +3359,24 @@ protoOf(Companion_4).l35 = function (reference, refined) {
|
|
|
3343
3359
|
tmp = tmp_0;
|
|
3344
3360
|
} else {
|
|
3345
3361
|
if (reference instanceof Iterable) {
|
|
3346
|
-
var tmp1_safe_receiver = this.
|
|
3362
|
+
var tmp1_safe_receiver = this.q35(reference.zp_1, refined);
|
|
3347
3363
|
var tmp_1;
|
|
3348
3364
|
if (tmp1_safe_receiver == null) {
|
|
3349
3365
|
tmp_1 = null;
|
|
3350
3366
|
} else {
|
|
3351
3367
|
// Inline function 'kotlin.let' call
|
|
3352
|
-
tmp_1 = new Each(tmp1_safe_receiver, reference.
|
|
3368
|
+
tmp_1 = new Each(tmp1_safe_receiver, reference.aq_1);
|
|
3353
3369
|
}
|
|
3354
3370
|
tmp = tmp_1;
|
|
3355
3371
|
} else {
|
|
3356
3372
|
if (reference instanceof Dict) {
|
|
3357
|
-
var tmp2_safe_receiver = this.
|
|
3373
|
+
var tmp2_safe_receiver = this.q35(reference.cq_1, refined);
|
|
3358
3374
|
var tmp_2;
|
|
3359
3375
|
if (tmp2_safe_receiver == null) {
|
|
3360
3376
|
tmp_2 = null;
|
|
3361
3377
|
} else {
|
|
3362
3378
|
// Inline function 'kotlin.let' call
|
|
3363
|
-
tmp_2 = new Values(tmp2_safe_receiver, reference.
|
|
3379
|
+
tmp_2 = new Values(tmp2_safe_receiver, reference.dq_1);
|
|
3364
3380
|
}
|
|
3365
3381
|
tmp = tmp_2;
|
|
3366
3382
|
} else {
|
|
@@ -3377,88 +3393,88 @@ function Companion_getInstance_5() {
|
|
|
3377
3393
|
function Refinement() {
|
|
3378
3394
|
}
|
|
3379
3395
|
function buildRequestClass($this, $receiver, shape) {
|
|
3380
|
-
$receiver.
|
|
3396
|
+
$receiver.r17(shape.d36_1, RpcDslFile$buildRequestClass$lambda(shape));
|
|
3381
3397
|
}
|
|
3382
3398
|
function buildGenerateWrapper_0($this, $receiver, shape) {
|
|
3383
|
-
var tmp = shape.
|
|
3384
|
-
$receiver.
|
|
3399
|
+
var tmp = shape.b36_1 + 'Generate';
|
|
3400
|
+
$receiver.r17(tmp, RpcDslFile$buildGenerateWrapper$lambda(shape));
|
|
3385
3401
|
}
|
|
3386
3402
|
function outcomeFunction($this, $receiver, name, outcome) {
|
|
3387
|
-
var tmp0_safe_receiver = outcome.
|
|
3403
|
+
var tmp0_safe_receiver = outcome.n36_1;
|
|
3388
3404
|
var tmp;
|
|
3389
3405
|
if (tmp0_safe_receiver == null) {
|
|
3390
3406
|
tmp = null;
|
|
3391
3407
|
} else {
|
|
3392
3408
|
// Inline function 'kotlin.let' call
|
|
3393
|
-
tmp = Companion_instance_7.
|
|
3409
|
+
tmp = Companion_instance_7.s36(tmp0_safe_receiver.p36_1);
|
|
3394
3410
|
}
|
|
3395
3411
|
var value = tmp;
|
|
3396
3412
|
var wrap = RpcDslFile$outcomeFunction$lambda(outcome);
|
|
3397
|
-
var record = outcome.
|
|
3398
|
-
$receiver.
|
|
3413
|
+
var record = outcome.o36_1;
|
|
3414
|
+
$receiver.k16(name, VOID, VOID, RpcDslFile$outcomeFunction$lambda_0(outcome, value, wrap, record));
|
|
3399
3415
|
}
|
|
3400
3416
|
function buildCall($this, $receiver, shape) {
|
|
3401
|
-
var args = joinToString(shape.
|
|
3402
|
-
var request = shape.
|
|
3403
|
-
$receiver.
|
|
3417
|
+
var args = joinToString(shape.e36_1, ', ', VOID, VOID, VOID, VOID, RpcDslFile$buildCall$lambda);
|
|
3418
|
+
var request = shape.e36_1.r() ? '_' : 'request';
|
|
3419
|
+
$receiver.o16('call', VOID, VOID, RpcDslFile$buildCall$lambda_0(shape, request, args));
|
|
3404
3420
|
}
|
|
3405
3421
|
function buildValueGenerator($this, $receiver, value, module_0) {
|
|
3406
|
-
var tmp = Companion_instance_7.
|
|
3407
|
-
$receiver.
|
|
3422
|
+
var tmp = Companion_instance_7.t36(value.m());
|
|
3423
|
+
$receiver.k16(tmp, VOID, VOID, RpcDslFile$buildValueGenerator$lambda(value, module_0));
|
|
3408
3424
|
}
|
|
3409
3425
|
function RpcDslFile$build$lambda($kotestPkg, $shape, $packageName, $module) {
|
|
3410
3426
|
return function ($this$file) {
|
|
3411
|
-
$this$file.
|
|
3427
|
+
$this$file.q17($kotestPkg);
|
|
3412
3428
|
var tmp;
|
|
3413
3429
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3414
|
-
if (!$shape.
|
|
3415
|
-
$this$file.
|
|
3416
|
-
$this$file.
|
|
3430
|
+
if (!$shape.u36().r()) {
|
|
3431
|
+
$this$file.g16('community.flock.wirespec.integration.kotest.dsl', 'generatedGen');
|
|
3432
|
+
$this$file.g16('community.flock.wirespec.kotlin', 'Wirespec');
|
|
3417
3433
|
tmp = Unit_instance;
|
|
3418
3434
|
}
|
|
3419
|
-
$this$file.
|
|
3435
|
+
$this$file.g16('community.flock.wirespec.integration.kotest.dsl', 'rpcCall');
|
|
3420
3436
|
var tmp_0;
|
|
3421
3437
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3422
|
-
if (!$shape.
|
|
3423
|
-
$this$file.
|
|
3424
|
-
$this$file.
|
|
3425
|
-
$this$file.
|
|
3438
|
+
if (!$shape.f36_1.r()) {
|
|
3439
|
+
$this$file.g16('community.flock.wirespec.integration.kotest.dsl', 'WirespecScenarioDsl');
|
|
3440
|
+
$this$file.g16('community.flock.wirespec.integration.kotest.dsl', 'draw');
|
|
3441
|
+
$this$file.g16('io.kotest.property', 'RandomSource');
|
|
3426
3442
|
tmp_0 = Unit_instance;
|
|
3427
3443
|
}
|
|
3428
|
-
$this$file.
|
|
3444
|
+
$this$file.g16('io.kotest.property.arbitrary', 'constant');
|
|
3429
3445
|
var tmp_1;
|
|
3430
3446
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3431
|
-
if (!$shape.
|
|
3432
|
-
$this$file.
|
|
3447
|
+
if (!$shape.k36_1.r()) {
|
|
3448
|
+
$this$file.g16('kotlin.reflect', 'typeOf');
|
|
3433
3449
|
tmp_1 = Unit_instance;
|
|
3434
3450
|
}
|
|
3435
|
-
$this$file.
|
|
3436
|
-
$this$file.
|
|
3437
|
-
$this$file.
|
|
3451
|
+
$this$file.g16('io.kotest.property', 'Arb');
|
|
3452
|
+
$this$file.g16('io.kotest.property', 'Gen');
|
|
3453
|
+
$this$file.g16($packageName.bt_1 + '.rpc', $shape.b36_1);
|
|
3438
3454
|
// Inline function 'kotlin.collections.forEach' call
|
|
3439
|
-
var _iterator__ex2g4s = $shape.
|
|
3455
|
+
var _iterator__ex2g4s = $shape.j36_1.t();
|
|
3440
3456
|
while (_iterator__ex2g4s.u()) {
|
|
3441
3457
|
var element = _iterator__ex2g4s.v();
|
|
3442
|
-
$this$file.
|
|
3458
|
+
$this$file.g16($packageName.bt_1 + '.model', Companion_getInstance().au(element).du());
|
|
3443
3459
|
}
|
|
3444
3460
|
// Inline function 'kotlin.collections.forEach' call
|
|
3445
|
-
var _iterator__ex2g4s_0 = $shape.
|
|
3461
|
+
var _iterator__ex2g4s_0 = $shape.k36_1.t();
|
|
3446
3462
|
while (_iterator__ex2g4s_0.u()) {
|
|
3447
3463
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3448
|
-
$this$file.
|
|
3464
|
+
$this$file.g16($packageName.bt_1 + '.generator', Companion_getInstance().au(element_0).du() + 'Generator');
|
|
3449
3465
|
}
|
|
3450
3466
|
buildRequestClass(RpcDslFile_instance, $this$file, $shape);
|
|
3451
3467
|
buildGenerateWrapper_0(RpcDslFile_instance, $this$file, $shape);
|
|
3452
|
-
$this$file.
|
|
3468
|
+
$this$file.i16('generate', Custom_init_$Create$($shape.b36_1 + 'Generate'), VOID, Visibility_PUBLIC_getInstance(), Custom_init_$Create$($shape.b36_1), VOID, VOID, new FunctionCall(VOID, VOID, Companion_getInstance().au($shape.b36_1 + 'Generate')));
|
|
3453
3469
|
buildCall(RpcDslFile_instance, $this$file, $shape);
|
|
3454
3470
|
var tmp_2;
|
|
3455
3471
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3456
|
-
if (!$shape.
|
|
3457
|
-
$this$file.
|
|
3472
|
+
if (!$shape.f36_1.r()) {
|
|
3473
|
+
$this$file.p17_1.x(RecordBuilder_instance.t35($shape.d36_1, $shape.f36_1));
|
|
3458
3474
|
tmp_2 = Unit_instance;
|
|
3459
3475
|
}
|
|
3460
3476
|
// Inline function 'kotlin.collections.forEach' call
|
|
3461
|
-
var _iterator__ex2g4s_1 = $shape.
|
|
3477
|
+
var _iterator__ex2g4s_1 = $shape.u36().t();
|
|
3462
3478
|
while (_iterator__ex2g4s_1.u()) {
|
|
3463
3479
|
var element_1 = _iterator__ex2g4s_1.v();
|
|
3464
3480
|
buildValueGenerator(RpcDslFile_instance, $this$file, element_1, $module);
|
|
@@ -3471,16 +3487,16 @@ function RpcDslFile$buildRequestClass$lambda$lambda($this$constructo) {
|
|
|
3471
3487
|
}
|
|
3472
3488
|
function RpcDslFile$buildRequestClass$lambda($shape) {
|
|
3473
3489
|
return function ($this$struct) {
|
|
3474
|
-
$this$struct.
|
|
3490
|
+
$this$struct.z13(Visibility_PUBLIC_getInstance());
|
|
3475
3491
|
// Inline function 'kotlin.collections.forEach' call
|
|
3476
|
-
var _iterator__ex2g4s = $shape.
|
|
3492
|
+
var _iterator__ex2g4s = $shape.e36_1.t();
|
|
3477
3493
|
while (_iterator__ex2g4s.u()) {
|
|
3478
3494
|
var element = _iterator__ex2g4s.v();
|
|
3479
|
-
$this$struct.
|
|
3495
|
+
$this$struct.b16(new Name(listOf(escapeKotlinIdentifier(element.pp_1.o1()))), convert(element.qp_1));
|
|
3480
3496
|
}
|
|
3481
3497
|
var tmp;
|
|
3482
|
-
if ($shape.
|
|
3483
|
-
$this$struct.
|
|
3498
|
+
if ($shape.e36_1.r()) {
|
|
3499
|
+
$this$struct.c16(RpcDslFile$buildRequestClass$lambda$lambda);
|
|
3484
3500
|
tmp = Unit_instance;
|
|
3485
3501
|
}
|
|
3486
3502
|
return Unit_instance;
|
|
@@ -3488,40 +3504,40 @@ function RpcDslFile$buildRequestClass$lambda($shape) {
|
|
|
3488
3504
|
}
|
|
3489
3505
|
function RpcDslFile$buildGenerateWrapper$lambda$lambda($builder, $requestArb, $shape) {
|
|
3490
3506
|
return function ($this$function) {
|
|
3491
|
-
$this$function.
|
|
3492
|
-
$this$function.
|
|
3493
|
-
$this$function.
|
|
3494
|
-
$this$function.
|
|
3495
|
-
$this$function.
|
|
3507
|
+
$this$function.z13(Visibility_PUBLIC_getInstance());
|
|
3508
|
+
$this$function.c14('block', $this$function.g15(Unit_instance_0, Custom_init_$Create$($builder)), $this$function.h15('{}'));
|
|
3509
|
+
$this$function.x13($requestArb);
|
|
3510
|
+
$this$function.w14('val builder = ' + $builder + '().apply(block)');
|
|
3511
|
+
$this$function.w14('return generatedGen { generator, rs -> builder.applyTo(' + Companion_instance_7.s36($shape.d36_1) + ', rs) }');
|
|
3496
3512
|
return Unit_instance;
|
|
3497
3513
|
};
|
|
3498
3514
|
}
|
|
3499
3515
|
function RpcDslFile$buildGenerateWrapper$lambda$lambda_0($requestArb, $shape) {
|
|
3500
3516
|
return function ($this$function) {
|
|
3501
|
-
$this$function.
|
|
3502
|
-
$this$function.
|
|
3503
|
-
$this$function.
|
|
3517
|
+
$this$function.z13(Visibility_PUBLIC_getInstance());
|
|
3518
|
+
$this$function.x13($requestArb);
|
|
3519
|
+
$this$function.d14($this$function.h15('Arb.constant(' + $shape.d36_1 + ')'));
|
|
3504
3520
|
return Unit_instance;
|
|
3505
3521
|
};
|
|
3506
3522
|
}
|
|
3507
3523
|
function RpcDslFile$buildGenerateWrapper$lambda($shape) {
|
|
3508
3524
|
return function ($this$struct) {
|
|
3509
|
-
$this$struct.
|
|
3510
|
-
$this$struct.
|
|
3511
|
-
$this$struct.
|
|
3512
|
-
var requestArb = Custom_init_$Create$('Arb', listOf(Custom_init_$Create$($shape.
|
|
3525
|
+
$this$struct.v15();
|
|
3526
|
+
$this$struct.z13(Visibility_PUBLIC_getInstance());
|
|
3527
|
+
$this$struct.w15(Visibility_INTERNAL_getInstance());
|
|
3528
|
+
var requestArb = Custom_init_$Create$('Arb', listOf(Custom_init_$Create$($shape.d36_1)));
|
|
3513
3529
|
var tmp;
|
|
3514
3530
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3515
|
-
if (!$shape.
|
|
3516
|
-
var builder = RecordBuilder_instance.
|
|
3517
|
-
$this$struct.
|
|
3531
|
+
if (!$shape.f36_1.r()) {
|
|
3532
|
+
var builder = RecordBuilder_instance.e34($shape.d36_1);
|
|
3533
|
+
$this$struct.k16('request', VOID, VOID, RpcDslFile$buildGenerateWrapper$lambda$lambda(builder, requestArb, $shape));
|
|
3518
3534
|
tmp = Unit_instance;
|
|
3519
3535
|
} else {
|
|
3520
|
-
$this$struct.
|
|
3536
|
+
$this$struct.k16('request', VOID, VOID, RpcDslFile$buildGenerateWrapper$lambda$lambda_0(requestArb, $shape));
|
|
3521
3537
|
tmp = Unit_instance;
|
|
3522
3538
|
}
|
|
3523
|
-
outcomeFunction(RpcDslFile_instance, $this$struct, 'result', $shape.
|
|
3524
|
-
var tmp0_safe_receiver = $shape.
|
|
3539
|
+
outcomeFunction(RpcDslFile_instance, $this$struct, 'result', $shape.g36_1);
|
|
3540
|
+
var tmp0_safe_receiver = $shape.h36_1;
|
|
3525
3541
|
if (tmp0_safe_receiver == null)
|
|
3526
3542
|
null;
|
|
3527
3543
|
else {
|
|
@@ -3533,7 +3549,7 @@ function RpcDslFile$buildGenerateWrapper$lambda($shape) {
|
|
|
3533
3549
|
}
|
|
3534
3550
|
function RpcDslFile$outcomeFunction$lambda($outcome) {
|
|
3535
3551
|
return function (drawn) {
|
|
3536
|
-
var tmp0_safe_receiver = $outcome.
|
|
3552
|
+
var tmp0_safe_receiver = $outcome.m36_1;
|
|
3537
3553
|
var tmp;
|
|
3538
3554
|
if (tmp0_safe_receiver == null) {
|
|
3539
3555
|
tmp = null;
|
|
@@ -3547,54 +3563,54 @@ function RpcDslFile$outcomeFunction$lambda($outcome) {
|
|
|
3547
3563
|
}
|
|
3548
3564
|
function RpcDslFile$outcomeFunction$lambda_0($outcome, $value, $wrap, $record) {
|
|
3549
3565
|
return function ($this$function) {
|
|
3550
|
-
$this$function.
|
|
3551
|
-
$this$function.
|
|
3566
|
+
$this$function.z13(Visibility_PUBLIC_getInstance());
|
|
3567
|
+
$this$function.x13(Custom_init_$Create$('Arb', listOf(Custom_init_$Create$($outcome.l36_1))));
|
|
3552
3568
|
var tmp;
|
|
3553
3569
|
if ($value == null) {
|
|
3554
|
-
$this$function.
|
|
3570
|
+
$this$function.d14($this$function.h15('Arb.constant(' + $wrap('Unit') + ')'));
|
|
3555
3571
|
tmp = Unit_instance;
|
|
3556
3572
|
} else if ($record == null) {
|
|
3557
|
-
$this$function.
|
|
3573
|
+
$this$function.d14($this$function.h15('generatedGen { generator, _ -> ' + $wrap($value) + ' }'));
|
|
3558
3574
|
tmp = Unit_instance;
|
|
3559
3575
|
} else {
|
|
3560
|
-
var builder = RecordBuilder_instance.
|
|
3561
|
-
$this$function.
|
|
3562
|
-
$this$function.
|
|
3563
|
-
$this$function.
|
|
3576
|
+
var builder = RecordBuilder_instance.e34($record.c35_1);
|
|
3577
|
+
$this$function.c14('block', $this$function.g15(Unit_instance_0, Custom_init_$Create$(builder)), $this$function.h15('{}'));
|
|
3578
|
+
$this$function.w14('val builder = ' + builder + '().apply(block)');
|
|
3579
|
+
$this$function.w14('return generatedGen { generator, rs -> ' + $wrap($record.g35($value, 'builder')) + ' }');
|
|
3564
3580
|
tmp = Unit_instance;
|
|
3565
3581
|
}
|
|
3566
3582
|
return Unit_instance;
|
|
3567
3583
|
};
|
|
3568
3584
|
}
|
|
3569
3585
|
function RpcDslFile$buildCall$lambda(it) {
|
|
3570
|
-
return 'request.' + escapeKotlinIdentifier(it.
|
|
3586
|
+
return 'request.' + escapeKotlinIdentifier(it.pp_1.o1());
|
|
3571
3587
|
}
|
|
3572
3588
|
function RpcDslFile$buildCall$lambda_0($shape, $request, $args) {
|
|
3573
3589
|
return function ($this$asyncFunction) {
|
|
3574
|
-
$this$asyncFunction.
|
|
3575
|
-
$this$asyncFunction.
|
|
3576
|
-
$this$asyncFunction.
|
|
3577
|
-
$this$asyncFunction.
|
|
3590
|
+
$this$asyncFunction.z13(Visibility_PUBLIC_getInstance());
|
|
3591
|
+
$this$asyncFunction.y13(Custom_init_$Create$('Gen', listOf(Custom_init_$Create$($shape.d36_1))));
|
|
3592
|
+
$this$asyncFunction.x13(Custom_init_$Create$($shape.i36_1));
|
|
3593
|
+
$this$asyncFunction.d14($this$asyncFunction.h15('rpcCall(' + $shape.b36_1 + '.Service::class, this) { service, ' + $request + ' -> service.' + $shape.c36_1 + '(' + $args + ') }'));
|
|
3578
3594
|
return Unit_instance;
|
|
3579
3595
|
};
|
|
3580
3596
|
}
|
|
3581
3597
|
function RpcDslFile$buildValueGenerator$lambda($value, $module) {
|
|
3582
3598
|
return function ($this$function) {
|
|
3583
|
-
$this$function.
|
|
3584
|
-
$this$function.
|
|
3585
|
-
$this$function.
|
|
3586
|
-
$this$function.
|
|
3587
|
-
$this$function.
|
|
3599
|
+
$this$function.z13(Visibility_PRIVATE_getInstance());
|
|
3600
|
+
$this$function.a14('generator', Custom_init_$Create$('Wirespec.Generator'));
|
|
3601
|
+
$this$function.a14('path', new Array_0(String_instance));
|
|
3602
|
+
$this$function.x13(Custom_init_$Create$($value.g1i()));
|
|
3603
|
+
$this$function.d14($value.v36($module));
|
|
3588
3604
|
return Unit_instance;
|
|
3589
3605
|
};
|
|
3590
3606
|
}
|
|
3591
3607
|
function RpcDslFile() {
|
|
3592
3608
|
}
|
|
3593
|
-
protoOf(RpcDslFile).
|
|
3594
|
-
var shape = Companion_instance_8.
|
|
3609
|
+
protoOf(RpcDslFile).w36 = function (rpc, packageName, module_0, types, refined) {
|
|
3610
|
+
var shape = Companion_instance_8.x36(rpc, types, refined);
|
|
3595
3611
|
var kotestPkg = packageName.bt_1 + '.kotest';
|
|
3596
|
-
var fileName = Companion_instance_0.at(kotestPkg).dt() + (shape.
|
|
3597
|
-
var tmp = Companion_getInstance().
|
|
3612
|
+
var fileName = Companion_instance_0.at(kotestPkg).dt() + (shape.b36_1 + 'Dsl');
|
|
3613
|
+
var tmp = Companion_getInstance().au(fileName);
|
|
3598
3614
|
return file(tmp, RpcDslFile$build$lambda(kotestPkg, shape, packageName, module_0));
|
|
3599
3615
|
};
|
|
3600
3616
|
var RpcDslFile_instance;
|
|
@@ -3602,21 +3618,21 @@ function RpcDslFile_getInstance() {
|
|
|
3602
3618
|
return RpcDslFile_instance;
|
|
3603
3619
|
}
|
|
3604
3620
|
function Request(name, parameters) {
|
|
3605
|
-
this.
|
|
3606
|
-
this.
|
|
3607
|
-
this.
|
|
3621
|
+
this.y36_1 = name;
|
|
3622
|
+
this.z36_1 = parameters;
|
|
3623
|
+
this.a37_1 = this.y36_1;
|
|
3608
3624
|
}
|
|
3609
3625
|
protoOf(Request).m = function () {
|
|
3610
|
-
return this.
|
|
3626
|
+
return this.y36_1;
|
|
3611
3627
|
};
|
|
3612
|
-
protoOf(Request).
|
|
3613
|
-
return this.
|
|
3628
|
+
protoOf(Request).g1i = function () {
|
|
3629
|
+
return this.a37_1;
|
|
3614
3630
|
};
|
|
3615
|
-
protoOf(Request).
|
|
3631
|
+
protoOf(Request).v36 = function (module_0) {
|
|
3616
3632
|
// Inline function 'kotlin.let' call
|
|
3617
|
-
var constructed = generatorConstructor(this.
|
|
3633
|
+
var constructed = generatorConstructor(this.y36_1, this.z36_1, module_0);
|
|
3618
3634
|
// Inline function 'kotlin.collections.mapKeys' call
|
|
3619
|
-
var this_0 = constructed.
|
|
3635
|
+
var this_0 = constructed.hu_1;
|
|
3620
3636
|
// Inline function 'kotlin.collections.mapKeysTo' call
|
|
3621
3637
|
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.c1()));
|
|
3622
3638
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -3625,18 +3641,18 @@ protoOf(Request).q36 = function (module_0) {
|
|
|
3625
3641
|
var element = _iterator__ex2g4s.v();
|
|
3626
3642
|
// Inline function 'kotlin.collections.component1' call
|
|
3627
3643
|
var key = element.n1();
|
|
3628
|
-
var tmp = new Name(listOf(escapeKotlinIdentifier(key.
|
|
3644
|
+
var tmp = new Name(listOf(escapeKotlinIdentifier(key.bu())));
|
|
3629
3645
|
var tmp$ret$7 = element.o1();
|
|
3630
|
-
destination.
|
|
3646
|
+
destination.w2(tmp, tmp$ret$7);
|
|
3631
3647
|
}
|
|
3632
|
-
return constructed.
|
|
3648
|
+
return constructed.ju(VOID, destination);
|
|
3633
3649
|
};
|
|
3634
3650
|
protoOf(Request).toString = function () {
|
|
3635
|
-
return 'Request(name=' + this.
|
|
3651
|
+
return 'Request(name=' + this.y36_1 + ', parameters=' + toString(this.z36_1) + ')';
|
|
3636
3652
|
};
|
|
3637
3653
|
protoOf(Request).hashCode = function () {
|
|
3638
|
-
var result = getStringHashCode(this.
|
|
3639
|
-
result = imul(result, 31) + hashCode(this.
|
|
3654
|
+
var result = getStringHashCode(this.y36_1);
|
|
3655
|
+
result = imul(result, 31) + hashCode(this.z36_1) | 0;
|
|
3640
3656
|
return result;
|
|
3641
3657
|
};
|
|
3642
3658
|
protoOf(Request).equals = function (other) {
|
|
@@ -3644,36 +3660,36 @@ protoOf(Request).equals = function (other) {
|
|
|
3644
3660
|
return true;
|
|
3645
3661
|
if (!(other instanceof Request))
|
|
3646
3662
|
return false;
|
|
3647
|
-
if (!(this.
|
|
3663
|
+
if (!(this.y36_1 === other.y36_1))
|
|
3648
3664
|
return false;
|
|
3649
|
-
if (!equals(this.
|
|
3665
|
+
if (!equals(this.z36_1, other.z36_1))
|
|
3650
3666
|
return false;
|
|
3651
3667
|
return true;
|
|
3652
3668
|
};
|
|
3653
3669
|
function Value(name, type, reference) {
|
|
3654
|
-
this.
|
|
3655
|
-
this.
|
|
3656
|
-
this.
|
|
3670
|
+
this.p36_1 = name;
|
|
3671
|
+
this.q36_1 = type;
|
|
3672
|
+
this.r36_1 = reference;
|
|
3657
3673
|
}
|
|
3658
3674
|
protoOf(Value).m = function () {
|
|
3659
|
-
return this.
|
|
3675
|
+
return this.p36_1;
|
|
3660
3676
|
};
|
|
3661
|
-
protoOf(Value).
|
|
3662
|
-
return this.
|
|
3677
|
+
protoOf(Value).g1i = function () {
|
|
3678
|
+
return this.q36_1;
|
|
3663
3679
|
};
|
|
3664
|
-
protoOf(Value).
|
|
3665
|
-
var tmp = single(generatorConstructor(this.
|
|
3680
|
+
protoOf(Value).v36 = function (module_0) {
|
|
3681
|
+
var tmp = single(generatorConstructor(this.p36_1, listOf(new Field_0(emptyList(), new FieldIdentifier('value'), this.r36_1)), module_0).hu_1.v2());
|
|
3666
3682
|
// Inline function 'kotlin.let' call
|
|
3667
3683
|
var it = tmp instanceof FunctionCall ? tmp : THROW_CCE();
|
|
3668
|
-
return it.
|
|
3684
|
+
return it.uy(VOID, VOID, VOID, plus_1(it.ry_1, to(Companion_getInstance().au('path'), new VariableReference(Companion_getInstance().au('path')))));
|
|
3669
3685
|
};
|
|
3670
3686
|
protoOf(Value).toString = function () {
|
|
3671
|
-
return 'Value(name=' + this.
|
|
3687
|
+
return 'Value(name=' + this.p36_1 + ', type=' + this.q36_1 + ', reference=' + toString(this.r36_1) + ')';
|
|
3672
3688
|
};
|
|
3673
3689
|
protoOf(Value).hashCode = function () {
|
|
3674
|
-
var result = getStringHashCode(this.
|
|
3675
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
3676
|
-
result = imul(result, 31) + hashCode(this.
|
|
3690
|
+
var result = getStringHashCode(this.p36_1);
|
|
3691
|
+
result = imul(result, 31) + getStringHashCode(this.q36_1) | 0;
|
|
3692
|
+
result = imul(result, 31) + hashCode(this.r36_1) | 0;
|
|
3677
3693
|
return result;
|
|
3678
3694
|
};
|
|
3679
3695
|
protoOf(Value).equals = function (other) {
|
|
@@ -3681,28 +3697,28 @@ protoOf(Value).equals = function (other) {
|
|
|
3681
3697
|
return true;
|
|
3682
3698
|
if (!(other instanceof Value))
|
|
3683
3699
|
return false;
|
|
3684
|
-
if (!(this.
|
|
3700
|
+
if (!(this.p36_1 === other.p36_1))
|
|
3685
3701
|
return false;
|
|
3686
|
-
if (!(this.
|
|
3702
|
+
if (!(this.q36_1 === other.q36_1))
|
|
3687
3703
|
return false;
|
|
3688
|
-
if (!equals(this.
|
|
3704
|
+
if (!equals(this.r36_1, other.r36_1))
|
|
3689
3705
|
return false;
|
|
3690
3706
|
return true;
|
|
3691
3707
|
};
|
|
3692
3708
|
function Companion_5() {
|
|
3693
3709
|
}
|
|
3694
|
-
protoOf(Companion_5).
|
|
3710
|
+
protoOf(Companion_5).t36 = function (name) {
|
|
3695
3711
|
return 'generate' + name;
|
|
3696
3712
|
};
|
|
3697
|
-
protoOf(Companion_5).
|
|
3698
|
-
return this.
|
|
3713
|
+
protoOf(Companion_5).s36 = function (name) {
|
|
3714
|
+
return this.t36(name) + '(generator, emptyList())';
|
|
3699
3715
|
};
|
|
3700
3716
|
var Companion_instance_7;
|
|
3701
3717
|
function Companion_getInstance_6() {
|
|
3702
3718
|
return Companion_instance_7;
|
|
3703
3719
|
}
|
|
3704
3720
|
function outcome($this, rpcName, kind, reference, wrapped, types) {
|
|
3705
|
-
var valueType = KotlinGenerator_getInstance().
|
|
3721
|
+
var valueType = KotlinGenerator_getInstance().p1c(convert(reference));
|
|
3706
3722
|
var tmp = wrapped ? rpcName + '.' + kind : valueType;
|
|
3707
3723
|
// Inline function 'kotlin.takeIf' call
|
|
3708
3724
|
var this_0 = rpcName + '.' + kind;
|
|
@@ -3722,7 +3738,7 @@ function outcome($this, rpcName, kind, reference, wrapped, types) {
|
|
|
3722
3738
|
tmp_2 = null;
|
|
3723
3739
|
}
|
|
3724
3740
|
var tmp_3 = tmp_2;
|
|
3725
|
-
var tmp0_safe_receiver = Companion_instance_5.
|
|
3741
|
+
var tmp0_safe_receiver = Companion_instance_5.p35(reference, types);
|
|
3726
3742
|
var tmp_4;
|
|
3727
3743
|
if (tmp0_safe_receiver == null) {
|
|
3728
3744
|
tmp_4 = null;
|
|
@@ -3730,7 +3746,7 @@ function outcome($this, rpcName, kind, reference, wrapped, types) {
|
|
|
3730
3746
|
// Inline function 'kotlin.takeIf' call
|
|
3731
3747
|
var tmp_5;
|
|
3732
3748
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3733
|
-
if (!get_fields(getValue(types, tmp0_safe_receiver.
|
|
3749
|
+
if (!get_fields(getValue(types, tmp0_safe_receiver.c35_1).mp_1).r()) {
|
|
3734
3750
|
tmp_5 = tmp0_safe_receiver;
|
|
3735
3751
|
} else {
|
|
3736
3752
|
tmp_5 = null;
|
|
@@ -3740,19 +3756,19 @@ function outcome($this, rpcName, kind, reference, wrapped, types) {
|
|
|
3740
3756
|
return new Outcome(tmp, tmp_1, tmp_3, tmp_4);
|
|
3741
3757
|
}
|
|
3742
3758
|
function Outcome(type, wrapper, generated, record) {
|
|
3743
|
-
this.
|
|
3744
|
-
this.
|
|
3745
|
-
this.
|
|
3746
|
-
this.
|
|
3759
|
+
this.l36_1 = type;
|
|
3760
|
+
this.m36_1 = wrapper;
|
|
3761
|
+
this.n36_1 = generated;
|
|
3762
|
+
this.o36_1 = record;
|
|
3747
3763
|
}
|
|
3748
3764
|
protoOf(Outcome).toString = function () {
|
|
3749
|
-
return 'Outcome(type=' + this.
|
|
3765
|
+
return 'Outcome(type=' + this.l36_1 + ', wrapper=' + this.m36_1 + ', generated=' + toString_1(this.n36_1) + ', record=' + toString_1(this.o36_1) + ')';
|
|
3750
3766
|
};
|
|
3751
3767
|
protoOf(Outcome).hashCode = function () {
|
|
3752
|
-
var result = getStringHashCode(this.
|
|
3753
|
-
result = imul(result, 31) + (this.
|
|
3754
|
-
result = imul(result, 31) + (this.
|
|
3755
|
-
result = imul(result, 31) + (this.
|
|
3768
|
+
var result = getStringHashCode(this.l36_1);
|
|
3769
|
+
result = imul(result, 31) + (this.m36_1 == null ? 0 : getStringHashCode(this.m36_1)) | 0;
|
|
3770
|
+
result = imul(result, 31) + (this.n36_1 == null ? 0 : this.n36_1.hashCode()) | 0;
|
|
3771
|
+
result = imul(result, 31) + (this.o36_1 == null ? 0 : this.o36_1.hashCode()) | 0;
|
|
3756
3772
|
return result;
|
|
3757
3773
|
};
|
|
3758
3774
|
protoOf(Outcome).equals = function (other) {
|
|
@@ -3760,36 +3776,36 @@ protoOf(Outcome).equals = function (other) {
|
|
|
3760
3776
|
return true;
|
|
3761
3777
|
if (!(other instanceof Outcome))
|
|
3762
3778
|
return false;
|
|
3763
|
-
if (!(this.
|
|
3779
|
+
if (!(this.l36_1 === other.l36_1))
|
|
3764
3780
|
return false;
|
|
3765
|
-
if (!(this.
|
|
3781
|
+
if (!(this.m36_1 == other.m36_1))
|
|
3766
3782
|
return false;
|
|
3767
|
-
if (!equals(this.
|
|
3783
|
+
if (!equals(this.n36_1, other.n36_1))
|
|
3768
3784
|
return false;
|
|
3769
|
-
if (!equals(this.
|
|
3785
|
+
if (!equals(this.o36_1, other.o36_1))
|
|
3770
3786
|
return false;
|
|
3771
3787
|
return true;
|
|
3772
3788
|
};
|
|
3773
3789
|
function Companion_6() {
|
|
3774
3790
|
}
|
|
3775
|
-
protoOf(Companion_6).
|
|
3776
|
-
var name = Companion_getInstance().
|
|
3791
|
+
protoOf(Companion_6).x36 = function (rpc, types, refined) {
|
|
3792
|
+
var name = Companion_getInstance().au(rpc.sq_1.o1()).du();
|
|
3777
3793
|
var requestName = name + 'Request';
|
|
3778
|
-
var parameters = get_fields(rpc.
|
|
3779
|
-
var requestFields = Companion_instance_4.
|
|
3780
|
-
var result = outcome(this, name, 'Result', rpc.
|
|
3794
|
+
var parameters = get_fields(rpc.tq_1);
|
|
3795
|
+
var requestFields = Companion_instance_4.y33(requestName, plus_1(types, to(requestName, syntheticType(requestName, parameters))), refined);
|
|
3796
|
+
var result = outcome(this, name, 'Result', rpc.uq_1, !(rpc.vq_1 == null), types);
|
|
3781
3797
|
// Inline function 'kotlin.collections.map' call
|
|
3782
3798
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3783
3799
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(parameters, 10));
|
|
3784
3800
|
var _iterator__ex2g4s = parameters.t();
|
|
3785
3801
|
while (_iterator__ex2g4s.u()) {
|
|
3786
3802
|
var item = _iterator__ex2g4s.v();
|
|
3787
|
-
var tmp$ret$2 = item.
|
|
3803
|
+
var tmp$ret$2 = item.qp_1;
|
|
3788
3804
|
destination.x(tmp$ret$2);
|
|
3789
3805
|
}
|
|
3790
|
-
var references = plus(destination, listOfNotNull([rpc.
|
|
3791
|
-
var tmp = escapeKotlinIdentifier(Companion_getInstance().
|
|
3792
|
-
var tmp0_safe_receiver = rpc.
|
|
3806
|
+
var references = plus(destination, listOfNotNull([rpc.uq_1, rpc.vq_1]));
|
|
3807
|
+
var tmp = escapeKotlinIdentifier(Companion_getInstance().au(rpc.sq_1.o1()).cu());
|
|
3808
|
+
var tmp0_safe_receiver = rpc.vq_1;
|
|
3793
3809
|
var tmp_0;
|
|
3794
3810
|
if (tmp0_safe_receiver == null) {
|
|
3795
3811
|
tmp_0 = null;
|
|
@@ -3798,15 +3814,15 @@ protoOf(Companion_6).s36 = function (rpc, types, refined) {
|
|
|
3798
3814
|
tmp_0 = outcome(Companion_instance_8, name, 'Error', tmp0_safe_receiver, true, types);
|
|
3799
3815
|
}
|
|
3800
3816
|
var tmp_1 = tmp_0;
|
|
3801
|
-
var tmp_2 = !(rpc.
|
|
3802
|
-
var tmp_3 = Companion_instance_4.
|
|
3817
|
+
var tmp_2 = !(rpc.vq_1 == null) ? name + '.Response' : result.l36_1;
|
|
3818
|
+
var tmp_3 = Companion_instance_4.z33(references);
|
|
3803
3819
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3804
3820
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3805
3821
|
var destination_0 = ArrayList_init_$Create$();
|
|
3806
3822
|
var _iterator__ex2g4s_0 = references.t();
|
|
3807
3823
|
while (_iterator__ex2g4s_0.u()) {
|
|
3808
3824
|
var element = _iterator__ex2g4s_0.v();
|
|
3809
|
-
var list = Companion_instance_4.
|
|
3825
|
+
var list = Companion_instance_4.o35(element);
|
|
3810
3826
|
addAll(destination_0, list);
|
|
3811
3827
|
}
|
|
3812
3828
|
return new RpcShape(name, tmp, requestName, parameters, requestFields, result, tmp_1, tmp_2, tmp_3, distinct(destination_0));
|
|
@@ -3816,45 +3832,45 @@ function Companion_getInstance_7() {
|
|
|
3816
3832
|
return Companion_instance_8;
|
|
3817
3833
|
}
|
|
3818
3834
|
function RpcShape(name, functionName, requestName, parameters, requestFields, result, error, callReturnType, modelImports, generatorImports) {
|
|
3819
|
-
this.
|
|
3820
|
-
this.
|
|
3821
|
-
this.
|
|
3822
|
-
this.
|
|
3823
|
-
this.
|
|
3824
|
-
this.
|
|
3825
|
-
this.
|
|
3826
|
-
this.
|
|
3827
|
-
this.
|
|
3828
|
-
this.
|
|
3829
|
-
}
|
|
3830
|
-
protoOf(RpcShape).
|
|
3835
|
+
this.b36_1 = name;
|
|
3836
|
+
this.c36_1 = functionName;
|
|
3837
|
+
this.d36_1 = requestName;
|
|
3838
|
+
this.e36_1 = parameters;
|
|
3839
|
+
this.f36_1 = requestFields;
|
|
3840
|
+
this.g36_1 = result;
|
|
3841
|
+
this.h36_1 = error;
|
|
3842
|
+
this.i36_1 = callReturnType;
|
|
3843
|
+
this.j36_1 = modelImports;
|
|
3844
|
+
this.k36_1 = generatorImports;
|
|
3845
|
+
}
|
|
3846
|
+
protoOf(RpcShape).u36 = function () {
|
|
3831
3847
|
// Inline function 'kotlin.takeIf' call
|
|
3832
|
-
var this_0 = new Request(this.
|
|
3848
|
+
var this_0 = new Request(this.d36_1, this.e36_1);
|
|
3833
3849
|
var tmp;
|
|
3834
3850
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3835
|
-
if (!this.
|
|
3851
|
+
if (!this.e36_1.r()) {
|
|
3836
3852
|
tmp = this_0;
|
|
3837
3853
|
} else {
|
|
3838
3854
|
tmp = null;
|
|
3839
3855
|
}
|
|
3840
3856
|
var tmp_0 = tmp;
|
|
3841
|
-
var tmp0_safe_receiver = this.
|
|
3842
|
-
return listOfNotNull([tmp_0, this.
|
|
3857
|
+
var tmp0_safe_receiver = this.h36_1;
|
|
3858
|
+
return listOfNotNull([tmp_0, this.g36_1.n36_1, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n36_1]);
|
|
3843
3859
|
};
|
|
3844
3860
|
protoOf(RpcShape).toString = function () {
|
|
3845
|
-
return 'RpcShape(name=' + this.
|
|
3861
|
+
return 'RpcShape(name=' + this.b36_1 + ', functionName=' + this.c36_1 + ', requestName=' + this.d36_1 + ', parameters=' + toString(this.e36_1) + ', requestFields=' + toString(this.f36_1) + ', result=' + this.g36_1.toString() + ', error=' + toString_1(this.h36_1) + ', callReturnType=' + this.i36_1 + ', modelImports=' + toString(this.j36_1) + ', generatorImports=' + toString(this.k36_1) + ')';
|
|
3846
3862
|
};
|
|
3847
3863
|
protoOf(RpcShape).hashCode = function () {
|
|
3848
|
-
var result = getStringHashCode(this.
|
|
3849
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
3850
|
-
result = imul(result, 31) + getStringHashCode(this.y35_1) | 0;
|
|
3851
|
-
result = imul(result, 31) + hashCode(this.z35_1) | 0;
|
|
3852
|
-
result = imul(result, 31) + hashCode(this.a36_1) | 0;
|
|
3853
|
-
result = imul(result, 31) + this.b36_1.hashCode() | 0;
|
|
3854
|
-
result = imul(result, 31) + (this.c36_1 == null ? 0 : this.c36_1.hashCode()) | 0;
|
|
3864
|
+
var result = getStringHashCode(this.b36_1);
|
|
3865
|
+
result = imul(result, 31) + getStringHashCode(this.c36_1) | 0;
|
|
3855
3866
|
result = imul(result, 31) + getStringHashCode(this.d36_1) | 0;
|
|
3856
3867
|
result = imul(result, 31) + hashCode(this.e36_1) | 0;
|
|
3857
3868
|
result = imul(result, 31) + hashCode(this.f36_1) | 0;
|
|
3869
|
+
result = imul(result, 31) + this.g36_1.hashCode() | 0;
|
|
3870
|
+
result = imul(result, 31) + (this.h36_1 == null ? 0 : this.h36_1.hashCode()) | 0;
|
|
3871
|
+
result = imul(result, 31) + getStringHashCode(this.i36_1) | 0;
|
|
3872
|
+
result = imul(result, 31) + hashCode(this.j36_1) | 0;
|
|
3873
|
+
result = imul(result, 31) + hashCode(this.k36_1) | 0;
|
|
3858
3874
|
return result;
|
|
3859
3875
|
};
|
|
3860
3876
|
protoOf(RpcShape).equals = function (other) {
|
|
@@ -3862,25 +3878,25 @@ protoOf(RpcShape).equals = function (other) {
|
|
|
3862
3878
|
return true;
|
|
3863
3879
|
if (!(other instanceof RpcShape))
|
|
3864
3880
|
return false;
|
|
3865
|
-
if (!(this.
|
|
3881
|
+
if (!(this.b36_1 === other.b36_1))
|
|
3866
3882
|
return false;
|
|
3867
|
-
if (!(this.
|
|
3883
|
+
if (!(this.c36_1 === other.c36_1))
|
|
3868
3884
|
return false;
|
|
3869
|
-
if (!(this.
|
|
3885
|
+
if (!(this.d36_1 === other.d36_1))
|
|
3870
3886
|
return false;
|
|
3871
|
-
if (!equals(this.
|
|
3887
|
+
if (!equals(this.e36_1, other.e36_1))
|
|
3872
3888
|
return false;
|
|
3873
|
-
if (!equals(this.
|
|
3889
|
+
if (!equals(this.f36_1, other.f36_1))
|
|
3874
3890
|
return false;
|
|
3875
|
-
if (!this.
|
|
3891
|
+
if (!this.g36_1.equals(other.g36_1))
|
|
3876
3892
|
return false;
|
|
3877
|
-
if (!equals(this.
|
|
3893
|
+
if (!equals(this.h36_1, other.h36_1))
|
|
3878
3894
|
return false;
|
|
3879
|
-
if (!(this.
|
|
3895
|
+
if (!(this.i36_1 === other.i36_1))
|
|
3880
3896
|
return false;
|
|
3881
|
-
if (!equals(this.
|
|
3897
|
+
if (!equals(this.j36_1, other.j36_1))
|
|
3882
3898
|
return false;
|
|
3883
|
-
if (!equals(this.
|
|
3899
|
+
if (!equals(this.k36_1, other.k36_1))
|
|
3884
3900
|
return false;
|
|
3885
3901
|
return true;
|
|
3886
3902
|
};
|
|
@@ -3892,9 +3908,9 @@ function generatorConstructor(name, fields, module_0) {
|
|
|
3892
3908
|
// Inline function 'kotlin.apply' call
|
|
3893
3909
|
var this_1 = ArrayList_init_$Create$();
|
|
3894
3910
|
forEachElement(this_0, generatorConstructor$lambda(this_1));
|
|
3895
|
-
var tmp$ret$0 = this_1.
|
|
3911
|
+
var tmp$ret$0 = this_1.r5();
|
|
3896
3912
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
3897
|
-
var tmp0 = single_0(tmp$ret$0).
|
|
3913
|
+
var tmp0 = single_0(tmp$ret$0).vx_1;
|
|
3898
3914
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
3899
3915
|
var destination = ArrayList_init_$Create$();
|
|
3900
3916
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -3904,7 +3920,7 @@ function generatorConstructor(name, fields, module_0) {
|
|
|
3904
3920
|
destination.x(element);
|
|
3905
3921
|
}
|
|
3906
3922
|
}
|
|
3907
|
-
var tmp = single_0(destination).
|
|
3923
|
+
var tmp = single_0(destination).my_1;
|
|
3908
3924
|
return tmp instanceof ConstructorStatement ? tmp : THROW_CCE();
|
|
3909
3925
|
}
|
|
3910
3926
|
function syntheticType(name, fields) {
|
|
@@ -3922,53 +3938,53 @@ function generatorConstructor$lambda($$this$buildList) {
|
|
|
3922
3938
|
}
|
|
3923
3939
|
function TypeDslFile$build$lambda$lambda($receiver, $builder, $model) {
|
|
3924
3940
|
return function ($this$function) {
|
|
3925
|
-
$this$function.
|
|
3926
|
-
$this$function.
|
|
3927
|
-
$this$function.
|
|
3928
|
-
$this$function.
|
|
3929
|
-
$this$function.
|
|
3930
|
-
$this$function.
|
|
3941
|
+
$this$function.z13(Visibility_PUBLIC_getInstance());
|
|
3942
|
+
$this$function.y13(Custom_init_$Create$($receiver));
|
|
3943
|
+
$this$function.c14('block', $this$function.g15(Unit_instance_0, Custom_init_$Create$($builder)), $this$function.h15('{}'));
|
|
3944
|
+
$this$function.x13(Custom_init_$Create$('Arb', listOf(Custom_init_$Create$($model))));
|
|
3945
|
+
$this$function.w14('val builder = ' + $builder + '().apply(block)');
|
|
3946
|
+
$this$function.w14('return generatedGen { generator, rs -> builder.applyTo(' + $model + 'Generator.generate(generator, emptyList()), rs) }');
|
|
3931
3947
|
return Unit_instance;
|
|
3932
3948
|
};
|
|
3933
3949
|
}
|
|
3934
3950
|
function TypeDslFile$build$lambda($kotestPkg, $shape, $modelPkg, $packageName, $model, $receiver, $builder) {
|
|
3935
3951
|
return function ($this$file) {
|
|
3936
|
-
$this$file.
|
|
3937
|
-
$this$file.
|
|
3938
|
-
$this$file.
|
|
3939
|
-
$this$file.
|
|
3940
|
-
$this$file.
|
|
3952
|
+
$this$file.q17($kotestPkg);
|
|
3953
|
+
$this$file.g16('community.flock.wirespec.integration.kotest.dsl', 'generatedGen');
|
|
3954
|
+
$this$file.g16('community.flock.wirespec.integration.kotest.dsl', 'WirespecScenarioDsl');
|
|
3955
|
+
$this$file.g16('io.kotest.property', 'Arb');
|
|
3956
|
+
$this$file.g16('io.kotest.property', 'RandomSource');
|
|
3941
3957
|
var tmp;
|
|
3942
3958
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3943
|
-
if (!$shape.
|
|
3944
|
-
$this$file.
|
|
3945
|
-
$this$file.
|
|
3946
|
-
$this$file.
|
|
3959
|
+
if (!$shape.c37_1.r()) {
|
|
3960
|
+
$this$file.g16('community.flock.wirespec.integration.kotest.dsl', 'draw');
|
|
3961
|
+
$this$file.g16('io.kotest.property', 'Gen');
|
|
3962
|
+
$this$file.g16('io.kotest.property.arbitrary', 'constant');
|
|
3947
3963
|
tmp = Unit_instance;
|
|
3948
3964
|
}
|
|
3949
3965
|
// Inline function 'kotlin.collections.forEach' call
|
|
3950
|
-
var _iterator__ex2g4s = distinct(plus(listOf($shape.
|
|
3966
|
+
var _iterator__ex2g4s = distinct(plus(listOf($shape.b37_1), $shape.d37_1)).t();
|
|
3951
3967
|
while (_iterator__ex2g4s.u()) {
|
|
3952
3968
|
var element = _iterator__ex2g4s.v();
|
|
3953
|
-
$this$file.
|
|
3969
|
+
$this$file.g16($modelPkg, Companion_getInstance().au(element).du());
|
|
3954
3970
|
}
|
|
3955
|
-
$this$file.
|
|
3956
|
-
$this$file.
|
|
3957
|
-
$this$file.
|
|
3971
|
+
$this$file.g16($packageName.bt_1 + '.generator', $model + 'Generator');
|
|
3972
|
+
$this$file.k16('generate', VOID, VOID, TypeDslFile$build$lambda$lambda($receiver, $builder, $model));
|
|
3973
|
+
$this$file.p17_1.x(RecordBuilder_instance.t35($shape.b37_1, $shape.c37_1));
|
|
3958
3974
|
return Unit_instance;
|
|
3959
3975
|
};
|
|
3960
3976
|
}
|
|
3961
3977
|
function TypeDslFile() {
|
|
3962
3978
|
}
|
|
3963
|
-
protoOf(TypeDslFile).
|
|
3964
|
-
var shape = Companion_instance_9.
|
|
3979
|
+
protoOf(TypeDslFile).e37 = function (type, packageName, types, refined) {
|
|
3980
|
+
var shape = Companion_instance_9.f37(type, types, refined);
|
|
3965
3981
|
var kotestPkg = packageName.bt_1 + '.kotest';
|
|
3966
3982
|
var modelPkg = packageName.bt_1 + '.model';
|
|
3967
|
-
var fileName = Companion_instance_0.at(kotestPkg).dt() + (shape.
|
|
3968
|
-
var model = Companion_getInstance().
|
|
3969
|
-
var builder = RecordBuilder_instance.
|
|
3970
|
-
var receiver = shape.
|
|
3971
|
-
var tmp = Companion_getInstance().
|
|
3983
|
+
var fileName = Companion_instance_0.at(kotestPkg).dt() + (shape.b37_1 + 'Dsl');
|
|
3984
|
+
var model = Companion_getInstance().au(shape.b37_1).du();
|
|
3985
|
+
var builder = RecordBuilder_instance.e34(shape.b37_1);
|
|
3986
|
+
var receiver = shape.c37_1.r() ? model : model + '.Companion';
|
|
3987
|
+
var tmp = Companion_getInstance().au(fileName);
|
|
3972
3988
|
return file(tmp, TypeDslFile$build$lambda(kotestPkg, shape, modelPkg, packageName, model, receiver, builder));
|
|
3973
3989
|
};
|
|
3974
3990
|
var TypeDslFile_instance;
|
|
@@ -3977,21 +3993,21 @@ function TypeDslFile_getInstance() {
|
|
|
3977
3993
|
}
|
|
3978
3994
|
function Companion_7() {
|
|
3979
3995
|
}
|
|
3980
|
-
protoOf(Companion_7).
|
|
3981
|
-
var name = type.
|
|
3982
|
-
var fields = Companion_instance_4.
|
|
3996
|
+
protoOf(Companion_7).f37 = function (type, types, refined) {
|
|
3997
|
+
var name = type.lp_1.o1();
|
|
3998
|
+
var fields = Companion_instance_4.y33(name, types, refined);
|
|
3983
3999
|
var tmp = Companion_instance_4;
|
|
3984
4000
|
// Inline function 'kotlin.collections.map' call
|
|
3985
|
-
var this_0 = get_fields(type.
|
|
4001
|
+
var this_0 = get_fields(type.mp_1);
|
|
3986
4002
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3987
4003
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3988
4004
|
var _iterator__ex2g4s = this_0.t();
|
|
3989
4005
|
while (_iterator__ex2g4s.u()) {
|
|
3990
4006
|
var item = _iterator__ex2g4s.v();
|
|
3991
|
-
var tmp$ret$2 = item.
|
|
4007
|
+
var tmp$ret$2 = item.qp_1;
|
|
3992
4008
|
destination.x(tmp$ret$2);
|
|
3993
4009
|
}
|
|
3994
|
-
var modelImports = tmp.
|
|
4010
|
+
var modelImports = tmp.z33(destination);
|
|
3995
4011
|
return new TypeShape(name, fields, modelImports);
|
|
3996
4012
|
};
|
|
3997
4013
|
var Companion_instance_9;
|
|
@@ -3999,17 +4015,17 @@ function Companion_getInstance_8() {
|
|
|
3999
4015
|
return Companion_instance_9;
|
|
4000
4016
|
}
|
|
4001
4017
|
function TypeShape(name, fields, modelImports) {
|
|
4002
|
-
this.
|
|
4003
|
-
this.
|
|
4004
|
-
this.
|
|
4018
|
+
this.b37_1 = name;
|
|
4019
|
+
this.c37_1 = fields;
|
|
4020
|
+
this.d37_1 = modelImports;
|
|
4005
4021
|
}
|
|
4006
4022
|
protoOf(TypeShape).toString = function () {
|
|
4007
|
-
return 'TypeShape(name=' + this.
|
|
4023
|
+
return 'TypeShape(name=' + this.b37_1 + ', fields=' + toString(this.c37_1) + ', modelImports=' + toString(this.d37_1) + ')';
|
|
4008
4024
|
};
|
|
4009
4025
|
protoOf(TypeShape).hashCode = function () {
|
|
4010
|
-
var result = getStringHashCode(this.
|
|
4011
|
-
result = imul(result, 31) + hashCode(this.
|
|
4012
|
-
result = imul(result, 31) + hashCode(this.
|
|
4026
|
+
var result = getStringHashCode(this.b37_1);
|
|
4027
|
+
result = imul(result, 31) + hashCode(this.c37_1) | 0;
|
|
4028
|
+
result = imul(result, 31) + hashCode(this.d37_1) | 0;
|
|
4013
4029
|
return result;
|
|
4014
4030
|
};
|
|
4015
4031
|
protoOf(TypeShape).equals = function (other) {
|
|
@@ -4017,23 +4033,23 @@ protoOf(TypeShape).equals = function (other) {
|
|
|
4017
4033
|
return true;
|
|
4018
4034
|
if (!(other instanceof TypeShape))
|
|
4019
4035
|
return false;
|
|
4020
|
-
if (!(this.
|
|
4036
|
+
if (!(this.b37_1 === other.b37_1))
|
|
4021
4037
|
return false;
|
|
4022
|
-
if (!equals(this.
|
|
4038
|
+
if (!equals(this.c37_1, other.c37_1))
|
|
4023
4039
|
return false;
|
|
4024
|
-
if (!equals(this.
|
|
4040
|
+
if (!equals(this.d37_1, other.d37_1))
|
|
4025
4041
|
return false;
|
|
4026
4042
|
return true;
|
|
4027
4043
|
};
|
|
4028
4044
|
function valueSetter(_this__u8e3s4, fieldName, type) {
|
|
4029
4045
|
var escaped = escapeKotlinIdentifier(fieldName);
|
|
4030
|
-
_this__u8e3s4.
|
|
4046
|
+
_this__u8e3s4.k16(fieldName, VOID, VOID, valueSetter$lambda(type, escaped));
|
|
4031
4047
|
}
|
|
4032
4048
|
function valueSetter$lambda($type, $escaped) {
|
|
4033
4049
|
return function ($this$function) {
|
|
4034
|
-
$this$function.
|
|
4035
|
-
$this$function.
|
|
4036
|
-
$this$function.
|
|
4050
|
+
$this$function.z13(Visibility_PUBLIC_getInstance());
|
|
4051
|
+
$this$function.a14('value', $type);
|
|
4052
|
+
$this$function.w14('this.' + $escaped + ' = Arb.constant(value)');
|
|
4037
4053
|
return Unit_instance;
|
|
4038
4054
|
};
|
|
4039
4055
|
}
|
|
@@ -4041,7 +4057,7 @@ function injectRecordCompanion($this, $receiver, recordNames, modelPkg) {
|
|
|
4041
4057
|
var tmp;
|
|
4042
4058
|
var tmp_0;
|
|
4043
4059
|
if ($receiver instanceof File) {
|
|
4044
|
-
var tmp0 = $receiver.
|
|
4060
|
+
var tmp0 = $receiver.gv_1;
|
|
4045
4061
|
var tmp$ret$0;
|
|
4046
4062
|
$l$block_0: {
|
|
4047
4063
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -4060,7 +4076,7 @@ function injectRecordCompanion($this, $receiver, recordNames, modelPkg) {
|
|
|
4060
4076
|
var element = _iterator__ex2g4s.v();
|
|
4061
4077
|
var tmp_2;
|
|
4062
4078
|
if (element instanceof Package) {
|
|
4063
|
-
tmp_2 = element.
|
|
4079
|
+
tmp_2 = element.kv_1 === modelPkg;
|
|
4064
4080
|
} else {
|
|
4065
4081
|
tmp_2 = false;
|
|
4066
4082
|
}
|
|
@@ -4077,7 +4093,7 @@ function injectRecordCompanion($this, $receiver, recordNames, modelPkg) {
|
|
|
4077
4093
|
}
|
|
4078
4094
|
if (tmp_0) {
|
|
4079
4095
|
// Inline function 'kotlin.collections.map' call
|
|
4080
|
-
var this_0 = $receiver.
|
|
4096
|
+
var this_0 = $receiver.gv_1;
|
|
4081
4097
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4082
4098
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
4083
4099
|
var _iterator__ex2g4s_0 = this_0.t();
|
|
@@ -4088,7 +4104,7 @@ function injectRecordCompanion($this, $receiver, recordNames, modelPkg) {
|
|
|
4088
4104
|
var tmp_5;
|
|
4089
4105
|
var tmp_6;
|
|
4090
4106
|
if (item instanceof Struct) {
|
|
4091
|
-
tmp_6 = recordNames.i1(item.
|
|
4107
|
+
tmp_6 = recordNames.i1(item.fx_1.du());
|
|
4092
4108
|
} else {
|
|
4093
4109
|
tmp_6 = false;
|
|
4094
4110
|
}
|
|
@@ -4104,21 +4120,21 @@ function injectRecordCompanion($this, $receiver, recordNames, modelPkg) {
|
|
|
4104
4120
|
tmp_4 = false;
|
|
4105
4121
|
}
|
|
4106
4122
|
if (tmp_4) {
|
|
4107
|
-
tmp_3 = item.
|
|
4123
|
+
tmp_3 = item.qx(VOID, VOID, VOID, VOID, plus_0(item.jx_1, raw('companion object')));
|
|
4108
4124
|
} else {
|
|
4109
4125
|
tmp_3 = item;
|
|
4110
4126
|
}
|
|
4111
4127
|
var tmp$ret$4 = tmp_3;
|
|
4112
4128
|
destination.x(tmp$ret$4);
|
|
4113
4129
|
}
|
|
4114
|
-
tmp = $receiver.
|
|
4130
|
+
tmp = $receiver.jv(VOID, destination);
|
|
4115
4131
|
} else {
|
|
4116
4132
|
tmp = $receiver;
|
|
4117
4133
|
}
|
|
4118
4134
|
return tmp;
|
|
4119
4135
|
}
|
|
4120
4136
|
function hasCompanion($this, $receiver) {
|
|
4121
|
-
var tmp0 = $receiver.
|
|
4137
|
+
var tmp0 = $receiver.jx_1;
|
|
4122
4138
|
var tmp$ret$0;
|
|
4123
4139
|
$l$block_0: {
|
|
4124
4140
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -4138,7 +4154,7 @@ function hasCompanion($this, $receiver) {
|
|
|
4138
4154
|
var tmp_0;
|
|
4139
4155
|
if (element instanceof RawElement) {
|
|
4140
4156
|
// Inline function 'kotlin.text.trimStart' call
|
|
4141
|
-
var this_0 = element.
|
|
4157
|
+
var this_0 = element.ey_1;
|
|
4142
4158
|
var tmp$ret$2 = toString(trimStart(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
4143
4159
|
tmp_0 = startsWith(tmp$ret$2, 'companion object');
|
|
4144
4160
|
} else {
|
|
@@ -4154,17 +4170,17 @@ function hasCompanion($this, $receiver) {
|
|
|
4154
4170
|
return tmp$ret$0;
|
|
4155
4171
|
}
|
|
4156
4172
|
function KotestDslExtension(packageName) {
|
|
4157
|
-
this.
|
|
4173
|
+
this.g37_1 = packageName;
|
|
4158
4174
|
}
|
|
4159
|
-
protoOf(KotestDslExtension).
|
|
4160
|
-
var modules = NonEmptyList__toList_impl_t5xcy2(ast.
|
|
4175
|
+
protoOf(KotestDslExtension).j1b = function (ir, ast) {
|
|
4176
|
+
var modules = NonEmptyList__toList_impl_t5xcy2(ast.fp_1);
|
|
4161
4177
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4162
4178
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4163
4179
|
var destination = ArrayList_init_$Create$();
|
|
4164
4180
|
var _iterator__ex2g4s = modules.t();
|
|
4165
4181
|
while (_iterator__ex2g4s.u()) {
|
|
4166
4182
|
var element = _iterator__ex2g4s.v();
|
|
4167
|
-
var list = NonEmptyList__toList_impl_t5xcy2(element.
|
|
4183
|
+
var list = NonEmptyList__toList_impl_t5xcy2(element.hp_1);
|
|
4168
4184
|
addAll(destination, list);
|
|
4169
4185
|
}
|
|
4170
4186
|
var allStatements = destination;
|
|
@@ -4185,8 +4201,8 @@ protoOf(KotestDslExtension).f1b = function (ir, ast) {
|
|
|
4185
4201
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
4186
4202
|
while (_iterator__ex2g4s_1.u()) {
|
|
4187
4203
|
var element_1 = _iterator__ex2g4s_1.v();
|
|
4188
|
-
var tmp$ret$7 = element_1.
|
|
4189
|
-
destination_1.
|
|
4204
|
+
var tmp$ret$7 = element_1.lp_1.o1();
|
|
4205
|
+
destination_1.w2(tmp$ret$7, element_1);
|
|
4190
4206
|
}
|
|
4191
4207
|
var types = destination_1;
|
|
4192
4208
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
@@ -4206,8 +4222,8 @@ protoOf(KotestDslExtension).f1b = function (ir, ast) {
|
|
|
4206
4222
|
var _iterator__ex2g4s_3 = destination_2.t();
|
|
4207
4223
|
while (_iterator__ex2g4s_3.u()) {
|
|
4208
4224
|
var element_3 = _iterator__ex2g4s_3.v();
|
|
4209
|
-
var tmp$ret$12 = element_3.
|
|
4210
|
-
destination_3.
|
|
4225
|
+
var tmp$ret$12 = element_3.ms_1.o1();
|
|
4226
|
+
destination_3.w2(tmp$ret$12, element_3);
|
|
4211
4227
|
}
|
|
4212
4228
|
var refined = destination_3;
|
|
4213
4229
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
@@ -4233,13 +4249,13 @@ protoOf(KotestDslExtension).f1b = function (ir, ast) {
|
|
|
4233
4249
|
}
|
|
4234
4250
|
var channels = destination_5;
|
|
4235
4251
|
// Inline function 'kotlin.collections.map' call
|
|
4236
|
-
var this_0 = types.
|
|
4252
|
+
var this_0 = types.v2();
|
|
4237
4253
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4238
4254
|
var destination_6 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
4239
4255
|
var _iterator__ex2g4s_6 = this_0.t();
|
|
4240
4256
|
while (_iterator__ex2g4s_6.u()) {
|
|
4241
4257
|
var item = _iterator__ex2g4s_6.v();
|
|
4242
|
-
var tmp$ret$19 = TypeDslFile_instance.
|
|
4258
|
+
var tmp$ret$19 = TypeDslFile_instance.e37(item, this.g37_1, types, refined);
|
|
4243
4259
|
destination_6.x(tmp$ret$19);
|
|
4244
4260
|
}
|
|
4245
4261
|
var typeDsl = destination_6;
|
|
@@ -4249,7 +4265,7 @@ protoOf(KotestDslExtension).f1b = function (ir, ast) {
|
|
|
4249
4265
|
var _iterator__ex2g4s_7 = endpoints.t();
|
|
4250
4266
|
while (_iterator__ex2g4s_7.u()) {
|
|
4251
4267
|
var item_0 = _iterator__ex2g4s_7.v();
|
|
4252
|
-
var tmp$ret$22 = EndpointDslFile_instance.
|
|
4268
|
+
var tmp$ret$22 = EndpointDslFile_instance.h35(item_0, this.g37_1, types, refined);
|
|
4253
4269
|
destination_7.x(tmp$ret$22);
|
|
4254
4270
|
}
|
|
4255
4271
|
var endpointDsl = destination_7;
|
|
@@ -4261,8 +4277,8 @@ protoOf(KotestDslExtension).f1b = function (ir, ast) {
|
|
|
4261
4277
|
var _iterator__ex2g4s_8 = channels.t();
|
|
4262
4278
|
while (_iterator__ex2g4s_8.u()) {
|
|
4263
4279
|
var item_1 = _iterator__ex2g4s_8.v();
|
|
4264
|
-
var payload = Companion_instance_3.
|
|
4265
|
-
var tmp$ret$26 = ChannelDslFile_instance.
|
|
4280
|
+
var payload = Companion_instance_3.x33(item_1, types, refined).b34_1;
|
|
4281
|
+
var tmp$ret$26 = ChannelDslFile_instance.f34(item_1, this.g37_1, types, refined, sendPayloads.x(payload));
|
|
4266
4282
|
destination_8.x(tmp$ret$26);
|
|
4267
4283
|
}
|
|
4268
4284
|
var channelDsl = destination_8;
|
|
@@ -4273,7 +4289,7 @@ protoOf(KotestDslExtension).f1b = function (ir, ast) {
|
|
|
4273
4289
|
while (_iterator__ex2g4s_9.u()) {
|
|
4274
4290
|
var element_6 = _iterator__ex2g4s_9.v();
|
|
4275
4291
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
4276
|
-
var tmp0 = new NonEmptyList(element_6.
|
|
4292
|
+
var tmp0 = new NonEmptyList(element_6.hp_1);
|
|
4277
4293
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
4278
4294
|
var destination_10 = ArrayList_init_$Create$();
|
|
4279
4295
|
var _iterator__ex2g4s_10 = tmp0.t();
|
|
@@ -4289,7 +4305,7 @@ protoOf(KotestDslExtension).f1b = function (ir, ast) {
|
|
|
4289
4305
|
var _iterator__ex2g4s_11 = destination_10.t();
|
|
4290
4306
|
while (_iterator__ex2g4s_11.u()) {
|
|
4291
4307
|
var item_2 = _iterator__ex2g4s_11.v();
|
|
4292
|
-
var tmp$ret$34 = RpcDslFile_instance.
|
|
4308
|
+
var tmp$ret$34 = RpcDslFile_instance.w36(item_2, this.g37_1, element_6, types, refined);
|
|
4293
4309
|
destination_11.x(tmp$ret$34);
|
|
4294
4310
|
}
|
|
4295
4311
|
var list_0 = destination_11;
|
|
@@ -4298,17 +4314,17 @@ protoOf(KotestDslExtension).f1b = function (ir, ast) {
|
|
|
4298
4314
|
var rpcDsl = destination_9;
|
|
4299
4315
|
var extra = plus(plus(plus(typeDsl, endpointDsl), channelDsl), rpcDsl);
|
|
4300
4316
|
// Inline function 'kotlin.collections.map' call
|
|
4301
|
-
var this_1 = types.
|
|
4317
|
+
var this_1 = types.v2();
|
|
4302
4318
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4303
4319
|
var destination_12 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
4304
4320
|
var _iterator__ex2g4s_12 = this_1.t();
|
|
4305
4321
|
while (_iterator__ex2g4s_12.u()) {
|
|
4306
4322
|
var item_3 = _iterator__ex2g4s_12.v();
|
|
4307
|
-
var tmp$ret$37 = Companion_getInstance().
|
|
4323
|
+
var tmp$ret$37 = Companion_getInstance().au(item_3.lp_1.o1()).du();
|
|
4308
4324
|
destination_12.x(tmp$ret$37);
|
|
4309
4325
|
}
|
|
4310
4326
|
var recordNames = toSet_0(destination_12);
|
|
4311
|
-
var modelPkg = this.
|
|
4327
|
+
var modelPkg = this.g37_1.bt_1 + '.model';
|
|
4312
4328
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
4313
4329
|
// Inline function 'kotlin.collections.map' call
|
|
4314
4330
|
var this_2 = _NonEmptyList___get_all__impl__pmf509(ir);
|
|
@@ -4323,9 +4339,9 @@ protoOf(KotestDslExtension).f1b = function (ir, ast) {
|
|
|
4323
4339
|
var withCompanions = _NonEmptyList___init__impl__fxd0xp(destination_13);
|
|
4324
4340
|
return NonEmptyList__plus_impl_xqmb9(withCompanions, extra);
|
|
4325
4341
|
};
|
|
4326
|
-
function annotateSerializable($this, $receiver, serialNames, serializableOnlyNames) {
|
|
4342
|
+
function annotateSerializable($this, $receiver, serialNames, refinedNames, serializableOnlyNames) {
|
|
4327
4343
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4328
|
-
var tmp0 = $receiver.
|
|
4344
|
+
var tmp0 = $receiver.gv_1;
|
|
4329
4345
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4330
4346
|
var destination = ArrayList_init_$Create$();
|
|
4331
4347
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -4336,13 +4352,13 @@ function annotateSerializable($this, $receiver, serialNames, serializableOnlyNam
|
|
|
4336
4352
|
if (element instanceof Struct) {
|
|
4337
4353
|
// Inline function 'kotlin.collections.contains' call
|
|
4338
4354
|
// Inline function 'kotlin.collections.containsKey' call
|
|
4339
|
-
var key = element.
|
|
4340
|
-
tmp_0 = (isInterface(serialNames, KtMap) ? serialNames : THROW_CCE()).
|
|
4355
|
+
var key = element.fx_1.du();
|
|
4356
|
+
tmp_0 = (isInterface(serialNames, KtMap) ? serialNames : THROW_CCE()).r2(key);
|
|
4341
4357
|
} else {
|
|
4342
4358
|
tmp_0 = false;
|
|
4343
4359
|
}
|
|
4344
4360
|
if (tmp_0) {
|
|
4345
|
-
tmp = listOf_0([Companion_getInstance_9().
|
|
4361
|
+
tmp = listOf_0([Companion_getInstance_9().h37_1, Companion_getInstance_9().i37(getValue(serialNames, element.fx_1.du())), refinedNames.i1(element.fx_1.du()) ? element.qx(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Kind_VALUE_CLASS_getInstance()) : element]);
|
|
4346
4362
|
} else {
|
|
4347
4363
|
var tmp_1;
|
|
4348
4364
|
var tmp_2;
|
|
@@ -4358,12 +4374,12 @@ function annotateSerializable($this, $receiver, serialNames, serializableOnlyNam
|
|
|
4358
4374
|
tmp_2 = false;
|
|
4359
4375
|
}
|
|
4360
4376
|
if (tmp_2) {
|
|
4361
|
-
tmp_1 = serializableOnlyNames.i1(element.m().
|
|
4377
|
+
tmp_1 = serializableOnlyNames.i1(element.m().du());
|
|
4362
4378
|
} else {
|
|
4363
4379
|
tmp_1 = false;
|
|
4364
4380
|
}
|
|
4365
4381
|
if (tmp_1) {
|
|
4366
|
-
tmp = listOf_0([Companion_getInstance_9().
|
|
4382
|
+
tmp = listOf_0([Companion_getInstance_9().h37_1, element]);
|
|
4367
4383
|
} else {
|
|
4368
4384
|
tmp = listOf(element);
|
|
4369
4385
|
}
|
|
@@ -4371,13 +4387,13 @@ function annotateSerializable($this, $receiver, serialNames, serializableOnlyNam
|
|
|
4371
4387
|
var list = tmp;
|
|
4372
4388
|
addAll(destination, list);
|
|
4373
4389
|
}
|
|
4374
|
-
return $receiver.
|
|
4390
|
+
return $receiver.jv(VOID, destination);
|
|
4375
4391
|
}
|
|
4376
4392
|
function Companion_8() {
|
|
4377
4393
|
Companion_instance_10 = this;
|
|
4378
|
-
this.
|
|
4394
|
+
this.h37_1 = new RawElement('@kotlinx.serialization.Serializable');
|
|
4379
4395
|
}
|
|
4380
|
-
protoOf(Companion_8).
|
|
4396
|
+
protoOf(Companion_8).i37 = function (name) {
|
|
4381
4397
|
return new RawElement('@kotlinx.serialization.SerialName("' + name + '")');
|
|
4382
4398
|
};
|
|
4383
4399
|
var Companion_instance_10;
|
|
@@ -4389,15 +4405,15 @@ function Companion_getInstance_9() {
|
|
|
4389
4405
|
function KotlinxSerializationExtension() {
|
|
4390
4406
|
Companion_getInstance_9();
|
|
4391
4407
|
}
|
|
4392
|
-
protoOf(KotlinxSerializationExtension).
|
|
4408
|
+
protoOf(KotlinxSerializationExtension).j1b = function (ir, ast) {
|
|
4393
4409
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4394
|
-
var tmp0 = NonEmptyList__toList_impl_t5xcy2(ast.
|
|
4410
|
+
var tmp0 = NonEmptyList__toList_impl_t5xcy2(ast.fp_1);
|
|
4395
4411
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4396
4412
|
var destination = ArrayList_init_$Create$();
|
|
4397
4413
|
var _iterator__ex2g4s = tmp0.t();
|
|
4398
4414
|
while (_iterator__ex2g4s.u()) {
|
|
4399
4415
|
var element = _iterator__ex2g4s.v();
|
|
4400
|
-
var list = new NonEmptyList(element.
|
|
4416
|
+
var list = new NonEmptyList(element.hp_1);
|
|
4401
4417
|
addAll(destination, list);
|
|
4402
4418
|
}
|
|
4403
4419
|
var definitions = destination;
|
|
@@ -4425,23 +4441,17 @@ protoOf(KotlinxSerializationExtension).f1b = function (ir, ast) {
|
|
|
4425
4441
|
while (_iterator__ex2g4s_1.u()) {
|
|
4426
4442
|
var element_1 = _iterator__ex2g4s_1.v();
|
|
4427
4443
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
4428
|
-
var pair = to(Companion_getInstance().
|
|
4429
|
-
destination_1.
|
|
4444
|
+
var pair = to(Companion_getInstance().au(element_1.es().o1()).du(), element_1.es().o1());
|
|
4445
|
+
destination_1.w2(pair.gf_1, pair.hf_1);
|
|
4430
4446
|
}
|
|
4431
4447
|
var serialNames = destination_1;
|
|
4432
|
-
// Inline function 'kotlin.collections.
|
|
4433
|
-
// Inline function 'kotlin.collections.
|
|
4448
|
+
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
4449
|
+
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
4434
4450
|
var destination_2 = ArrayList_init_$Create$();
|
|
4435
4451
|
var _iterator__ex2g4s_2 = definitions.t();
|
|
4436
4452
|
while (_iterator__ex2g4s_2.u()) {
|
|
4437
4453
|
var element_2 = _iterator__ex2g4s_2.v();
|
|
4438
|
-
|
|
4439
|
-
if (element_2 instanceof Union_0) {
|
|
4440
|
-
tmp_0 = true;
|
|
4441
|
-
} else {
|
|
4442
|
-
tmp_0 = element_2 instanceof Enum_0;
|
|
4443
|
-
}
|
|
4444
|
-
if (tmp_0) {
|
|
4454
|
+
if (element_2 instanceof Refined) {
|
|
4445
4455
|
destination_2.x(element_2);
|
|
4446
4456
|
}
|
|
4447
4457
|
}
|
|
@@ -4451,28 +4461,54 @@ protoOf(KotlinxSerializationExtension).f1b = function (ir, ast) {
|
|
|
4451
4461
|
var _iterator__ex2g4s_3 = destination_2.t();
|
|
4452
4462
|
while (_iterator__ex2g4s_3.u()) {
|
|
4453
4463
|
var item = _iterator__ex2g4s_3.v();
|
|
4454
|
-
var tmp$ret$
|
|
4455
|
-
destination_3.x(tmp$ret$
|
|
4464
|
+
var tmp$ret$14 = Companion_getInstance().au(item.ms_1.o1()).du();
|
|
4465
|
+
destination_3.x(tmp$ret$14);
|
|
4456
4466
|
}
|
|
4457
|
-
var
|
|
4467
|
+
var refinedNames = toSet_0(destination_3);
|
|
4468
|
+
// Inline function 'kotlin.collections.filter' call
|
|
4469
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
4470
|
+
var destination_4 = ArrayList_init_$Create$();
|
|
4471
|
+
var _iterator__ex2g4s_4 = definitions.t();
|
|
4472
|
+
while (_iterator__ex2g4s_4.u()) {
|
|
4473
|
+
var element_3 = _iterator__ex2g4s_4.v();
|
|
4474
|
+
var tmp_0;
|
|
4475
|
+
if (element_3 instanceof Union_0) {
|
|
4476
|
+
tmp_0 = true;
|
|
4477
|
+
} else {
|
|
4478
|
+
tmp_0 = element_3 instanceof Enum_0;
|
|
4479
|
+
}
|
|
4480
|
+
if (tmp_0) {
|
|
4481
|
+
destination_4.x(element_3);
|
|
4482
|
+
}
|
|
4483
|
+
}
|
|
4484
|
+
// Inline function 'kotlin.collections.map' call
|
|
4485
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
4486
|
+
var destination_5 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination_4, 10));
|
|
4487
|
+
var _iterator__ex2g4s_5 = destination_4.t();
|
|
4488
|
+
while (_iterator__ex2g4s_5.u()) {
|
|
4489
|
+
var item_0 = _iterator__ex2g4s_5.v();
|
|
4490
|
+
var tmp$ret$20 = Companion_getInstance().au(item_0.es().o1()).du();
|
|
4491
|
+
destination_5.x(tmp$ret$20);
|
|
4492
|
+
}
|
|
4493
|
+
var serializableOnlyNames = toSet_0(destination_5);
|
|
4458
4494
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
4459
4495
|
// Inline function 'kotlin.collections.map' call
|
|
4460
4496
|
var this_0 = _NonEmptyList___get_all__impl__pmf509(ir);
|
|
4461
4497
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4462
|
-
var
|
|
4463
|
-
var
|
|
4464
|
-
while (
|
|
4465
|
-
var
|
|
4498
|
+
var destination_6 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
4499
|
+
var _iterator__ex2g4s_6 = this_0.t();
|
|
4500
|
+
while (_iterator__ex2g4s_6.u()) {
|
|
4501
|
+
var item_1 = _iterator__ex2g4s_6.v();
|
|
4466
4502
|
var tmp_1;
|
|
4467
|
-
if (
|
|
4468
|
-
tmp_1 = annotateSerializable(this,
|
|
4503
|
+
if (item_1 instanceof File) {
|
|
4504
|
+
tmp_1 = annotateSerializable(this, item_1, serialNames, refinedNames, serializableOnlyNames);
|
|
4469
4505
|
} else {
|
|
4470
|
-
tmp_1 =
|
|
4506
|
+
tmp_1 = item_1;
|
|
4471
4507
|
}
|
|
4472
|
-
var tmp$ret$
|
|
4473
|
-
|
|
4508
|
+
var tmp$ret$24 = tmp_1;
|
|
4509
|
+
destination_6.x(tmp$ret$24);
|
|
4474
4510
|
}
|
|
4475
|
-
return _NonEmptyList___init__impl__fxd0xp(
|
|
4511
|
+
return _NonEmptyList___init__impl__fxd0xp(destination_6);
|
|
4476
4512
|
};
|
|
4477
4513
|
function annotateEndpointHandler($this, $receiver, endpoints) {
|
|
4478
4514
|
// Inline function 'kotlin.collections.find' call
|
|
@@ -4497,7 +4533,7 @@ function annotateEndpointHandler($this, $receiver, endpoints) {
|
|
|
4497
4533
|
tmp = tmp0_elvis_lhs;
|
|
4498
4534
|
}
|
|
4499
4535
|
var endpoint = tmp;
|
|
4500
|
-
return injectSpringAnnotationBeforeHandler($receiver, springAnnotation(endpoint, $this.
|
|
4536
|
+
return injectSpringAnnotationBeforeHandler($receiver, springAnnotation(endpoint, $this.j37_1));
|
|
4501
4537
|
}
|
|
4502
4538
|
function containsEndpointNamespace($this, $receiver, endpoint) {
|
|
4503
4539
|
// Inline function 'community.flock.wirespec.compiler.core.ir.findAll' call
|
|
@@ -4506,7 +4542,7 @@ function containsEndpointNamespace($this, $receiver, endpoint) {
|
|
|
4506
4542
|
// Inline function 'kotlin.apply' call
|
|
4507
4543
|
var this_0 = ArrayList_init_$Create$();
|
|
4508
4544
|
forEachElement($receiver, SpringMappingAnnotationsExtension$containsEndpointNamespace$lambda(this_0));
|
|
4509
|
-
var tmp0 = this_0.
|
|
4545
|
+
var tmp0 = this_0.r5();
|
|
4510
4546
|
var tmp$ret$5;
|
|
4511
4547
|
$l$block_0: {
|
|
4512
4548
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -4524,10 +4560,10 @@ function containsEndpointNamespace($this, $receiver, endpoint) {
|
|
|
4524
4560
|
while (_iterator__ex2g4s.u()) {
|
|
4525
4561
|
var element = _iterator__ex2g4s.v();
|
|
4526
4562
|
var tmp_0;
|
|
4527
|
-
var tmp0_safe_receiver = element.
|
|
4528
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4529
|
-
if ((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4530
|
-
tmp_0 = element.
|
|
4563
|
+
var tmp0_safe_receiver = element.nv_1;
|
|
4564
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ru_1;
|
|
4565
|
+
if ((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.bu()) === 'Wirespec.Endpoint') {
|
|
4566
|
+
tmp_0 = element.lv_1.du() === Companion_getInstance().au(endpoint.gr_1.o1()).du();
|
|
4531
4567
|
} else {
|
|
4532
4568
|
tmp_0 = false;
|
|
4533
4569
|
}
|
|
@@ -4551,17 +4587,17 @@ function SpringMappingAnnotationsExtension$containsEndpointNamespace$lambda($$th
|
|
|
4551
4587
|
};
|
|
4552
4588
|
}
|
|
4553
4589
|
function SpringMappingAnnotationsExtension(language) {
|
|
4554
|
-
this.
|
|
4590
|
+
this.j37_1 = language;
|
|
4555
4591
|
}
|
|
4556
|
-
protoOf(SpringMappingAnnotationsExtension).
|
|
4592
|
+
protoOf(SpringMappingAnnotationsExtension).j1b = function (ir, ast) {
|
|
4557
4593
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4558
|
-
var tmp0 = NonEmptyList__toList_impl_t5xcy2(ast.
|
|
4594
|
+
var tmp0 = NonEmptyList__toList_impl_t5xcy2(ast.fp_1);
|
|
4559
4595
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4560
4596
|
var destination = ArrayList_init_$Create$();
|
|
4561
4597
|
var _iterator__ex2g4s = tmp0.t();
|
|
4562
4598
|
while (_iterator__ex2g4s.u()) {
|
|
4563
4599
|
var element = _iterator__ex2g4s.v();
|
|
4564
|
-
var list = new NonEmptyList(element.
|
|
4600
|
+
var list = new NonEmptyList(element.hp_1);
|
|
4565
4601
|
addAll(destination, list);
|
|
4566
4602
|
}
|
|
4567
4603
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
@@ -4601,21 +4637,21 @@ function injectSpringAnnotationBeforeHandler(_this__u8e3s4, annotation) {
|
|
|
4601
4637
|
var tmp = scope;
|
|
4602
4638
|
// Inline function 'community.flock.wirespec.compiler.core.ir.injectBefore' call
|
|
4603
4639
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
4604
|
-
var this_0 = scope.
|
|
4640
|
+
var this_0 = scope.e19_1;
|
|
4605
4641
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
4606
4642
|
// Inline function 'kotlin.apply' call
|
|
4607
4643
|
var this_1 = new TransformerBuilder();
|
|
4608
|
-
this_1.
|
|
4609
|
-
var tmp$ret$5 = this_1.
|
|
4610
|
-
tmp.
|
|
4611
|
-
var tmp_0 = scope.
|
|
4644
|
+
this_1.y19(injectSpringAnnotationBeforeHandler$lambda(annotation));
|
|
4645
|
+
var tmp$ret$5 = this_1.t19();
|
|
4646
|
+
tmp.e19_1 = transform(this_0, tmp$ret$5);
|
|
4647
|
+
var tmp_0 = scope.e19_1;
|
|
4612
4648
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
4613
4649
|
}
|
|
4614
4650
|
function springAnnotation(_this__u8e3s4, language) {
|
|
4615
|
-
var pathString = '/' + joinToString(_this__u8e3s4.
|
|
4651
|
+
var pathString = '/' + joinToString(_this__u8e3s4.ir_1, '/', VOID, VOID, VOID, VOID, springAnnotation$lambda);
|
|
4616
4652
|
var prefix = 'org.springframework.web.bind.annotation';
|
|
4617
4653
|
var tmp;
|
|
4618
|
-
switch (_this__u8e3s4.
|
|
4654
|
+
switch (_this__u8e3s4.hr_1.f3_1) {
|
|
4619
4655
|
case 0:
|
|
4620
4656
|
tmp = '@' + prefix + '.GetMapping("' + pathString + '")';
|
|
4621
4657
|
break;
|
|
@@ -4650,27 +4686,27 @@ function injectSpringAnnotationBeforeHandler$lambda($annotation) {
|
|
|
4650
4686
|
return function (element, transformer) {
|
|
4651
4687
|
var tmp;
|
|
4652
4688
|
if (element instanceof Interface) {
|
|
4653
|
-
var injected = element.
|
|
4689
|
+
var injected = element.rv_1.equals(Companion_getInstance().au('Handler')) ? listOf(new RawElement($annotation)) : emptyList();
|
|
4654
4690
|
var tmp_0;
|
|
4655
4691
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
4656
4692
|
if (!injected.r()) {
|
|
4657
4693
|
// Inline function 'community.flock.wirespec.compiler.core.ir.withElements' call
|
|
4658
|
-
var elements = plus(injected, element.
|
|
4694
|
+
var elements = plus(injected, element.hv());
|
|
4659
4695
|
var tmp_1;
|
|
4660
4696
|
if (element instanceof File) {
|
|
4661
|
-
tmp_1 = element.
|
|
4697
|
+
tmp_1 = element.jv(VOID, elements);
|
|
4662
4698
|
} else {
|
|
4663
4699
|
if (element instanceof Struct) {
|
|
4664
|
-
tmp_1 = element.
|
|
4700
|
+
tmp_1 = element.qx(VOID, VOID, VOID, VOID, elements);
|
|
4665
4701
|
} else {
|
|
4666
4702
|
if (element instanceof Namespace) {
|
|
4667
|
-
tmp_1 = element.
|
|
4703
|
+
tmp_1 = element.qv(VOID, elements);
|
|
4668
4704
|
} else {
|
|
4669
4705
|
if (element instanceof Interface) {
|
|
4670
|
-
tmp_1 = element.
|
|
4706
|
+
tmp_1 = element.zv(VOID, elements);
|
|
4671
4707
|
} else {
|
|
4672
4708
|
if (element instanceof Enum_1) {
|
|
4673
|
-
tmp_1 = element.
|
|
4709
|
+
tmp_1 = element.ex(VOID, VOID, VOID, VOID, VOID, elements);
|
|
4674
4710
|
} else {
|
|
4675
4711
|
if (element instanceof Main) {
|
|
4676
4712
|
tmp_1 = element;
|
|
@@ -4698,10 +4734,10 @@ function injectSpringAnnotationBeforeHandler$lambda($annotation) {
|
|
|
4698
4734
|
function springAnnotation$lambda(it) {
|
|
4699
4735
|
var tmp;
|
|
4700
4736
|
if (it instanceof Literal) {
|
|
4701
|
-
tmp = it.
|
|
4737
|
+
tmp = it.e1b_1;
|
|
4702
4738
|
} else {
|
|
4703
4739
|
if (it instanceof Param) {
|
|
4704
|
-
tmp = '{' + it.
|
|
4740
|
+
tmp = '{' + it.nr_1.o1() + '}';
|
|
4705
4741
|
} else {
|
|
4706
4742
|
noWhenBranchMatchedException();
|
|
4707
4743
|
}
|
|
@@ -4709,17 +4745,17 @@ function springAnnotation$lambda(it) {
|
|
|
4709
4745
|
return tmp;
|
|
4710
4746
|
}
|
|
4711
4747
|
function springAnnotation$requestMapping($language, prefix, pathString, method) {
|
|
4712
|
-
return $language.
|
|
4748
|
+
return $language.f3_1 === 1 ? '@' + prefix + '.RequestMapping(value=["' + pathString + '"], method = [' + prefix + '.RequestMethod.' + method + '])' : '@' + prefix + '.RequestMapping(value="' + pathString + '", method = ' + prefix + '.RequestMethod.' + method + ')';
|
|
4713
4749
|
}
|
|
4714
4750
|
function nativeHintsFile($this, ast) {
|
|
4715
4751
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4716
|
-
var tmp0 = NonEmptyList__toList_impl_t5xcy2(ast.
|
|
4752
|
+
var tmp0 = NonEmptyList__toList_impl_t5xcy2(ast.fp_1);
|
|
4717
4753
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4718
4754
|
var destination = ArrayList_init_$Create$();
|
|
4719
4755
|
var _iterator__ex2g4s = tmp0.t();
|
|
4720
4756
|
while (_iterator__ex2g4s.u()) {
|
|
4721
4757
|
var element = _iterator__ex2g4s.v();
|
|
4722
|
-
var list = new NonEmptyList(element.
|
|
4758
|
+
var list = new NonEmptyList(element.hp_1);
|
|
4723
4759
|
addAll(destination, list);
|
|
4724
4760
|
}
|
|
4725
4761
|
var definitions = destination;
|
|
@@ -4739,7 +4775,7 @@ function nativeHintsFile($this, ast) {
|
|
|
4739
4775
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
4740
4776
|
while (_iterator__ex2g4s_1.u()) {
|
|
4741
4777
|
var item = _iterator__ex2g4s_1.v();
|
|
4742
|
-
var tmp$ret$7 = Companion_getInstance().
|
|
4778
|
+
var tmp$ret$7 = Companion_getInstance().au(item.es().o1()).du();
|
|
4743
4779
|
destination_1.x(tmp$ret$7);
|
|
4744
4780
|
}
|
|
4745
4781
|
var modelNames = destination_1;
|
|
@@ -4765,19 +4801,19 @@ function nativeHintsFile($this, ast) {
|
|
|
4765
4801
|
var _iterator__ex2g4s_3 = destination_2.t();
|
|
4766
4802
|
while (_iterator__ex2g4s_3.u()) {
|
|
4767
4803
|
var item_0 = _iterator__ex2g4s_3.v();
|
|
4768
|
-
var tmp$ret$13 = Companion_getInstance().
|
|
4804
|
+
var tmp$ret$13 = Companion_getInstance().au(item_0.es().o1()).du();
|
|
4769
4805
|
destination_3.x(tmp$ret$13);
|
|
4770
4806
|
}
|
|
4771
4807
|
var endpointNames = destination_3;
|
|
4772
4808
|
if (modelNames.r() && endpointNames.r())
|
|
4773
4809
|
return null;
|
|
4774
|
-
var pkg = $this.
|
|
4775
|
-
var tmp_0 = Companion_getInstance().
|
|
4810
|
+
var pkg = $this.k37_1.bt_1;
|
|
4811
|
+
var tmp_0 = Companion_getInstance().au($this.k37_1.dt() + 'WirespecNativeHints');
|
|
4776
4812
|
return file(tmp_0, SpringNativeHintsExtension$nativeHintsFile$lambda(pkg, modelNames, endpointNames, $this));
|
|
4777
4813
|
}
|
|
4778
4814
|
function nativeHintsClassBody($this, names) {
|
|
4779
4815
|
var tmp;
|
|
4780
|
-
switch ($this.
|
|
4816
|
+
switch ($this.l37_1.f3_1) {
|
|
4781
4817
|
case 1:
|
|
4782
4818
|
tmp = kotlinNativeHintsClassBody($this, names);
|
|
4783
4819
|
break;
|
|
@@ -4787,7 +4823,7 @@ function nativeHintsClassBody($this, names) {
|
|
|
4787
4823
|
default:
|
|
4788
4824
|
// Inline function 'kotlin.error' call
|
|
4789
4825
|
|
|
4790
|
-
var message = 'SpringNativeHintsExtension supports Kotlin and Java targets only, got ' + toString($this.
|
|
4826
|
+
var message = 'SpringNativeHintsExtension supports Kotlin and Java targets only, got ' + toString($this.l37_1);
|
|
4791
4827
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4792
4828
|
}
|
|
4793
4829
|
return tmp;
|
|
@@ -4802,25 +4838,25 @@ function javaNativeHintsClassBody($this, names) {
|
|
|
4802
4838
|
}
|
|
4803
4839
|
function SpringNativeHintsExtension$nativeHintsFile$lambda($pkg, $modelNames, $endpointNames, this$0) {
|
|
4804
4840
|
return function ($this$file) {
|
|
4805
|
-
$this$file.
|
|
4841
|
+
$this$file.q17($pkg);
|
|
4806
4842
|
// Inline function 'kotlin.collections.forEach' call
|
|
4807
4843
|
var _iterator__ex2g4s = $modelNames.t();
|
|
4808
4844
|
while (_iterator__ex2g4s.u()) {
|
|
4809
4845
|
var element = _iterator__ex2g4s.v();
|
|
4810
|
-
$this$file.
|
|
4846
|
+
$this$file.g16($pkg + '.model', element);
|
|
4811
4847
|
}
|
|
4812
4848
|
// Inline function 'kotlin.collections.forEach' call
|
|
4813
4849
|
var _iterator__ex2g4s_0 = $endpointNames.t();
|
|
4814
4850
|
while (_iterator__ex2g4s_0.u()) {
|
|
4815
4851
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
4816
|
-
$this$file.
|
|
4817
|
-
}
|
|
4818
|
-
$this$file.
|
|
4819
|
-
$this$file.
|
|
4820
|
-
$this$file.
|
|
4821
|
-
$this$file.
|
|
4822
|
-
$this$file.
|
|
4823
|
-
$this$file.
|
|
4852
|
+
$this$file.g16($pkg + '.endpoint', element_0);
|
|
4853
|
+
}
|
|
4854
|
+
$this$file.g16('org.springframework.aot.hint', 'MemberCategory');
|
|
4855
|
+
$this$file.g16('org.springframework.aot.hint', 'RuntimeHints');
|
|
4856
|
+
$this$file.g16('org.springframework.aot.hint', 'RuntimeHintsRegistrar');
|
|
4857
|
+
$this$file.g16('org.springframework.context.annotation', 'Configuration');
|
|
4858
|
+
$this$file.g16('org.springframework.context.annotation', 'ImportRuntimeHints');
|
|
4859
|
+
$this$file.w14(nativeHintsClassBody(this$0, plus($modelNames, $endpointNames)));
|
|
4824
4860
|
return Unit_instance;
|
|
4825
4861
|
};
|
|
4826
4862
|
}
|
|
@@ -4831,19 +4867,19 @@ function SpringNativeHintsExtension$javaNativeHintsClassBody$lambda(it) {
|
|
|
4831
4867
|
return ' registerWithInnerClasses(hints, ' + it + '.class, allMembers);';
|
|
4832
4868
|
}
|
|
4833
4869
|
function SpringNativeHintsExtension(packageName, language) {
|
|
4834
|
-
this.
|
|
4835
|
-
this.
|
|
4870
|
+
this.k37_1 = packageName;
|
|
4871
|
+
this.l37_1 = language;
|
|
4836
4872
|
}
|
|
4837
|
-
protoOf(SpringNativeHintsExtension).
|
|
4873
|
+
protoOf(SpringNativeHintsExtension).j1b = function (ir, ast) {
|
|
4838
4874
|
return NonEmptyList__plus_impl_xqmb9(ir, listOfNotNull_0(nativeHintsFile(this, ast)));
|
|
4839
4875
|
};
|
|
4840
4876
|
//region block: post-declaration
|
|
4841
|
-
protoOf(Wrap).
|
|
4842
|
-
protoOf(Wrap).
|
|
4843
|
-
protoOf(Each).
|
|
4844
|
-
protoOf(Each).
|
|
4845
|
-
protoOf(Values).
|
|
4846
|
-
protoOf(Values).
|
|
4877
|
+
protoOf(Wrap).w35 = wrap;
|
|
4878
|
+
protoOf(Wrap).s35 = wrap$default;
|
|
4879
|
+
protoOf(Each).w35 = wrap;
|
|
4880
|
+
protoOf(Each).s35 = wrap$default;
|
|
4881
|
+
protoOf(Values).w35 = wrap;
|
|
4882
|
+
protoOf(Values).s35 = wrap$default;
|
|
4847
4883
|
//endregion
|
|
4848
4884
|
//region block: init
|
|
4849
4885
|
Companion_instance_3 = new Companion_1();
|