@flock/wirespec 0.14.24 → 0.14.26
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/kotlin-kotlin-stdlib.mjs +10 -10
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +2 -2
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +319 -308
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +11 -11
- package/wirespec-src-converter-avro.mjs +12 -12
- package/wirespec-src-converter-openapi.mjs +31 -31
- package/wirespec-src-plugin-cli.mjs +9 -9
- package/wirespec-src-plugin-npm.mjs +6 -6
- package/wirespec-src-tools-generator.mjs +5 -5
|
@@ -1309,8 +1309,8 @@ protoOf(WsContent).equals = function (other) {
|
|
|
1309
1309
|
function produce(_this__u8e3s4) {
|
|
1310
1310
|
var tmp;
|
|
1311
1311
|
if (_this__u8e3s4 instanceof Type) {
|
|
1312
|
-
var tmp_0 = _this__u8e3s4.
|
|
1313
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
1312
|
+
var tmp_0 = _this__u8e3s4.x26_1.b1();
|
|
1313
|
+
var tmp1_safe_receiver = _this__u8e3s4.w26_1;
|
|
1314
1314
|
var tmp_1;
|
|
1315
1315
|
var tmp_2 = tmp1_safe_receiver;
|
|
1316
1316
|
if ((tmp_2 == null ? null : new Comment(tmp_2)) == null) {
|
|
@@ -1318,7 +1318,7 @@ function produce(_this__u8e3s4) {
|
|
|
1318
1318
|
} else {
|
|
1319
1319
|
tmp_1 = _Comment___get_value__impl__8r3pla(tmp1_safe_receiver);
|
|
1320
1320
|
}
|
|
1321
|
-
tmp = new WsType(tmp_0, tmp_1, produce_1(_this__u8e3s4.
|
|
1321
|
+
tmp = new WsType(tmp_0, tmp_1, produce_1(_this__u8e3s4.y26_1));
|
|
1322
1322
|
} else {
|
|
1323
1323
|
if (_this__u8e3s4 instanceof Endpoint) {
|
|
1324
1324
|
var tmp_3 = _this__u8e3s4.z24_1.b1();
|
|
@@ -1361,8 +1361,8 @@ function produce(_this__u8e3s4) {
|
|
|
1361
1361
|
tmp = new WsRefined(tmp_10, tmp_11, _this__u8e3s4.m27_1.o27_1);
|
|
1362
1362
|
} else {
|
|
1363
1363
|
if (_this__u8e3s4 instanceof Union) {
|
|
1364
|
-
var tmp_13 = _this__u8e3s4.
|
|
1365
|
-
var tmp5_safe_receiver = _this__u8e3s4.
|
|
1364
|
+
var tmp_13 = _this__u8e3s4.f27_1.b1();
|
|
1365
|
+
var tmp5_safe_receiver = _this__u8e3s4.e27_1;
|
|
1366
1366
|
var tmp_14;
|
|
1367
1367
|
var tmp_15 = tmp5_safe_receiver;
|
|
1368
1368
|
if ((tmp_15 == null ? null : new Comment(tmp_15)) == null) {
|
|
@@ -1372,7 +1372,7 @@ function produce(_this__u8e3s4) {
|
|
|
1372
1372
|
}
|
|
1373
1373
|
var tmp_16 = tmp_14;
|
|
1374
1374
|
// Inline function 'kotlin.collections.map' call
|
|
1375
|
-
var this_1 = _this__u8e3s4.
|
|
1375
|
+
var this_1 = _this__u8e3s4.g27_1;
|
|
1376
1376
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1377
1377
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
1378
1378
|
var _iterator__ex2g4s = this_1.g();
|
|
@@ -1447,7 +1447,7 @@ function consume(_this__u8e3s4) {
|
|
|
1447
1447
|
}
|
|
1448
1448
|
function produce_1(_this__u8e3s4) {
|
|
1449
1449
|
// Inline function 'kotlin.collections.map' call
|
|
1450
|
-
var this_0 = _this__u8e3s4.
|
|
1450
|
+
var this_0 = _this__u8e3s4.h27_1;
|
|
1451
1451
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1452
1452
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1453
1453
|
var _iterator__ex2g4s = this_0.g();
|
|
@@ -1504,10 +1504,10 @@ function produce_3(_this__u8e3s4) {
|
|
|
1504
1504
|
// Inline function 'community.flock.wirespec.compiler.lib.produce.<anonymous>' call
|
|
1505
1505
|
var tmp;
|
|
1506
1506
|
if (item instanceof Literal) {
|
|
1507
|
-
tmp = new WsLiteral(item.
|
|
1507
|
+
tmp = new WsLiteral(item.g26_1);
|
|
1508
1508
|
} else {
|
|
1509
1509
|
if (item instanceof Param) {
|
|
1510
|
-
tmp = new WsParam(produce_10(item.
|
|
1510
|
+
tmp = new WsParam(produce_10(item.w25_1), produce_7(item.x25_1));
|
|
1511
1511
|
} else {
|
|
1512
1512
|
noWhenBranchMatchedException();
|
|
1513
1513
|
}
|
|
@@ -1591,7 +1591,7 @@ function produce_7(_this__u8e3s4) {
|
|
|
1591
1591
|
}
|
|
1592
1592
|
function produce_8(_this__u8e3s4) {
|
|
1593
1593
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
1594
|
-
var this_0 = _this__u8e3s4.
|
|
1594
|
+
var this_0 = _this__u8e3s4.d27_1;
|
|
1595
1595
|
// Inline function 'community.flock.wirespec.compiler.lib.produce.<anonymous>' call
|
|
1596
1596
|
var it = this_0.uk_1;
|
|
1597
1597
|
var tmp = produce(it);
|
|
@@ -2197,7 +2197,7 @@ function produce_16(_this__u8e3s4) {
|
|
|
2197
2197
|
return tmp;
|
|
2198
2198
|
}
|
|
2199
2199
|
function produce_17(_this__u8e3s4) {
|
|
2200
|
-
return new WsEmitted(_this__u8e3s4.
|
|
2200
|
+
return new WsEmitted(_this__u8e3s4.s26_1, _this__u8e3s4.t26_1);
|
|
2201
2201
|
}
|
|
2202
2202
|
function WsTokenResult(tokens, error) {
|
|
2203
2203
|
tokens = tokens === VOID ? null : tokens;
|
|
@@ -366,7 +366,7 @@ function AvroConverter_getInstance() {
|
|
|
366
366
|
}
|
|
367
367
|
function findType(_this__u8e3s4, $this, name) {
|
|
368
368
|
// Inline function 'kotlin.collections.find' call
|
|
369
|
-
var tmp0 = _this__u8e3s4.
|
|
369
|
+
var tmp0 = _this__u8e3s4.d27_1.yk();
|
|
370
370
|
var tmp$ret$1;
|
|
371
371
|
$l$block: {
|
|
372
372
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -389,10 +389,10 @@ function AvroEmitter() {
|
|
|
389
389
|
this.l2d_1 = FileExtension_JSON_getInstance();
|
|
390
390
|
this.m2d_1 = null;
|
|
391
391
|
}
|
|
392
|
-
protoOf(AvroEmitter).
|
|
392
|
+
protoOf(AvroEmitter).j26 = function () {
|
|
393
393
|
return this.l2d_1;
|
|
394
394
|
};
|
|
395
|
-
protoOf(AvroEmitter).
|
|
395
|
+
protoOf(AvroEmitter).v26 = function (type, module_0) {
|
|
396
396
|
// Inline function 'kotlin.TODO' call
|
|
397
397
|
var reason = 'Not yet implemented';
|
|
398
398
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
@@ -401,9 +401,9 @@ protoOf(AvroEmitter).n2d = function (_this__u8e3s4) {
|
|
|
401
401
|
return new EnumType('enum', _this__u8e3s4.s27_1.b1(), VOID, toList(_this__u8e3s4.t27_1));
|
|
402
402
|
};
|
|
403
403
|
protoOf(AvroEmitter).o2d = function (_this__u8e3s4) {
|
|
404
|
-
var tmp = _this__u8e3s4.
|
|
404
|
+
var tmp = _this__u8e3s4.f27_1.b1();
|
|
405
405
|
// Inline function 'kotlin.collections.map' call
|
|
406
|
-
var this_0 = _this__u8e3s4.
|
|
406
|
+
var this_0 = _this__u8e3s4.g27_1;
|
|
407
407
|
// Inline function 'kotlin.collections.mapTo' call
|
|
408
408
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
409
409
|
var _iterator__ex2g4s = this_0.g();
|
|
@@ -478,15 +478,15 @@ protoOf(AvroEmitter).p2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
478
478
|
var tmp_3;
|
|
479
479
|
if (def instanceof Type) {
|
|
480
480
|
var tmp_4;
|
|
481
|
-
if (hasEmitted.o1(def.
|
|
481
|
+
if (hasEmitted.o1(def.x26_1.b1())) {
|
|
482
482
|
// Inline function 'kotlin.let' call
|
|
483
483
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.stub_for_inlining' call
|
|
484
|
-
var p0 = def.
|
|
484
|
+
var p0 = def.x26_1.b1();
|
|
485
485
|
tmp_4 = new SimpleType(p0);
|
|
486
486
|
} else {
|
|
487
487
|
// Inline function 'kotlin.also' call
|
|
488
488
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.<anonymous>' call
|
|
489
|
-
hasEmitted.e(def.
|
|
489
|
+
hasEmitted.e(def.x26_1.b1());
|
|
490
490
|
tmp_4 = this.q2d(def, module_0, hasEmitted);
|
|
491
491
|
}
|
|
492
492
|
tmp_3 = tmp_4;
|
|
@@ -529,9 +529,9 @@ protoOf(AvroEmitter).r2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
529
529
|
return tmp;
|
|
530
530
|
};
|
|
531
531
|
protoOf(AvroEmitter).q2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
532
|
-
var tmp0_name = _this__u8e3s4.
|
|
532
|
+
var tmp0_name = _this__u8e3s4.x26_1.b1();
|
|
533
533
|
// Inline function 'kotlin.collections.map' call
|
|
534
|
-
var this_0 = _this__u8e3s4.
|
|
534
|
+
var this_0 = _this__u8e3s4.y26_1.h27_1;
|
|
535
535
|
// Inline function 'kotlin.collections.mapTo' call
|
|
536
536
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
537
537
|
var _iterator__ex2g4s = this_0.g();
|
|
@@ -554,7 +554,7 @@ protoOf(AvroEmitter).s2d = function (module_0) {
|
|
|
554
554
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
555
555
|
var hasEmitted = ArrayList_init_$Create$_0();
|
|
556
556
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
557
|
-
var tmp0 = module_0.
|
|
557
|
+
var tmp0 = module_0.d27_1.yk();
|
|
558
558
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
559
559
|
var destination = ArrayList_init_$Create$_0();
|
|
560
560
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -618,7 +618,7 @@ protoOf(AvroEmitter).w27 = function (channel) {
|
|
|
618
618
|
var reason = 'Not yet implemented';
|
|
619
619
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
620
620
|
};
|
|
621
|
-
protoOf(AvroEmitter).
|
|
621
|
+
protoOf(AvroEmitter).l26 = function () {
|
|
622
622
|
var reason = 'Not yet implemented';
|
|
623
623
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
624
624
|
};
|
|
@@ -676,10 +676,10 @@ function emitFormat(_this__u8e3s4, $this) {
|
|
|
676
676
|
function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
677
677
|
var tmp;
|
|
678
678
|
if (it instanceof Param) {
|
|
679
|
-
tmp = '{' + it.
|
|
679
|
+
tmp = '{' + it.w25_1.b1() + '}';
|
|
680
680
|
} else {
|
|
681
681
|
if (it instanceof Literal) {
|
|
682
|
-
tmp = it.
|
|
682
|
+
tmp = it.g26_1;
|
|
683
683
|
} else {
|
|
684
684
|
noWhenBranchMatchedException();
|
|
685
685
|
}
|
|
@@ -693,13 +693,13 @@ function OpenAPIV2Emitter() {
|
|
|
693
693
|
this.x2e_1 = null;
|
|
694
694
|
this.y2e_1 = '';
|
|
695
695
|
}
|
|
696
|
-
protoOf(OpenAPIV2Emitter).
|
|
696
|
+
protoOf(OpenAPIV2Emitter).j26 = function () {
|
|
697
697
|
return this.w2e_1;
|
|
698
698
|
};
|
|
699
|
-
protoOf(OpenAPIV2Emitter).
|
|
699
|
+
protoOf(OpenAPIV2Emitter).l26 = function () {
|
|
700
700
|
return this.y2e_1;
|
|
701
701
|
};
|
|
702
|
-
protoOf(OpenAPIV2Emitter).
|
|
702
|
+
protoOf(OpenAPIV2Emitter).m26 = function (module_0, logger) {
|
|
703
703
|
var tmp0 = Common_getInstance().t2e_1;
|
|
704
704
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
705
705
|
var value = this.z2e(module_0);
|
|
@@ -711,7 +711,7 @@ protoOf(OpenAPIV2Emitter).n26 = function (module_0, logger) {
|
|
|
711
711
|
var tmp$ret$2 = tmp0.v15(tmp$ret$1, value);
|
|
712
712
|
return nonEmptyListOf(new Emitted('SwaggerObject', tmp$ret$2), []);
|
|
713
713
|
};
|
|
714
|
-
protoOf(OpenAPIV2Emitter).
|
|
714
|
+
protoOf(OpenAPIV2Emitter).v26 = function (type, module_0) {
|
|
715
715
|
return this.u29();
|
|
716
716
|
};
|
|
717
717
|
protoOf(OpenAPIV2Emitter).q27 = function (enum_0, module_0) {
|
|
@@ -737,7 +737,7 @@ protoOf(OpenAPIV2Emitter).z2e = function (module_0) {
|
|
|
737
737
|
var tmp_0 = listOf('application/json');
|
|
738
738
|
var tmp_1 = listOf('application/json');
|
|
739
739
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
740
|
-
var tmp0 = module_0.
|
|
740
|
+
var tmp0 = module_0.d27_1;
|
|
741
741
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
742
742
|
var destination = ArrayList_init_$Create$();
|
|
743
743
|
var _iterator__ex2g4s = tmp0.g();
|
|
@@ -800,9 +800,9 @@ protoOf(OpenAPIV2Emitter).z2e = function (module_0) {
|
|
|
800
800
|
var item_0 = _iterator__ex2g4s_3.i();
|
|
801
801
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
802
802
|
var tmp0_in = ParameterLocation_PATH_getInstance();
|
|
803
|
-
var tmp1_name = item_0.
|
|
804
|
-
var tmp2_type = emitType_0(item_0.
|
|
805
|
-
var tmp3_format = emitFormat(item_0.
|
|
803
|
+
var tmp1_name = item_0.w25_1.b1();
|
|
804
|
+
var tmp2_type = emitType_0(item_0.x25_1, OpenAPIV2Emitter_getInstance());
|
|
805
|
+
var tmp3_format = emitFormat(item_0.x25_1, OpenAPIV2Emitter_getInstance());
|
|
806
806
|
var tmp$ret$12 = new ParameterObject(tmp1_name, tmp0_in, VOID, VOID, VOID, tmp2_type, VOID, tmp3_format);
|
|
807
807
|
destination_3.e(tmp$ret$12);
|
|
808
808
|
}
|
|
@@ -819,7 +819,7 @@ protoOf(OpenAPIV2Emitter).z2e = function (module_0) {
|
|
|
819
819
|
}
|
|
820
820
|
var tmp_4 = toMap(destination_1);
|
|
821
821
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
822
|
-
var tmp0_0 = module_0.
|
|
822
|
+
var tmp0_0 = module_0.d27_1;
|
|
823
823
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
824
824
|
var destination_4 = ArrayList_init_$Create$();
|
|
825
825
|
var _iterator__ex2g4s_4 = tmp0_0.g();
|
|
@@ -846,7 +846,7 @@ protoOf(OpenAPIV2Emitter).z2e = function (module_0) {
|
|
|
846
846
|
}
|
|
847
847
|
var tmp_6 = destination_5;
|
|
848
848
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
849
|
-
var tmp0_1 = module_0.
|
|
849
|
+
var tmp0_1 = module_0.d27_1;
|
|
850
850
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
851
851
|
var destination_6 = ArrayList_init_$Create$();
|
|
852
852
|
var _iterator__ex2g4s_6 = tmp0_1.g();
|
|
@@ -864,9 +864,9 @@ protoOf(OpenAPIV2Emitter).z2e = function (module_0) {
|
|
|
864
864
|
while (_iterator__ex2g4s_7.h()) {
|
|
865
865
|
var element_5 = _iterator__ex2g4s_7.i();
|
|
866
866
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
867
|
-
var tmp_7 = element_5.
|
|
867
|
+
var tmp_7 = element_5.x26_1.b1();
|
|
868
868
|
// Inline function 'kotlin.collections.associate' call
|
|
869
|
-
var this_0 = element_5.
|
|
869
|
+
var this_0 = element_5.y26_1.h27_1;
|
|
870
870
|
var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
871
871
|
// Inline function 'kotlin.collections.associateTo' call
|
|
872
872
|
var destination_8 = LinkedHashMap_init_$Create$(capacity_1);
|
|
@@ -879,7 +879,7 @@ protoOf(OpenAPIV2Emitter).z2e = function (module_0) {
|
|
|
879
879
|
destination_8.n2(pair_0.ke_1, pair_0.le_1);
|
|
880
880
|
}
|
|
881
881
|
// Inline function 'kotlin.collections.filter' call
|
|
882
|
-
var tmp0_2 = element_5.
|
|
882
|
+
var tmp0_2 = element_5.y26_1.h27_1;
|
|
883
883
|
// Inline function 'kotlin.collections.filterTo' call
|
|
884
884
|
var destination_9 = ArrayList_init_$Create$();
|
|
885
885
|
var _iterator__ex2g4s_9 = tmp0_2.g();
|
|
@@ -916,7 +916,7 @@ protoOf(OpenAPIV2Emitter).z2e = function (module_0) {
|
|
|
916
916
|
}
|
|
917
917
|
var tmp_9 = plus_0(tmp_6, destination_7);
|
|
918
918
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
919
|
-
var tmp0_3 = module_0.
|
|
919
|
+
var tmp0_3 = module_0.d27_1;
|
|
920
920
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
921
921
|
var destination_11 = ArrayList_init_$Create$();
|
|
922
922
|
var _iterator__ex2g4s_11 = tmp0_3.g();
|
|
@@ -2761,7 +2761,7 @@ function sanitize$lambda(it) {
|
|
|
2761
2761
|
}
|
|
2762
2762
|
function emitComponents(_this__u8e3s4, $this) {
|
|
2763
2763
|
// Inline function 'kotlin.collections.filter' call
|
|
2764
|
-
var tmp0 = _this__u8e3s4.
|
|
2764
|
+
var tmp0 = _this__u8e3s4.d27_1.yk();
|
|
2765
2765
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2766
2766
|
var destination = ArrayList_init_$Create$();
|
|
2767
2767
|
var _iterator__ex2g4s = tmp0.g();
|
|
@@ -2819,7 +2819,7 @@ function emitComponents(_this__u8e3s4, $this) {
|
|
|
2819
2819
|
}
|
|
2820
2820
|
function emitPaths(_this__u8e3s4, $this) {
|
|
2821
2821
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
2822
|
-
var tmp0 = _this__u8e3s4.
|
|
2822
|
+
var tmp0 = _this__u8e3s4.d27_1;
|
|
2823
2823
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
2824
2824
|
var destination = ArrayList_init_$Create$();
|
|
2825
2825
|
var _iterator__ex2g4s = tmp0.g();
|
|
@@ -2910,7 +2910,7 @@ function emit_1(_this__u8e3s4, $this) {
|
|
|
2910
2910
|
return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_STRING_getInstance_0(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, _this__u8e3s4.m27_1.o27_1);
|
|
2911
2911
|
}
|
|
2912
2912
|
function emit_2(_this__u8e3s4, $this) {
|
|
2913
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2913
|
+
var tmp0_safe_receiver = _this__u8e3s4.w26_1;
|
|
2914
2914
|
var tmp;
|
|
2915
2915
|
var tmp_0 = tmp0_safe_receiver;
|
|
2916
2916
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -2920,7 +2920,7 @@ function emit_2(_this__u8e3s4, $this) {
|
|
|
2920
2920
|
}
|
|
2921
2921
|
var tmp1_description = tmp;
|
|
2922
2922
|
// Inline function 'kotlin.collections.associate' call
|
|
2923
|
-
var this_0 = _this__u8e3s4.
|
|
2923
|
+
var this_0 = _this__u8e3s4.y26_1.h27_1;
|
|
2924
2924
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2925
2925
|
// Inline function 'kotlin.collections.associateTo' call
|
|
2926
2926
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -2933,7 +2933,7 @@ function emit_2(_this__u8e3s4, $this) {
|
|
|
2933
2933
|
destination.n2(pair.ke_1, pair.le_1);
|
|
2934
2934
|
}
|
|
2935
2935
|
// Inline function 'kotlin.collections.filter' call
|
|
2936
|
-
var tmp0 = _this__u8e3s4.
|
|
2936
|
+
var tmp0 = _this__u8e3s4.y26_1.h27_1;
|
|
2937
2937
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2938
2938
|
var destination_0 = ArrayList_init_$Create$();
|
|
2939
2939
|
var _iterator__ex2g4s_0 = tmp0.g();
|
|
@@ -2991,7 +2991,7 @@ function emit_3(_this__u8e3s4, $this) {
|
|
|
2991
2991
|
return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_type, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_description, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, destination);
|
|
2992
2992
|
}
|
|
2993
2993
|
function emit_4(_this__u8e3s4, $this) {
|
|
2994
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2994
|
+
var tmp0_safe_receiver = _this__u8e3s4.e27_1;
|
|
2995
2995
|
var tmp;
|
|
2996
2996
|
var tmp_0 = tmp0_safe_receiver;
|
|
2997
2997
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -3002,7 +3002,7 @@ function emit_4(_this__u8e3s4, $this) {
|
|
|
3002
3002
|
var tmp1_description = tmp;
|
|
3003
3003
|
var tmp2_type = Type_STRING_getInstance_0();
|
|
3004
3004
|
// Inline function 'kotlin.collections.map' call
|
|
3005
|
-
var this_0 = _this__u8e3s4.
|
|
3005
|
+
var this_0 = _this__u8e3s4.g27_1;
|
|
3006
3006
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3007
3007
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3008
3008
|
var _iterator__ex2g4s = this_0.g();
|
|
@@ -3276,8 +3276,8 @@ function emitParameter_0(_this__u8e3s4, $this, location) {
|
|
|
3276
3276
|
}
|
|
3277
3277
|
function emitParameter_1(_this__u8e3s4, $this) {
|
|
3278
3278
|
var tmp0_in = ParameterLocation_PATH_getInstance_0();
|
|
3279
|
-
var tmp1_name = _this__u8e3s4.
|
|
3280
|
-
var tmp2_schema = emitSchema_0(_this__u8e3s4.
|
|
3279
|
+
var tmp1_name = _this__u8e3s4.w25_1.b1();
|
|
3280
|
+
var tmp2_schema = emitSchema_0(_this__u8e3s4.x25_1, $this);
|
|
3281
3281
|
return new ParameterObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_schema, VOID, VOID, VOID, tmp1_name, tmp0_in);
|
|
3282
3282
|
}
|
|
3283
3283
|
function emitHeader(_this__u8e3s4, $this) {
|
|
@@ -3430,10 +3430,10 @@ function emitFormat_0(_this__u8e3s4, $this) {
|
|
|
3430
3430
|
function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
3431
3431
|
var tmp;
|
|
3432
3432
|
if (it instanceof Param) {
|
|
3433
|
-
tmp = '{' + it.
|
|
3433
|
+
tmp = '{' + it.w25_1.b1() + '}';
|
|
3434
3434
|
} else {
|
|
3435
3435
|
if (it instanceof Literal) {
|
|
3436
|
-
tmp = it.
|
|
3436
|
+
tmp = it.g26_1;
|
|
3437
3437
|
} else {
|
|
3438
3438
|
noWhenBranchMatchedException();
|
|
3439
3439
|
}
|
|
@@ -3447,13 +3447,13 @@ function OpenAPIV3Emitter() {
|
|
|
3447
3447
|
this.p2f_1 = null;
|
|
3448
3448
|
this.q2f_1 = '';
|
|
3449
3449
|
}
|
|
3450
|
-
protoOf(OpenAPIV3Emitter).
|
|
3450
|
+
protoOf(OpenAPIV3Emitter).j26 = function () {
|
|
3451
3451
|
return this.o2f_1;
|
|
3452
3452
|
};
|
|
3453
|
-
protoOf(OpenAPIV3Emitter).
|
|
3453
|
+
protoOf(OpenAPIV3Emitter).l26 = function () {
|
|
3454
3454
|
return this.q2f_1;
|
|
3455
3455
|
};
|
|
3456
|
-
protoOf(OpenAPIV3Emitter).
|
|
3456
|
+
protoOf(OpenAPIV3Emitter).m26 = function (module_0, logger) {
|
|
3457
3457
|
var tmp0 = Common_getInstance().t2e_1;
|
|
3458
3458
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
3459
3459
|
var value = this.r2f(module_0, null);
|
|
@@ -3465,7 +3465,7 @@ protoOf(OpenAPIV3Emitter).n26 = function (module_0, logger) {
|
|
|
3465
3465
|
var tmp$ret$2 = tmp0.v15(tmp$ret$1, value);
|
|
3466
3466
|
return nonEmptyListOf(new Emitted('OpenAPIObject', tmp$ret$2), []);
|
|
3467
3467
|
};
|
|
3468
|
-
protoOf(OpenAPIV3Emitter).
|
|
3468
|
+
protoOf(OpenAPIV3Emitter).v26 = function (type, module_0) {
|
|
3469
3469
|
return this.u29();
|
|
3470
3470
|
};
|
|
3471
3471
|
protoOf(OpenAPIV3Emitter).q27 = function (enum_0, module_0) {
|
|
@@ -237,11 +237,11 @@ protoOf(Compile).e3z = function () {
|
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
var sources = tmp_0;
|
|
240
|
-
var emitters = toEmitters(_get_languages__ojonze(this), Companion_instance_0.
|
|
240
|
+
var emitters = toEmitters(_get_languages__ojonze(this), Companion_instance_0.h26(this.j4d()), new EmitShared(this.k26()));
|
|
241
241
|
var tmp_3 = getOutPutPath(inputPath, this.k4d());
|
|
242
242
|
var tmp_4 = new Directory(or(tmp_3, handleError$ref_0()).i2k_1);
|
|
243
243
|
var tmp_5 = Compile$run$lambda;
|
|
244
|
-
var tmp2 = new CompilerArguments(sources, tmp_4, emitters, tmp_5, Compile$run$handleError$ref(), Companion_instance_0.
|
|
244
|
+
var tmp2 = new CompilerArguments(sources, tmp_4, emitters, tmp_5, Compile$run$handleError$ref(), Companion_instance_0.h26(this.j4d()), new Logger(this.m4d(this.l4d())), this.k26(), this.n4d());
|
|
245
245
|
// Inline function 'kotlin.let' call
|
|
246
246
|
this.g4c_1(tmp2);
|
|
247
247
|
};
|
|
@@ -331,13 +331,13 @@ protoOf(Convert).e3z = function () {
|
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
var source = tmp_0;
|
|
334
|
-
var emitters = toEmitters(_get_languages__ojonze_0(this), Companion_instance_0.
|
|
334
|
+
var emitters = toEmitters(_get_languages__ojonze_0(this), Companion_instance_0.h26(this.j4d()), new EmitShared(this.k26()));
|
|
335
335
|
var tmp_2 = _get_format__qlarck(this);
|
|
336
336
|
var tmp_3 = nonEmptySetOf(source, []);
|
|
337
337
|
var tmp_4 = getOutPutPath(inputPath, this.k4d());
|
|
338
338
|
var tmp_5 = new Directory(or(tmp_4, handleError$ref_2()).i2k_1);
|
|
339
339
|
var tmp_6 = Convert$run$lambda;
|
|
340
|
-
var tmp0 = new ConverterArguments(tmp_2, tmp_3, tmp_5, emitters, tmp_6, Convert$run$handleError$ref(), Companion_instance_0.
|
|
340
|
+
var tmp0 = new ConverterArguments(tmp_2, tmp_3, tmp_5, emitters, tmp_6, Convert$run$handleError$ref(), Companion_instance_0.h26(this.j4d()), new Logger(this.m4d(this.l4d())), this.k26(), this.n4d());
|
|
341
341
|
// Inline function 'kotlin.let' call
|
|
342
342
|
this.l4e_1(tmp0);
|
|
343
343
|
};
|
|
@@ -362,7 +362,7 @@ protoOf(CommonOptions).j4d = function () {
|
|
|
362
362
|
protoOf(CommonOptions).l4d = function () {
|
|
363
363
|
return this.f4d_1.p48(this, logLevel$factory_0());
|
|
364
364
|
};
|
|
365
|
-
protoOf(CommonOptions).
|
|
365
|
+
protoOf(CommonOptions).k26 = function () {
|
|
366
366
|
return this.g4d_1.p48(this, shared$factory_0());
|
|
367
367
|
};
|
|
368
368
|
protoOf(CommonOptions).n4d = function () {
|
|
@@ -546,7 +546,7 @@ function logLevel$factory() {
|
|
|
546
546
|
}
|
|
547
547
|
function shared$factory() {
|
|
548
548
|
return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) {
|
|
549
|
-
return receiver.
|
|
549
|
+
return receiver.k26();
|
|
550
550
|
}, null);
|
|
551
551
|
}
|
|
552
552
|
function strict$factory() {
|
|
@@ -576,7 +576,7 @@ function logLevel$factory_0() {
|
|
|
576
576
|
}
|
|
577
577
|
function shared$factory_0() {
|
|
578
578
|
return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) {
|
|
579
|
-
return receiver.
|
|
579
|
+
return receiver.k26();
|
|
580
580
|
}, null);
|
|
581
581
|
}
|
|
582
582
|
function strict$factory_0() {
|
|
@@ -659,7 +659,7 @@ function parser(source) {
|
|
|
659
659
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
660
660
|
var this_1 = tmp.a2a_1;
|
|
661
661
|
// Inline function 'community.flock.wirespec.plugin.cli.parser.stub_for_inlining' call
|
|
662
|
-
var tmp_0 = this_1.uk_1.
|
|
662
|
+
var tmp_0 = this_1.uk_1.d27_1.sk();
|
|
663
663
|
// Inline function 'kotlin.collections.flatMap' call
|
|
664
664
|
var tmp0 = this_1.vk_1;
|
|
665
665
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -668,7 +668,7 @@ function parser(source) {
|
|
|
668
668
|
while (_iterator__ex2g4s.h()) {
|
|
669
669
|
var element = _iterator__ex2g4s.i();
|
|
670
670
|
// Inline function 'community.flock.wirespec.plugin.cli.parser.stub_for_inlining' call
|
|
671
|
-
var list = element.
|
|
671
|
+
var list = element.d27_1;
|
|
672
672
|
addAll(destination, list);
|
|
673
673
|
}
|
|
674
674
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -115,7 +115,7 @@ function Shared_initEntries() {
|
|
|
115
115
|
return Unit_instance;
|
|
116
116
|
Shared_entriesInitialized = true;
|
|
117
117
|
Shared_KOTLIN_instance = new Shared('KOTLIN', 0, KotlinShared_getInstance().r28_1);
|
|
118
|
-
Shared_JAVA_instance = new Shared('JAVA', 1, JavaShared_getInstance().
|
|
118
|
+
Shared_JAVA_instance = new Shared('JAVA', 1, JavaShared_getInstance().p26_1);
|
|
119
119
|
Shared_TYPESCRIPT_instance = new Shared('TYPESCRIPT', 2, TypeScriptShared_getInstance().s29_1);
|
|
120
120
|
}
|
|
121
121
|
function Shared(name, ordinal, source) {
|
|
@@ -301,19 +301,19 @@ function emit(ast, emitter, packageName) {
|
|
|
301
301
|
var tmp;
|
|
302
302
|
switch (emitter.r2_1) {
|
|
303
303
|
case 0:
|
|
304
|
-
tmp = (new WirespecEmitter()).
|
|
304
|
+
tmp = (new WirespecEmitter()).m26(element, get_noLogger());
|
|
305
305
|
break;
|
|
306
306
|
case 1:
|
|
307
|
-
tmp = (new TypeScriptEmitter()).
|
|
307
|
+
tmp = (new TypeScriptEmitter()).m26(element, get_noLogger());
|
|
308
308
|
break;
|
|
309
309
|
case 2:
|
|
310
|
-
tmp = (new JavaEmitter(Companion_instance.
|
|
310
|
+
tmp = (new JavaEmitter(Companion_instance.h26(packageName))).m26(element, get_noLogger());
|
|
311
311
|
break;
|
|
312
312
|
case 3:
|
|
313
|
-
tmp = (new KotlinEmitter(Companion_instance.
|
|
313
|
+
tmp = (new KotlinEmitter(Companion_instance.h26(packageName))).m26(element, get_noLogger());
|
|
314
314
|
break;
|
|
315
315
|
case 4:
|
|
316
|
-
tmp = (new PythonEmitter()).
|
|
316
|
+
tmp = (new PythonEmitter()).m26(element, get_noLogger());
|
|
317
317
|
break;
|
|
318
318
|
case 5:
|
|
319
319
|
var tmp0 = listOf(element);
|
|
@@ -146,7 +146,7 @@ function resolveReference(_this__u8e3s4, type) {
|
|
|
146
146
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
147
147
|
var this_0 = _this__u8e3s4.a2a_1;
|
|
148
148
|
// Inline function 'community.flock.wirespec.generator.resolveReference.<anonymous>' call
|
|
149
|
-
var tmp = this_0.uk_1.
|
|
149
|
+
var tmp = this_0.uk_1.d27_1.sk();
|
|
150
150
|
// Inline function 'kotlin.collections.flatMap' call
|
|
151
151
|
var tmp0 = this_0.vk_1;
|
|
152
152
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -155,7 +155,7 @@ function resolveReference(_this__u8e3s4, type) {
|
|
|
155
155
|
while (_iterator__ex2g4s.h()) {
|
|
156
156
|
var element = _iterator__ex2g4s.i();
|
|
157
157
|
// Inline function 'community.flock.wirespec.generator.resolveReference.<anonymous>' call
|
|
158
|
-
var list = element.
|
|
158
|
+
var list = element.d27_1;
|
|
159
159
|
addAll(destination, list);
|
|
160
160
|
}
|
|
161
161
|
// Inline function 'kotlin.collections.find' call
|
|
@@ -217,7 +217,7 @@ function generateType(_this__u8e3s4, def, random) {
|
|
|
217
217
|
// Inline function 'kotlin.let' call
|
|
218
218
|
// Inline function 'community.flock.wirespec.generator.generateType.<anonymous>' call
|
|
219
219
|
var typeSeed = random.me();
|
|
220
|
-
var tmp0 = def.
|
|
220
|
+
var tmp0 = def.y26_1.h27_1;
|
|
221
221
|
// Inline function 'kotlin.collections.fold' call
|
|
222
222
|
var accumulator = emptyMap();
|
|
223
223
|
var _iterator__ex2g4s = tmp0.g();
|
|
@@ -264,12 +264,12 @@ function generateEnum(def, random) {
|
|
|
264
264
|
return JsonPrimitive(p0);
|
|
265
265
|
}
|
|
266
266
|
function generateUnion(_this__u8e3s4, def, random) {
|
|
267
|
-
var tmp0 = random.ag(def.
|
|
267
|
+
var tmp0 = random.ag(def.g27_1.j());
|
|
268
268
|
// Inline function 'kotlin.let' call
|
|
269
269
|
// Inline function 'community.flock.wirespec.generator.generateUnion.stub_for_inlining' call
|
|
270
270
|
// Inline function 'kotlin.let' call
|
|
271
271
|
// Inline function 'community.flock.wirespec.generator.generateUnion.<anonymous>' call
|
|
272
|
-
var it = toList(def.
|
|
272
|
+
var it = toList(def.g27_1).k(tmp0);
|
|
273
273
|
return generate_0(_this__u8e3s4, it, random);
|
|
274
274
|
}
|
|
275
275
|
function randomRegex(regex, random) {
|