@flock/wirespec 0.7.4 → 0.7.6
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/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js +294 -294
- package/kotlin/kotlin-openapi-bindings.js +3391 -3391
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1258 -1258
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +981 -981
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/kotlin/wirespec-cli.js +80 -80
- package/kotlin/wirespec-core.js +848 -780
- package/kotlin/wirespec-core.js.map +1 -1
- package/kotlin/wirespec-lib.js +38 -38
- package/kotlin/wirespec-openapi.js +356 -356
- package/package.json +1 -1
- package/sync-hashes/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js.hash +1 -1
- package/sync-hashes/kotlin-openapi-bindings.js.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map.hash +1 -1
- package/sync-hashes/wirespec-cli.js.hash +1 -1
- package/sync-hashes/wirespec-core.js.hash +1 -1
- package/sync-hashes/wirespec-core.js.map.hash +1 -1
- package/sync-hashes/wirespec-lib.js.hash +1 -1
- package/sync-hashes/wirespec-openapi.js.hash +1 -1
package/kotlin/wirespec-core.js
CHANGED
|
@@ -89,37 +89,37 @@
|
|
|
89
89
|
setMetadataFor(Reported, 'Reported', classMeta, Enum);
|
|
90
90
|
setMetadataFor(Wirespec, 'Wirespec', objectMeta);
|
|
91
91
|
function withLogging(_this__u8e3s4, logger, block) {
|
|
92
|
-
return logger.
|
|
92
|
+
return logger.dl('Emitting Definition: Type', block);
|
|
93
93
|
}
|
|
94
94
|
function withLogging_0(_this__u8e3s4, logger, block) {
|
|
95
|
-
return logger.
|
|
95
|
+
return logger.dl('Emitting Definition: Type Shape', block);
|
|
96
96
|
}
|
|
97
97
|
function withLogging_1(_this__u8e3s4, logger, block) {
|
|
98
|
-
return logger.
|
|
98
|
+
return logger.dl('Emitting Definition: Type Shape Field', block);
|
|
99
99
|
}
|
|
100
100
|
function withLogging_2(_this__u8e3s4, logger, block) {
|
|
101
|
-
return logger.
|
|
101
|
+
return logger.dl('Emitting Definition: Type Shape Field Key', block);
|
|
102
102
|
}
|
|
103
103
|
function withLogging_3(_this__u8e3s4, logger, block) {
|
|
104
|
-
return logger.
|
|
104
|
+
return logger.dl('Emitting Definition: Type Shape Field Value', block);
|
|
105
105
|
}
|
|
106
106
|
setMetadataFor(TypeDefinitionEmitterLogger, 'TypeDefinitionEmitterLogger', interfaceMeta);
|
|
107
107
|
function withLogging_4(_this__u8e3s4, logger, block) {
|
|
108
|
-
return logger.
|
|
108
|
+
return logger.dl('Emitting Definition: Endpoint', block);
|
|
109
109
|
}
|
|
110
110
|
setMetadataFor(EnumDefinitionEmitterLogger, 'EnumDefinitionEmitterLogger', interfaceMeta);
|
|
111
111
|
function withLogging_5(_this__u8e3s4, logger, block) {
|
|
112
|
-
return logger.
|
|
112
|
+
return logger.dl('Emitting Definition: Refined', block);
|
|
113
113
|
}
|
|
114
114
|
function withLogging_6(_this__u8e3s4, logger, block) {
|
|
115
|
-
return logger.
|
|
115
|
+
return logger.dl('Emitting Definition: Refined Validator', block);
|
|
116
116
|
}
|
|
117
117
|
setMetadataFor(RefinedTypeDefinitionEmitterLogger, 'RefinedTypeDefinitionEmitterLogger', interfaceMeta);
|
|
118
118
|
function withLogging_7(_this__u8e3s4, logger, block) {
|
|
119
|
-
return logger.
|
|
119
|
+
return logger.dl('Emitting Definition: Endpoint', block);
|
|
120
120
|
}
|
|
121
121
|
function withLogging_8(_this__u8e3s4, logger, block) {
|
|
122
|
-
return logger.
|
|
122
|
+
return logger.dl('Emitting Definition: Endpoint Segment', block);
|
|
123
123
|
}
|
|
124
124
|
setMetadataFor(EndpointDefinitionEmitterLogger, 'EndpointDefinitionEmitterLogger', interfaceMeta);
|
|
125
125
|
setMetadataFor(Emitter, 'Emitter', classMeta, VOID, [TypeDefinitionEmitterLogger, EnumDefinitionEmitterLogger, RefinedTypeDefinitionEmitterLogger, EndpointDefinitionEmitterLogger]);
|
|
@@ -388,15 +388,18 @@
|
|
|
388
388
|
new Wirespec();
|
|
389
389
|
return Wirespec_instance;
|
|
390
390
|
}
|
|
391
|
+
function imprt($this, ast) {
|
|
392
|
+
return !Companion_getInstance_2().xh(ast) ? '' : 'import community.flock.wirespec.java.Wirespec;\n\n';
|
|
393
|
+
}
|
|
391
394
|
function emitPrimaryType(_this__u8e3s4, $this) {
|
|
392
|
-
return $this.
|
|
395
|
+
return $this.yh(_this__u8e3s4, $this.rh_1, JavaEmitter$emitPrimaryType$lambda(_this__u8e3s4));
|
|
393
396
|
}
|
|
394
397
|
function emit(_this__u8e3s4, $this, endpoint) {
|
|
395
398
|
Companion_getInstance_2();
|
|
396
|
-
var tmp = emitContentType(_this__u8e3s4.
|
|
397
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
398
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
399
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.
|
|
399
|
+
var tmp = emitContentType(_this__u8e3s4.zh_1, $this);
|
|
400
|
+
var tmp0_safe_receiver = _this__u8e3s4.zh_1;
|
|
401
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bi_1;
|
|
402
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.hi(tmp1_safe_receiver);
|
|
400
403
|
var tmp_0 = tmp2_elvis_lhs == null ? 'Void' : tmp2_elvis_lhs;
|
|
401
404
|
Companion_getInstance_2();
|
|
402
405
|
Companion_getInstance_2();
|
|
@@ -408,33 +411,33 @@
|
|
|
408
411
|
Companion_getInstance_2();
|
|
409
412
|
Companion_getInstance_2();
|
|
410
413
|
Companion_getInstance_2();
|
|
411
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
412
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
413
|
-
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : $this.
|
|
414
|
+
var tmp3_safe_receiver = _this__u8e3s4.zh_1;
|
|
415
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.bi_1;
|
|
416
|
+
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : $this.hi(tmp4_safe_receiver);
|
|
414
417
|
var tmp_1 = tmp5_elvis_lhs == null ? 'Void' : tmp5_elvis_lhs;
|
|
415
418
|
Companion_getInstance_2();
|
|
416
419
|
Companion_getInstance_2();
|
|
417
|
-
var tmp_2 = emitContentType(_this__u8e3s4.
|
|
418
|
-
var tmp_3 = emitRequestSignature(endpoint, $this, _this__u8e3s4.
|
|
420
|
+
var tmp_2 = emitContentType(_this__u8e3s4.zh_1, $this);
|
|
421
|
+
var tmp_3 = emitRequestSignature(endpoint, $this, _this__u8e3s4.zh_1);
|
|
419
422
|
Companion_getInstance_2();
|
|
420
423
|
Companion_getInstance_2();
|
|
421
424
|
Companion_getInstance_2();
|
|
422
|
-
var tmp_4 = emitPath(endpoint.
|
|
425
|
+
var tmp_4 = emitPath(endpoint.ki_1, $this);
|
|
423
426
|
Companion_getInstance_2();
|
|
424
427
|
Companion_getInstance_2();
|
|
425
428
|
Companion_getInstance_2();
|
|
426
429
|
Companion_getInstance_2();
|
|
427
430
|
Companion_getInstance_2();
|
|
428
431
|
Companion_getInstance_2();
|
|
429
|
-
var tmp_5 = emitMap(endpoint.
|
|
432
|
+
var tmp_5 = emitMap(endpoint.li_1, $this);
|
|
430
433
|
Companion_getInstance_2();
|
|
431
434
|
Companion_getInstance_2();
|
|
432
435
|
Companion_getInstance_2();
|
|
433
|
-
var tmp_6 = emitMap(endpoint.
|
|
436
|
+
var tmp_6 = emitMap(endpoint.mi_1, $this);
|
|
434
437
|
Companion_getInstance_2();
|
|
435
438
|
Companion_getInstance_2();
|
|
436
439
|
Companion_getInstance_2();
|
|
437
|
-
var tmp6_safe_receiver = _this__u8e3s4.
|
|
440
|
+
var tmp6_safe_receiver = _this__u8e3s4.zh_1;
|
|
438
441
|
var tmp_7;
|
|
439
442
|
if (tmp6_safe_receiver == null) {
|
|
440
443
|
tmp_7 = null;
|
|
@@ -444,7 +447,7 @@
|
|
|
444
447
|
// Inline function 'kotlin.contracts.contract' call
|
|
445
448
|
var tmp$ret$0;
|
|
446
449
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emit.<anonymous>' call
|
|
447
|
-
tmp$ret$0 = 'new
|
|
450
|
+
tmp$ret$0 = 'new Wirespec.Content("' + tmp6_safe_receiver.ai_1 + '", body)';
|
|
448
451
|
tmp$ret$1 = tmp$ret$0;
|
|
449
452
|
tmp_7 = tmp$ret$1;
|
|
450
453
|
}
|
|
@@ -462,20 +465,20 @@
|
|
|
462
465
|
Companion_getInstance_2();
|
|
463
466
|
Companion_getInstance_2();
|
|
464
467
|
Companion_getInstance_2();
|
|
465
|
-
var tmp8_safe_receiver = _this__u8e3s4.
|
|
466
|
-
var tmp9_safe_receiver = tmp8_safe_receiver == null ? null : tmp8_safe_receiver.
|
|
467
|
-
var tmp10_elvis_lhs = tmp9_safe_receiver == null ? null : $this.
|
|
468
|
+
var tmp8_safe_receiver = _this__u8e3s4.zh_1;
|
|
469
|
+
var tmp9_safe_receiver = tmp8_safe_receiver == null ? null : tmp8_safe_receiver.bi_1;
|
|
470
|
+
var tmp10_elvis_lhs = tmp9_safe_receiver == null ? null : $this.hi(tmp9_safe_receiver);
|
|
468
471
|
var tmp_9 = tmp10_elvis_lhs == null ? 'Void' : tmp10_elvis_lhs;
|
|
469
472
|
Companion_getInstance_2();
|
|
470
|
-
return trimMargin('\n |' + ' ' + 'class Request' + tmp + ' implements Request<' + tmp_0 + '> {\n |' + ' ' + ' ' + 'private final String path;\n |' + ' ' + ' ' + 'private final
|
|
473
|
+
return trimMargin('\n |' + ' ' + 'class Request' + tmp + ' implements Request<' + tmp_0 + '> {\n |' + ' ' + ' ' + 'private final String path;\n |' + ' ' + ' ' + 'private final Wirespec.Method method;\n |' + ' ' + ' ' + 'private final java.util.Map<String, java.util.List<Object>> query;\n |' + ' ' + ' ' + 'private final java.util.Map<String, java.util.List<Object>> headers;\n |' + ' ' + ' ' + 'private final Wirespec.Content<' + tmp_1 + '> content;\n |' + ' ' + ' ' + 'public Request' + tmp_2 + '(' + tmp_3 + ') {\n |' + ' ' + ' ' + ' ' + 'this.path = ' + tmp_4 + ';\n |' + ' ' + ' ' + ' ' + 'this.method = Wirespec.Method.' + endpoint.ji_1.p4_1 + ';\n |' + ' ' + ' ' + ' ' + 'this.query = ' + tmp_5 + ';\n |' + ' ' + ' ' + ' ' + 'this.headers = ' + tmp_6 + ';\n |' + ' ' + ' ' + ' ' + 'this.content = ' + tmp_8 + ';\n |' + ' ' + ' ' + '}\n |' + ' ' + ' ' + '@Override public String getPath() {return path;}\n |' + ' ' + ' ' + '@Override public Wirespec.Method getMethod() {return method;}\n |' + ' ' + ' ' + '@Override public java.util.Map<String, java.util.List<Object>> getQuery() {return query;}\n |' + ' ' + ' ' + '@Override public java.util.Map<String, java.util.List<Object>> getHeaders() {return headers;}\n |' + ' ' + ' ' + '@Override public Wirespec.Content<' + tmp_9 + '> getContent() {return content;}\n |' + ' ' + '}\n ');
|
|
471
474
|
}
|
|
472
475
|
function emit_0(_this__u8e3s4, $this) {
|
|
473
476
|
Companion_getInstance_2();
|
|
474
|
-
var tmp = Companion_getInstance_2().
|
|
475
|
-
var tmp_0 = emitContentType(_this__u8e3s4.
|
|
477
|
+
var tmp = Companion_getInstance_2().si(_this__u8e3s4.qi_1);
|
|
478
|
+
var tmp_0 = emitContentType(_this__u8e3s4.ri_1, $this);
|
|
476
479
|
var tmp$ret$1;
|
|
477
480
|
// Inline function 'kotlin.takeIf' call
|
|
478
|
-
var tmp0_takeIf = _this__u8e3s4.
|
|
481
|
+
var tmp0_takeIf = _this__u8e3s4.qi_1;
|
|
479
482
|
// Inline function 'kotlin.contracts.contract' call
|
|
480
483
|
var tmp_1;
|
|
481
484
|
var tmp$ret$0;
|
|
@@ -489,9 +492,9 @@
|
|
|
489
492
|
tmp$ret$1 = tmp_1;
|
|
490
493
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
491
494
|
var tmp_2 = orEmptyString(tmp0_safe_receiver == null ? null : groupStatus(tmp0_safe_receiver, $this), $this);
|
|
492
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
493
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
494
|
-
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : $this.
|
|
495
|
+
var tmp1_safe_receiver = _this__u8e3s4.ri_1;
|
|
496
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.bi_1;
|
|
497
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : $this.hi(tmp2_safe_receiver);
|
|
495
498
|
var tmp_3 = tmp3_elvis_lhs == null ? 'Void' : tmp3_elvis_lhs;
|
|
496
499
|
Companion_getInstance_2();
|
|
497
500
|
Companion_getInstance_2();
|
|
@@ -499,17 +502,17 @@
|
|
|
499
502
|
Companion_getInstance_2();
|
|
500
503
|
Companion_getInstance_2();
|
|
501
504
|
Companion_getInstance_2();
|
|
502
|
-
var tmp4_safe_receiver = _this__u8e3s4.
|
|
503
|
-
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.
|
|
504
|
-
var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : $this.
|
|
505
|
+
var tmp4_safe_receiver = _this__u8e3s4.ri_1;
|
|
506
|
+
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.bi_1;
|
|
507
|
+
var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : $this.hi(tmp5_safe_receiver);
|
|
505
508
|
var tmp_4 = tmp6_elvis_lhs == null ? 'Void' : tmp6_elvis_lhs;
|
|
506
509
|
Companion_getInstance_2();
|
|
507
510
|
Companion_getInstance_2();
|
|
508
|
-
var tmp_5 = Companion_getInstance_2().
|
|
509
|
-
var tmp_6 = emitContentType(_this__u8e3s4.
|
|
511
|
+
var tmp_5 = Companion_getInstance_2().si(_this__u8e3s4.qi_1);
|
|
512
|
+
var tmp_6 = emitContentType(_this__u8e3s4.ri_1, $this);
|
|
510
513
|
var tmp$ret$3;
|
|
511
514
|
// Inline function 'kotlin.takeIf' call
|
|
512
|
-
var tmp1_takeIf = _this__u8e3s4.
|
|
515
|
+
var tmp1_takeIf = _this__u8e3s4.qi_1;
|
|
513
516
|
// Inline function 'kotlin.contracts.contract' call
|
|
514
517
|
var tmp_7;
|
|
515
518
|
var tmp$ret$2;
|
|
@@ -536,7 +539,7 @@
|
|
|
536
539
|
tmp_8 = tmp$ret$5;
|
|
537
540
|
}
|
|
538
541
|
var tmp_9 = orEmptyString(tmp_8, $this);
|
|
539
|
-
var tmp8_safe_receiver = _this__u8e3s4.
|
|
542
|
+
var tmp8_safe_receiver = _this__u8e3s4.ri_1;
|
|
540
543
|
var tmp_10;
|
|
541
544
|
if (tmp8_safe_receiver == null) {
|
|
542
545
|
tmp_10 = null;
|
|
@@ -546,7 +549,7 @@
|
|
|
546
549
|
// Inline function 'kotlin.contracts.contract' call
|
|
547
550
|
var tmp$ret$6;
|
|
548
551
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emit.<anonymous>' call
|
|
549
|
-
tmp$ret$6 = ', ' + $this.
|
|
552
|
+
tmp$ret$6 = ', ' + $this.hi(tmp8_safe_receiver.bi_1) + ' body';
|
|
550
553
|
tmp$ret$7 = tmp$ret$6;
|
|
551
554
|
tmp_10 = tmp$ret$7;
|
|
552
555
|
}
|
|
@@ -557,7 +560,7 @@
|
|
|
557
560
|
Companion_getInstance_2();
|
|
558
561
|
var tmp$ret$9;
|
|
559
562
|
// Inline function 'kotlin.takeIf' call
|
|
560
|
-
var tmp2_takeIf = _this__u8e3s4.
|
|
563
|
+
var tmp2_takeIf = _this__u8e3s4.qi_1;
|
|
561
564
|
// Inline function 'kotlin.contracts.contract' call
|
|
562
565
|
var tmp_12;
|
|
563
566
|
var tmp$ret$8;
|
|
@@ -577,7 +580,7 @@
|
|
|
577
580
|
Companion_getInstance_2();
|
|
578
581
|
Companion_getInstance_2();
|
|
579
582
|
Companion_getInstance_2();
|
|
580
|
-
var tmp11_safe_receiver = _this__u8e3s4.
|
|
583
|
+
var tmp11_safe_receiver = _this__u8e3s4.ri_1;
|
|
581
584
|
var tmp_14;
|
|
582
585
|
if (tmp11_safe_receiver == null) {
|
|
583
586
|
tmp_14 = null;
|
|
@@ -587,7 +590,7 @@
|
|
|
587
590
|
// Inline function 'kotlin.contracts.contract' call
|
|
588
591
|
var tmp$ret$10;
|
|
589
592
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emit.<anonymous>' call
|
|
590
|
-
tmp$ret$10 = 'new
|
|
593
|
+
tmp$ret$10 = 'new Wirespec.Content("' + tmp11_safe_receiver.ai_1 + '", body)';
|
|
591
594
|
tmp$ret$11 = tmp$ret$10;
|
|
592
595
|
tmp_14 = tmp$ret$11;
|
|
593
596
|
}
|
|
@@ -601,12 +604,12 @@
|
|
|
601
604
|
Companion_getInstance_2();
|
|
602
605
|
Companion_getInstance_2();
|
|
603
606
|
Companion_getInstance_2();
|
|
604
|
-
var tmp13_safe_receiver = _this__u8e3s4.
|
|
605
|
-
var tmp14_safe_receiver = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.
|
|
606
|
-
var tmp15_elvis_lhs = tmp14_safe_receiver == null ? null : $this.
|
|
607
|
+
var tmp13_safe_receiver = _this__u8e3s4.ri_1;
|
|
608
|
+
var tmp14_safe_receiver = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.bi_1;
|
|
609
|
+
var tmp15_elvis_lhs = tmp14_safe_receiver == null ? null : $this.hi(tmp14_safe_receiver);
|
|
607
610
|
var tmp_16 = tmp15_elvis_lhs == null ? 'Void' : tmp15_elvis_lhs;
|
|
608
611
|
Companion_getInstance_2();
|
|
609
|
-
return trimMargin('\n |' + ' ' + 'class Response' + tmp + tmp_0 + ' implements Response' + tmp_2 + '<' + tmp_3 + '> {\n |' + ' ' + ' ' + 'private final int status;\n |' + ' ' + ' ' + 'private final java.util.Map<String, java.util.List<Object>> headers;\n |' + ' ' + ' ' + 'private final
|
|
612
|
+
return trimMargin('\n |' + ' ' + 'class Response' + tmp + tmp_0 + ' implements Response' + tmp_2 + '<' + tmp_3 + '> {\n |' + ' ' + ' ' + 'private final int status;\n |' + ' ' + ' ' + 'private final java.util.Map<String, java.util.List<Object>> headers;\n |' + ' ' + ' ' + 'private final Wirespec.Content<' + tmp_4 + '> content;\n |' + ' ' + ' ' + 'public Response' + tmp_5 + tmp_6 + '(' + tmp_9 + 'java.util.Map<String, java.util.List<Object>> headers' + tmp_11 + ') {\n |' + ' ' + ' ' + ' ' + 'this.status = ' + tmp_13 + ';\n |' + ' ' + ' ' + ' ' + 'this.headers = headers;\n |' + ' ' + ' ' + ' ' + 'this.content = ' + tmp_15 + ';\n |' + ' ' + ' ' + '}\n |' + ' ' + ' ' + '@Override public int getStatus() {return status;}\n |' + ' ' + ' ' + '@Override public java.util.Map<String, java.util.List<Object>> getHeaders() {return headers;}\n |' + ' ' + ' ' + '@Override public Wirespec.Content<' + tmp_16 + '> getContent() {return content;}\n |' + ' ' + '}\n ');
|
|
610
613
|
}
|
|
611
614
|
function emitResponseMapper(_this__u8e3s4, $this) {
|
|
612
615
|
Companion_getInstance_2();
|
|
@@ -619,8 +622,8 @@
|
|
|
619
622
|
var e = tmp0_iterator.e();
|
|
620
623
|
var tmp$ret$0;
|
|
621
624
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emitResponseMapper.<anonymous>' call
|
|
622
|
-
var tmp0_safe_receiver = e.
|
|
623
|
-
tmp$ret$0 = to(e.
|
|
625
|
+
var tmp0_safe_receiver = e.ri_1;
|
|
626
|
+
tmp$ret$0 = to(e.qi_1, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ai_1);
|
|
624
627
|
var key = tmp$ret$0;
|
|
625
628
|
if (set.a(key)) {
|
|
626
629
|
list.a(e);
|
|
@@ -632,10 +635,10 @@
|
|
|
632
635
|
Companion_getInstance_2();
|
|
633
636
|
Companion_getInstance_2();
|
|
634
637
|
Companion_getInstance_2();
|
|
635
|
-
return trimMargin('\n |' + ' ' + 'static <B> Response RESPONSE_MAPPER(
|
|
638
|
+
return trimMargin('\n |' + ' ' + 'static <B> Response RESPONSE_MAPPER(Wirespec.ContentMapper<B> contentMapper, int status, java.util.Map<String, java.util.List<Object>> headers, Wirespec.Content<B> content) {\n |' + tmp_0 + '\n |' + ' ' + ' ' + 'throw new IllegalStateException("Unknown response type");\n |' + ' ' + '}\n ');
|
|
636
639
|
}
|
|
637
640
|
function emitResponseMapperCondition(_this__u8e3s4, $this) {
|
|
638
|
-
var tmp0_subject = _this__u8e3s4.
|
|
641
|
+
var tmp0_subject = _this__u8e3s4.ri_1;
|
|
639
642
|
var tmp;
|
|
640
643
|
if (tmp0_subject == null) {
|
|
641
644
|
Companion_getInstance_2();
|
|
@@ -643,7 +646,7 @@
|
|
|
643
646
|
Companion_getInstance_2();
|
|
644
647
|
var tmp$ret$1;
|
|
645
648
|
// Inline function 'kotlin.takeIf' call
|
|
646
|
-
var tmp0_takeIf = _this__u8e3s4.
|
|
649
|
+
var tmp0_takeIf = _this__u8e3s4.qi_1;
|
|
647
650
|
// Inline function 'kotlin.contracts.contract' call
|
|
648
651
|
var tmp_0;
|
|
649
652
|
var tmp$ret$0;
|
|
@@ -665,15 +668,15 @@
|
|
|
665
668
|
// Inline function 'kotlin.contracts.contract' call
|
|
666
669
|
var tmp$ret$2;
|
|
667
670
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emitResponseMapperCondition.<anonymous>' call
|
|
668
|
-
tmp$ret$2 = 'status == ' + _this__u8e3s4.
|
|
671
|
+
tmp$ret$2 = 'status == ' + _this__u8e3s4.qi_1 + ' && ';
|
|
669
672
|
tmp$ret$3 = tmp$ret$2;
|
|
670
673
|
tmp_1 = tmp$ret$3;
|
|
671
674
|
}
|
|
672
675
|
var tmp_2 = orEmptyString(tmp_1, $this);
|
|
673
|
-
var tmp_3 = Companion_getInstance_2().
|
|
676
|
+
var tmp_3 = Companion_getInstance_2().si(_this__u8e3s4.qi_1);
|
|
674
677
|
var tmp$ret$5;
|
|
675
678
|
// Inline function 'kotlin.takeIf' call
|
|
676
|
-
var tmp1_takeIf = _this__u8e3s4.
|
|
679
|
+
var tmp1_takeIf = _this__u8e3s4.qi_1;
|
|
677
680
|
// Inline function 'kotlin.contracts.contract' call
|
|
678
681
|
var tmp_4;
|
|
679
682
|
var tmp$ret$4;
|
|
@@ -706,7 +709,7 @@
|
|
|
706
709
|
Companion_getInstance_2();
|
|
707
710
|
var tmp$ret$9;
|
|
708
711
|
// Inline function 'kotlin.takeIf' call
|
|
709
|
-
var tmp2_takeIf = _this__u8e3s4.
|
|
712
|
+
var tmp2_takeIf = _this__u8e3s4.qi_1;
|
|
710
713
|
// Inline function 'kotlin.contracts.contract' call
|
|
711
714
|
var tmp_6;
|
|
712
715
|
var tmp$ret$8;
|
|
@@ -728,7 +731,7 @@
|
|
|
728
731
|
// Inline function 'kotlin.contracts.contract' call
|
|
729
732
|
var tmp$ret$10;
|
|
730
733
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emitResponseMapperCondition.<anonymous>' call
|
|
731
|
-
tmp$ret$10 = 'status == ' + _this__u8e3s4.
|
|
734
|
+
tmp$ret$10 = 'status == ' + _this__u8e3s4.qi_1 + ' && ';
|
|
732
735
|
tmp$ret$11 = tmp$ret$10;
|
|
733
736
|
tmp_7 = tmp$ret$11;
|
|
734
737
|
}
|
|
@@ -737,18 +740,18 @@
|
|
|
737
740
|
Companion_getInstance_2();
|
|
738
741
|
Companion_getInstance_2();
|
|
739
742
|
Companion_getInstance_2();
|
|
740
|
-
var tmp_9 = $this.
|
|
741
|
-
var tmp_10 = emitPrimaryType(_this__u8e3s4.
|
|
742
|
-
var tmp_11 = _this__u8e3s4.
|
|
743
|
+
var tmp_9 = $this.hi(_this__u8e3s4.ri_1.bi_1);
|
|
744
|
+
var tmp_10 = emitPrimaryType(_this__u8e3s4.ri_1.bi_1, $this);
|
|
745
|
+
var tmp_11 = _this__u8e3s4.ri_1.bi_1.ti();
|
|
743
746
|
Companion_getInstance_2();
|
|
744
747
|
Companion_getInstance_2();
|
|
745
748
|
Companion_getInstance_2();
|
|
746
749
|
Companion_getInstance_2();
|
|
747
|
-
var tmp_12 = Companion_getInstance_2().
|
|
748
|
-
var tmp_13 = emitContentType(_this__u8e3s4.
|
|
750
|
+
var tmp_12 = Companion_getInstance_2().si(_this__u8e3s4.qi_1);
|
|
751
|
+
var tmp_13 = emitContentType(_this__u8e3s4.ri_1, $this);
|
|
749
752
|
var tmp$ret$13;
|
|
750
753
|
// Inline function 'kotlin.takeIf' call
|
|
751
|
-
var tmp3_takeIf = _this__u8e3s4.
|
|
754
|
+
var tmp3_takeIf = _this__u8e3s4.qi_1;
|
|
752
755
|
// Inline function 'kotlin.contracts.contract' call
|
|
753
756
|
var tmp_14;
|
|
754
757
|
var tmp$ret$12;
|
|
@@ -778,13 +781,13 @@
|
|
|
778
781
|
Companion_getInstance_2();
|
|
779
782
|
Companion_getInstance_2();
|
|
780
783
|
Companion_getInstance_2();
|
|
781
|
-
tmp = trimMargin('\n |' + ' ' + ' ' + ' ' + 'if(' + tmp_8 + 'content.type().equals("' + _this__u8e3s4.
|
|
784
|
+
tmp = trimMargin('\n |' + ' ' + ' ' + ' ' + 'if(' + tmp_8 + 'content.type().equals("' + _this__u8e3s4.ri_1.ai_1 + '")) {\n |' + ' ' + ' ' + ' ' + ' ' + 'Wirespec.Content<' + tmp_9 + '> c = contentMapper.read(content, Wirespec.getType(' + tmp_10 + '.class, ' + tmp_11 + '));\n |' + ' ' + ' ' + ' ' + ' ' + 'return new Response' + tmp_12 + tmp_13 + '(' + tmp_16 + 'headers, c.body());\n |' + ' ' + ' ' + ' ' + '}\n |\n ');
|
|
782
785
|
}
|
|
783
786
|
return tmp;
|
|
784
787
|
}
|
|
785
788
|
function emitContentType(_this__u8e3s4, $this) {
|
|
786
789
|
var tmp0_safe_receiver = _this__u8e3s4;
|
|
787
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
790
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ai_1;
|
|
788
791
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : split(tmp1_safe_receiver, ['/', '-']);
|
|
789
792
|
var tmp;
|
|
790
793
|
if (tmp2_safe_receiver == null) {
|
|
@@ -796,14 +799,14 @@
|
|
|
796
799
|
return tmp3_elvis_lhs == null ? 'Void' : tmp3_elvis_lhs;
|
|
797
800
|
}
|
|
798
801
|
function emit_1(_this__u8e3s4, $this) {
|
|
799
|
-
return $this.
|
|
802
|
+
return $this.ui(_this__u8e3s4, $this.rh_1, JavaEmitter$emit$lambda_8(_this__u8e3s4));
|
|
800
803
|
}
|
|
801
804
|
function emitRequestSignature(_this__u8e3s4, $this, content) {
|
|
802
805
|
var tmp$ret$4;
|
|
803
806
|
// Inline function 'kotlin.collections.map' call
|
|
804
807
|
var tmp$ret$1;
|
|
805
808
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
806
|
-
var tmp1_filterIsInstance = _this__u8e3s4.
|
|
809
|
+
var tmp1_filterIsInstance = _this__u8e3s4.ki_1;
|
|
807
810
|
var tmp$ret$0;
|
|
808
811
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
809
812
|
var tmp0_filterIsInstanceTo = ArrayList_init_$Create$();
|
|
@@ -825,15 +828,15 @@
|
|
|
825
828
|
var item = tmp0_iterator_0.e();
|
|
826
829
|
var tmp$ret$2;
|
|
827
830
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emitRequestSignature.<anonymous>' call
|
|
828
|
-
tmp$ret$2 = new Field(item.
|
|
831
|
+
tmp$ret$2 = new Field(item.vi_1, item.wi_1, false);
|
|
829
832
|
tmp2_mapTo.a(tmp$ret$2);
|
|
830
833
|
}
|
|
831
834
|
tmp$ret$3 = tmp2_mapTo;
|
|
832
835
|
tmp$ret$4 = tmp$ret$3;
|
|
833
836
|
var pathField = tmp$ret$4;
|
|
834
|
-
var parameters = plus(plus(plus(pathField, _this__u8e3s4.
|
|
837
|
+
var parameters = plus(plus(plus(pathField, _this__u8e3s4.li_1), _this__u8e3s4.mi_1), _this__u8e3s4.ni_1);
|
|
835
838
|
var tmp0_safe_receiver = content;
|
|
836
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
839
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bi_1;
|
|
837
840
|
var tmp = filterNotNull(plus_0(parameters, tmp1_safe_receiver == null ? null : toField(tmp1_safe_receiver, 'body', false)));
|
|
838
841
|
return joinToString(tmp, ', ', VOID, VOID, VOID, VOID, JavaEmitter$emitRequestSignature$lambda($this));
|
|
839
842
|
}
|
|
@@ -864,34 +867,34 @@
|
|
|
864
867
|
tmp$ret$1 = tmp$ret$0.substring(0, 1);
|
|
865
868
|
tmp = tmp$ret$1 + 'XX';
|
|
866
869
|
} else {
|
|
867
|
-
tmp = Companion_getInstance_2().
|
|
870
|
+
tmp = Companion_getInstance_2().si(_this__u8e3s4);
|
|
868
871
|
}
|
|
869
872
|
return tmp;
|
|
870
873
|
}
|
|
871
874
|
function JavaEmitter$emit$lambda($this_emit, this$0) {
|
|
872
875
|
return function () {
|
|
873
|
-
return trimMargin('public record ' + $this_emit.
|
|
876
|
+
return trimMargin('public record ' + $this_emit.xi_1 + '(\n |' + this$0.zi($this_emit.yi_1) + '\n |) {};\n |');
|
|
874
877
|
};
|
|
875
878
|
}
|
|
876
879
|
function JavaEmitter$emit$lambda$lambda(this$0) {
|
|
877
880
|
return function (it) {
|
|
878
|
-
return this$0.
|
|
881
|
+
return this$0.aj(it);
|
|
879
882
|
};
|
|
880
883
|
}
|
|
881
884
|
function JavaEmitter$emit$lambda_0($this_emit, this$0) {
|
|
882
885
|
return function () {
|
|
883
|
-
return joinToString($this_emit.
|
|
886
|
+
return joinToString($this_emit.bj_1, ',\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda$lambda(this$0));
|
|
884
887
|
};
|
|
885
888
|
}
|
|
886
889
|
function JavaEmitter$emit$lambda_1($this_emit, this$0) {
|
|
887
890
|
return function () {
|
|
888
891
|
Companion_getInstance_2();
|
|
889
|
-
return ' ' + ($this_emit.
|
|
892
|
+
return ' ' + ($this_emit.ej_1 ? 'java.util.Optional<' + this$0.hi($this_emit.dj_1) + '>' : this$0.hi($this_emit.dj_1)) + ' ' + this$0.fj($this_emit.cj_1);
|
|
890
893
|
};
|
|
891
894
|
}
|
|
892
895
|
function JavaEmitter$emit$lambda_2($this_emit) {
|
|
893
896
|
return function () {
|
|
894
|
-
return $this_emit.
|
|
897
|
+
return $this_emit.gj_1;
|
|
895
898
|
};
|
|
896
899
|
}
|
|
897
900
|
function JavaEmitter$emitPrimaryType$lambda($this_emitPrimaryType) {
|
|
@@ -902,10 +905,10 @@
|
|
|
902
905
|
tmp = 'Object';
|
|
903
906
|
} else {
|
|
904
907
|
if (tmp0_subject instanceof Custom) {
|
|
905
|
-
tmp = $this_emitPrimaryType.
|
|
908
|
+
tmp = $this_emitPrimaryType.kj_1;
|
|
906
909
|
} else {
|
|
907
910
|
if (tmp0_subject instanceof Primitive) {
|
|
908
|
-
var tmp1_subject = $this_emitPrimaryType.
|
|
911
|
+
var tmp1_subject = $this_emitPrimaryType.hj_1;
|
|
909
912
|
var tmp0 = tmp1_subject.q4_1;
|
|
910
913
|
var tmp_0;
|
|
911
914
|
switch (tmp0) {
|
|
@@ -939,7 +942,7 @@
|
|
|
939
942
|
// Inline function 'kotlin.contracts.contract' call
|
|
940
943
|
var tmp$ret$0;
|
|
941
944
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emit.<anonymous>.<anonymous>' call
|
|
942
|
-
tmp$ret$0 = $this_emit.
|
|
945
|
+
tmp$ret$0 = $this_emit.ti() ? 'java.util.List<' + tmp0_let + '>' : tmp0_let;
|
|
943
946
|
tmp$ret$1 = tmp$ret$0;
|
|
944
947
|
return tmp$ret$1;
|
|
945
948
|
};
|
|
@@ -965,26 +968,32 @@
|
|
|
965
968
|
Companion_getInstance_2();
|
|
966
969
|
Companion_getInstance_2();
|
|
967
970
|
Companion_getInstance_2();
|
|
968
|
-
var body = trimMargin('\n |' + ' ' + 'public final String label;\n |' + ' ' + $this_emit.
|
|
971
|
+
var body = trimMargin('\n |' + ' ' + 'public final String label;\n |' + ' ' + $this_emit.nj_1 + '(String label) {\n |' + ' ' + ' ' + 'this.label = label;\n |' + ' ' + '}\n ');
|
|
972
|
+
Companion_getInstance_2();
|
|
973
|
+
Companion_getInstance_2();
|
|
974
|
+
Companion_getInstance_2();
|
|
975
|
+
Companion_getInstance_2();
|
|
976
|
+
Companion_getInstance_2();
|
|
977
|
+
var toString = trimMargin('\n |' + ' ' + '@Override\n |' + ' ' + 'public String toString() {\n |' + ' ' + ' ' + 'return label;\n |' + ' ' + '}\n ');
|
|
969
978
|
Companion_getInstance_2();
|
|
970
979
|
Companion_getInstance_2();
|
|
971
980
|
var tmp = ',\n' + ' ';
|
|
972
|
-
return 'public enum ' + $this_emit.
|
|
981
|
+
return 'public enum ' + $this_emit.nj_1 + ' {\n' + ' ' + joinToString($this_emit.oj_1, tmp, VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda$lambda_0) + ';\n' + body + '\n' + toString + '\n}\n';
|
|
973
982
|
};
|
|
974
983
|
}
|
|
975
984
|
function JavaEmitter$emit$lambda_5($this_emit, this$0) {
|
|
976
985
|
return function () {
|
|
977
986
|
Companion_getInstance_2();
|
|
978
987
|
Companion_getInstance_2();
|
|
979
|
-
var tmp = this$0.
|
|
988
|
+
var tmp = this$0.rj($this_emit.qj_1);
|
|
980
989
|
Companion_getInstance_2();
|
|
981
|
-
return trimMargin('public record ' + $this_emit.
|
|
990
|
+
return trimMargin('public record ' + $this_emit.pj_1 + '(String value) {\n |' + ' ' + 'static void validate(' + $this_emit.pj_1 + ' record) {\n |' + ' ' + tmp + '\n |' + ' ' + '}\n |}\n |');
|
|
982
991
|
};
|
|
983
992
|
}
|
|
984
993
|
function JavaEmitter$emit$lambda_6($this_emit) {
|
|
985
994
|
return function () {
|
|
986
995
|
Companion_getInstance_2();
|
|
987
|
-
return ' ' + 'java.util.regex.Pattern.compile(' + $this_emit.
|
|
996
|
+
return ' ' + 'java.util.regex.Pattern.compile(' + $this_emit.sj_1 + ').matcher(record.value).find();';
|
|
988
997
|
};
|
|
989
998
|
}
|
|
990
999
|
function JavaEmitter$emit$lambda$lambda_1(this$0, $this_emit) {
|
|
@@ -1010,14 +1019,14 @@
|
|
|
1010
1019
|
function JavaEmitter$emit$lambda_7($this_emit, this$0) {
|
|
1011
1020
|
return function () {
|
|
1012
1021
|
Companion_getInstance_2();
|
|
1013
|
-
var tmp = emitSegment($this_emit.
|
|
1014
|
-
var tmp_0 = emitResponseMapper($this_emit.
|
|
1022
|
+
var tmp = emitSegment($this_emit.ki_1, this$0);
|
|
1023
|
+
var tmp_0 = emitResponseMapper($this_emit.pi_1, this$0);
|
|
1015
1024
|
Companion_getInstance_2();
|
|
1016
|
-
var tmp_1 = joinToString($this_emit.
|
|
1025
|
+
var tmp_1 = joinToString($this_emit.oi_1, '\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda$lambda_1(this$0, $this_emit));
|
|
1017
1026
|
Companion_getInstance_2();
|
|
1018
1027
|
var tmp$ret$2;
|
|
1019
1028
|
// Inline function 'kotlin.collections.map' call
|
|
1020
|
-
var tmp1_map = $this_emit.
|
|
1029
|
+
var tmp1_map = $this_emit.pi_1;
|
|
1021
1030
|
var tmp$ret$1;
|
|
1022
1031
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1023
1032
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -1026,7 +1035,7 @@
|
|
|
1026
1035
|
var item = tmp0_iterator.e();
|
|
1027
1036
|
var tmp$ret$0;
|
|
1028
1037
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emit.<anonymous>.<anonymous>' call
|
|
1029
|
-
tmp$ret$0 = groupStatus(item.
|
|
1038
|
+
tmp$ret$0 = groupStatus(item.qi_1, this$0);
|
|
1030
1039
|
tmp0_mapTo.a(tmp$ret$0);
|
|
1031
1040
|
}
|
|
1032
1041
|
tmp$ret$1 = tmp0_mapTo;
|
|
@@ -1037,7 +1046,7 @@
|
|
|
1037
1046
|
// Inline function 'kotlin.collections.map' call
|
|
1038
1047
|
var tmp$ret$5;
|
|
1039
1048
|
// Inline function 'kotlin.collections.filter' call
|
|
1040
|
-
var tmp3_filter = $this_emit.
|
|
1049
|
+
var tmp3_filter = $this_emit.pi_1;
|
|
1041
1050
|
var tmp$ret$4;
|
|
1042
1051
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1043
1052
|
var tmp2_filterTo = ArrayList_init_$Create$();
|
|
@@ -1046,7 +1055,7 @@
|
|
|
1046
1055
|
var element = tmp0_iterator_0.e();
|
|
1047
1056
|
var tmp$ret$3;
|
|
1048
1057
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emit.<anonymous>.<anonymous>' call
|
|
1049
|
-
tmp$ret$3 = isInt(element.
|
|
1058
|
+
tmp$ret$3 = isInt(element.qi_1, this$0);
|
|
1050
1059
|
if (tmp$ret$3) {
|
|
1051
1060
|
tmp2_filterTo.a(element);
|
|
1052
1061
|
}
|
|
@@ -1062,7 +1071,7 @@
|
|
|
1062
1071
|
var item_0 = tmp0_iterator_1.e();
|
|
1063
1072
|
var tmp$ret$6;
|
|
1064
1073
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emit.<anonymous>.<anonymous>' call
|
|
1065
|
-
tmp$ret$6 = item_0.
|
|
1074
|
+
tmp$ret$6 = item_0.qi_1;
|
|
1066
1075
|
tmp4_mapTo.a(tmp$ret$6);
|
|
1067
1076
|
}
|
|
1068
1077
|
tmp$ret$7 = tmp4_mapTo;
|
|
@@ -1071,7 +1080,7 @@
|
|
|
1071
1080
|
var tmp_5 = joinToString(tmp_4, '\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda$lambda_3(this$0));
|
|
1072
1081
|
var tmp$ret$10;
|
|
1073
1082
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
1074
|
-
var tmp6_distinctBy = $this_emit.
|
|
1083
|
+
var tmp6_distinctBy = $this_emit.pi_1;
|
|
1075
1084
|
var set = HashSet_init_$Create$();
|
|
1076
1085
|
var list = ArrayList_init_$Create$();
|
|
1077
1086
|
var tmp0_iterator_2 = tmp6_distinctBy.c();
|
|
@@ -1079,8 +1088,8 @@
|
|
|
1079
1088
|
var e = tmp0_iterator_2.e();
|
|
1080
1089
|
var tmp$ret$9;
|
|
1081
1090
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emit.<anonymous>.<anonymous>' call
|
|
1082
|
-
var tmp0_safe_receiver = e.
|
|
1083
|
-
tmp$ret$9 = to(e.
|
|
1091
|
+
var tmp0_safe_receiver = e.ri_1;
|
|
1092
|
+
tmp$ret$9 = to(e.qi_1, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ai_1);
|
|
1084
1093
|
var key = tmp$ret$9;
|
|
1085
1094
|
if (set.a(key)) {
|
|
1086
1095
|
list.a(e);
|
|
@@ -1090,7 +1099,7 @@
|
|
|
1090
1099
|
var tmp_6 = tmp$ret$10;
|
|
1091
1100
|
var tmp_7 = joinToString(tmp_6, '\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda$lambda_4(this$0));
|
|
1092
1101
|
Companion_getInstance_2();
|
|
1093
|
-
return trimMargin('public interface ' + $this_emit.
|
|
1102
|
+
return trimMargin('public interface ' + $this_emit.ii_1 + ' {\n |' + ' ' + 'static String PATH = "' + tmp + '";\n |' + tmp_0 + '\n |' + ' ' + 'interface Request<T> extends Wirespec.Request<T> {}\n |' + tmp_1 + '\n |' + ' ' + 'interface Response<T> extends Wirespec.Response<T> {}\n |' + tmp_3 + '\n |' + tmp_5 + '\n |' + tmp_7 + '\n |' + ' ' + 'public Response ' + Companion_getInstance_2().tj($this_emit.ii_1) + '(Request request);\n |}\n |');
|
|
1094
1103
|
};
|
|
1095
1104
|
}
|
|
1096
1105
|
function JavaEmitter$emitResponseMapper$lambda(this$0) {
|
|
@@ -1099,17 +1108,17 @@
|
|
|
1099
1108
|
};
|
|
1100
1109
|
}
|
|
1101
1110
|
function JavaEmitter$emitContentType$lambda(it) {
|
|
1102
|
-
return Companion_getInstance_2().
|
|
1111
|
+
return Companion_getInstance_2().si(it);
|
|
1103
1112
|
}
|
|
1104
1113
|
function JavaEmitter$emit$lambda_8($this_emit) {
|
|
1105
1114
|
return function () {
|
|
1106
1115
|
var tmp0_subject = $this_emit;
|
|
1107
1116
|
var tmp;
|
|
1108
1117
|
if (tmp0_subject instanceof Literal) {
|
|
1109
|
-
tmp = '"' + $this_emit.
|
|
1118
|
+
tmp = '"' + $this_emit.uj_1 + '"';
|
|
1110
1119
|
} else {
|
|
1111
1120
|
if (tmp0_subject instanceof Param) {
|
|
1112
|
-
tmp = $this_emit.
|
|
1121
|
+
tmp = $this_emit.vi_1.gj_1;
|
|
1113
1122
|
} else {
|
|
1114
1123
|
noWhenBranchMatchedException();
|
|
1115
1124
|
}
|
|
@@ -1119,22 +1128,22 @@
|
|
|
1119
1128
|
}
|
|
1120
1129
|
function JavaEmitter$emitRequestSignature$lambda(this$0) {
|
|
1121
1130
|
return function (it) {
|
|
1122
|
-
return this$0.
|
|
1131
|
+
return this$0.aj(it);
|
|
1123
1132
|
};
|
|
1124
1133
|
}
|
|
1125
1134
|
function JavaEmitter$emitMap$lambda(this$0) {
|
|
1126
1135
|
return function (it) {
|
|
1127
|
-
return '"' + this$0.
|
|
1136
|
+
return '"' + this$0.fj(it.cj_1) + '", java.util.List.of(' + this$0.fj(it.cj_1) + ')';
|
|
1128
1137
|
};
|
|
1129
1138
|
}
|
|
1130
1139
|
function JavaEmitter$emitSegment$lambda(it) {
|
|
1131
1140
|
var tmp0_subject = it;
|
|
1132
1141
|
var tmp;
|
|
1133
1142
|
if (tmp0_subject instanceof Param) {
|
|
1134
|
-
tmp = '{' + it.
|
|
1143
|
+
tmp = '{' + it.vi_1.gj_1 + '}';
|
|
1135
1144
|
} else {
|
|
1136
1145
|
if (tmp0_subject instanceof Literal) {
|
|
1137
|
-
tmp = it.
|
|
1146
|
+
tmp = it.uj_1;
|
|
1138
1147
|
} else {
|
|
1139
1148
|
noWhenBranchMatchedException();
|
|
1140
1149
|
}
|
|
@@ -1187,8 +1196,8 @@
|
|
|
1187
1196
|
Companion_getInstance_2();
|
|
1188
1197
|
Companion_getInstance_2();
|
|
1189
1198
|
Companion_getInstance_2();
|
|
1190
|
-
tmp.
|
|
1191
|
-
this.
|
|
1199
|
+
tmp.fi_1 = trimMargin('\n |package community.flock.wirespec.java;\n |\n |import java.lang.reflect.Type;\n |import java.lang.reflect.ParameterizedType;\n |\n |public interface Wirespec {\n |' + ' ' + 'enum Method { GET, PUT, POST, DELETE, OPTIONS, HEAD, PATCH, TRACE };\n |' + ' ' + 'record Content<T> (String type, T body) {};\n |' + ' ' + 'interface Request<T> { String getPath(); Method getMethod(); java.util.Map<String, java.util.List<Object>> getQuery(); java.util.Map<String, java.util.List<Object>> getHeaders(); Content<T> getContent(); }\n |' + ' ' + 'interface Response<T> { int getStatus(); java.util.Map<String, java.util.List<Object>> getHeaders(); Content<T> getContent(); }\n |' + ' ' + 'interface ContentMapper<B> { <T> Content<T> read(Content<B> content, Type valueType); <T> Content<B> write(Content<T> content); }\n |' + ' ' + 'static Type getType(final Class<?> type, final boolean isIterable) {\n |' + ' ' + ' ' + 'if(isIterable) {\n |' + ' ' + ' ' + ' ' + 'return new ParameterizedType() {\n |' + ' ' + ' ' + ' ' + ' ' + 'public Type getRawType() {return java.util.List.class;}\n |' + ' ' + ' ' + ' ' + ' ' + 'public Type[] getActualTypeArguments() {Class<?>[] types = {type};return types;}\n |' + ' ' + ' ' + ' ' + ' ' + 'public Type getOwnerType() {return null;}\n |' + ' ' + ' ' + ' ' + '};\n |' + ' ' + ' ' + '}\n |' + ' ' + ' ' + 'else {\n |' + ' ' + ' ' + ' ' + 'return type;\n |' + ' ' + ' ' + '}\n |' + ' ' + '}\n |}\n ');
|
|
1200
|
+
this.gi_1 = isBlank(packageName) ? '' : 'package ' + packageName + ';';
|
|
1192
1201
|
}
|
|
1193
1202
|
protoOf(JavaEmitter).th = function (ast) {
|
|
1194
1203
|
var tmp$ret$2;
|
|
@@ -1204,46 +1213,46 @@
|
|
|
1204
1213
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emit.<anonymous>' call
|
|
1205
1214
|
var name = item.i3();
|
|
1206
1215
|
var result = item.j3();
|
|
1207
|
-
tmp$ret$0 = to(name, this.
|
|
1216
|
+
tmp$ret$0 = to(name, this.gi_1 + '\n\n' + imprt(this, ast) + result);
|
|
1208
1217
|
tmp0_mapTo.a(tmp$ret$0);
|
|
1209
1218
|
}
|
|
1210
1219
|
tmp$ret$1 = tmp0_mapTo;
|
|
1211
1220
|
tmp$ret$2 = tmp$ret$1;
|
|
1212
|
-
return
|
|
1213
|
-
};
|
|
1214
|
-
protoOf(JavaEmitter).uj = function (_this__u8e3s4) {
|
|
1215
|
-
return this.vj(_this__u8e3s4, this.rh_1, JavaEmitter$emit$lambda(_this__u8e3s4, this));
|
|
1221
|
+
return tmp$ret$2;
|
|
1216
1222
|
};
|
|
1217
|
-
protoOf(JavaEmitter).
|
|
1218
|
-
return this.wj(_this__u8e3s4, this.rh_1, JavaEmitter$emit$
|
|
1223
|
+
protoOf(JavaEmitter).vj = function (_this__u8e3s4) {
|
|
1224
|
+
return this.wj(_this__u8e3s4, this.rh_1, JavaEmitter$emit$lambda(_this__u8e3s4, this));
|
|
1219
1225
|
};
|
|
1220
1226
|
protoOf(JavaEmitter).zi = function (_this__u8e3s4) {
|
|
1221
|
-
return this.xj(_this__u8e3s4, this.rh_1, JavaEmitter$emit$
|
|
1227
|
+
return this.xj(_this__u8e3s4, this.rh_1, JavaEmitter$emit$lambda_0(_this__u8e3s4, this));
|
|
1228
|
+
};
|
|
1229
|
+
protoOf(JavaEmitter).aj = function (_this__u8e3s4) {
|
|
1230
|
+
return this.yj(_this__u8e3s4, this.rh_1, JavaEmitter$emit$lambda_1(_this__u8e3s4, this));
|
|
1222
1231
|
};
|
|
1223
|
-
protoOf(JavaEmitter).
|
|
1224
|
-
return this.
|
|
1232
|
+
protoOf(JavaEmitter).fj = function (_this__u8e3s4) {
|
|
1233
|
+
return this.zj(_this__u8e3s4, this.rh_1, JavaEmitter$emit$lambda_2(_this__u8e3s4));
|
|
1225
1234
|
};
|
|
1226
|
-
protoOf(JavaEmitter).
|
|
1227
|
-
return this.
|
|
1235
|
+
protoOf(JavaEmitter).hi = function (_this__u8e3s4) {
|
|
1236
|
+
return this.yh(_this__u8e3s4, this.rh_1, JavaEmitter$emit$lambda_3(this, _this__u8e3s4));
|
|
1228
1237
|
};
|
|
1229
|
-
protoOf(JavaEmitter).
|
|
1230
|
-
return this.
|
|
1238
|
+
protoOf(JavaEmitter).ak = function (_this__u8e3s4) {
|
|
1239
|
+
return this.bk(_this__u8e3s4, this.rh_1, JavaEmitter$emit$lambda_4(_this__u8e3s4));
|
|
1231
1240
|
};
|
|
1232
|
-
protoOf(JavaEmitter).
|
|
1233
|
-
return this.
|
|
1241
|
+
protoOf(JavaEmitter).ck = function (_this__u8e3s4) {
|
|
1242
|
+
return this.dk(_this__u8e3s4, this.rh_1, JavaEmitter$emit$lambda_5(_this__u8e3s4, this));
|
|
1234
1243
|
};
|
|
1235
|
-
protoOf(JavaEmitter).
|
|
1236
|
-
return this.
|
|
1244
|
+
protoOf(JavaEmitter).rj = function (_this__u8e3s4) {
|
|
1245
|
+
return this.ek(_this__u8e3s4, this.rh_1, JavaEmitter$emit$lambda_6(_this__u8e3s4));
|
|
1237
1246
|
};
|
|
1238
|
-
protoOf(JavaEmitter).
|
|
1239
|
-
return this.
|
|
1247
|
+
protoOf(JavaEmitter).fk = function (_this__u8e3s4) {
|
|
1248
|
+
return this.gk(_this__u8e3s4, this.rh_1, JavaEmitter$emit$lambda_7(_this__u8e3s4, this));
|
|
1240
1249
|
};
|
|
1241
1250
|
function emitRequestSignature_0(_this__u8e3s4, $this, content) {
|
|
1242
1251
|
var tmp$ret$4;
|
|
1243
1252
|
// Inline function 'kotlin.collections.map' call
|
|
1244
1253
|
var tmp$ret$1;
|
|
1245
1254
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1246
|
-
var tmp1_filterIsInstance = _this__u8e3s4.
|
|
1255
|
+
var tmp1_filterIsInstance = _this__u8e3s4.ki_1;
|
|
1247
1256
|
var tmp$ret$0;
|
|
1248
1257
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
1249
1258
|
var tmp0_filterIsInstanceTo = ArrayList_init_$Create$();
|
|
@@ -1265,15 +1274,15 @@
|
|
|
1265
1274
|
var item = tmp0_iterator_0.e();
|
|
1266
1275
|
var tmp$ret$2;
|
|
1267
1276
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitRequestSignature.<anonymous>' call
|
|
1268
|
-
tmp$ret$2 = new Field(item.
|
|
1277
|
+
tmp$ret$2 = new Field(item.vi_1, item.wi_1, false);
|
|
1269
1278
|
tmp2_mapTo.a(tmp$ret$2);
|
|
1270
1279
|
}
|
|
1271
1280
|
tmp$ret$3 = tmp2_mapTo;
|
|
1272
1281
|
tmp$ret$4 = tmp$ret$3;
|
|
1273
1282
|
var pathField = tmp$ret$4;
|
|
1274
|
-
var parameters = plus(plus(plus(pathField, _this__u8e3s4.
|
|
1283
|
+
var parameters = plus(plus(plus(pathField, _this__u8e3s4.li_1), _this__u8e3s4.mi_1), _this__u8e3s4.ni_1);
|
|
1275
1284
|
var tmp0_safe_receiver = content;
|
|
1276
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1285
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bi_1;
|
|
1277
1286
|
var tmp = filterNotNull(plus_0(parameters, tmp1_safe_receiver == null ? null : toField(tmp1_safe_receiver, 'body', false)));
|
|
1278
1287
|
return trimMargin('\n |(' + joinToString(tmp, ', ', VOID, VOID, VOID, VOID, KotlinEmitter$emitRequestSignature$lambda($this)) + ')\n ');
|
|
1279
1288
|
}
|
|
@@ -1284,11 +1293,49 @@
|
|
|
1284
1293
|
return joinToString(_this__u8e3s4, ', ', VOID, VOID, VOID, VOID, KotlinEmitter$emitMap$lambda($this));
|
|
1285
1294
|
}
|
|
1286
1295
|
function emit_2(_this__u8e3s4, $this) {
|
|
1287
|
-
return $this.
|
|
1296
|
+
return $this.ui(_this__u8e3s4, $this.rh_1, KotlinEmitter$emit$lambda_8(_this__u8e3s4));
|
|
1288
1297
|
}
|
|
1289
1298
|
function emitPath_0(_this__u8e3s4, $this) {
|
|
1290
1299
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, KotlinEmitter$emitPath$lambda($this));
|
|
1291
1300
|
}
|
|
1301
|
+
function emitRequestMapper(_this__u8e3s4, $this) {
|
|
1302
|
+
Companion_getInstance_2();
|
|
1303
|
+
Companion_getInstance_2();
|
|
1304
|
+
Companion_getInstance_2();
|
|
1305
|
+
var tmp = joinToString(_this__u8e3s4, '\n', VOID, VOID, VOID, VOID, KotlinEmitter$emitRequestMapper$lambda($this));
|
|
1306
|
+
Companion_getInstance_2();
|
|
1307
|
+
Companion_getInstance_2();
|
|
1308
|
+
Companion_getInstance_2();
|
|
1309
|
+
Companion_getInstance_2();
|
|
1310
|
+
Companion_getInstance_2();
|
|
1311
|
+
return trimMargin('\n |fun <B> REQUEST_MAPPER(contentMapper: Wirespec.ContentMapper<B>) =\n |' + ' ' + 'fun(path:String, method: Wirespec.Method, query: Map<String, List<Any?>>, headers:Map<String, List<Any?>>, content: Wirespec.Content<B>?) =\n |' + ' ' + ' ' + 'when {\n |' + tmp + '\n |' + ' ' + ' ' + ' ' + 'else -> error("Cannot map request")\n |' + ' ' + ' ' + '}\n ');
|
|
1312
|
+
}
|
|
1313
|
+
function emitRequestMapperCondition(_this__u8e3s4, $this) {
|
|
1314
|
+
var tmp0_subject = _this__u8e3s4.zh_1;
|
|
1315
|
+
var tmp;
|
|
1316
|
+
if (tmp0_subject == null) {
|
|
1317
|
+
Companion_getInstance_2();
|
|
1318
|
+
Companion_getInstance_2();
|
|
1319
|
+
Companion_getInstance_2();
|
|
1320
|
+
tmp = trimMargin('\n |' + ' ' + ' ' + ' ' + 'content == null -> RequestUnit(path, method, query, headers, null)\n ');
|
|
1321
|
+
} else {
|
|
1322
|
+
Companion_getInstance_2();
|
|
1323
|
+
Companion_getInstance_2();
|
|
1324
|
+
Companion_getInstance_2();
|
|
1325
|
+
Companion_getInstance_2();
|
|
1326
|
+
Companion_getInstance_2();
|
|
1327
|
+
Companion_getInstance_2();
|
|
1328
|
+
Companion_getInstance_2();
|
|
1329
|
+
var tmp_0 = $this.hi(_this__u8e3s4.zh_1.bi_1);
|
|
1330
|
+
var tmp_1 = $this.hi(_this__u8e3s4.zh_1.bi_1);
|
|
1331
|
+
Companion_getInstance_2();
|
|
1332
|
+
Companion_getInstance_2();
|
|
1333
|
+
Companion_getInstance_2();
|
|
1334
|
+
Companion_getInstance_2();
|
|
1335
|
+
tmp = trimMargin('\n |' + ' ' + ' ' + ' ' + 'content?.type == "' + _this__u8e3s4.zh_1.ai_1 + '" -> contentMapper\n |' + ' ' + ' ' + ' ' + ' ' + '.read<' + tmp_0 + '>(content, typeOf<' + tmp_1 + '>().javaType)\n |' + ' ' + ' ' + ' ' + ' ' + '.let{ Request' + emitContentType_0(_this__u8e3s4.zh_1) + '(path, method, query, headers, it) }\n ');
|
|
1336
|
+
}
|
|
1337
|
+
return tmp;
|
|
1338
|
+
}
|
|
1292
1339
|
function emitResponseMapper_0(_this__u8e3s4, $this) {
|
|
1293
1340
|
Companion_getInstance_2();
|
|
1294
1341
|
Companion_getInstance_2();
|
|
@@ -1305,7 +1352,7 @@
|
|
|
1305
1352
|
var element = tmp0_iterator.e();
|
|
1306
1353
|
var tmp$ret$0;
|
|
1307
1354
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseMapper.<anonymous>' call
|
|
1308
|
-
tmp$ret$0 = Companion_getInstance_2().
|
|
1355
|
+
tmp$ret$0 = Companion_getInstance_2().mk(element.qi_1);
|
|
1309
1356
|
if (tmp$ret$0) {
|
|
1310
1357
|
tmp0_filterTo.a(element);
|
|
1311
1358
|
}
|
|
@@ -1320,8 +1367,8 @@
|
|
|
1320
1367
|
var e = tmp0_iterator_0.e();
|
|
1321
1368
|
var tmp$ret$3;
|
|
1322
1369
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseMapper.<anonymous>' call
|
|
1323
|
-
var tmp0_safe_receiver = e.
|
|
1324
|
-
tmp$ret$3 = to(e.
|
|
1370
|
+
var tmp0_safe_receiver = e.ri_1;
|
|
1371
|
+
tmp$ret$3 = to(e.qi_1, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ai_1);
|
|
1325
1372
|
var key = tmp$ret$3;
|
|
1326
1373
|
if (set.a(key)) {
|
|
1327
1374
|
list.a(e);
|
|
@@ -1342,7 +1389,7 @@
|
|
|
1342
1389
|
var element_0 = tmp0_iterator_1.e();
|
|
1343
1390
|
var tmp$ret$5;
|
|
1344
1391
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseMapper.<anonymous>' call
|
|
1345
|
-
tmp$ret$5 = !Companion_getInstance_2().
|
|
1392
|
+
tmp$ret$5 = !Companion_getInstance_2().mk(element_0.qi_1);
|
|
1346
1393
|
if (tmp$ret$5) {
|
|
1347
1394
|
tmp2_filterTo.a(element_0);
|
|
1348
1395
|
}
|
|
@@ -1357,8 +1404,8 @@
|
|
|
1357
1404
|
var e_0 = tmp0_iterator_2.e();
|
|
1358
1405
|
var tmp$ret$8;
|
|
1359
1406
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseMapper.<anonymous>' call
|
|
1360
|
-
var tmp0_safe_receiver_0 = e_0.
|
|
1361
|
-
tmp$ret$8 = to(e_0.
|
|
1407
|
+
var tmp0_safe_receiver_0 = e_0.ri_1;
|
|
1408
|
+
tmp$ret$8 = to(e_0.qi_1, tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.ai_1);
|
|
1362
1409
|
var key_0 = tmp$ret$8;
|
|
1363
1410
|
if (set_0.a(key_0)) {
|
|
1364
1411
|
list_0.a(e_0);
|
|
@@ -1370,10 +1417,12 @@
|
|
|
1370
1417
|
Companion_getInstance_2();
|
|
1371
1418
|
Companion_getInstance_2();
|
|
1372
1419
|
Companion_getInstance_2();
|
|
1373
|
-
|
|
1420
|
+
Companion_getInstance_2();
|
|
1421
|
+
Companion_getInstance_2();
|
|
1422
|
+
return trimMargin('\n |fun <B> RESPONSE_MAPPER(contentMapper: Wirespec.ContentMapper<B>) =\n |' + ' ' + 'fun(status: Int, headers:Map<String, List<Any?>>, content: Wirespec.Content<B>?) =\n |' + ' ' + ' ' + 'when {\n |' + tmp_0 + '\n |' + tmp_2 + '\n |' + ' ' + ' ' + ' ' + 'else -> error("Cannot map response with status $status")\n |' + ' ' + ' ' + '}\n ');
|
|
1374
1423
|
}
|
|
1375
1424
|
function emitResponseMapperCondition_0(_this__u8e3s4, $this) {
|
|
1376
|
-
var tmp0_subject = _this__u8e3s4.
|
|
1425
|
+
var tmp0_subject = _this__u8e3s4.ri_1;
|
|
1377
1426
|
var tmp;
|
|
1378
1427
|
if (tmp0_subject == null) {
|
|
1379
1428
|
Companion_getInstance_2();
|
|
@@ -1381,12 +1430,12 @@
|
|
|
1381
1430
|
Companion_getInstance_2();
|
|
1382
1431
|
var tmp$ret$1;
|
|
1383
1432
|
// Inline function 'kotlin.takeIf' call
|
|
1384
|
-
var tmp0_takeIf = _this__u8e3s4.
|
|
1433
|
+
var tmp0_takeIf = _this__u8e3s4.qi_1;
|
|
1385
1434
|
// Inline function 'kotlin.contracts.contract' call
|
|
1386
1435
|
var tmp_0;
|
|
1387
1436
|
var tmp$ret$0;
|
|
1388
1437
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseMapperCondition.<anonymous>' call
|
|
1389
|
-
tmp$ret$0 = Companion_getInstance_2().
|
|
1438
|
+
tmp$ret$0 = Companion_getInstance_2().mk(tmp0_takeIf);
|
|
1390
1439
|
if (tmp$ret$0) {
|
|
1391
1440
|
tmp_0 = tmp0_takeIf;
|
|
1392
1441
|
} else {
|
|
@@ -1403,20 +1452,20 @@
|
|
|
1403
1452
|
// Inline function 'kotlin.contracts.contract' call
|
|
1404
1453
|
var tmp$ret$2;
|
|
1405
1454
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseMapperCondition.<anonymous>' call
|
|
1406
|
-
tmp$ret$2 = 'status == ' + _this__u8e3s4.
|
|
1455
|
+
tmp$ret$2 = 'status == ' + _this__u8e3s4.qi_1 + ' && ';
|
|
1407
1456
|
tmp$ret$3 = tmp$ret$2;
|
|
1408
1457
|
tmp_1 = tmp$ret$3;
|
|
1409
1458
|
}
|
|
1410
1459
|
var tmp_2 = orEmptyString_0(tmp_1);
|
|
1411
|
-
var tmp_3 = Companion_getInstance_2().
|
|
1460
|
+
var tmp_3 = Companion_getInstance_2().si(_this__u8e3s4.qi_1);
|
|
1412
1461
|
var tmp$ret$5;
|
|
1413
1462
|
// Inline function 'kotlin.takeIf' call
|
|
1414
|
-
var tmp1_takeIf = _this__u8e3s4.
|
|
1463
|
+
var tmp1_takeIf = _this__u8e3s4.qi_1;
|
|
1415
1464
|
// Inline function 'kotlin.contracts.contract' call
|
|
1416
1465
|
var tmp_4;
|
|
1417
1466
|
var tmp$ret$4;
|
|
1418
1467
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseMapperCondition.<anonymous>' call
|
|
1419
|
-
tmp$ret$4 = !Companion_getInstance_2().
|
|
1468
|
+
tmp$ret$4 = !Companion_getInstance_2().mk(tmp1_takeIf);
|
|
1420
1469
|
if (tmp$ret$4) {
|
|
1421
1470
|
tmp_4 = tmp1_takeIf;
|
|
1422
1471
|
} else {
|
|
@@ -1444,12 +1493,12 @@
|
|
|
1444
1493
|
Companion_getInstance_2();
|
|
1445
1494
|
var tmp$ret$9;
|
|
1446
1495
|
// Inline function 'kotlin.takeIf' call
|
|
1447
|
-
var tmp2_takeIf = _this__u8e3s4.
|
|
1496
|
+
var tmp2_takeIf = _this__u8e3s4.qi_1;
|
|
1448
1497
|
// Inline function 'kotlin.contracts.contract' call
|
|
1449
1498
|
var tmp_6;
|
|
1450
1499
|
var tmp$ret$8;
|
|
1451
1500
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseMapperCondition.<anonymous>' call
|
|
1452
|
-
tmp$ret$8 = Companion_getInstance_2().
|
|
1501
|
+
tmp$ret$8 = Companion_getInstance_2().mk(tmp2_takeIf);
|
|
1453
1502
|
if (tmp$ret$8) {
|
|
1454
1503
|
tmp_6 = tmp2_takeIf;
|
|
1455
1504
|
} else {
|
|
@@ -1466,7 +1515,7 @@
|
|
|
1466
1515
|
// Inline function 'kotlin.contracts.contract' call
|
|
1467
1516
|
var tmp$ret$10;
|
|
1468
1517
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseMapperCondition.<anonymous>' call
|
|
1469
|
-
tmp$ret$10 = 'status == ' + _this__u8e3s4.
|
|
1518
|
+
tmp$ret$10 = 'status == ' + _this__u8e3s4.qi_1 + ' && ';
|
|
1470
1519
|
tmp$ret$11 = tmp$ret$10;
|
|
1471
1520
|
tmp_7 = tmp$ret$11;
|
|
1472
1521
|
}
|
|
@@ -1475,22 +1524,22 @@
|
|
|
1475
1524
|
Companion_getInstance_2();
|
|
1476
1525
|
Companion_getInstance_2();
|
|
1477
1526
|
Companion_getInstance_2();
|
|
1478
|
-
var tmp_9 = $this.
|
|
1479
|
-
var tmp_10 = $this.
|
|
1527
|
+
var tmp_9 = $this.hi(_this__u8e3s4.ri_1.bi_1);
|
|
1528
|
+
var tmp_10 = $this.hi(_this__u8e3s4.ri_1.bi_1);
|
|
1480
1529
|
Companion_getInstance_2();
|
|
1481
1530
|
Companion_getInstance_2();
|
|
1482
1531
|
Companion_getInstance_2();
|
|
1483
1532
|
Companion_getInstance_2();
|
|
1484
|
-
var tmp_11 = Companion_getInstance_2().
|
|
1485
|
-
var tmp_12 = emitContentType_0(_this__u8e3s4.
|
|
1533
|
+
var tmp_11 = Companion_getInstance_2().si(_this__u8e3s4.qi_1);
|
|
1534
|
+
var tmp_12 = emitContentType_0(_this__u8e3s4.ri_1);
|
|
1486
1535
|
var tmp$ret$13;
|
|
1487
1536
|
// Inline function 'kotlin.takeIf' call
|
|
1488
|
-
var tmp3_takeIf = _this__u8e3s4.
|
|
1537
|
+
var tmp3_takeIf = _this__u8e3s4.qi_1;
|
|
1489
1538
|
// Inline function 'kotlin.contracts.contract' call
|
|
1490
1539
|
var tmp_13;
|
|
1491
1540
|
var tmp$ret$12;
|
|
1492
1541
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseMapperCondition.<anonymous>' call
|
|
1493
|
-
tmp$ret$12 = !Companion_getInstance_2().
|
|
1542
|
+
tmp$ret$12 = !Companion_getInstance_2().mk(tmp3_takeIf);
|
|
1494
1543
|
if (tmp$ret$12) {
|
|
1495
1544
|
tmp_13 = tmp3_takeIf;
|
|
1496
1545
|
} else {
|
|
@@ -1511,13 +1560,13 @@
|
|
|
1511
1560
|
tmp$ret$15 = tmp$ret$14;
|
|
1512
1561
|
tmp_14 = tmp$ret$15;
|
|
1513
1562
|
}
|
|
1514
|
-
tmp = trimMargin('\n |' + ' ' + ' ' + ' ' + tmp_8 + 'content?.type == "' + _this__u8e3s4.
|
|
1563
|
+
tmp = trimMargin('\n |' + ' ' + ' ' + ' ' + tmp_8 + 'content?.type == "' + _this__u8e3s4.ri_1.ai_1 + '" -> contentMapper\n |' + ' ' + ' ' + ' ' + ' ' + '.read<' + tmp_9 + '>(content, typeOf<' + tmp_10 + '>().javaType)\n |' + ' ' + ' ' + ' ' + ' ' + '.let{ Response' + tmp_11 + tmp_12 + '(' + orEmptyString_0(tmp_14) + 'headers, it.body) }\n ');
|
|
1515
1564
|
}
|
|
1516
1565
|
return tmp;
|
|
1517
1566
|
}
|
|
1518
1567
|
function Companion() {
|
|
1519
1568
|
Companion_instance = this;
|
|
1520
|
-
this.
|
|
1569
|
+
this.nk_1 = listOf(['as', 'break', 'class', 'continue', 'do', 'else', 'false', 'for', 'fun', 'if', 'in', 'interface', 'is', 'null', 'object', 'package', 'return', 'super', 'this', 'throw', 'true', 'try', 'typealias', 'typeof', 'val', 'var', 'when', 'while']);
|
|
1521
1570
|
}
|
|
1522
1571
|
var Companion_instance;
|
|
1523
1572
|
function Companion_getInstance_0() {
|
|
@@ -1527,30 +1576,30 @@
|
|
|
1527
1576
|
}
|
|
1528
1577
|
function KotlinEmitter$emit$lambda($this_emit, this$0) {
|
|
1529
1578
|
return function () {
|
|
1530
|
-
return trimMargin('|data class ' + $this_emit.
|
|
1579
|
+
return trimMargin('|data class ' + $this_emit.xi_1 + '(\n |' + this$0.zi($this_emit.yi_1) + '\n |)\n |');
|
|
1531
1580
|
};
|
|
1532
1581
|
}
|
|
1533
1582
|
function KotlinEmitter$emit$lambda$lambda(this$0) {
|
|
1534
1583
|
return function (it) {
|
|
1535
1584
|
Companion_getInstance_2();
|
|
1536
|
-
return ' ' + 'val ' + this$0.
|
|
1585
|
+
return ' ' + 'val ' + this$0.aj(it);
|
|
1537
1586
|
};
|
|
1538
1587
|
}
|
|
1539
1588
|
function KotlinEmitter$emit$lambda_0($this_emit, this$0) {
|
|
1540
1589
|
return function () {
|
|
1541
|
-
return joinToString($this_emit.
|
|
1590
|
+
return joinToString($this_emit.bj_1, ',\n', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda$lambda(this$0));
|
|
1542
1591
|
};
|
|
1543
1592
|
}
|
|
1544
1593
|
function KotlinEmitter$emit$lambda_1(this$0, $this_emit) {
|
|
1545
1594
|
return function () {
|
|
1546
|
-
return this$0.
|
|
1595
|
+
return this$0.fj($this_emit.cj_1) + ': ' + this$0.hi($this_emit.dj_1) + ($this_emit.ej_1 ? '? = null' : '');
|
|
1547
1596
|
};
|
|
1548
1597
|
}
|
|
1549
1598
|
function KotlinEmitter$emit$lambda_2(this$0, $this_emit) {
|
|
1550
1599
|
return function () {
|
|
1551
1600
|
var tmp$ret$2;
|
|
1552
1601
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
1553
|
-
var tmp1_mapIndexed = split($this_emit.
|
|
1602
|
+
var tmp1_mapIndexed = split($this_emit.gj_1, ['-']);
|
|
1554
1603
|
var tmp$ret$1;
|
|
1555
1604
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
1556
1605
|
var tmp0_mapIndexedTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_mapIndexed, 10));
|
|
@@ -1563,12 +1612,12 @@
|
|
|
1563
1612
|
var tmp1 = index;
|
|
1564
1613
|
index = tmp1 + 1 | 0;
|
|
1565
1614
|
var tmp2__anonymous__z9zvc9 = checkIndexOverflow(tmp1);
|
|
1566
|
-
tmp$ret$0 = tmp2__anonymous__z9zvc9 > 0 ? Companion_getInstance_2().
|
|
1615
|
+
tmp$ret$0 = tmp2__anonymous__z9zvc9 > 0 ? Companion_getInstance_2().si(item) : item;
|
|
1567
1616
|
tmp0_mapIndexedTo.a(tmp$ret$0);
|
|
1568
1617
|
}
|
|
1569
1618
|
tmp$ret$1 = tmp0_mapIndexedTo;
|
|
1570
1619
|
tmp$ret$2 = tmp$ret$1;
|
|
1571
|
-
return this$0.
|
|
1620
|
+
return this$0.ok(joinToString(tmp$ret$2, ''));
|
|
1572
1621
|
};
|
|
1573
1622
|
}
|
|
1574
1623
|
function KotlinEmitter$emit$lambda_3($this_emit) {
|
|
@@ -1583,10 +1632,10 @@
|
|
|
1583
1632
|
tmp = 'Any';
|
|
1584
1633
|
} else {
|
|
1585
1634
|
if (tmp0_subject instanceof Custom) {
|
|
1586
|
-
tmp = $this_emit.
|
|
1635
|
+
tmp = $this_emit.kj_1;
|
|
1587
1636
|
} else {
|
|
1588
1637
|
if (tmp0_subject instanceof Primitive) {
|
|
1589
|
-
var tmp1_subject = $this_emit.
|
|
1638
|
+
var tmp1_subject = $this_emit.hj_1;
|
|
1590
1639
|
var tmp0 = tmp1_subject.q4_1;
|
|
1591
1640
|
var tmp_0;
|
|
1592
1641
|
switch (tmp0) {
|
|
@@ -1613,13 +1662,13 @@
|
|
|
1613
1662
|
// Inline function 'kotlin.contracts.contract' call
|
|
1614
1663
|
var tmp$ret$0;
|
|
1615
1664
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
|
|
1616
|
-
tmp$ret$0 = $this_emit.
|
|
1665
|
+
tmp$ret$0 = $this_emit.ti() ? 'List<' + tmp0_let + '>' : tmp0_let;
|
|
1617
1666
|
tmp$ret$1 = tmp$ret$0;
|
|
1618
1667
|
var tmp1_let = tmp$ret$1;
|
|
1619
1668
|
// Inline function 'kotlin.contracts.contract' call
|
|
1620
1669
|
var tmp$ret$2;
|
|
1621
1670
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
|
|
1622
|
-
tmp$ret$2 = $this_emit.
|
|
1671
|
+
tmp$ret$2 = $this_emit.pk() ? 'Map<String, ' + tmp1_let + '>' : tmp1_let;
|
|
1623
1672
|
tmp$ret$3 = tmp$ret$2;
|
|
1624
1673
|
return tmp$ret$3;
|
|
1625
1674
|
};
|
|
@@ -1637,7 +1686,7 @@
|
|
|
1637
1686
|
}
|
|
1638
1687
|
function KotlinEmitter$emit$lambda$lambda_0(this$0) {
|
|
1639
1688
|
return function (it) {
|
|
1640
|
-
return this$0.
|
|
1689
|
+
return this$0.ok(invoke$sanitize_0(it)) + '("' + it + '")';
|
|
1641
1690
|
};
|
|
1642
1691
|
}
|
|
1643
1692
|
function KotlinEmitter$emit$lambda_4($this_emit, this$0) {
|
|
@@ -1645,49 +1694,58 @@
|
|
|
1645
1694
|
Companion_getInstance_2();
|
|
1646
1695
|
Companion_getInstance_2();
|
|
1647
1696
|
var tmp = ',\n' + ' ';
|
|
1648
|
-
|
|
1697
|
+
var tmp_0 = joinToString($this_emit.oj_1, tmp, VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda$lambda_0(this$0));
|
|
1698
|
+
Companion_getInstance_2();
|
|
1699
|
+
Companion_getInstance_2();
|
|
1700
|
+
Companion_getInstance_2();
|
|
1701
|
+
Companion_getInstance_2();
|
|
1702
|
+
return 'enum class ' + $this_emit.nj_1 + ' (val label: String){\n' + ' ' + tmp_0 + ';\n\n' + ' ' + 'override fun toString(): String {\n' + ' ' + ' ' + 'return label\n' + ' ' + '}\n}\n';
|
|
1649
1703
|
};
|
|
1650
1704
|
}
|
|
1651
1705
|
function KotlinEmitter$emit$lambda_5($this_emit, this$0) {
|
|
1652
1706
|
return function () {
|
|
1653
|
-
return trimMargin('data class ' + $this_emit.
|
|
1707
|
+
return trimMargin('data class ' + $this_emit.pj_1 + '(val value: String)\n |fun ' + $this_emit.pj_1 + '.validate() = ' + this$0.rj($this_emit.qj_1) + '\n |');
|
|
1654
1708
|
};
|
|
1655
1709
|
}
|
|
1656
1710
|
function KotlinEmitter$emit$lambda_6($this_emit) {
|
|
1657
1711
|
return function () {
|
|
1658
|
-
return 'Regex(' + $this_emit.
|
|
1712
|
+
return 'Regex(' + $this_emit.sj_1 + ').find(value)';
|
|
1659
1713
|
};
|
|
1660
1714
|
}
|
|
1661
1715
|
function KotlinEmitter$emit$lambda$lambda_1(this$0, $this_emit) {
|
|
1662
1716
|
return function (it) {
|
|
1663
1717
|
Companion_getInstance_2();
|
|
1664
|
-
var tmp0_safe_receiver = it.
|
|
1718
|
+
var tmp0_safe_receiver = it.zh_1;
|
|
1665
1719
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : emitContentType_0(tmp0_safe_receiver);
|
|
1666
1720
|
var tmp = tmp1_elvis_lhs == null ? 'Unit' : tmp1_elvis_lhs;
|
|
1667
|
-
var
|
|
1668
|
-
var
|
|
1669
|
-
var
|
|
1670
|
-
var
|
|
1671
|
-
var
|
|
1672
|
-
var
|
|
1673
|
-
var
|
|
1674
|
-
var
|
|
1675
|
-
var
|
|
1676
|
-
var
|
|
1677
|
-
|
|
1678
|
-
|
|
1721
|
+
var tmp2_safe_receiver = it.zh_1;
|
|
1722
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.bi_1;
|
|
1723
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : this$0.hi(tmp3_safe_receiver);
|
|
1724
|
+
var tmp_0 = tmp4_elvis_lhs == null ? 'Unit' : tmp4_elvis_lhs;
|
|
1725
|
+
var tmp5_safe_receiver = it.zh_1;
|
|
1726
|
+
var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.bi_1;
|
|
1727
|
+
var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : this$0.hi(tmp6_safe_receiver);
|
|
1728
|
+
var tmp_1 = tmp7_elvis_lhs == null ? 'Unit' : tmp7_elvis_lhs;
|
|
1729
|
+
var tmp_2 = emitRequestSignature_0($this_emit, this$0, it.zh_1);
|
|
1730
|
+
var tmp_3 = emitPath_0($this_emit.ki_1, this$0);
|
|
1731
|
+
var tmp_4 = emitMap_0($this_emit.li_1, this$0);
|
|
1732
|
+
var tmp_5 = emitMap_0($this_emit.mi_1, this$0);
|
|
1733
|
+
var tmp8_safe_receiver = it.zh_1;
|
|
1734
|
+
var tmp_6;
|
|
1735
|
+
if (tmp8_safe_receiver == null) {
|
|
1736
|
+
tmp_6 = null;
|
|
1679
1737
|
} else {
|
|
1680
1738
|
var tmp$ret$1;
|
|
1681
1739
|
// Inline function 'kotlin.let' call
|
|
1682
1740
|
// Inline function 'kotlin.contracts.contract' call
|
|
1683
1741
|
var tmp$ret$0;
|
|
1684
1742
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>.<anonymous>' call
|
|
1685
|
-
tmp$ret$0 = '
|
|
1743
|
+
tmp$ret$0 = 'Wirespec.Content("' + tmp8_safe_receiver.ai_1 + '", body)';
|
|
1686
1744
|
tmp$ret$1 = tmp$ret$0;
|
|
1687
|
-
|
|
1745
|
+
tmp_6 = tmp$ret$1;
|
|
1688
1746
|
}
|
|
1689
|
-
var
|
|
1690
|
-
return ' ' + 'class Request' + tmp + ' ' + tmp_0 + ': Request<' + tmp_1 + '> {
|
|
1747
|
+
var tmp9_elvis_lhs = tmp_6;
|
|
1748
|
+
return ' ' + 'class Request' + tmp + '(override val path:String, override val method: Wirespec.Method, override val query: Map<String, List<Any?>>, override val headers: Map<String, List<Any?>>, override val content:Wirespec.Content<' + tmp_0 + '>?) : Request<' + tmp_1 + '> { constructor' + tmp_2 + ': this(path = "' + tmp_3 + '", method = Wirespec.Method.' + $this_emit.ji_1.p4_1 + ', query = mapOf<String, List<Any?>>(' + tmp_4 + '), headers = mapOf<String, List<Any?>>(' + tmp_5 + '), content = ' + (tmp9_elvis_lhs == null ? 'null' : tmp9_elvis_lhs) + ')}';
|
|
1691
1749
|
};
|
|
1692
1750
|
}
|
|
1693
1751
|
function KotlinEmitter$emit$lambda$lambda_2(it) {
|
|
@@ -1701,10 +1759,10 @@
|
|
|
1701
1759
|
function KotlinEmitter$emit$lambda$lambda_4(this$0) {
|
|
1702
1760
|
return function (it) {
|
|
1703
1761
|
Companion_getInstance_2();
|
|
1704
|
-
var tmp0_safe_receiver = it.
|
|
1762
|
+
var tmp0_safe_receiver = it.ri_1;
|
|
1705
1763
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : emitContentType_0(tmp0_safe_receiver);
|
|
1706
1764
|
var tmp = tmp1_elvis_lhs == null ? 'Unit' : tmp1_elvis_lhs;
|
|
1707
|
-
var tmp2_safe_receiver = it.
|
|
1765
|
+
var tmp2_safe_receiver = it.ri_1;
|
|
1708
1766
|
var tmp_0;
|
|
1709
1767
|
if (tmp2_safe_receiver == null) {
|
|
1710
1768
|
tmp_0 = null;
|
|
@@ -1714,17 +1772,17 @@
|
|
|
1714
1772
|
// Inline function 'kotlin.contracts.contract' call
|
|
1715
1773
|
var tmp$ret$0;
|
|
1716
1774
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>.<anonymous>' call
|
|
1717
|
-
tmp$ret$0 = ', body: ' + this$0.
|
|
1775
|
+
tmp$ret$0 = ', body: ' + this$0.hi(tmp2_safe_receiver.bi_1);
|
|
1718
1776
|
tmp$ret$1 = tmp$ret$0;
|
|
1719
1777
|
tmp_0 = tmp$ret$1;
|
|
1720
1778
|
}
|
|
1721
1779
|
var tmp3_elvis_lhs = tmp_0;
|
|
1722
1780
|
var tmp_1 = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
|
|
1723
|
-
var tmp4_safe_receiver = it.
|
|
1724
|
-
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.
|
|
1725
|
-
var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : this$0.
|
|
1781
|
+
var tmp4_safe_receiver = it.ri_1;
|
|
1782
|
+
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.bi_1;
|
|
1783
|
+
var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : this$0.hi(tmp5_safe_receiver);
|
|
1726
1784
|
var tmp_2 = tmp6_elvis_lhs == null ? 'Unit' : tmp6_elvis_lhs;
|
|
1727
|
-
var tmp7_safe_receiver = it.
|
|
1785
|
+
var tmp7_safe_receiver = it.ri_1;
|
|
1728
1786
|
var tmp_3;
|
|
1729
1787
|
if (tmp7_safe_receiver == null) {
|
|
1730
1788
|
tmp_3 = null;
|
|
@@ -1734,22 +1792,22 @@
|
|
|
1734
1792
|
// Inline function 'kotlin.contracts.contract' call
|
|
1735
1793
|
var tmp$ret$2;
|
|
1736
1794
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>.<anonymous>' call
|
|
1737
|
-
tmp$ret$2 = '
|
|
1795
|
+
tmp$ret$2 = 'Wirespec.Content("' + tmp7_safe_receiver.ai_1 + '", body)';
|
|
1738
1796
|
tmp$ret$3 = tmp$ret$2;
|
|
1739
1797
|
tmp_3 = tmp$ret$3;
|
|
1740
1798
|
}
|
|
1741
1799
|
var tmp8_elvis_lhs = tmp_3;
|
|
1742
|
-
return ' ' + 'class Response' + it.
|
|
1800
|
+
return ' ' + 'class Response' + it.qi_1 + tmp + ' (override val headers: Map<String, List<Any?>>' + tmp_1 + ' ): Response' + it.qi_1 + '<' + tmp_2 + '> { override val status = ' + it.qi_1 + '; override val content = ' + (tmp8_elvis_lhs == null ? 'null' : tmp8_elvis_lhs) + '}';
|
|
1743
1801
|
};
|
|
1744
1802
|
}
|
|
1745
1803
|
function KotlinEmitter$emit$lambda$lambda_5(this$0) {
|
|
1746
1804
|
return function (it) {
|
|
1747
1805
|
Companion_getInstance_2();
|
|
1748
|
-
var tmp = Companion_getInstance_2().
|
|
1749
|
-
var tmp0_safe_receiver = it.
|
|
1806
|
+
var tmp = Companion_getInstance_2().si(it.qi_1);
|
|
1807
|
+
var tmp0_safe_receiver = it.ri_1;
|
|
1750
1808
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : emitContentType_0(tmp0_safe_receiver);
|
|
1751
1809
|
var tmp_0 = tmp1_elvis_lhs == null ? 'Unit' : tmp1_elvis_lhs;
|
|
1752
|
-
var tmp2_safe_receiver = it.
|
|
1810
|
+
var tmp2_safe_receiver = it.ri_1;
|
|
1753
1811
|
var tmp_1;
|
|
1754
1812
|
if (tmp2_safe_receiver == null) {
|
|
1755
1813
|
tmp_1 = null;
|
|
@@ -1759,18 +1817,18 @@
|
|
|
1759
1817
|
// Inline function 'kotlin.contracts.contract' call
|
|
1760
1818
|
var tmp$ret$0;
|
|
1761
1819
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>.<anonymous>' call
|
|
1762
|
-
tmp$ret$0 = ', body: ' + this$0.
|
|
1820
|
+
tmp$ret$0 = ', body: ' + this$0.hi(tmp2_safe_receiver.bi_1);
|
|
1763
1821
|
tmp$ret$1 = tmp$ret$0;
|
|
1764
1822
|
tmp_1 = tmp$ret$1;
|
|
1765
1823
|
}
|
|
1766
1824
|
var tmp3_elvis_lhs = tmp_1;
|
|
1767
1825
|
var tmp_2 = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
|
|
1768
|
-
var tmp_3 = Companion_getInstance_2().
|
|
1769
|
-
var tmp4_safe_receiver = it.
|
|
1770
|
-
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.
|
|
1771
|
-
var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : this$0.
|
|
1826
|
+
var tmp_3 = Companion_getInstance_2().si(it.qi_1);
|
|
1827
|
+
var tmp4_safe_receiver = it.ri_1;
|
|
1828
|
+
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.bi_1;
|
|
1829
|
+
var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : this$0.hi(tmp5_safe_receiver);
|
|
1772
1830
|
var tmp_4 = tmp6_elvis_lhs == null ? 'Unit' : tmp6_elvis_lhs;
|
|
1773
|
-
var tmp7_safe_receiver = it.
|
|
1831
|
+
var tmp7_safe_receiver = it.ri_1;
|
|
1774
1832
|
var tmp_5;
|
|
1775
1833
|
if (tmp7_safe_receiver == null) {
|
|
1776
1834
|
tmp_5 = null;
|
|
@@ -1780,7 +1838,7 @@
|
|
|
1780
1838
|
// Inline function 'kotlin.contracts.contract' call
|
|
1781
1839
|
var tmp$ret$2;
|
|
1782
1840
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>.<anonymous>' call
|
|
1783
|
-
tmp$ret$2 = '
|
|
1841
|
+
tmp$ret$2 = 'Wirespec.Content("' + tmp7_safe_receiver.ai_1 + '", body)';
|
|
1784
1842
|
tmp$ret$3 = tmp$ret$2;
|
|
1785
1843
|
tmp_5 = tmp$ret$3;
|
|
1786
1844
|
}
|
|
@@ -1791,11 +1849,11 @@
|
|
|
1791
1849
|
function KotlinEmitter$emit$lambda_7($this_emit, this$0) {
|
|
1792
1850
|
return function () {
|
|
1793
1851
|
Companion_getInstance_2();
|
|
1794
|
-
var tmp = joinToString($this_emit.
|
|
1852
|
+
var tmp = joinToString($this_emit.oi_1, '\n', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda$lambda_1(this$0, $this_emit));
|
|
1795
1853
|
Companion_getInstance_2();
|
|
1796
1854
|
var tmp$ret$2;
|
|
1797
1855
|
// Inline function 'kotlin.collections.map' call
|
|
1798
|
-
var tmp1_map = $this_emit.
|
|
1856
|
+
var tmp1_map = $this_emit.pi_1;
|
|
1799
1857
|
var tmp$ret$1;
|
|
1800
1858
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1801
1859
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -1804,7 +1862,7 @@
|
|
|
1804
1862
|
var item = tmp0_iterator.e();
|
|
1805
1863
|
var tmp$ret$0;
|
|
1806
1864
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
|
|
1807
|
-
tmp$ret$0 = groupStatus_0(item.
|
|
1865
|
+
tmp$ret$0 = groupStatus_0(item.qi_1);
|
|
1808
1866
|
tmp0_mapTo.a(tmp$ret$0);
|
|
1809
1867
|
}
|
|
1810
1868
|
tmp$ret$1 = tmp0_mapTo;
|
|
@@ -1815,7 +1873,7 @@
|
|
|
1815
1873
|
// Inline function 'kotlin.collections.map' call
|
|
1816
1874
|
var tmp$ret$5;
|
|
1817
1875
|
// Inline function 'kotlin.collections.filter' call
|
|
1818
|
-
var tmp3_filter = $this_emit.
|
|
1876
|
+
var tmp3_filter = $this_emit.pi_1;
|
|
1819
1877
|
var tmp$ret$4;
|
|
1820
1878
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1821
1879
|
var tmp2_filterTo = ArrayList_init_$Create$();
|
|
@@ -1824,7 +1882,7 @@
|
|
|
1824
1882
|
var element = tmp0_iterator_0.e();
|
|
1825
1883
|
var tmp$ret$3;
|
|
1826
1884
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
|
|
1827
|
-
tmp$ret$3 = Companion_getInstance_2().
|
|
1885
|
+
tmp$ret$3 = Companion_getInstance_2().mk(element.qi_1);
|
|
1828
1886
|
if (tmp$ret$3) {
|
|
1829
1887
|
tmp2_filterTo.a(element);
|
|
1830
1888
|
}
|
|
@@ -1840,7 +1898,7 @@
|
|
|
1840
1898
|
var item_0 = tmp0_iterator_1.e();
|
|
1841
1899
|
var tmp$ret$6;
|
|
1842
1900
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
|
|
1843
|
-
tmp$ret$6 = item_0.
|
|
1901
|
+
tmp$ret$6 = item_0.qi_1;
|
|
1844
1902
|
tmp4_mapTo.a(tmp$ret$6);
|
|
1845
1903
|
}
|
|
1846
1904
|
tmp$ret$7 = tmp4_mapTo;
|
|
@@ -1851,7 +1909,7 @@
|
|
|
1851
1909
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
1852
1910
|
var tmp$ret$11;
|
|
1853
1911
|
// Inline function 'kotlin.collections.filter' call
|
|
1854
|
-
var tmp7_filter = $this_emit.
|
|
1912
|
+
var tmp7_filter = $this_emit.pi_1;
|
|
1855
1913
|
var tmp$ret$10;
|
|
1856
1914
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1857
1915
|
var tmp6_filterTo = ArrayList_init_$Create$();
|
|
@@ -1860,7 +1918,7 @@
|
|
|
1860
1918
|
var element_0 = tmp0_iterator_2.e();
|
|
1861
1919
|
var tmp$ret$9;
|
|
1862
1920
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
|
|
1863
|
-
tmp$ret$9 = Companion_getInstance_2().
|
|
1921
|
+
tmp$ret$9 = Companion_getInstance_2().mk(element_0.qi_1);
|
|
1864
1922
|
if (tmp$ret$9) {
|
|
1865
1923
|
tmp6_filterTo.a(element_0);
|
|
1866
1924
|
}
|
|
@@ -1875,8 +1933,8 @@
|
|
|
1875
1933
|
var e = tmp0_iterator_3.e();
|
|
1876
1934
|
var tmp$ret$12;
|
|
1877
1935
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
|
|
1878
|
-
var tmp0_safe_receiver = e.
|
|
1879
|
-
tmp$ret$12 = to(e.
|
|
1936
|
+
var tmp0_safe_receiver = e.ri_1;
|
|
1937
|
+
tmp$ret$12 = to(e.qi_1, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ai_1);
|
|
1880
1938
|
var key = tmp$ret$12;
|
|
1881
1939
|
if (set.a(key)) {
|
|
1882
1940
|
list.a(e);
|
|
@@ -1889,7 +1947,7 @@
|
|
|
1889
1947
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
1890
1948
|
var tmp$ret$16;
|
|
1891
1949
|
// Inline function 'kotlin.collections.filter' call
|
|
1892
|
-
var tmp10_filter = $this_emit.
|
|
1950
|
+
var tmp10_filter = $this_emit.pi_1;
|
|
1893
1951
|
var tmp$ret$15;
|
|
1894
1952
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1895
1953
|
var tmp9_filterTo = ArrayList_init_$Create$();
|
|
@@ -1898,7 +1956,7 @@
|
|
|
1898
1956
|
var element_1 = tmp0_iterator_4.e();
|
|
1899
1957
|
var tmp$ret$14;
|
|
1900
1958
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
|
|
1901
|
-
tmp$ret$14 = !Companion_getInstance_2().
|
|
1959
|
+
tmp$ret$14 = !Companion_getInstance_2().mk(element_1.qi_1);
|
|
1902
1960
|
if (tmp$ret$14) {
|
|
1903
1961
|
tmp9_filterTo.a(element_1);
|
|
1904
1962
|
}
|
|
@@ -1913,8 +1971,8 @@
|
|
|
1913
1971
|
var e_0 = tmp0_iterator_5.e();
|
|
1914
1972
|
var tmp$ret$17;
|
|
1915
1973
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
|
|
1916
|
-
var tmp0_safe_receiver_0 = e_0.
|
|
1917
|
-
tmp$ret$17 = to(e_0.
|
|
1974
|
+
var tmp0_safe_receiver_0 = e_0.ri_1;
|
|
1975
|
+
tmp$ret$17 = to(e_0.qi_1, tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.ai_1);
|
|
1918
1976
|
var key_0 = tmp$ret$17;
|
|
1919
1977
|
if (set_0.a(key_0)) {
|
|
1920
1978
|
list_0.a(e_0);
|
|
@@ -1923,33 +1981,34 @@
|
|
|
1923
1981
|
tmp$ret$18 = list_0;
|
|
1924
1982
|
var tmp_6 = tmp$ret$18;
|
|
1925
1983
|
var tmp_7 = joinToString(tmp_6, '\n', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda$lambda_5(this$0));
|
|
1926
|
-
var tmp_8 = Companion_getInstance_2().
|
|
1984
|
+
var tmp_8 = Companion_getInstance_2().tj($this_emit.ii_1);
|
|
1927
1985
|
Companion_getInstance_2();
|
|
1928
1986
|
Companion_getInstance_2();
|
|
1929
1987
|
Companion_getInstance_2();
|
|
1930
|
-
var tmp_9 = emitSegment_0($this_emit.
|
|
1988
|
+
var tmp_9 = emitSegment_0($this_emit.ki_1, this$0);
|
|
1931
1989
|
Companion_getInstance_2();
|
|
1932
1990
|
Companion_getInstance_2();
|
|
1933
|
-
var tmp_10 =
|
|
1991
|
+
var tmp_10 = emitRequestMapper($this_emit.oi_1, this$0);
|
|
1934
1992
|
Companion_getInstance_2();
|
|
1935
1993
|
Companion_getInstance_2();
|
|
1994
|
+
var tmp_11 = emitResponseMapper_0($this_emit.pi_1, this$0);
|
|
1936
1995
|
Companion_getInstance_2();
|
|
1937
|
-
return trimMargin('interface ' + $this_emit.
|
|
1996
|
+
return trimMargin('interface ' + $this_emit.ii_1 + ' {\n |' + ' ' + 'sealed interface Request<T>: Wirespec.Request<T>\n |' + tmp + '\n |' + ' ' + 'sealed interface Response<T>: Wirespec.Response<T>\n |' + tmp_1 + '\n |' + tmp_3 + '\n |' + tmp_5 + '\n |' + tmp_7 + '\n |suspend fun ' + tmp_8 + '(request: Request<*>): Response<*>\n |' + ' ' + 'companion object{\n |' + ' ' + ' ' + 'const val PATH = "' + tmp_9 + '"\n |' + ' ' + ' ' + tmp_10 + '\n |' + ' ' + ' ' + tmp_11 + '\n |' + ' ' + '}\n |}\n |');
|
|
1938
1997
|
};
|
|
1939
1998
|
}
|
|
1940
1999
|
function KotlinEmitter$emitRequestSignature$lambda(this$0) {
|
|
1941
2000
|
return function (it) {
|
|
1942
|
-
return this$0.
|
|
2001
|
+
return this$0.aj(it);
|
|
1943
2002
|
};
|
|
1944
2003
|
}
|
|
1945
2004
|
function KotlinEmitter$emitSegment$lambda(it) {
|
|
1946
2005
|
var tmp0_subject = it;
|
|
1947
2006
|
var tmp;
|
|
1948
2007
|
if (tmp0_subject instanceof Param) {
|
|
1949
|
-
tmp = '{' + it.
|
|
2008
|
+
tmp = '{' + it.vi_1.gj_1 + '}';
|
|
1950
2009
|
} else {
|
|
1951
2010
|
if (tmp0_subject instanceof Literal) {
|
|
1952
|
-
tmp = it.
|
|
2011
|
+
tmp = it.uj_1;
|
|
1953
2012
|
} else {
|
|
1954
2013
|
noWhenBranchMatchedException();
|
|
1955
2014
|
}
|
|
@@ -1958,7 +2017,7 @@
|
|
|
1958
2017
|
}
|
|
1959
2018
|
function KotlinEmitter$emitMap$lambda(this$0) {
|
|
1960
2019
|
return function (it) {
|
|
1961
|
-
return '"' + this$0.
|
|
2020
|
+
return '"' + this$0.fj(it.cj_1) + '" to listOf(' + this$0.fj(it.cj_1) + ')';
|
|
1962
2021
|
};
|
|
1963
2022
|
}
|
|
1964
2023
|
function KotlinEmitter$emit$lambda_8($this_emit) {
|
|
@@ -1966,10 +2025,10 @@
|
|
|
1966
2025
|
var tmp0_subject = $this_emit;
|
|
1967
2026
|
var tmp;
|
|
1968
2027
|
if (tmp0_subject instanceof Literal) {
|
|
1969
|
-
tmp = $this_emit.
|
|
2028
|
+
tmp = $this_emit.uj_1;
|
|
1970
2029
|
} else {
|
|
1971
2030
|
if (tmp0_subject instanceof Param) {
|
|
1972
|
-
tmp = '${' + $this_emit.
|
|
2031
|
+
tmp = '${' + $this_emit.vi_1.gj_1 + '}';
|
|
1973
2032
|
} else {
|
|
1974
2033
|
noWhenBranchMatchedException();
|
|
1975
2034
|
}
|
|
@@ -1982,6 +2041,11 @@
|
|
|
1982
2041
|
return emit_2(it, this$0);
|
|
1983
2042
|
};
|
|
1984
2043
|
}
|
|
2044
|
+
function KotlinEmitter$emitRequestMapper$lambda(this$0) {
|
|
2045
|
+
return function (it) {
|
|
2046
|
+
return emitRequestMapperCondition(it, this$0);
|
|
2047
|
+
};
|
|
2048
|
+
}
|
|
1985
2049
|
function KotlinEmitter$emitResponseMapper$lambda(this$0) {
|
|
1986
2050
|
return function (it) {
|
|
1987
2051
|
return emitResponseMapperCondition_0(it, this$0);
|
|
@@ -2004,7 +2068,8 @@
|
|
|
2004
2068
|
Companion_getInstance_2();
|
|
2005
2069
|
Companion_getInstance_2();
|
|
2006
2070
|
Companion_getInstance_2();
|
|
2007
|
-
tmp.kk_1 = trimMargin('\n |
|
|
2071
|
+
tmp.kk_1 = trimMargin('\n |package community.flock.wirespec.kotlin\n |\n |import java.lang.reflect.Type\n |\n |interface Wirespec {\n |' + ' ' + 'enum class Method { GET, PUT, POST, DELETE, OPTIONS, HEAD, PATCH, TRACE }\n |' + ' ' + 'data class Content<T> (val type:String, val body:T )\n |' + ' ' + 'interface Request<T> { val path:String; val method: Method; val query: Map<String, List<Any?>>; val headers: Map<String, List<Any?>>; val content:Content<T>? }\n |' + ' ' + 'interface Response<T> { val status:Int; val headers: Map<String, List<Any?>>; val content:Content<T>? }\n |' + ' ' + 'interface ContentMapper<B> { fun <T> read(content: Content<B>, valueType: Type): Content<T> fun <T> write(content: Content<T>): Content<B> }\n |}\n ');
|
|
2072
|
+
this.lk_1 = 'import kotlin.reflect.typeOf\nimport kotlin.reflect.jvm.javaType\nimport community.flock.wirespec.kotlin.Wirespec\n';
|
|
2008
2073
|
}
|
|
2009
2074
|
protoOf(KotlinEmitter).th = function (ast) {
|
|
2010
2075
|
var tmp$ret$3;
|
|
@@ -2022,7 +2087,7 @@
|
|
|
2022
2087
|
var result = item.j3();
|
|
2023
2088
|
var tmp$ret$0;
|
|
2024
2089
|
// Inline function 'kotlin.text.trimStart' call
|
|
2025
|
-
var tmp0_trimStart = trimMargin('\n |' + (isBlank(this.jk_1) ? '' : 'package ' + this.jk_1) + '\n |' + (Companion_getInstance_2().
|
|
2090
|
+
var tmp0_trimStart = trimMargin('\n |' + (isBlank(this.jk_1) ? '' : 'package ' + this.jk_1) + '\n |' + (Companion_getInstance_2().xh(ast) ? this.lk_1 : '') + '\n |' + result + '\n ');
|
|
2026
2091
|
tmp$ret$0 = toString(trimStart(isCharSequence(tmp0_trimStart) ? tmp0_trimStart : THROW_CCE()));
|
|
2027
2092
|
tmp$ret$1 = to(name, tmp$ret$0);
|
|
2028
2093
|
tmp0_mapTo.a(tmp$ret$1);
|
|
@@ -2031,46 +2096,46 @@
|
|
|
2031
2096
|
tmp$ret$3 = tmp$ret$2;
|
|
2032
2097
|
return tmp$ret$3;
|
|
2033
2098
|
};
|
|
2034
|
-
protoOf(KotlinEmitter).
|
|
2035
|
-
return this.
|
|
2036
|
-
};
|
|
2037
|
-
protoOf(KotlinEmitter).yi = function (_this__u8e3s4) {
|
|
2038
|
-
return this.wj(_this__u8e3s4, this.rh_1, KotlinEmitter$emit$lambda_0(_this__u8e3s4, this));
|
|
2099
|
+
protoOf(KotlinEmitter).vj = function (_this__u8e3s4) {
|
|
2100
|
+
return this.wj(_this__u8e3s4, this.rh_1, KotlinEmitter$emit$lambda(_this__u8e3s4, this));
|
|
2039
2101
|
};
|
|
2040
2102
|
protoOf(KotlinEmitter).zi = function (_this__u8e3s4) {
|
|
2041
|
-
return this.xj(_this__u8e3s4, this.rh_1, KotlinEmitter$emit$
|
|
2103
|
+
return this.xj(_this__u8e3s4, this.rh_1, KotlinEmitter$emit$lambda_0(_this__u8e3s4, this));
|
|
2104
|
+
};
|
|
2105
|
+
protoOf(KotlinEmitter).aj = function (_this__u8e3s4) {
|
|
2106
|
+
return this.yj(_this__u8e3s4, this.rh_1, KotlinEmitter$emit$lambda_1(this, _this__u8e3s4));
|
|
2042
2107
|
};
|
|
2043
|
-
protoOf(KotlinEmitter).
|
|
2044
|
-
return this.
|
|
2108
|
+
protoOf(KotlinEmitter).fj = function (_this__u8e3s4) {
|
|
2109
|
+
return this.zj(_this__u8e3s4, this.rh_1, KotlinEmitter$emit$lambda_2(this, _this__u8e3s4));
|
|
2045
2110
|
};
|
|
2046
|
-
protoOf(KotlinEmitter).
|
|
2047
|
-
return this.
|
|
2111
|
+
protoOf(KotlinEmitter).hi = function (_this__u8e3s4) {
|
|
2112
|
+
return this.yh(_this__u8e3s4, this.rh_1, KotlinEmitter$emit$lambda_3(_this__u8e3s4));
|
|
2048
2113
|
};
|
|
2049
|
-
protoOf(KotlinEmitter).
|
|
2050
|
-
return this.
|
|
2114
|
+
protoOf(KotlinEmitter).ak = function (_this__u8e3s4) {
|
|
2115
|
+
return this.bk(_this__u8e3s4, this.rh_1, KotlinEmitter$emit$lambda_4(_this__u8e3s4, this));
|
|
2051
2116
|
};
|
|
2052
|
-
protoOf(KotlinEmitter).
|
|
2053
|
-
return this.
|
|
2117
|
+
protoOf(KotlinEmitter).ck = function (_this__u8e3s4) {
|
|
2118
|
+
return this.dk(_this__u8e3s4, this.rh_1, KotlinEmitter$emit$lambda_5(_this__u8e3s4, this));
|
|
2054
2119
|
};
|
|
2055
|
-
protoOf(KotlinEmitter).
|
|
2056
|
-
return this.
|
|
2120
|
+
protoOf(KotlinEmitter).rj = function (_this__u8e3s4) {
|
|
2121
|
+
return this.ek(_this__u8e3s4, this.rh_1, KotlinEmitter$emit$lambda_6(_this__u8e3s4));
|
|
2057
2122
|
};
|
|
2058
|
-
protoOf(KotlinEmitter).
|
|
2059
|
-
return this.
|
|
2123
|
+
protoOf(KotlinEmitter).fk = function (_this__u8e3s4) {
|
|
2124
|
+
return this.gk(_this__u8e3s4, this.rh_1, KotlinEmitter$emit$lambda_7(_this__u8e3s4, this));
|
|
2060
2125
|
};
|
|
2061
|
-
protoOf(KotlinEmitter).
|
|
2062
|
-
return Companion_getInstance_0().
|
|
2126
|
+
protoOf(KotlinEmitter).ok = function (_this__u8e3s4) {
|
|
2127
|
+
return Companion_getInstance_0().nk_1.i1(_this__u8e3s4) ? '`' + _this__u8e3s4 + '`' : _this__u8e3s4;
|
|
2063
2128
|
};
|
|
2064
2129
|
function toField(_this__u8e3s4, identifier, isNullable) {
|
|
2065
2130
|
return new Field(new Identifier(identifier), _this__u8e3s4, isNullable);
|
|
2066
2131
|
}
|
|
2067
2132
|
function emitContentType_0(_this__u8e3s4) {
|
|
2068
|
-
var tmp = split(_this__u8e3s4.
|
|
2133
|
+
var tmp = split(_this__u8e3s4.ai_1, ['/', '-']);
|
|
2069
2134
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, emitContentType$lambda);
|
|
2070
2135
|
}
|
|
2071
2136
|
function groupStatus_0(_this__u8e3s4) {
|
|
2072
2137
|
var tmp;
|
|
2073
|
-
if (Companion_getInstance_2().
|
|
2138
|
+
if (Companion_getInstance_2().mk(_this__u8e3s4)) {
|
|
2074
2139
|
var tmp$ret$1;
|
|
2075
2140
|
// Inline function 'kotlin.text.substring' call
|
|
2076
2141
|
var tmp$ret$0;
|
|
@@ -2079,7 +2144,7 @@
|
|
|
2079
2144
|
tmp$ret$1 = tmp$ret$0.substring(0, 1);
|
|
2080
2145
|
tmp = tmp$ret$1 + 'XX';
|
|
2081
2146
|
} else {
|
|
2082
|
-
tmp = Companion_getInstance_2().
|
|
2147
|
+
tmp = Companion_getInstance_2().si(_this__u8e3s4);
|
|
2083
2148
|
}
|
|
2084
2149
|
return tmp;
|
|
2085
2150
|
}
|
|
@@ -2088,11 +2153,11 @@
|
|
|
2088
2153
|
return tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
2089
2154
|
}
|
|
2090
2155
|
function emitContentType$lambda(it) {
|
|
2091
|
-
return Companion_getInstance_2().
|
|
2156
|
+
return Companion_getInstance_2().si(it);
|
|
2092
2157
|
}
|
|
2093
2158
|
function Companion_0() {
|
|
2094
2159
|
Companion_instance_0 = this;
|
|
2095
|
-
this.
|
|
2160
|
+
this.qk_1 = listOf(['abstract', 'case', 'catch', 'class', 'def', 'do', 'else', 'extends', 'false', 'final', 'finally', 'for', 'forSome', 'if', 'implicit', 'import', 'lazy', 'match', 'new', 'null', 'object', 'override', 'package', 'private', 'protected', 'return', 'sealed', 'super', 'this', 'throw', 'trait', 'true', 'try', 'type', 'val', 'var', 'while', 'with', 'yield']);
|
|
2096
2161
|
}
|
|
2097
2162
|
var Companion_instance_0;
|
|
2098
2163
|
function Companion_getInstance_1() {
|
|
@@ -2102,28 +2167,28 @@
|
|
|
2102
2167
|
}
|
|
2103
2168
|
function ScalaEmitter$emit$lambda($this_emit, this$0) {
|
|
2104
2169
|
return function () {
|
|
2105
|
-
return trimMargin('case class ' + $this_emit.
|
|
2170
|
+
return trimMargin('case class ' + $this_emit.xi_1 + '(\n |' + this$0.zi($this_emit.yi_1) + '\n |)\n |\n |');
|
|
2106
2171
|
};
|
|
2107
2172
|
}
|
|
2108
2173
|
function ScalaEmitter$emit$lambda$lambda(this$0) {
|
|
2109
2174
|
return function (it) {
|
|
2110
|
-
return this$0.
|
|
2175
|
+
return this$0.aj(it);
|
|
2111
2176
|
};
|
|
2112
2177
|
}
|
|
2113
2178
|
function ScalaEmitter$emit$lambda_0($this_emit, this$0) {
|
|
2114
2179
|
return function () {
|
|
2115
|
-
return dropLast(joinToString($this_emit.
|
|
2180
|
+
return dropLast(joinToString($this_emit.bj_1, '\n', VOID, VOID, VOID, VOID, ScalaEmitter$emit$lambda$lambda(this$0)), 1);
|
|
2116
2181
|
};
|
|
2117
2182
|
}
|
|
2118
2183
|
function ScalaEmitter$emit$lambda_1(this$0, $this_emit) {
|
|
2119
2184
|
return function () {
|
|
2120
2185
|
Companion_getInstance_2();
|
|
2121
|
-
return ' ' + 'val ' + this$0.
|
|
2186
|
+
return ' ' + 'val ' + this$0.fj($this_emit.cj_1) + ': ' + ($this_emit.ej_1 ? 'Option[' + this$0.hi($this_emit.dj_1) + ']' : this$0.hi($this_emit.dj_1)) + ',';
|
|
2122
2187
|
};
|
|
2123
2188
|
}
|
|
2124
2189
|
function ScalaEmitter$emit$lambda_2($this_emit) {
|
|
2125
2190
|
return function () {
|
|
2126
|
-
return Companion_getInstance_1().
|
|
2191
|
+
return Companion_getInstance_1().qk_1.i1($this_emit.gj_1) ? '`' + $this_emit.gj_1 + '`' : $this_emit.gj_1;
|
|
2127
2192
|
};
|
|
2128
2193
|
}
|
|
2129
2194
|
function ScalaEmitter$emit$lambda_3($this_emit) {
|
|
@@ -2136,10 +2201,10 @@
|
|
|
2136
2201
|
tmp = 'Any';
|
|
2137
2202
|
} else {
|
|
2138
2203
|
if (tmp0_subject instanceof Custom) {
|
|
2139
|
-
tmp = $this_emit.
|
|
2204
|
+
tmp = $this_emit.kj_1;
|
|
2140
2205
|
} else {
|
|
2141
2206
|
if (tmp0_subject instanceof Primitive) {
|
|
2142
|
-
var tmp1_subject = $this_emit.
|
|
2207
|
+
var tmp1_subject = $this_emit.hj_1;
|
|
2143
2208
|
var tmp0 = tmp1_subject.q4_1;
|
|
2144
2209
|
var tmp_0;
|
|
2145
2210
|
switch (tmp0) {
|
|
@@ -2166,7 +2231,7 @@
|
|
|
2166
2231
|
// Inline function 'kotlin.contracts.contract' call
|
|
2167
2232
|
var tmp$ret$0;
|
|
2168
2233
|
// Inline function 'community.flock.wirespec.compiler.core.emit.ScalaEmitter.emit.<anonymous>.<anonymous>' call
|
|
2169
|
-
tmp$ret$0 = $this_emit.
|
|
2234
|
+
tmp$ret$0 = $this_emit.ti() ? 'List[' + tmp0_let + ']' : tmp0_let;
|
|
2170
2235
|
tmp$ret$1 = tmp$ret$0;
|
|
2171
2236
|
return tmp$ret$1;
|
|
2172
2237
|
};
|
|
@@ -2192,20 +2257,20 @@
|
|
|
2192
2257
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2193
2258
|
tmp$ret$0 = tmp0_uppercase;
|
|
2194
2259
|
tmp$ret$1 = tmp$ret$0.toUpperCase();
|
|
2195
|
-
return ' ' + 'final case object ' + tmp$ret$1 + ' extends ' + $this_emit.
|
|
2260
|
+
return ' ' + 'final case object ' + tmp$ret$1 + ' extends ' + $this_emit.nj_1 + '(label = "' + it + '")';
|
|
2196
2261
|
};
|
|
2197
2262
|
}
|
|
2198
2263
|
function ScalaEmitter$emit$lambda_4($this_emit) {
|
|
2199
2264
|
return function () {
|
|
2200
|
-
return trimMargin('\n |sealed abstract class ' + $this_emit.
|
|
2265
|
+
return trimMargin('\n |sealed abstract class ' + $this_emit.nj_1 + '(val label: String)\n |object ' + $this_emit.nj_1 + ' {\n |' + joinToString($this_emit.oj_1, '\n', VOID, VOID, VOID, VOID, ScalaEmitter$emit$lambda$lambda_0($this_emit)) + '\n |}\n |');
|
|
2201
2266
|
};
|
|
2202
2267
|
}
|
|
2203
2268
|
function ScalaEmitter$emit$lambda_5($this_emit, this$0) {
|
|
2204
2269
|
return function () {
|
|
2205
2270
|
Companion_getInstance_2();
|
|
2206
|
-
var tmp = this$0.
|
|
2271
|
+
var tmp = this$0.rj($this_emit.qj_1);
|
|
2207
2272
|
Companion_getInstance_2();
|
|
2208
|
-
return trimMargin('case class ' + $this_emit.
|
|
2273
|
+
return trimMargin('case class ' + $this_emit.pj_1 + '(val value: String) {\n |' + ' ' + 'implicit class ' + $this_emit.pj_1 + 'Ops(val that: ' + $this_emit.pj_1 + ') {\n |' + tmp + '\n |' + ' ' + '}\n |}\n |\n |');
|
|
2209
2274
|
};
|
|
2210
2275
|
}
|
|
2211
2276
|
function ScalaEmitter$emit$lambda_6($this_emit) {
|
|
@@ -2214,7 +2279,7 @@
|
|
|
2214
2279
|
Companion_getInstance_2();
|
|
2215
2280
|
Companion_getInstance_2();
|
|
2216
2281
|
Companion_getInstance_2();
|
|
2217
|
-
return trimMargin(' ' + ' ' + 'val regex = new scala.util.matching.Regex(' + $this_emit.
|
|
2282
|
+
return trimMargin(' ' + ' ' + 'val regex = new scala.util.matching.Regex(' + $this_emit.sj_1 + ')\n |' + ' ' + ' ' + 'regex.findFirstIn(that.value)');
|
|
2218
2283
|
};
|
|
2219
2284
|
}
|
|
2220
2285
|
function ScalaEmitter$emit$lambda_7() {
|
|
@@ -2225,7 +2290,8 @@
|
|
|
2225
2290
|
packageName = packageName === VOID ? get_DEFAULT_PACKAGE_NAME() : packageName;
|
|
2226
2291
|
logger = logger === VOID ? get_noLogger() : logger;
|
|
2227
2292
|
Emitter.call(this, logger);
|
|
2228
|
-
this.
|
|
2293
|
+
this.tk_1 = packageName;
|
|
2294
|
+
this.uk_1 = '';
|
|
2229
2295
|
}
|
|
2230
2296
|
protoOf(ScalaEmitter).th = function (ast) {
|
|
2231
2297
|
var tmp$ret$2;
|
|
@@ -2241,54 +2307,54 @@
|
|
|
2241
2307
|
// Inline function 'community.flock.wirespec.compiler.core.emit.ScalaEmitter.emit.<anonymous>' call
|
|
2242
2308
|
var name = item.i3();
|
|
2243
2309
|
var result = item.j3();
|
|
2244
|
-
tmp$ret$0 = to(name, isBlank(this.
|
|
2310
|
+
tmp$ret$0 = to(name, isBlank(this.tk_1) ? '' : 'package ' + this.tk_1 + '\n\n' + result);
|
|
2245
2311
|
tmp0_mapTo.a(tmp$ret$0);
|
|
2246
2312
|
}
|
|
2247
2313
|
tmp$ret$1 = tmp0_mapTo;
|
|
2248
2314
|
tmp$ret$2 = tmp$ret$1;
|
|
2249
2315
|
return tmp$ret$2;
|
|
2250
2316
|
};
|
|
2251
|
-
protoOf(ScalaEmitter).
|
|
2252
|
-
return this.
|
|
2253
|
-
};
|
|
2254
|
-
protoOf(ScalaEmitter).yi = function (_this__u8e3s4) {
|
|
2255
|
-
return this.wj(_this__u8e3s4, this.rh_1, ScalaEmitter$emit$lambda_0(_this__u8e3s4, this));
|
|
2317
|
+
protoOf(ScalaEmitter).vj = function (_this__u8e3s4) {
|
|
2318
|
+
return this.wj(_this__u8e3s4, this.rh_1, ScalaEmitter$emit$lambda(_this__u8e3s4, this));
|
|
2256
2319
|
};
|
|
2257
2320
|
protoOf(ScalaEmitter).zi = function (_this__u8e3s4) {
|
|
2258
|
-
return this.xj(_this__u8e3s4, this.rh_1, ScalaEmitter$emit$
|
|
2321
|
+
return this.xj(_this__u8e3s4, this.rh_1, ScalaEmitter$emit$lambda_0(_this__u8e3s4, this));
|
|
2322
|
+
};
|
|
2323
|
+
protoOf(ScalaEmitter).aj = function (_this__u8e3s4) {
|
|
2324
|
+
return this.yj(_this__u8e3s4, this.rh_1, ScalaEmitter$emit$lambda_1(this, _this__u8e3s4));
|
|
2259
2325
|
};
|
|
2260
|
-
protoOf(ScalaEmitter).
|
|
2261
|
-
return this.
|
|
2326
|
+
protoOf(ScalaEmitter).fj = function (_this__u8e3s4) {
|
|
2327
|
+
return this.zj(_this__u8e3s4, this.rh_1, ScalaEmitter$emit$lambda_2(_this__u8e3s4));
|
|
2262
2328
|
};
|
|
2263
|
-
protoOf(ScalaEmitter).
|
|
2264
|
-
return this.
|
|
2329
|
+
protoOf(ScalaEmitter).hi = function (_this__u8e3s4) {
|
|
2330
|
+
return this.yh(_this__u8e3s4, this.rh_1, ScalaEmitter$emit$lambda_3(_this__u8e3s4));
|
|
2265
2331
|
};
|
|
2266
|
-
protoOf(ScalaEmitter).
|
|
2267
|
-
return this.
|
|
2332
|
+
protoOf(ScalaEmitter).ak = function (_this__u8e3s4) {
|
|
2333
|
+
return this.bk(_this__u8e3s4, this.rh_1, ScalaEmitter$emit$lambda_4(_this__u8e3s4));
|
|
2268
2334
|
};
|
|
2269
|
-
protoOf(ScalaEmitter).
|
|
2270
|
-
return this.
|
|
2335
|
+
protoOf(ScalaEmitter).ck = function (_this__u8e3s4) {
|
|
2336
|
+
return this.dk(_this__u8e3s4, this.rh_1, ScalaEmitter$emit$lambda_5(_this__u8e3s4, this));
|
|
2271
2337
|
};
|
|
2272
|
-
protoOf(ScalaEmitter).
|
|
2273
|
-
return this.
|
|
2338
|
+
protoOf(ScalaEmitter).rj = function (_this__u8e3s4) {
|
|
2339
|
+
return this.ek(_this__u8e3s4, this.rh_1, ScalaEmitter$emit$lambda_6(_this__u8e3s4));
|
|
2274
2340
|
};
|
|
2275
|
-
protoOf(ScalaEmitter).
|
|
2276
|
-
return this.
|
|
2341
|
+
protoOf(ScalaEmitter).fk = function (_this__u8e3s4) {
|
|
2342
|
+
return this.gk(_this__u8e3s4, this.rh_1, ScalaEmitter$emit$lambda_7);
|
|
2277
2343
|
};
|
|
2278
2344
|
function emitType(_this__u8e3s4, $this) {
|
|
2279
2345
|
return '`' + joinToString(_this__u8e3s4, '', VOID, VOID, VOID, VOID, TypeScriptEmitter$emitType$lambda($this)) + '`';
|
|
2280
2346
|
}
|
|
2281
2347
|
function emitType_0(_this__u8e3s4, $this) {
|
|
2282
|
-
return $this.
|
|
2348
|
+
return $this.ui(_this__u8e3s4, $this.rh_1, TypeScriptEmitter$emitType$lambda_0(_this__u8e3s4, $this));
|
|
2283
2349
|
}
|
|
2284
2350
|
function emitName(_this__u8e3s4, $this) {
|
|
2285
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2351
|
+
var tmp0_safe_receiver = _this__u8e3s4.zh_1;
|
|
2286
2352
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : emitContentType_0(tmp0_safe_receiver);
|
|
2287
2353
|
return 'Request' + (tmp1_elvis_lhs == null ? 'Undefined' : tmp1_elvis_lhs);
|
|
2288
2354
|
}
|
|
2289
2355
|
function emitName_0(_this__u8e3s4, $this) {
|
|
2290
|
-
var tmp = 'Response' + Companion_getInstance_2().
|
|
2291
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2356
|
+
var tmp = 'Response' + Companion_getInstance_2().si(_this__u8e3s4.qi_1);
|
|
2357
|
+
var tmp0_safe_receiver = _this__u8e3s4.ri_1;
|
|
2292
2358
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : emitContentType_0(tmp0_safe_receiver);
|
|
2293
2359
|
return tmp + (tmp1_elvis_lhs == null ? 'Undefined' : tmp1_elvis_lhs);
|
|
2294
2360
|
}
|
|
@@ -2299,32 +2365,32 @@
|
|
|
2299
2365
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, TypeScriptEmitter$emitPath$lambda($this));
|
|
2300
2366
|
}
|
|
2301
2367
|
function emit_3(_this__u8e3s4, $this) {
|
|
2302
|
-
return $this.
|
|
2368
|
+
return $this.ui(_this__u8e3s4, $this.rh_1, TypeScriptEmitter$emit$lambda_8(_this__u8e3s4));
|
|
2303
2369
|
}
|
|
2304
2370
|
function TypeScriptEmitter$emit$lambda($this_emit, this$0) {
|
|
2305
2371
|
return function () {
|
|
2306
|
-
return trimMargin('export type ' + $this_emit.
|
|
2372
|
+
return trimMargin('export type ' + $this_emit.xi_1 + ' = {\n |' + this$0.zi($this_emit.yi_1) + '\n |}\n |\n |');
|
|
2307
2373
|
};
|
|
2308
2374
|
}
|
|
2309
2375
|
function TypeScriptEmitter$emit$lambda$lambda(this$0) {
|
|
2310
2376
|
return function (it) {
|
|
2311
|
-
return this$0.
|
|
2377
|
+
return this$0.aj(it);
|
|
2312
2378
|
};
|
|
2313
2379
|
}
|
|
2314
2380
|
function TypeScriptEmitter$emit$lambda_0($this_emit, this$0) {
|
|
2315
2381
|
return function () {
|
|
2316
|
-
return joinToString($this_emit.
|
|
2382
|
+
return joinToString($this_emit.bj_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda(this$0));
|
|
2317
2383
|
};
|
|
2318
2384
|
}
|
|
2319
2385
|
function TypeScriptEmitter$emit$lambda_1(this$0, $this_emit) {
|
|
2320
2386
|
return function () {
|
|
2321
2387
|
Companion_getInstance_2();
|
|
2322
|
-
return ' ' + this$0.
|
|
2388
|
+
return ' ' + this$0.fj($this_emit.cj_1) + ($this_emit.ej_1 ? '?' : '') + ': ' + this$0.hi($this_emit.dj_1);
|
|
2323
2389
|
};
|
|
2324
2390
|
}
|
|
2325
2391
|
function TypeScriptEmitter$emit$lambda_2($this_emit) {
|
|
2326
2392
|
return function () {
|
|
2327
|
-
return $this_emit.
|
|
2393
|
+
return $this_emit.gj_1;
|
|
2328
2394
|
};
|
|
2329
2395
|
}
|
|
2330
2396
|
function TypeScriptEmitter$emit$lambda_3($this_emit) {
|
|
@@ -2339,10 +2405,10 @@
|
|
|
2339
2405
|
tmp = 'any';
|
|
2340
2406
|
} else {
|
|
2341
2407
|
if (tmp0_subject instanceof Custom) {
|
|
2342
|
-
tmp = $this_emit.
|
|
2408
|
+
tmp = $this_emit.kj_1;
|
|
2343
2409
|
} else {
|
|
2344
2410
|
if (tmp0_subject instanceof Primitive) {
|
|
2345
|
-
var tmp1_subject = $this_emit.
|
|
2411
|
+
var tmp1_subject = $this_emit.hj_1;
|
|
2346
2412
|
var tmp0 = tmp1_subject.q4_1;
|
|
2347
2413
|
var tmp_0;
|
|
2348
2414
|
switch (tmp0) {
|
|
@@ -2369,13 +2435,13 @@
|
|
|
2369
2435
|
// Inline function 'kotlin.contracts.contract' call
|
|
2370
2436
|
var tmp$ret$0;
|
|
2371
2437
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>' call
|
|
2372
|
-
tmp$ret$0 = $this_emit.
|
|
2438
|
+
tmp$ret$0 = $this_emit.ti() ? tmp0_let + '[]' : tmp0_let;
|
|
2373
2439
|
tmp$ret$1 = tmp$ret$0;
|
|
2374
2440
|
var tmp1_let = tmp$ret$1;
|
|
2375
2441
|
// Inline function 'kotlin.contracts.contract' call
|
|
2376
2442
|
var tmp$ret$2;
|
|
2377
2443
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>' call
|
|
2378
|
-
tmp$ret$2 = $this_emit.
|
|
2444
|
+
tmp$ret$2 = $this_emit.pk() ? 'Record<string, ' + tmp1_let + '>' : tmp1_let;
|
|
2379
2445
|
tmp$ret$3 = tmp$ret$2;
|
|
2380
2446
|
return tmp$ret$3;
|
|
2381
2447
|
};
|
|
@@ -2385,28 +2451,28 @@
|
|
|
2385
2451
|
}
|
|
2386
2452
|
function TypeScriptEmitter$emit$lambda_4($this_emit) {
|
|
2387
2453
|
return function () {
|
|
2388
|
-
return 'type ' + $this_emit.
|
|
2454
|
+
return 'type ' + $this_emit.nj_1 + ' = ' + joinToString($this_emit.oj_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda_0) + '\n';
|
|
2389
2455
|
};
|
|
2390
2456
|
}
|
|
2391
2457
|
function TypeScriptEmitter$emit$lambda_5($this_emit, this$0) {
|
|
2392
2458
|
return function () {
|
|
2393
2459
|
Companion_getInstance_2();
|
|
2394
|
-
return trimMargin('type ' + $this_emit.
|
|
2460
|
+
return trimMargin('type ' + $this_emit.pj_1 + ' = {\n |' + ' ' + 'value: string\n |}\n |const validate' + $this_emit.pj_1 + ' = (type: ' + $this_emit.pj_1 + ') => (' + this$0.rj($this_emit.qj_1) + ').test(type.value);\n |\n |');
|
|
2395
2461
|
};
|
|
2396
2462
|
}
|
|
2397
2463
|
function TypeScriptEmitter$emit$lambda_6($this_emit) {
|
|
2398
2464
|
return function () {
|
|
2399
|
-
return "new RegExp('" + dropLast(drop($this_emit.
|
|
2465
|
+
return "new RegExp('" + dropLast(drop($this_emit.sj_1, 1), 1) + "')";
|
|
2400
2466
|
};
|
|
2401
2467
|
}
|
|
2402
2468
|
function TypeScriptEmitter$emit$lambda$lambda_1(this$0, $this_emit) {
|
|
2403
2469
|
return function (it) {
|
|
2404
2470
|
Companion_getInstance_2();
|
|
2405
2471
|
var tmp = emitName(it, this$0);
|
|
2406
|
-
var tmp_0 = emitType($this_emit.
|
|
2472
|
+
var tmp_0 = emitType($this_emit.ki_1, this$0);
|
|
2407
2473
|
var tmp$ret$2;
|
|
2408
2474
|
// Inline function 'kotlin.collections.map' call
|
|
2409
|
-
var tmp1_map = $this_emit.
|
|
2475
|
+
var tmp1_map = $this_emit.mi_1;
|
|
2410
2476
|
var tmp$ret$1;
|
|
2411
2477
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2412
2478
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -2415,7 +2481,7 @@
|
|
|
2415
2481
|
var item = tmp0_iterator.e();
|
|
2416
2482
|
var tmp$ret$0;
|
|
2417
2483
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>.<anonymous>' call
|
|
2418
|
-
tmp$ret$0 = this$0.
|
|
2484
|
+
tmp$ret$0 = this$0.aj(item);
|
|
2419
2485
|
tmp0_mapTo.a(tmp$ret$0);
|
|
2420
2486
|
}
|
|
2421
2487
|
tmp$ret$1 = tmp0_mapTo;
|
|
@@ -2423,7 +2489,7 @@
|
|
|
2423
2489
|
var tmp_1 = joinToString(tmp$ret$2, ',');
|
|
2424
2490
|
var tmp$ret$5;
|
|
2425
2491
|
// Inline function 'kotlin.collections.map' call
|
|
2426
|
-
var tmp3_map = $this_emit.
|
|
2492
|
+
var tmp3_map = $this_emit.li_1;
|
|
2427
2493
|
var tmp$ret$4;
|
|
2428
2494
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2429
2495
|
var tmp2_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp3_map, 10));
|
|
@@ -2432,13 +2498,13 @@
|
|
|
2432
2498
|
var item_0 = tmp0_iterator_0.e();
|
|
2433
2499
|
var tmp$ret$3;
|
|
2434
2500
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>.<anonymous>' call
|
|
2435
|
-
tmp$ret$3 = this$0.
|
|
2501
|
+
tmp$ret$3 = this$0.aj(item_0);
|
|
2436
2502
|
tmp2_mapTo.a(tmp$ret$3);
|
|
2437
2503
|
}
|
|
2438
2504
|
tmp$ret$4 = tmp2_mapTo;
|
|
2439
2505
|
tmp$ret$5 = tmp$ret$4;
|
|
2440
2506
|
var tmp_2 = joinToString(tmp$ret$5, ',');
|
|
2441
|
-
var tmp0_safe_receiver = it.
|
|
2507
|
+
var tmp0_safe_receiver = it.zh_1;
|
|
2442
2508
|
var tmp_3;
|
|
2443
2509
|
if (tmp0_safe_receiver == null) {
|
|
2444
2510
|
tmp_3 = null;
|
|
@@ -2448,12 +2514,12 @@
|
|
|
2448
2514
|
// Inline function 'kotlin.contracts.contract' call
|
|
2449
2515
|
var tmp$ret$6;
|
|
2450
2516
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>.<anonymous>' call
|
|
2451
|
-
tmp$ret$6 = ', content: { type: "' + tmp0_safe_receiver.
|
|
2517
|
+
tmp$ret$6 = ', content: { type: "' + tmp0_safe_receiver.ai_1 + '", body: ' + this$0.hi(tmp0_safe_receiver.bi_1) + ' }';
|
|
2452
2518
|
tmp$ret$7 = tmp$ret$6;
|
|
2453
2519
|
tmp_3 = tmp$ret$7;
|
|
2454
2520
|
}
|
|
2455
2521
|
var tmp1_elvis_lhs = tmp_3;
|
|
2456
|
-
return ' ' + 'type ' + tmp + ' = { path: ' + tmp_0 + ', method: "' + $this_emit.
|
|
2522
|
+
return ' ' + 'type ' + tmp + ' = { path: ' + tmp_0 + ', method: "' + $this_emit.ji_1 + '", headers: {' + tmp_1 + '}, query: {' + tmp_2 + '}' + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs) + ' } ';
|
|
2457
2523
|
};
|
|
2458
2524
|
}
|
|
2459
2525
|
function TypeScriptEmitter$emit$lambda$lambda_2(this$0) {
|
|
@@ -2465,8 +2531,8 @@
|
|
|
2465
2531
|
return function (it) {
|
|
2466
2532
|
Companion_getInstance_2();
|
|
2467
2533
|
var tmp = emitName_0(it, this$0);
|
|
2468
|
-
var tmp_0 = Companion_getInstance_2().
|
|
2469
|
-
var tmp0_safe_receiver = it.
|
|
2534
|
+
var tmp_0 = Companion_getInstance_2().mk(it.qi_1) ? it.qi_1 : 'number';
|
|
2535
|
+
var tmp0_safe_receiver = it.ri_1;
|
|
2470
2536
|
var tmp_1;
|
|
2471
2537
|
if (tmp0_safe_receiver == null) {
|
|
2472
2538
|
tmp_1 = null;
|
|
@@ -2476,7 +2542,7 @@
|
|
|
2476
2542
|
// Inline function 'kotlin.contracts.contract' call
|
|
2477
2543
|
var tmp$ret$0;
|
|
2478
2544
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>.<anonymous>' call
|
|
2479
|
-
tmp$ret$0 = ', content: { type: "' + tmp0_safe_receiver.
|
|
2545
|
+
tmp$ret$0 = ', content: { type: "' + tmp0_safe_receiver.ai_1 + '", body: ' + this$0.hi(tmp0_safe_receiver.bi_1) + ' }';
|
|
2480
2546
|
tmp$ret$1 = tmp$ret$0;
|
|
2481
2547
|
tmp_1 = tmp$ret$1;
|
|
2482
2548
|
}
|
|
@@ -2491,18 +2557,18 @@
|
|
|
2491
2557
|
}
|
|
2492
2558
|
function TypeScriptEmitter$emit$lambda$lambda$lambda(this$0) {
|
|
2493
2559
|
return function (it) {
|
|
2494
|
-
return this$0.
|
|
2560
|
+
return this$0.aj(it);
|
|
2495
2561
|
};
|
|
2496
2562
|
}
|
|
2497
2563
|
function TypeScriptEmitter$emit$lambda$lambda_5(this$0, $this_emit) {
|
|
2498
2564
|
return function (it) {
|
|
2499
|
-
var tmp = Companion_getInstance_2().
|
|
2500
|
-
var tmp_0 = Companion_getInstance_2().
|
|
2565
|
+
var tmp = Companion_getInstance_2().tj(emitName(it, this$0));
|
|
2566
|
+
var tmp_0 = Companion_getInstance_2().zk($this_emit, it.zh_1);
|
|
2501
2567
|
var tmp_1 = joinToString(tmp_0, ',', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda$lambda(this$0));
|
|
2502
|
-
var tmp_2 = emitPath_1($this_emit.
|
|
2503
|
-
var tmp_3 = emitMap_1($this_emit.
|
|
2504
|
-
var tmp_4 = emitMap_1($this_emit.
|
|
2505
|
-
var tmp0_safe_receiver = it.
|
|
2568
|
+
var tmp_2 = emitPath_1($this_emit.ki_1, this$0);
|
|
2569
|
+
var tmp_3 = emitMap_1($this_emit.li_1, this$0);
|
|
2570
|
+
var tmp_4 = emitMap_1($this_emit.mi_1, this$0);
|
|
2571
|
+
var tmp0_safe_receiver = it.zh_1;
|
|
2506
2572
|
var tmp_5;
|
|
2507
2573
|
if (tmp0_safe_receiver == null) {
|
|
2508
2574
|
tmp_5 = null;
|
|
@@ -2512,33 +2578,33 @@
|
|
|
2512
2578
|
// Inline function 'kotlin.contracts.contract' call
|
|
2513
2579
|
var tmp$ret$0;
|
|
2514
2580
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>.<anonymous>' call
|
|
2515
|
-
tmp$ret$0 = ', content: {type: "' + tmp0_safe_receiver.
|
|
2581
|
+
tmp$ret$0 = ', content: {type: "' + tmp0_safe_receiver.ai_1 + '", body}';
|
|
2516
2582
|
tmp$ret$1 = tmp$ret$0;
|
|
2517
2583
|
tmp_5 = tmp$ret$1;
|
|
2518
2584
|
}
|
|
2519
2585
|
var tmp1_elvis_lhs = tmp_5;
|
|
2520
|
-
return 'export const ' + tmp + ' = (' + tmp_1 + ') => ({path: `' + tmp_2 + '`, method: "' + $this_emit.
|
|
2586
|
+
return 'export const ' + tmp + ' = (' + tmp_1 + ') => ({path: `' + tmp_2 + '`, method: "' + $this_emit.ji_1.p4_1 + '", query: {' + tmp_3 + '}, headers: {' + tmp_4 + '}' + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs) + '} as const)';
|
|
2521
2587
|
};
|
|
2522
2588
|
}
|
|
2523
2589
|
function TypeScriptEmitter$emit$lambda_7($this_emit, this$0) {
|
|
2524
2590
|
return function () {
|
|
2525
|
-
var tmp = toSet($this_emit.
|
|
2591
|
+
var tmp = toSet($this_emit.oi_1);
|
|
2526
2592
|
var tmp_0 = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda_1(this$0, $this_emit));
|
|
2527
2593
|
Companion_getInstance_2();
|
|
2528
|
-
var tmp_1 = toSet($this_emit.
|
|
2594
|
+
var tmp_1 = toSet($this_emit.oi_1);
|
|
2529
2595
|
var tmp_2 = joinToString(tmp_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda_2(this$0));
|
|
2530
|
-
var tmp_3 = toSet($this_emit.
|
|
2596
|
+
var tmp_3 = toSet($this_emit.pi_1);
|
|
2531
2597
|
var tmp_4 = joinToString(tmp_3, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda_3(this$0));
|
|
2532
2598
|
Companion_getInstance_2();
|
|
2533
|
-
var tmp_5 = toSet($this_emit.
|
|
2599
|
+
var tmp_5 = toSet($this_emit.pi_1);
|
|
2534
2600
|
var tmp_6 = joinToString(tmp_5, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda_4(this$0));
|
|
2535
2601
|
Companion_getInstance_2();
|
|
2536
2602
|
Companion_getInstance_2();
|
|
2537
2603
|
Companion_getInstance_2();
|
|
2538
|
-
var tmp_7 = Companion_getInstance_2().
|
|
2604
|
+
var tmp_7 = Companion_getInstance_2().tj($this_emit.ii_1);
|
|
2539
2605
|
Companion_getInstance_2();
|
|
2540
2606
|
Companion_getInstance_2();
|
|
2541
|
-
return trimMargin('\n |export namespace ' + $this_emit.
|
|
2607
|
+
return trimMargin('\n |export namespace ' + $this_emit.ii_1 + ' {\n |' + tmp_0 + '\n |' + ' ' + 'export type Request = ' + tmp_2 + '\n |' + tmp_4 + '\n |' + ' ' + 'export type Response = ' + tmp_6 + '\n |' + ' ' + 'export type Call = {\n |' + ' ' + ' ' + tmp_7 + ':(request: Request) => Promise<Response>\n |' + ' ' + '}\n |' + ' ' + joinToString($this_emit.oi_1, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda_5(this$0, $this_emit)) + '\n |}\n |\n ');
|
|
2542
2608
|
};
|
|
2543
2609
|
}
|
|
2544
2610
|
function TypeScriptEmitter$emitType$lambda(this$0) {
|
|
@@ -2551,10 +2617,10 @@
|
|
|
2551
2617
|
var tmp0_subject = $this_emitType;
|
|
2552
2618
|
var tmp;
|
|
2553
2619
|
if (tmp0_subject instanceof Literal) {
|
|
2554
|
-
tmp = $this_emitType.
|
|
2620
|
+
tmp = $this_emitType.uj_1;
|
|
2555
2621
|
} else {
|
|
2556
2622
|
if (tmp0_subject instanceof Param) {
|
|
2557
|
-
tmp = '${' + this$0.
|
|
2623
|
+
tmp = '${' + this$0.hi($this_emitType.wi_1) + '}';
|
|
2558
2624
|
} else {
|
|
2559
2625
|
noWhenBranchMatchedException();
|
|
2560
2626
|
}
|
|
@@ -2564,7 +2630,7 @@
|
|
|
2564
2630
|
}
|
|
2565
2631
|
function TypeScriptEmitter$emitMap$lambda(this$0) {
|
|
2566
2632
|
return function (it) {
|
|
2567
|
-
return '"' + this$0.
|
|
2633
|
+
return '"' + this$0.fj(it.cj_1) + '": ' + this$0.fj(it.cj_1);
|
|
2568
2634
|
};
|
|
2569
2635
|
}
|
|
2570
2636
|
function TypeScriptEmitter$emitPath$lambda(this$0) {
|
|
@@ -2577,10 +2643,10 @@
|
|
|
2577
2643
|
var tmp0_subject = $this_emit;
|
|
2578
2644
|
var tmp;
|
|
2579
2645
|
if (tmp0_subject instanceof Literal) {
|
|
2580
|
-
tmp = $this_emit.
|
|
2646
|
+
tmp = $this_emit.uj_1;
|
|
2581
2647
|
} else {
|
|
2582
2648
|
if (tmp0_subject instanceof Param) {
|
|
2583
|
-
tmp = '${' + $this_emit.
|
|
2649
|
+
tmp = '${' + $this_emit.vi_1.gj_1 + '}';
|
|
2584
2650
|
} else {
|
|
2585
2651
|
noWhenBranchMatchedException();
|
|
2586
2652
|
}
|
|
@@ -2591,12 +2657,13 @@
|
|
|
2591
2657
|
function TypeScriptEmitter(logger) {
|
|
2592
2658
|
logger = logger === VOID ? get_noLogger() : logger;
|
|
2593
2659
|
Emitter.call(this, logger);
|
|
2660
|
+
this.xk_1 = '';
|
|
2594
2661
|
var tmp = this;
|
|
2595
2662
|
Companion_getInstance_2();
|
|
2596
2663
|
Companion_getInstance_2();
|
|
2597
2664
|
Companion_getInstance_2();
|
|
2598
2665
|
Companion_getInstance_2();
|
|
2599
|
-
tmp.
|
|
2666
|
+
tmp.yk_1 = trimMargin('\n |export namespace WirespecShared {\n |' + ' ' + 'type Method = "GET" | "PUT" | "POST" | "DELETE" | "OPTIONS" | "HEAD" | "PATCH" | "TRACE"\n |' + ' ' + 'type Content<T> = { type:string, body:T }\n |' + ' ' + 'export type Request<T> = { path:string, method: Method, query?: Record<string, any[]>, headers?: Record<string, any[]>, content?:Content<T> }\n |' + ' ' + 'export type Response<T> = { status:number, headers?: Record<string, any[]>, content?:Content<T> }\n |}\n ');
|
|
2600
2667
|
}
|
|
2601
2668
|
protoOf(TypeScriptEmitter).th = function (ast) {
|
|
2602
2669
|
var tmp$ret$3;
|
|
@@ -2614,7 +2681,7 @@
|
|
|
2614
2681
|
var result = item.j3();
|
|
2615
2682
|
var tmp$ret$0;
|
|
2616
2683
|
// Inline function 'kotlin.text.trimStart' call
|
|
2617
|
-
var tmp0_trimStart = trimMargin('\n |' + (Companion_getInstance_2().
|
|
2684
|
+
var tmp0_trimStart = trimMargin('\n |' + (Companion_getInstance_2().xh(ast) ? this.yk_1 : '') + '\n |' + result + '\n ');
|
|
2618
2685
|
tmp$ret$0 = toString(trimStart(isCharSequence(tmp0_trimStart) ? tmp0_trimStart : THROW_CCE()));
|
|
2619
2686
|
tmp$ret$1 = to(name, tmp$ret$0);
|
|
2620
2687
|
tmp0_mapTo.a(tmp$ret$1);
|
|
@@ -2623,57 +2690,57 @@
|
|
|
2623
2690
|
tmp$ret$3 = tmp$ret$2;
|
|
2624
2691
|
return tmp$ret$3;
|
|
2625
2692
|
};
|
|
2626
|
-
protoOf(TypeScriptEmitter).
|
|
2627
|
-
return this.
|
|
2628
|
-
};
|
|
2629
|
-
protoOf(TypeScriptEmitter).yi = function (_this__u8e3s4) {
|
|
2630
|
-
return this.wj(_this__u8e3s4, this.rh_1, TypeScriptEmitter$emit$lambda_0(_this__u8e3s4, this));
|
|
2693
|
+
protoOf(TypeScriptEmitter).vj = function (_this__u8e3s4) {
|
|
2694
|
+
return this.wj(_this__u8e3s4, this.rh_1, TypeScriptEmitter$emit$lambda(_this__u8e3s4, this));
|
|
2631
2695
|
};
|
|
2632
2696
|
protoOf(TypeScriptEmitter).zi = function (_this__u8e3s4) {
|
|
2633
|
-
return this.xj(_this__u8e3s4, this.rh_1, TypeScriptEmitter$emit$
|
|
2697
|
+
return this.xj(_this__u8e3s4, this.rh_1, TypeScriptEmitter$emit$lambda_0(_this__u8e3s4, this));
|
|
2634
2698
|
};
|
|
2635
|
-
protoOf(TypeScriptEmitter).
|
|
2636
|
-
return this.yj(_this__u8e3s4, this.rh_1, TypeScriptEmitter$emit$
|
|
2699
|
+
protoOf(TypeScriptEmitter).aj = function (_this__u8e3s4) {
|
|
2700
|
+
return this.yj(_this__u8e3s4, this.rh_1, TypeScriptEmitter$emit$lambda_1(this, _this__u8e3s4));
|
|
2637
2701
|
};
|
|
2638
|
-
protoOf(TypeScriptEmitter).
|
|
2639
|
-
return this.
|
|
2702
|
+
protoOf(TypeScriptEmitter).fj = function (_this__u8e3s4) {
|
|
2703
|
+
return this.zj(_this__u8e3s4, this.rh_1, TypeScriptEmitter$emit$lambda_2(_this__u8e3s4));
|
|
2640
2704
|
};
|
|
2641
|
-
protoOf(TypeScriptEmitter).
|
|
2642
|
-
return this.
|
|
2705
|
+
protoOf(TypeScriptEmitter).hi = function (_this__u8e3s4) {
|
|
2706
|
+
return this.yh(_this__u8e3s4, this.rh_1, TypeScriptEmitter$emit$lambda_3(_this__u8e3s4));
|
|
2643
2707
|
};
|
|
2644
|
-
protoOf(TypeScriptEmitter).
|
|
2645
|
-
return this.
|
|
2708
|
+
protoOf(TypeScriptEmitter).ak = function (_this__u8e3s4) {
|
|
2709
|
+
return this.bk(_this__u8e3s4, this.rh_1, TypeScriptEmitter$emit$lambda_4(_this__u8e3s4));
|
|
2646
2710
|
};
|
|
2647
|
-
protoOf(TypeScriptEmitter).
|
|
2648
|
-
return this.dk(_this__u8e3s4, this.rh_1, TypeScriptEmitter$emit$
|
|
2711
|
+
protoOf(TypeScriptEmitter).ck = function (_this__u8e3s4) {
|
|
2712
|
+
return this.dk(_this__u8e3s4, this.rh_1, TypeScriptEmitter$emit$lambda_5(_this__u8e3s4, this));
|
|
2649
2713
|
};
|
|
2650
|
-
protoOf(TypeScriptEmitter).
|
|
2651
|
-
return this.
|
|
2714
|
+
protoOf(TypeScriptEmitter).rj = function (_this__u8e3s4) {
|
|
2715
|
+
return this.ek(_this__u8e3s4, this.rh_1, TypeScriptEmitter$emit$lambda_6(_this__u8e3s4));
|
|
2716
|
+
};
|
|
2717
|
+
protoOf(TypeScriptEmitter).fk = function (_this__u8e3s4) {
|
|
2718
|
+
return this.gk(_this__u8e3s4, this.rh_1, TypeScriptEmitter$emit$lambda_7(_this__u8e3s4, this));
|
|
2652
2719
|
};
|
|
2653
2720
|
function WirespecEmitter$emit$lambda($this_emit, this$0) {
|
|
2654
2721
|
return function () {
|
|
2655
|
-
return trimMargin('type ' + $this_emit.
|
|
2722
|
+
return trimMargin('type ' + $this_emit.xi_1 + ' {\n |' + this$0.zi($this_emit.yi_1) + '\n |}\n |');
|
|
2656
2723
|
};
|
|
2657
2724
|
}
|
|
2658
2725
|
function WirespecEmitter$emit$lambda$lambda(this$0) {
|
|
2659
2726
|
return function (it) {
|
|
2660
|
-
return this$0.
|
|
2727
|
+
return this$0.aj(it);
|
|
2661
2728
|
};
|
|
2662
2729
|
}
|
|
2663
2730
|
function WirespecEmitter$emit$lambda_0($this_emit, this$0) {
|
|
2664
2731
|
return function () {
|
|
2665
|
-
return dropLast(joinToString($this_emit.
|
|
2732
|
+
return dropLast(joinToString($this_emit.bj_1, '\n', VOID, VOID, VOID, VOID, WirespecEmitter$emit$lambda$lambda(this$0)), 1);
|
|
2666
2733
|
};
|
|
2667
2734
|
}
|
|
2668
2735
|
function WirespecEmitter$emit$lambda_1(this$0, $this_emit) {
|
|
2669
2736
|
return function () {
|
|
2670
2737
|
Companion_getInstance_2();
|
|
2671
|
-
return ' ' + this$0.
|
|
2738
|
+
return ' ' + this$0.fj($this_emit.cj_1) + ($this_emit.ej_1 ? '?' : '') + ': ' + this$0.hi($this_emit.dj_1) + ',';
|
|
2672
2739
|
};
|
|
2673
2740
|
}
|
|
2674
2741
|
function WirespecEmitter$emit$lambda_2($this_emit) {
|
|
2675
2742
|
return function () {
|
|
2676
|
-
return $this_emit.
|
|
2743
|
+
return $this_emit.gj_1;
|
|
2677
2744
|
};
|
|
2678
2745
|
}
|
|
2679
2746
|
function WirespecEmitter$emit$lambda_3($this_emit) {
|
|
@@ -2686,10 +2753,10 @@
|
|
|
2686
2753
|
tmp = 'Any';
|
|
2687
2754
|
} else {
|
|
2688
2755
|
if (tmp0_subject instanceof Custom) {
|
|
2689
|
-
tmp = $this_emit.
|
|
2756
|
+
tmp = $this_emit.kj_1;
|
|
2690
2757
|
} else {
|
|
2691
2758
|
if (tmp0_subject instanceof Primitive) {
|
|
2692
|
-
var tmp1_subject = $this_emit.
|
|
2759
|
+
var tmp1_subject = $this_emit.hj_1;
|
|
2693
2760
|
var tmp0 = tmp1_subject.q4_1;
|
|
2694
2761
|
var tmp_0;
|
|
2695
2762
|
switch (tmp0) {
|
|
@@ -2716,7 +2783,7 @@
|
|
|
2716
2783
|
// Inline function 'kotlin.contracts.contract' call
|
|
2717
2784
|
var tmp$ret$0;
|
|
2718
2785
|
// Inline function 'community.flock.wirespec.compiler.core.emit.WirespecEmitter.emit.<anonymous>.<anonymous>' call
|
|
2719
|
-
tmp$ret$0 = $this_emit.
|
|
2786
|
+
tmp$ret$0 = $this_emit.ti() ? tmp0_let + '[]' : tmp0_let;
|
|
2720
2787
|
tmp$ret$1 = tmp$ret$0;
|
|
2721
2788
|
return tmp$ret$1;
|
|
2722
2789
|
};
|
|
@@ -2724,17 +2791,17 @@
|
|
|
2724
2791
|
function WirespecEmitter$emit$lambda_4($this_emit) {
|
|
2725
2792
|
return function () {
|
|
2726
2793
|
Companion_getInstance_2();
|
|
2727
|
-
return 'enum ' + $this_emit.
|
|
2794
|
+
return 'enum ' + $this_emit.nj_1 + ' {\n' + ' ' + joinToString($this_emit.oj_1, ', ') + '\n}\n';
|
|
2728
2795
|
};
|
|
2729
2796
|
}
|
|
2730
2797
|
function WirespecEmitter$emit$lambda_5($this_emit, this$0) {
|
|
2731
2798
|
return function () {
|
|
2732
|
-
return 'refined ' + $this_emit.
|
|
2799
|
+
return 'refined ' + $this_emit.pj_1 + ' ' + this$0.rj($this_emit.qj_1) + '\n';
|
|
2733
2800
|
};
|
|
2734
2801
|
}
|
|
2735
2802
|
function WirespecEmitter$emit$lambda_6($this_emit) {
|
|
2736
2803
|
return function () {
|
|
2737
|
-
return '/' + dropLast(drop($this_emit.
|
|
2804
|
+
return '/' + dropLast(drop($this_emit.sj_1, 1), 1) + '/g';
|
|
2738
2805
|
};
|
|
2739
2806
|
}
|
|
2740
2807
|
function WirespecEmitter$emit$lambda_7() {
|
|
@@ -2743,33 +2810,34 @@
|
|
|
2743
2810
|
function WirespecEmitter(logger) {
|
|
2744
2811
|
logger = logger === VOID ? get_noLogger() : logger;
|
|
2745
2812
|
Emitter.call(this, logger);
|
|
2813
|
+
this.cl_1 = '';
|
|
2746
2814
|
}
|
|
2747
|
-
protoOf(WirespecEmitter).
|
|
2748
|
-
return this.
|
|
2749
|
-
};
|
|
2750
|
-
protoOf(WirespecEmitter).yi = function (_this__u8e3s4) {
|
|
2751
|
-
return this.wj(_this__u8e3s4, this.rh_1, WirespecEmitter$emit$lambda_0(_this__u8e3s4, this));
|
|
2815
|
+
protoOf(WirespecEmitter).vj = function (_this__u8e3s4) {
|
|
2816
|
+
return this.wj(_this__u8e3s4, this.rh_1, WirespecEmitter$emit$lambda(_this__u8e3s4, this));
|
|
2752
2817
|
};
|
|
2753
2818
|
protoOf(WirespecEmitter).zi = function (_this__u8e3s4) {
|
|
2754
|
-
return this.xj(_this__u8e3s4, this.rh_1, WirespecEmitter$emit$
|
|
2819
|
+
return this.xj(_this__u8e3s4, this.rh_1, WirespecEmitter$emit$lambda_0(_this__u8e3s4, this));
|
|
2820
|
+
};
|
|
2821
|
+
protoOf(WirespecEmitter).aj = function (_this__u8e3s4) {
|
|
2822
|
+
return this.yj(_this__u8e3s4, this.rh_1, WirespecEmitter$emit$lambda_1(this, _this__u8e3s4));
|
|
2755
2823
|
};
|
|
2756
|
-
protoOf(WirespecEmitter).
|
|
2757
|
-
return this.
|
|
2824
|
+
protoOf(WirespecEmitter).fj = function (_this__u8e3s4) {
|
|
2825
|
+
return this.zj(_this__u8e3s4, this.rh_1, WirespecEmitter$emit$lambda_2(_this__u8e3s4));
|
|
2758
2826
|
};
|
|
2759
|
-
protoOf(WirespecEmitter).
|
|
2760
|
-
return this.
|
|
2827
|
+
protoOf(WirespecEmitter).hi = function (_this__u8e3s4) {
|
|
2828
|
+
return this.yh(_this__u8e3s4, this.rh_1, WirespecEmitter$emit$lambda_3(_this__u8e3s4));
|
|
2761
2829
|
};
|
|
2762
|
-
protoOf(WirespecEmitter).
|
|
2763
|
-
return this.
|
|
2830
|
+
protoOf(WirespecEmitter).ak = function (_this__u8e3s4) {
|
|
2831
|
+
return this.bk(_this__u8e3s4, this.rh_1, WirespecEmitter$emit$lambda_4(_this__u8e3s4));
|
|
2764
2832
|
};
|
|
2765
|
-
protoOf(WirespecEmitter).
|
|
2766
|
-
return this.
|
|
2833
|
+
protoOf(WirespecEmitter).ck = function (_this__u8e3s4) {
|
|
2834
|
+
return this.dk(_this__u8e3s4, this.rh_1, WirespecEmitter$emit$lambda_5(_this__u8e3s4, this));
|
|
2767
2835
|
};
|
|
2768
|
-
protoOf(WirespecEmitter).
|
|
2769
|
-
return this.
|
|
2836
|
+
protoOf(WirespecEmitter).rj = function (_this__u8e3s4) {
|
|
2837
|
+
return this.ek(_this__u8e3s4, this.rh_1, WirespecEmitter$emit$lambda_6(_this__u8e3s4));
|
|
2770
2838
|
};
|
|
2771
|
-
protoOf(WirespecEmitter).
|
|
2772
|
-
return this.
|
|
2839
|
+
protoOf(WirespecEmitter).fk = function (_this__u8e3s4) {
|
|
2840
|
+
return this.gk(_this__u8e3s4, this.rh_1, WirespecEmitter$emit$lambda_7);
|
|
2773
2841
|
};
|
|
2774
2842
|
function get_DEFAULT_PACKAGE_NAME() {
|
|
2775
2843
|
return DEFAULT_PACKAGE_NAME;
|
|
@@ -2777,9 +2845,9 @@
|
|
|
2777
2845
|
var DEFAULT_PACKAGE_NAME;
|
|
2778
2846
|
function Companion_1() {
|
|
2779
2847
|
Companion_instance_1 = this;
|
|
2780
|
-
this.
|
|
2848
|
+
this.wh_1 = ' ';
|
|
2781
2849
|
}
|
|
2782
|
-
protoOf(Companion_1).
|
|
2850
|
+
protoOf(Companion_1).si = function (_this__u8e3s4) {
|
|
2783
2851
|
var tmp$ret$6;
|
|
2784
2852
|
// Inline function 'kotlin.text.replaceFirstChar' call
|
|
2785
2853
|
var tmp;
|
|
@@ -2813,7 +2881,7 @@
|
|
|
2813
2881
|
tmp$ret$6 = tmp;
|
|
2814
2882
|
return tmp$ret$6;
|
|
2815
2883
|
};
|
|
2816
|
-
protoOf(Companion_1).
|
|
2884
|
+
protoOf(Companion_1).tj = function (_this__u8e3s4) {
|
|
2817
2885
|
var tmp$ret$6;
|
|
2818
2886
|
// Inline function 'kotlin.text.replaceFirstChar' call
|
|
2819
2887
|
var tmp;
|
|
@@ -2847,7 +2915,7 @@
|
|
|
2847
2915
|
tmp$ret$6 = tmp;
|
|
2848
2916
|
return tmp$ret$6;
|
|
2849
2917
|
};
|
|
2850
|
-
protoOf(Companion_1).
|
|
2918
|
+
protoOf(Companion_1).xh = function (_this__u8e3s4) {
|
|
2851
2919
|
var tmp$ret$0;
|
|
2852
2920
|
$l$block_0: {
|
|
2853
2921
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -2876,12 +2944,12 @@
|
|
|
2876
2944
|
}
|
|
2877
2945
|
return tmp$ret$0;
|
|
2878
2946
|
};
|
|
2879
|
-
protoOf(Companion_1).
|
|
2947
|
+
protoOf(Companion_1).zk = function (_this__u8e3s4, content) {
|
|
2880
2948
|
var tmp$ret$4;
|
|
2881
2949
|
// Inline function 'kotlin.collections.map' call
|
|
2882
2950
|
var tmp$ret$1;
|
|
2883
2951
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
2884
|
-
var tmp1_filterIsInstance = _this__u8e3s4.
|
|
2952
|
+
var tmp1_filterIsInstance = _this__u8e3s4.ki_1;
|
|
2885
2953
|
var tmp$ret$0;
|
|
2886
2954
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
2887
2955
|
var tmp0_filterIsInstanceTo = ArrayList_init_$Create$();
|
|
@@ -2903,18 +2971,18 @@
|
|
|
2903
2971
|
var item = tmp0_iterator_0.e();
|
|
2904
2972
|
var tmp$ret$2;
|
|
2905
2973
|
// Inline function 'community.flock.wirespec.compiler.core.emit.common.Companion.joinParameters.<anonymous>' call
|
|
2906
|
-
tmp$ret$2 = new Field(item.
|
|
2974
|
+
tmp$ret$2 = new Field(item.vi_1, item.wi_1, false);
|
|
2907
2975
|
tmp2_mapTo.a(tmp$ret$2);
|
|
2908
2976
|
}
|
|
2909
2977
|
tmp$ret$3 = tmp2_mapTo;
|
|
2910
2978
|
tmp$ret$4 = tmp$ret$3;
|
|
2911
2979
|
var pathField = tmp$ret$4;
|
|
2912
|
-
var parameters = plus(plus(plus(pathField, _this__u8e3s4.
|
|
2980
|
+
var parameters = plus(plus(plus(pathField, _this__u8e3s4.li_1), _this__u8e3s4.mi_1), _this__u8e3s4.ni_1);
|
|
2913
2981
|
var tmp0_safe_receiver = content;
|
|
2914
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2982
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bi_1;
|
|
2915
2983
|
return filterNotNull(plus_0(parameters, tmp1_safe_receiver == null ? null : toField(tmp1_safe_receiver, 'body', false)));
|
|
2916
2984
|
};
|
|
2917
|
-
protoOf(Companion_1).
|
|
2985
|
+
protoOf(Companion_1).mk = function (_this__u8e3s4) {
|
|
2918
2986
|
return !(toIntOrNull(_this__u8e3s4) == null);
|
|
2919
2987
|
};
|
|
2920
2988
|
var Companion_instance_1;
|
|
@@ -2949,16 +3017,16 @@
|
|
|
2949
3017
|
var tmp0_subject = item;
|
|
2950
3018
|
var tmp;
|
|
2951
3019
|
if (tmp0_subject instanceof Type_0) {
|
|
2952
|
-
tmp = to(item.
|
|
3020
|
+
tmp = to(item.xi_1, this.vj(item));
|
|
2953
3021
|
} else {
|
|
2954
3022
|
if (tmp0_subject instanceof Endpoint) {
|
|
2955
|
-
tmp = to(item.
|
|
3023
|
+
tmp = to(item.ii_1, this.fk(item));
|
|
2956
3024
|
} else {
|
|
2957
3025
|
if (tmp0_subject instanceof Enum_0) {
|
|
2958
|
-
tmp = to(item.
|
|
3026
|
+
tmp = to(item.nj_1, this.ak(item));
|
|
2959
3027
|
} else {
|
|
2960
3028
|
if (tmp0_subject instanceof Refined) {
|
|
2961
|
-
tmp = to(item.
|
|
3029
|
+
tmp = to(item.pj_1, this.ck(item));
|
|
2962
3030
|
} else {
|
|
2963
3031
|
noWhenBranchMatchedException();
|
|
2964
3032
|
}
|
|
@@ -2997,7 +3065,7 @@
|
|
|
2997
3065
|
captureStack(this, NextException);
|
|
2998
3066
|
}
|
|
2999
3067
|
function WrongTokenException(expected, actual) {
|
|
3000
|
-
ParserException.call(this, actual.
|
|
3068
|
+
ParserException.call(this, actual.gl_1, '' + expected.fc() + ' expected, not: ' + getKClassFromExpression(actual.el_1).fc() + ' at line ' + actual.gl_1.hl_1 + ' and position ' + (actual.gl_1.il_1 - actual.fl_1.length | 0));
|
|
3001
3069
|
captureStack(this, WrongTokenException);
|
|
3002
3070
|
}
|
|
3003
3071
|
function NullTokenException(message, coordinates) {
|
|
@@ -3015,7 +3083,7 @@
|
|
|
3015
3083
|
function WirespecException(message, coordinates) {
|
|
3016
3084
|
RuntimeException_init_$Init$(message, this);
|
|
3017
3085
|
captureStack(this, WirespecException);
|
|
3018
|
-
this.
|
|
3086
|
+
this.kl_1 = coordinates;
|
|
3019
3087
|
}
|
|
3020
3088
|
function optimize(_this__u8e3s4) {
|
|
3021
3089
|
var tmp$ret$4;
|
|
@@ -3023,10 +3091,10 @@
|
|
|
3023
3091
|
var tmp$ret$0;
|
|
3024
3092
|
// Inline function 'community.flock.wirespec.compiler.core.optimize.optimize.<anonymous>' call
|
|
3025
3093
|
var tmp2__anonymous__z9zvc9 = _this__u8e3s4.ug_1;
|
|
3026
|
-
var tmp0_subject = tmp2__anonymous__z9zvc9.
|
|
3094
|
+
var tmp0_subject = tmp2__anonymous__z9zvc9.el_1;
|
|
3027
3095
|
var tmp;
|
|
3028
3096
|
if (tmp0_subject instanceof CustomRegex) {
|
|
3029
|
-
tmp = tmp2__anonymous__z9zvc9.
|
|
3097
|
+
tmp = tmp2__anonymous__z9zvc9.ll(VOID, '"' + dropLast(drop(tmp2__anonymous__z9zvc9.fl_1, 1), 2) + '"');
|
|
3030
3098
|
} else {
|
|
3031
3099
|
tmp = tmp2__anonymous__z9zvc9;
|
|
3032
3100
|
}
|
|
@@ -3043,10 +3111,10 @@
|
|
|
3043
3111
|
var item = tmp0_iterator.e();
|
|
3044
3112
|
var tmp$ret$1;
|
|
3045
3113
|
// Inline function 'community.flock.wirespec.compiler.core.optimize.optimize.<anonymous>' call
|
|
3046
|
-
var tmp0_subject_0 = item.
|
|
3114
|
+
var tmp0_subject_0 = item.el_1;
|
|
3047
3115
|
var tmp_1;
|
|
3048
3116
|
if (tmp0_subject_0 instanceof CustomRegex) {
|
|
3049
|
-
tmp_1 = item.
|
|
3117
|
+
tmp_1 = item.ll(VOID, '"' + dropLast(drop(item.fl_1, 1), 2) + '"');
|
|
3050
3118
|
} else {
|
|
3051
3119
|
tmp_1 = item;
|
|
3052
3120
|
}
|
|
@@ -3087,29 +3155,29 @@
|
|
|
3087
3155
|
}
|
|
3088
3156
|
function Any(isIterable, isMap) {
|
|
3089
3157
|
isMap = isMap === VOID ? false : isMap;
|
|
3090
|
-
this.
|
|
3091
|
-
this.
|
|
3158
|
+
this.ml_1 = isIterable;
|
|
3159
|
+
this.nl_1 = isMap;
|
|
3092
3160
|
}
|
|
3093
|
-
protoOf(Any).
|
|
3094
|
-
return this.
|
|
3161
|
+
protoOf(Any).ti = function () {
|
|
3162
|
+
return this.ml_1;
|
|
3095
3163
|
};
|
|
3096
|
-
protoOf(Any).
|
|
3097
|
-
return this.
|
|
3164
|
+
protoOf(Any).pk = function () {
|
|
3165
|
+
return this.nl_1;
|
|
3098
3166
|
};
|
|
3099
|
-
protoOf(Any).
|
|
3167
|
+
protoOf(Any).ol = function (isIterable, isMap) {
|
|
3100
3168
|
return new Any(isIterable, isMap);
|
|
3101
3169
|
};
|
|
3102
|
-
protoOf(Any).
|
|
3103
|
-
isIterable = isIterable === VOID ? this.
|
|
3104
|
-
isMap = isMap === VOID ? this.
|
|
3105
|
-
return $super === VOID ? this.
|
|
3170
|
+
protoOf(Any).pl = function (isIterable, isMap, $super) {
|
|
3171
|
+
isIterable = isIterable === VOID ? this.ml_1 : isIterable;
|
|
3172
|
+
isMap = isMap === VOID ? this.nl_1 : isMap;
|
|
3173
|
+
return $super === VOID ? this.ol(isIterable, isMap) : $super.ol.call(this, isIterable, isMap);
|
|
3106
3174
|
};
|
|
3107
3175
|
protoOf(Any).toString = function () {
|
|
3108
|
-
return 'Any(isIterable=' + this.
|
|
3176
|
+
return 'Any(isIterable=' + this.ml_1 + ', isMap=' + this.nl_1 + ')';
|
|
3109
3177
|
};
|
|
3110
3178
|
protoOf(Any).hashCode = function () {
|
|
3111
|
-
var result = this.
|
|
3112
|
-
result = imul(result, 31) + (this.
|
|
3179
|
+
var result = this.ml_1 | 0;
|
|
3180
|
+
result = imul(result, 31) + (this.nl_1 | 0) | 0;
|
|
3113
3181
|
return result;
|
|
3114
3182
|
};
|
|
3115
3183
|
protoOf(Any).equals = function (other) {
|
|
@@ -3118,40 +3186,40 @@
|
|
|
3118
3186
|
if (!(other instanceof Any))
|
|
3119
3187
|
return false;
|
|
3120
3188
|
var tmp0_other_with_cast = other instanceof Any ? other : THROW_CCE();
|
|
3121
|
-
if (!(this.
|
|
3189
|
+
if (!(this.ml_1 === tmp0_other_with_cast.ml_1))
|
|
3122
3190
|
return false;
|
|
3123
|
-
if (!(this.
|
|
3191
|
+
if (!(this.nl_1 === tmp0_other_with_cast.nl_1))
|
|
3124
3192
|
return false;
|
|
3125
3193
|
return true;
|
|
3126
3194
|
};
|
|
3127
3195
|
function Custom(value, isIterable, isMap) {
|
|
3128
3196
|
isMap = isMap === VOID ? false : isMap;
|
|
3129
|
-
this.
|
|
3130
|
-
this.
|
|
3131
|
-
this.
|
|
3197
|
+
this.kj_1 = value;
|
|
3198
|
+
this.lj_1 = isIterable;
|
|
3199
|
+
this.mj_1 = isMap;
|
|
3132
3200
|
}
|
|
3133
|
-
protoOf(Custom).
|
|
3134
|
-
return this.kj_1;
|
|
3135
|
-
};
|
|
3136
|
-
protoOf(Custom).nk = function () {
|
|
3201
|
+
protoOf(Custom).ti = function () {
|
|
3137
3202
|
return this.lj_1;
|
|
3138
3203
|
};
|
|
3139
|
-
protoOf(Custom).
|
|
3204
|
+
protoOf(Custom).pk = function () {
|
|
3205
|
+
return this.mj_1;
|
|
3206
|
+
};
|
|
3207
|
+
protoOf(Custom).ql = function (value, isIterable, isMap) {
|
|
3140
3208
|
return new Custom(value, isIterable, isMap);
|
|
3141
3209
|
};
|
|
3142
|
-
protoOf(Custom).
|
|
3143
|
-
value = value === VOID ? this.
|
|
3144
|
-
isIterable = isIterable === VOID ? this.
|
|
3145
|
-
isMap = isMap === VOID ? this.
|
|
3146
|
-
return $super === VOID ? this.
|
|
3210
|
+
protoOf(Custom).rl = function (value, isIterable, isMap, $super) {
|
|
3211
|
+
value = value === VOID ? this.kj_1 : value;
|
|
3212
|
+
isIterable = isIterable === VOID ? this.lj_1 : isIterable;
|
|
3213
|
+
isMap = isMap === VOID ? this.mj_1 : isMap;
|
|
3214
|
+
return $super === VOID ? this.ql(value, isIterable, isMap) : $super.ql.call(this, value, isIterable, isMap);
|
|
3147
3215
|
};
|
|
3148
3216
|
protoOf(Custom).toString = function () {
|
|
3149
|
-
return 'Custom(value=' + this.
|
|
3217
|
+
return 'Custom(value=' + this.kj_1 + ', isIterable=' + this.lj_1 + ', isMap=' + this.mj_1 + ')';
|
|
3150
3218
|
};
|
|
3151
3219
|
protoOf(Custom).hashCode = function () {
|
|
3152
|
-
var result = getStringHashCode(this.
|
|
3153
|
-
result = imul(result, 31) + (this.kj_1 | 0) | 0;
|
|
3220
|
+
var result = getStringHashCode(this.kj_1);
|
|
3154
3221
|
result = imul(result, 31) + (this.lj_1 | 0) | 0;
|
|
3222
|
+
result = imul(result, 31) + (this.mj_1 | 0) | 0;
|
|
3155
3223
|
return result;
|
|
3156
3224
|
};
|
|
3157
3225
|
protoOf(Custom).equals = function (other) {
|
|
@@ -3160,42 +3228,42 @@
|
|
|
3160
3228
|
if (!(other instanceof Custom))
|
|
3161
3229
|
return false;
|
|
3162
3230
|
var tmp0_other_with_cast = other instanceof Custom ? other : THROW_CCE();
|
|
3163
|
-
if (!(this.jj_1 === tmp0_other_with_cast.jj_1))
|
|
3164
|
-
return false;
|
|
3165
3231
|
if (!(this.kj_1 === tmp0_other_with_cast.kj_1))
|
|
3166
3232
|
return false;
|
|
3167
3233
|
if (!(this.lj_1 === tmp0_other_with_cast.lj_1))
|
|
3168
3234
|
return false;
|
|
3235
|
+
if (!(this.mj_1 === tmp0_other_with_cast.mj_1))
|
|
3236
|
+
return false;
|
|
3169
3237
|
return true;
|
|
3170
3238
|
};
|
|
3171
3239
|
function Primitive(type, isIterable, isMap) {
|
|
3172
3240
|
isMap = isMap === VOID ? false : isMap;
|
|
3173
|
-
this.
|
|
3174
|
-
this.
|
|
3175
|
-
this.
|
|
3241
|
+
this.hj_1 = type;
|
|
3242
|
+
this.ij_1 = isIterable;
|
|
3243
|
+
this.jj_1 = isMap;
|
|
3176
3244
|
}
|
|
3177
|
-
protoOf(Primitive).
|
|
3178
|
-
return this.hj_1;
|
|
3179
|
-
};
|
|
3180
|
-
protoOf(Primitive).nk = function () {
|
|
3245
|
+
protoOf(Primitive).ti = function () {
|
|
3181
3246
|
return this.ij_1;
|
|
3182
3247
|
};
|
|
3183
|
-
protoOf(Primitive).
|
|
3248
|
+
protoOf(Primitive).pk = function () {
|
|
3249
|
+
return this.jj_1;
|
|
3250
|
+
};
|
|
3251
|
+
protoOf(Primitive).sl = function (type, isIterable, isMap) {
|
|
3184
3252
|
return new Primitive(type, isIterable, isMap);
|
|
3185
3253
|
};
|
|
3186
|
-
protoOf(Primitive).
|
|
3187
|
-
type = type === VOID ? this.
|
|
3188
|
-
isIterable = isIterable === VOID ? this.
|
|
3189
|
-
isMap = isMap === VOID ? this.
|
|
3190
|
-
return $super === VOID ? this.
|
|
3254
|
+
protoOf(Primitive).tl = function (type, isIterable, isMap, $super) {
|
|
3255
|
+
type = type === VOID ? this.hj_1 : type;
|
|
3256
|
+
isIterable = isIterable === VOID ? this.ij_1 : isIterable;
|
|
3257
|
+
isMap = isMap === VOID ? this.jj_1 : isMap;
|
|
3258
|
+
return $super === VOID ? this.sl(type, isIterable, isMap) : $super.sl.call(this, type, isIterable, isMap);
|
|
3191
3259
|
};
|
|
3192
3260
|
protoOf(Primitive).toString = function () {
|
|
3193
|
-
return 'Primitive(type=' + this.
|
|
3261
|
+
return 'Primitive(type=' + this.hj_1 + ', isIterable=' + this.ij_1 + ', isMap=' + this.jj_1 + ')';
|
|
3194
3262
|
};
|
|
3195
3263
|
protoOf(Primitive).hashCode = function () {
|
|
3196
|
-
var result = this.
|
|
3197
|
-
result = imul(result, 31) + (this.hj_1 | 0) | 0;
|
|
3264
|
+
var result = this.hj_1.hashCode();
|
|
3198
3265
|
result = imul(result, 31) + (this.ij_1 | 0) | 0;
|
|
3266
|
+
result = imul(result, 31) + (this.jj_1 | 0) | 0;
|
|
3199
3267
|
return result;
|
|
3200
3268
|
};
|
|
3201
3269
|
protoOf(Primitive).equals = function (other) {
|
|
@@ -3204,22 +3272,22 @@
|
|
|
3204
3272
|
if (!(other instanceof Primitive))
|
|
3205
3273
|
return false;
|
|
3206
3274
|
var tmp0_other_with_cast = other instanceof Primitive ? other : THROW_CCE();
|
|
3207
|
-
if (!this.
|
|
3208
|
-
return false;
|
|
3209
|
-
if (!(this.hj_1 === tmp0_other_with_cast.hj_1))
|
|
3275
|
+
if (!this.hj_1.equals(tmp0_other_with_cast.hj_1))
|
|
3210
3276
|
return false;
|
|
3211
3277
|
if (!(this.ij_1 === tmp0_other_with_cast.ij_1))
|
|
3212
3278
|
return false;
|
|
3279
|
+
if (!(this.jj_1 === tmp0_other_with_cast.jj_1))
|
|
3280
|
+
return false;
|
|
3213
3281
|
return true;
|
|
3214
3282
|
};
|
|
3215
3283
|
function Identifier(value) {
|
|
3216
|
-
this.
|
|
3284
|
+
this.gj_1 = value;
|
|
3217
3285
|
}
|
|
3218
3286
|
protoOf(Identifier).toString = function () {
|
|
3219
|
-
return 'Identifier(value=' + this.
|
|
3287
|
+
return 'Identifier(value=' + this.gj_1 + ')';
|
|
3220
3288
|
};
|
|
3221
3289
|
protoOf(Identifier).hashCode = function () {
|
|
3222
|
-
return getStringHashCode(this.
|
|
3290
|
+
return getStringHashCode(this.gj_1);
|
|
3223
3291
|
};
|
|
3224
3292
|
protoOf(Identifier).equals = function (other) {
|
|
3225
3293
|
if (this === other)
|
|
@@ -3227,22 +3295,22 @@
|
|
|
3227
3295
|
if (!(other instanceof Identifier))
|
|
3228
3296
|
return false;
|
|
3229
3297
|
var tmp0_other_with_cast = other instanceof Identifier ? other : THROW_CCE();
|
|
3230
|
-
if (!(this.
|
|
3298
|
+
if (!(this.gj_1 === tmp0_other_with_cast.gj_1))
|
|
3231
3299
|
return false;
|
|
3232
3300
|
return true;
|
|
3233
3301
|
};
|
|
3234
3302
|
function Field(identifier, reference, isNullable) {
|
|
3235
|
-
this.
|
|
3236
|
-
this.
|
|
3237
|
-
this.
|
|
3303
|
+
this.cj_1 = identifier;
|
|
3304
|
+
this.dj_1 = reference;
|
|
3305
|
+
this.ej_1 = isNullable;
|
|
3238
3306
|
}
|
|
3239
3307
|
protoOf(Field).toString = function () {
|
|
3240
|
-
return 'Field(identifier=' + this.
|
|
3308
|
+
return 'Field(identifier=' + this.cj_1 + ', reference=' + this.dj_1 + ', isNullable=' + this.ej_1 + ')';
|
|
3241
3309
|
};
|
|
3242
3310
|
protoOf(Field).hashCode = function () {
|
|
3243
|
-
var result = this.
|
|
3244
|
-
result = imul(result, 31) + hashCode(this.
|
|
3245
|
-
result = imul(result, 31) + (this.
|
|
3311
|
+
var result = this.cj_1.hashCode();
|
|
3312
|
+
result = imul(result, 31) + hashCode(this.dj_1) | 0;
|
|
3313
|
+
result = imul(result, 31) + (this.ej_1 | 0) | 0;
|
|
3246
3314
|
return result;
|
|
3247
3315
|
};
|
|
3248
3316
|
protoOf(Field).equals = function (other) {
|
|
@@ -3251,22 +3319,22 @@
|
|
|
3251
3319
|
if (!(other instanceof Field))
|
|
3252
3320
|
return false;
|
|
3253
3321
|
var tmp0_other_with_cast = other instanceof Field ? other : THROW_CCE();
|
|
3254
|
-
if (!this.
|
|
3322
|
+
if (!this.cj_1.equals(tmp0_other_with_cast.cj_1))
|
|
3255
3323
|
return false;
|
|
3256
|
-
if (!equals(this.
|
|
3324
|
+
if (!equals(this.dj_1, tmp0_other_with_cast.dj_1))
|
|
3257
3325
|
return false;
|
|
3258
|
-
if (!(this.
|
|
3326
|
+
if (!(this.ej_1 === tmp0_other_with_cast.ej_1))
|
|
3259
3327
|
return false;
|
|
3260
3328
|
return true;
|
|
3261
3329
|
};
|
|
3262
3330
|
function Shape(value) {
|
|
3263
|
-
this.
|
|
3331
|
+
this.bj_1 = value;
|
|
3264
3332
|
}
|
|
3265
3333
|
protoOf(Shape).toString = function () {
|
|
3266
|
-
return 'Shape(value=' + this.
|
|
3334
|
+
return 'Shape(value=' + this.bj_1 + ')';
|
|
3267
3335
|
};
|
|
3268
3336
|
protoOf(Shape).hashCode = function () {
|
|
3269
|
-
return hashCode(this.
|
|
3337
|
+
return hashCode(this.bj_1);
|
|
3270
3338
|
};
|
|
3271
3339
|
protoOf(Shape).equals = function (other) {
|
|
3272
3340
|
if (this === other)
|
|
@@ -3274,20 +3342,20 @@
|
|
|
3274
3342
|
if (!(other instanceof Shape))
|
|
3275
3343
|
return false;
|
|
3276
3344
|
var tmp0_other_with_cast = other instanceof Shape ? other : THROW_CCE();
|
|
3277
|
-
if (!equals(this.
|
|
3345
|
+
if (!equals(this.bj_1, tmp0_other_with_cast.bj_1))
|
|
3278
3346
|
return false;
|
|
3279
3347
|
return true;
|
|
3280
3348
|
};
|
|
3281
3349
|
function Type_0(name, shape) {
|
|
3282
|
-
this.
|
|
3283
|
-
this.
|
|
3350
|
+
this.xi_1 = name;
|
|
3351
|
+
this.yi_1 = shape;
|
|
3284
3352
|
}
|
|
3285
3353
|
protoOf(Type_0).toString = function () {
|
|
3286
|
-
return 'Type(name=' + this.
|
|
3354
|
+
return 'Type(name=' + this.xi_1 + ', shape=' + this.yi_1 + ')';
|
|
3287
3355
|
};
|
|
3288
3356
|
protoOf(Type_0).hashCode = function () {
|
|
3289
|
-
var result = getStringHashCode(this.
|
|
3290
|
-
result = imul(result, 31) + this.
|
|
3357
|
+
var result = getStringHashCode(this.xi_1);
|
|
3358
|
+
result = imul(result, 31) + this.yi_1.hashCode() | 0;
|
|
3291
3359
|
return result;
|
|
3292
3360
|
};
|
|
3293
3361
|
protoOf(Type_0).equals = function (other) {
|
|
@@ -3296,9 +3364,9 @@
|
|
|
3296
3364
|
if (!(other instanceof Type_0))
|
|
3297
3365
|
return false;
|
|
3298
3366
|
var tmp0_other_with_cast = other instanceof Type_0 ? other : THROW_CCE();
|
|
3299
|
-
if (!(this.
|
|
3367
|
+
if (!(this.xi_1 === tmp0_other_with_cast.xi_1))
|
|
3300
3368
|
return false;
|
|
3301
|
-
if (!this.
|
|
3369
|
+
if (!this.yi_1.equals(tmp0_other_with_cast.yi_1))
|
|
3302
3370
|
return false;
|
|
3303
3371
|
return true;
|
|
3304
3372
|
};
|
|
@@ -3328,13 +3396,13 @@
|
|
|
3328
3396
|
Method_TRACE_instance = new Method('TRACE', 7);
|
|
3329
3397
|
}
|
|
3330
3398
|
function Literal(value) {
|
|
3331
|
-
this.
|
|
3399
|
+
this.uj_1 = value;
|
|
3332
3400
|
}
|
|
3333
3401
|
protoOf(Literal).toString = function () {
|
|
3334
|
-
return 'Literal(value=' + this.
|
|
3402
|
+
return 'Literal(value=' + this.uj_1 + ')';
|
|
3335
3403
|
};
|
|
3336
3404
|
protoOf(Literal).hashCode = function () {
|
|
3337
|
-
return getStringHashCode(this.
|
|
3405
|
+
return getStringHashCode(this.uj_1);
|
|
3338
3406
|
};
|
|
3339
3407
|
protoOf(Literal).equals = function (other) {
|
|
3340
3408
|
if (this === other)
|
|
@@ -3342,20 +3410,20 @@
|
|
|
3342
3410
|
if (!(other instanceof Literal))
|
|
3343
3411
|
return false;
|
|
3344
3412
|
var tmp0_other_with_cast = other instanceof Literal ? other : THROW_CCE();
|
|
3345
|
-
if (!(this.
|
|
3413
|
+
if (!(this.uj_1 === tmp0_other_with_cast.uj_1))
|
|
3346
3414
|
return false;
|
|
3347
3415
|
return true;
|
|
3348
3416
|
};
|
|
3349
3417
|
function Param(identifier, reference) {
|
|
3350
|
-
this.
|
|
3351
|
-
this.
|
|
3418
|
+
this.vi_1 = identifier;
|
|
3419
|
+
this.wi_1 = reference;
|
|
3352
3420
|
}
|
|
3353
3421
|
protoOf(Param).toString = function () {
|
|
3354
|
-
return 'Param(identifier=' + this.
|
|
3422
|
+
return 'Param(identifier=' + this.vi_1 + ', reference=' + this.wi_1 + ')';
|
|
3355
3423
|
};
|
|
3356
3424
|
protoOf(Param).hashCode = function () {
|
|
3357
|
-
var result = this.
|
|
3358
|
-
result = imul(result, 31) + hashCode(this.
|
|
3425
|
+
var result = this.vi_1.hashCode();
|
|
3426
|
+
result = imul(result, 31) + hashCode(this.wi_1) | 0;
|
|
3359
3427
|
return result;
|
|
3360
3428
|
};
|
|
3361
3429
|
protoOf(Param).equals = function (other) {
|
|
@@ -3364,9 +3432,9 @@
|
|
|
3364
3432
|
if (!(other instanceof Param))
|
|
3365
3433
|
return false;
|
|
3366
3434
|
var tmp0_other_with_cast = other instanceof Param ? other : THROW_CCE();
|
|
3367
|
-
if (!this.
|
|
3435
|
+
if (!this.vi_1.equals(tmp0_other_with_cast.vi_1))
|
|
3368
3436
|
return false;
|
|
3369
|
-
if (!equals(this.
|
|
3437
|
+
if (!equals(this.wi_1, tmp0_other_with_cast.wi_1))
|
|
3370
3438
|
return false;
|
|
3371
3439
|
return true;
|
|
3372
3440
|
};
|
|
@@ -3374,13 +3442,13 @@
|
|
|
3374
3442
|
Enum.call(this, name, ordinal);
|
|
3375
3443
|
}
|
|
3376
3444
|
function Request(content) {
|
|
3377
|
-
this.
|
|
3445
|
+
this.zh_1 = content;
|
|
3378
3446
|
}
|
|
3379
3447
|
protoOf(Request).toString = function () {
|
|
3380
|
-
return 'Request(content=' + this.
|
|
3448
|
+
return 'Request(content=' + this.zh_1 + ')';
|
|
3381
3449
|
};
|
|
3382
3450
|
protoOf(Request).hashCode = function () {
|
|
3383
|
-
return this.
|
|
3451
|
+
return this.zh_1 == null ? 0 : this.zh_1.hashCode();
|
|
3384
3452
|
};
|
|
3385
3453
|
protoOf(Request).equals = function (other) {
|
|
3386
3454
|
if (this === other)
|
|
@@ -3388,20 +3456,20 @@
|
|
|
3388
3456
|
if (!(other instanceof Request))
|
|
3389
3457
|
return false;
|
|
3390
3458
|
var tmp0_other_with_cast = other instanceof Request ? other : THROW_CCE();
|
|
3391
|
-
if (!equals(this.
|
|
3459
|
+
if (!equals(this.zh_1, tmp0_other_with_cast.zh_1))
|
|
3392
3460
|
return false;
|
|
3393
3461
|
return true;
|
|
3394
3462
|
};
|
|
3395
3463
|
function Response(status, content) {
|
|
3396
|
-
this.
|
|
3397
|
-
this.
|
|
3464
|
+
this.qi_1 = status;
|
|
3465
|
+
this.ri_1 = content;
|
|
3398
3466
|
}
|
|
3399
3467
|
protoOf(Response).toString = function () {
|
|
3400
|
-
return 'Response(status=' + this.
|
|
3468
|
+
return 'Response(status=' + this.qi_1 + ', content=' + this.ri_1 + ')';
|
|
3401
3469
|
};
|
|
3402
3470
|
protoOf(Response).hashCode = function () {
|
|
3403
|
-
var result = getStringHashCode(this.
|
|
3404
|
-
result = imul(result, 31) + (this.
|
|
3471
|
+
var result = getStringHashCode(this.qi_1);
|
|
3472
|
+
result = imul(result, 31) + (this.ri_1 == null ? 0 : this.ri_1.hashCode()) | 0;
|
|
3405
3473
|
return result;
|
|
3406
3474
|
};
|
|
3407
3475
|
protoOf(Response).equals = function (other) {
|
|
@@ -3410,24 +3478,24 @@
|
|
|
3410
3478
|
if (!(other instanceof Response))
|
|
3411
3479
|
return false;
|
|
3412
3480
|
var tmp0_other_with_cast = other instanceof Response ? other : THROW_CCE();
|
|
3413
|
-
if (!(this.
|
|
3481
|
+
if (!(this.qi_1 === tmp0_other_with_cast.qi_1))
|
|
3414
3482
|
return false;
|
|
3415
|
-
if (!equals(this.
|
|
3483
|
+
if (!equals(this.ri_1, tmp0_other_with_cast.ri_1))
|
|
3416
3484
|
return false;
|
|
3417
3485
|
return true;
|
|
3418
3486
|
};
|
|
3419
3487
|
function Content(type, reference, isNullable) {
|
|
3420
|
-
this.
|
|
3421
|
-
this.
|
|
3422
|
-
this.
|
|
3488
|
+
this.ai_1 = type;
|
|
3489
|
+
this.bi_1 = reference;
|
|
3490
|
+
this.ci_1 = isNullable;
|
|
3423
3491
|
}
|
|
3424
3492
|
protoOf(Content).toString = function () {
|
|
3425
|
-
return 'Content(type=' + this.
|
|
3493
|
+
return 'Content(type=' + this.ai_1 + ', reference=' + this.bi_1 + ', isNullable=' + this.ci_1 + ')';
|
|
3426
3494
|
};
|
|
3427
3495
|
protoOf(Content).hashCode = function () {
|
|
3428
|
-
var result = getStringHashCode(this.
|
|
3429
|
-
result = imul(result, 31) + hashCode(this.
|
|
3430
|
-
result = imul(result, 31) + (this.
|
|
3496
|
+
var result = getStringHashCode(this.ai_1);
|
|
3497
|
+
result = imul(result, 31) + hashCode(this.bi_1) | 0;
|
|
3498
|
+
result = imul(result, 31) + (this.ci_1 | 0) | 0;
|
|
3431
3499
|
return result;
|
|
3432
3500
|
};
|
|
3433
3501
|
protoOf(Content).equals = function (other) {
|
|
@@ -3436,11 +3504,11 @@
|
|
|
3436
3504
|
if (!(other instanceof Content))
|
|
3437
3505
|
return false;
|
|
3438
3506
|
var tmp0_other_with_cast = other instanceof Content ? other : THROW_CCE();
|
|
3439
|
-
if (!(this.
|
|
3507
|
+
if (!(this.ai_1 === tmp0_other_with_cast.ai_1))
|
|
3440
3508
|
return false;
|
|
3441
|
-
if (!equals(this.
|
|
3509
|
+
if (!equals(this.bi_1, tmp0_other_with_cast.bi_1))
|
|
3442
3510
|
return false;
|
|
3443
|
-
if (!(this.
|
|
3511
|
+
if (!(this.ci_1 === tmp0_other_with_cast.ci_1))
|
|
3444
3512
|
return false;
|
|
3445
3513
|
return true;
|
|
3446
3514
|
};
|
|
@@ -3477,27 +3545,27 @@
|
|
|
3477
3545
|
return Method_TRACE_instance;
|
|
3478
3546
|
}
|
|
3479
3547
|
function Endpoint(name, method, path, query, headers, cookies, requests, responses) {
|
|
3480
|
-
this.
|
|
3481
|
-
this.
|
|
3482
|
-
this.
|
|
3483
|
-
this.
|
|
3484
|
-
this.
|
|
3485
|
-
this.
|
|
3486
|
-
this.
|
|
3487
|
-
this.
|
|
3548
|
+
this.ii_1 = name;
|
|
3549
|
+
this.ji_1 = method;
|
|
3550
|
+
this.ki_1 = path;
|
|
3551
|
+
this.li_1 = query;
|
|
3552
|
+
this.mi_1 = headers;
|
|
3553
|
+
this.ni_1 = cookies;
|
|
3554
|
+
this.oi_1 = requests;
|
|
3555
|
+
this.pi_1 = responses;
|
|
3488
3556
|
}
|
|
3489
3557
|
protoOf(Endpoint).toString = function () {
|
|
3490
|
-
return 'Endpoint(name=' + this.
|
|
3558
|
+
return 'Endpoint(name=' + this.ii_1 + ', method=' + this.ji_1 + ', path=' + this.ki_1 + ', query=' + this.li_1 + ', headers=' + this.mi_1 + ', cookies=' + this.ni_1 + ', requests=' + this.oi_1 + ', responses=' + this.pi_1 + ')';
|
|
3491
3559
|
};
|
|
3492
3560
|
protoOf(Endpoint).hashCode = function () {
|
|
3493
|
-
var result = getStringHashCode(this.
|
|
3494
|
-
result = imul(result, 31) + this.
|
|
3495
|
-
result = imul(result, 31) + hashCode(this.ii_1) | 0;
|
|
3496
|
-
result = imul(result, 31) + hashCode(this.ji_1) | 0;
|
|
3561
|
+
var result = getStringHashCode(this.ii_1);
|
|
3562
|
+
result = imul(result, 31) + this.ji_1.hashCode() | 0;
|
|
3497
3563
|
result = imul(result, 31) + hashCode(this.ki_1) | 0;
|
|
3498
3564
|
result = imul(result, 31) + hashCode(this.li_1) | 0;
|
|
3499
3565
|
result = imul(result, 31) + hashCode(this.mi_1) | 0;
|
|
3500
3566
|
result = imul(result, 31) + hashCode(this.ni_1) | 0;
|
|
3567
|
+
result = imul(result, 31) + hashCode(this.oi_1) | 0;
|
|
3568
|
+
result = imul(result, 31) + hashCode(this.pi_1) | 0;
|
|
3501
3569
|
return result;
|
|
3502
3570
|
};
|
|
3503
3571
|
protoOf(Endpoint).equals = function (other) {
|
|
@@ -3506,13 +3574,9 @@
|
|
|
3506
3574
|
if (!(other instanceof Endpoint))
|
|
3507
3575
|
return false;
|
|
3508
3576
|
var tmp0_other_with_cast = other instanceof Endpoint ? other : THROW_CCE();
|
|
3509
|
-
if (!(this.
|
|
3510
|
-
return false;
|
|
3511
|
-
if (!this.hi_1.equals(tmp0_other_with_cast.hi_1))
|
|
3577
|
+
if (!(this.ii_1 === tmp0_other_with_cast.ii_1))
|
|
3512
3578
|
return false;
|
|
3513
|
-
if (!equals(
|
|
3514
|
-
return false;
|
|
3515
|
-
if (!equals(this.ji_1, tmp0_other_with_cast.ji_1))
|
|
3579
|
+
if (!this.ji_1.equals(tmp0_other_with_cast.ji_1))
|
|
3516
3580
|
return false;
|
|
3517
3581
|
if (!equals(this.ki_1, tmp0_other_with_cast.ki_1))
|
|
3518
3582
|
return false;
|
|
@@ -3522,18 +3586,22 @@
|
|
|
3522
3586
|
return false;
|
|
3523
3587
|
if (!equals(this.ni_1, tmp0_other_with_cast.ni_1))
|
|
3524
3588
|
return false;
|
|
3589
|
+
if (!equals(this.oi_1, tmp0_other_with_cast.oi_1))
|
|
3590
|
+
return false;
|
|
3591
|
+
if (!equals(this.pi_1, tmp0_other_with_cast.pi_1))
|
|
3592
|
+
return false;
|
|
3525
3593
|
return true;
|
|
3526
3594
|
};
|
|
3527
3595
|
function Enum_0(name, entries) {
|
|
3528
|
-
this.
|
|
3529
|
-
this.
|
|
3596
|
+
this.nj_1 = name;
|
|
3597
|
+
this.oj_1 = entries;
|
|
3530
3598
|
}
|
|
3531
3599
|
protoOf(Enum_0).toString = function () {
|
|
3532
|
-
return 'Enum(name=' + this.
|
|
3600
|
+
return 'Enum(name=' + this.nj_1 + ', entries=' + this.oj_1 + ')';
|
|
3533
3601
|
};
|
|
3534
3602
|
protoOf(Enum_0).hashCode = function () {
|
|
3535
|
-
var result = getStringHashCode(this.
|
|
3536
|
-
result = imul(result, 31) + hashCode(this.
|
|
3603
|
+
var result = getStringHashCode(this.nj_1);
|
|
3604
|
+
result = imul(result, 31) + hashCode(this.oj_1) | 0;
|
|
3537
3605
|
return result;
|
|
3538
3606
|
};
|
|
3539
3607
|
protoOf(Enum_0).equals = function (other) {
|
|
@@ -3542,20 +3610,20 @@
|
|
|
3542
3610
|
if (!(other instanceof Enum_0))
|
|
3543
3611
|
return false;
|
|
3544
3612
|
var tmp0_other_with_cast = other instanceof Enum_0 ? other : THROW_CCE();
|
|
3545
|
-
if (!(this.
|
|
3613
|
+
if (!(this.nj_1 === tmp0_other_with_cast.nj_1))
|
|
3546
3614
|
return false;
|
|
3547
|
-
if (!equals(this.
|
|
3615
|
+
if (!equals(this.oj_1, tmp0_other_with_cast.oj_1))
|
|
3548
3616
|
return false;
|
|
3549
3617
|
return true;
|
|
3550
3618
|
};
|
|
3551
3619
|
function Validator(value) {
|
|
3552
|
-
this.
|
|
3620
|
+
this.sj_1 = value;
|
|
3553
3621
|
}
|
|
3554
3622
|
protoOf(Validator).toString = function () {
|
|
3555
|
-
return 'Validator(value=' + this.
|
|
3623
|
+
return 'Validator(value=' + this.sj_1 + ')';
|
|
3556
3624
|
};
|
|
3557
3625
|
protoOf(Validator).hashCode = function () {
|
|
3558
|
-
return getStringHashCode(this.
|
|
3626
|
+
return getStringHashCode(this.sj_1);
|
|
3559
3627
|
};
|
|
3560
3628
|
protoOf(Validator).equals = function (other) {
|
|
3561
3629
|
if (this === other)
|
|
@@ -3563,20 +3631,20 @@
|
|
|
3563
3631
|
if (!(other instanceof Validator))
|
|
3564
3632
|
return false;
|
|
3565
3633
|
var tmp0_other_with_cast = other instanceof Validator ? other : THROW_CCE();
|
|
3566
|
-
if (!(this.
|
|
3634
|
+
if (!(this.sj_1 === tmp0_other_with_cast.sj_1))
|
|
3567
3635
|
return false;
|
|
3568
3636
|
return true;
|
|
3569
3637
|
};
|
|
3570
3638
|
function Refined(name, validator) {
|
|
3571
|
-
this.
|
|
3572
|
-
this.
|
|
3639
|
+
this.pj_1 = name;
|
|
3640
|
+
this.qj_1 = validator;
|
|
3573
3641
|
}
|
|
3574
3642
|
protoOf(Refined).toString = function () {
|
|
3575
|
-
return 'Refined(name=' + this.
|
|
3643
|
+
return 'Refined(name=' + this.pj_1 + ', validator=' + this.qj_1 + ')';
|
|
3576
3644
|
};
|
|
3577
3645
|
protoOf(Refined).hashCode = function () {
|
|
3578
|
-
var result = getStringHashCode(this.
|
|
3579
|
-
result = imul(result, 31) + this.
|
|
3646
|
+
var result = getStringHashCode(this.pj_1);
|
|
3647
|
+
result = imul(result, 31) + this.qj_1.hashCode() | 0;
|
|
3580
3648
|
return result;
|
|
3581
3649
|
};
|
|
3582
3650
|
protoOf(Refined).equals = function (other) {
|
|
@@ -3585,9 +3653,9 @@
|
|
|
3585
3653
|
if (!(other instanceof Refined))
|
|
3586
3654
|
return false;
|
|
3587
3655
|
var tmp0_other_with_cast = other instanceof Refined ? other : THROW_CCE();
|
|
3588
|
-
if (!(this.
|
|
3656
|
+
if (!(this.pj_1 === tmp0_other_with_cast.pj_1))
|
|
3589
3657
|
return false;
|
|
3590
|
-
if (!this.
|
|
3658
|
+
if (!this.qj_1.equals(tmp0_other_with_cast.qj_1))
|
|
3591
3659
|
return false;
|
|
3592
3660
|
return true;
|
|
3593
3661
|
};
|
|
@@ -3686,8 +3754,8 @@
|
|
|
3686
3754
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3687
3755
|
var tmp$ret$2;
|
|
3688
3756
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>' call
|
|
3689
|
-
log(_this__u8e3s4.
|
|
3690
|
-
var tmp0_subject = _this__u8e3s4.
|
|
3757
|
+
log(_this__u8e3s4.wl_1, $this);
|
|
3758
|
+
var tmp0_subject = _this__u8e3s4.wl_1.el_1;
|
|
3691
3759
|
var tmp_0;
|
|
3692
3760
|
if (tmp0_subject instanceof WsTypeDef) {
|
|
3693
3761
|
tmp_0 = raise.fh(parseTypeDeclaration(_this__u8e3s4, $this));
|
|
@@ -3702,10 +3770,10 @@
|
|
|
3702
3770
|
// Inline function 'arrow.core.nel' call
|
|
3703
3771
|
var tmp$ret$0;
|
|
3704
3772
|
// Inline function 'kotlin.also' call
|
|
3705
|
-
var tmp0_also = new WrongTokenException(getKClass(WsTypeDef), _this__u8e3s4.
|
|
3773
|
+
var tmp0_also = new WrongTokenException(getKClass(WsTypeDef), _this__u8e3s4.wl_1);
|
|
3706
3774
|
// Inline function 'kotlin.contracts.contract' call
|
|
3707
3775
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
3708
|
-
raise.fh(_this__u8e3s4.
|
|
3776
|
+
raise.fh(_this__u8e3s4.yl());
|
|
3709
3777
|
tmp$ret$0 = tmp0_also;
|
|
3710
3778
|
var tmp1_nel = tmp$ret$0;
|
|
3711
3779
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
@@ -3764,21 +3832,21 @@
|
|
|
3764
3832
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3765
3833
|
var tmp$ret$2;
|
|
3766
3834
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDeclaration.<anonymous>' call
|
|
3767
|
-
raise.fh(_this__u8e3s4.
|
|
3768
|
-
log(_this__u8e3s4.
|
|
3769
|
-
var tmp0_subject = _this__u8e3s4.
|
|
3835
|
+
raise.fh(_this__u8e3s4.yl());
|
|
3836
|
+
log(_this__u8e3s4.wl_1, $this);
|
|
3837
|
+
var tmp0_subject = _this__u8e3s4.wl_1.el_1;
|
|
3770
3838
|
var tmp_0;
|
|
3771
3839
|
if (tmp0_subject instanceof CustomType) {
|
|
3772
|
-
tmp_0 = raise.fh(parseTypeDefinition(_this__u8e3s4, $this, _this__u8e3s4.
|
|
3840
|
+
tmp_0 = raise.fh(parseTypeDefinition(_this__u8e3s4, $this, _this__u8e3s4.wl_1.fl_1));
|
|
3773
3841
|
} else {
|
|
3774
3842
|
var tmp$ret$1;
|
|
3775
3843
|
// Inline function 'arrow.core.nel' call
|
|
3776
3844
|
var tmp$ret$0;
|
|
3777
3845
|
// Inline function 'kotlin.also' call
|
|
3778
|
-
var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.
|
|
3846
|
+
var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.wl_1);
|
|
3779
3847
|
// Inline function 'kotlin.contracts.contract' call
|
|
3780
3848
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDeclaration.<anonymous>.<anonymous>' call
|
|
3781
|
-
raise.fh(_this__u8e3s4.
|
|
3849
|
+
raise.fh(_this__u8e3s4.yl());
|
|
3782
3850
|
tmp$ret$0 = tmp0_also;
|
|
3783
3851
|
var tmp1_nel = tmp$ret$0;
|
|
3784
3852
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
@@ -3835,11 +3903,11 @@
|
|
|
3835
3903
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3836
3904
|
var tmp$ret$5;
|
|
3837
3905
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDefinition.<anonymous>' call
|
|
3838
|
-
raise.fh(_this__u8e3s4.
|
|
3839
|
-
log(_this__u8e3s4.
|
|
3906
|
+
raise.fh(_this__u8e3s4.yl());
|
|
3907
|
+
log(_this__u8e3s4.wl_1, $this);
|
|
3840
3908
|
var tmp$ret$4;
|
|
3841
3909
|
// Inline function 'kotlin.also' call
|
|
3842
|
-
var tmp0_subject = _this__u8e3s4.
|
|
3910
|
+
var tmp0_subject = _this__u8e3s4.wl_1.el_1;
|
|
3843
3911
|
var tmp_0;
|
|
3844
3912
|
if (tmp0_subject instanceof LeftCurly) {
|
|
3845
3913
|
tmp_0 = new Type_0(typeName, raise.fh(parseTypeShape(_this__u8e3s4, $this)));
|
|
@@ -3848,10 +3916,10 @@
|
|
|
3848
3916
|
// Inline function 'arrow.core.nel' call
|
|
3849
3917
|
var tmp$ret$0;
|
|
3850
3918
|
// Inline function 'kotlin.also' call
|
|
3851
|
-
var tmp0_also = new WrongTokenException(getKClass(LeftCurly), _this__u8e3s4.
|
|
3919
|
+
var tmp0_also = new WrongTokenException(getKClass(LeftCurly), _this__u8e3s4.wl_1);
|
|
3852
3920
|
// Inline function 'kotlin.contracts.contract' call
|
|
3853
3921
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDefinition.<anonymous>.<anonymous>' call
|
|
3854
|
-
raise.fh(_this__u8e3s4.
|
|
3922
|
+
raise.fh(_this__u8e3s4.yl());
|
|
3855
3923
|
tmp$ret$0 = tmp0_also;
|
|
3856
3924
|
var tmp1_nel = tmp$ret$0;
|
|
3857
3925
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
@@ -3860,18 +3928,18 @@
|
|
|
3860
3928
|
var tmp2_also = tmp_0;
|
|
3861
3929
|
// Inline function 'kotlin.contracts.contract' call
|
|
3862
3930
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDefinition.<anonymous>.<anonymous>' call
|
|
3863
|
-
var tmp0_subject_0 = _this__u8e3s4.
|
|
3931
|
+
var tmp0_subject_0 = _this__u8e3s4.wl_1.el_1;
|
|
3864
3932
|
if (tmp0_subject_0 instanceof RightCurly)
|
|
3865
|
-
raise.fh(_this__u8e3s4.
|
|
3933
|
+
raise.fh(_this__u8e3s4.yl());
|
|
3866
3934
|
else {
|
|
3867
3935
|
var tmp$ret$3;
|
|
3868
3936
|
// Inline function 'arrow.core.nel' call
|
|
3869
3937
|
var tmp$ret$2;
|
|
3870
3938
|
// Inline function 'kotlin.also' call
|
|
3871
|
-
var tmp0_also_0 = new WrongTokenException(getKClass(RightCurly), _this__u8e3s4.
|
|
3939
|
+
var tmp0_also_0 = new WrongTokenException(getKClass(RightCurly), _this__u8e3s4.wl_1);
|
|
3872
3940
|
// Inline function 'kotlin.contracts.contract' call
|
|
3873
3941
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDefinition.<anonymous>.<anonymous>.<anonymous>' call
|
|
3874
|
-
raise.fh(_this__u8e3s4.
|
|
3942
|
+
raise.fh(_this__u8e3s4.yl());
|
|
3875
3943
|
tmp$ret$2 = tmp0_also_0;
|
|
3876
3944
|
var tmp1_nel_0 = tmp$ret$2;
|
|
3877
3945
|
tmp$ret$3 = nonEmptyListOf(tmp1_nel_0, []);
|
|
@@ -3929,11 +3997,11 @@
|
|
|
3929
3997
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3930
3998
|
var tmp$ret$7;
|
|
3931
3999
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeShape.<anonymous>' call
|
|
3932
|
-
raise.fh(_this__u8e3s4.
|
|
3933
|
-
log(_this__u8e3s4.
|
|
4000
|
+
raise.fh(_this__u8e3s4.yl());
|
|
4001
|
+
log(_this__u8e3s4.wl_1, $this);
|
|
3934
4002
|
var tmp$ret$6;
|
|
3935
4003
|
// Inline function 'kotlin.let' call
|
|
3936
|
-
var tmp0_subject = _this__u8e3s4.
|
|
4004
|
+
var tmp0_subject = _this__u8e3s4.wl_1.el_1;
|
|
3937
4005
|
var tmp_0;
|
|
3938
4006
|
if (tmp0_subject instanceof CustomValue) {
|
|
3939
4007
|
var tmp$ret$3;
|
|
@@ -3944,21 +4012,21 @@
|
|
|
3944
4012
|
var tmp0_apply = tmp$ret$0;
|
|
3945
4013
|
// Inline function 'kotlin.contracts.contract' call
|
|
3946
4014
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeShape.<anonymous>.<anonymous>' call
|
|
3947
|
-
tmp0_apply.a(raise.fh(parseField(_this__u8e3s4, $this, new Identifier(_this__u8e3s4.
|
|
3948
|
-
while (equals(_this__u8e3s4.
|
|
3949
|
-
raise.fh(_this__u8e3s4.
|
|
3950
|
-
var tmp0_subject_0 = _this__u8e3s4.
|
|
4015
|
+
tmp0_apply.a(raise.fh(parseField(_this__u8e3s4, $this, new Identifier(_this__u8e3s4.wl_1.fl_1))));
|
|
4016
|
+
while (equals(_this__u8e3s4.wl_1.el_1, Comma_getInstance())) {
|
|
4017
|
+
raise.fh(_this__u8e3s4.yl());
|
|
4018
|
+
var tmp0_subject_0 = _this__u8e3s4.wl_1.el_1;
|
|
3951
4019
|
if (tmp0_subject_0 instanceof CustomValue) {
|
|
3952
|
-
tmp0_apply.a(raise.fh(parseField(_this__u8e3s4, $this, new Identifier(_this__u8e3s4.
|
|
4020
|
+
tmp0_apply.a(raise.fh(parseField(_this__u8e3s4, $this, new Identifier(_this__u8e3s4.wl_1.fl_1))));
|
|
3953
4021
|
} else {
|
|
3954
4022
|
var tmp$ret$2;
|
|
3955
4023
|
// Inline function 'arrow.core.nel' call
|
|
3956
4024
|
var tmp$ret$1;
|
|
3957
4025
|
// Inline function 'kotlin.also' call
|
|
3958
|
-
var tmp0_also = new WrongTokenException(getKClass(CustomValue), _this__u8e3s4.
|
|
4026
|
+
var tmp0_also = new WrongTokenException(getKClass(CustomValue), _this__u8e3s4.wl_1);
|
|
3959
4027
|
// Inline function 'kotlin.contracts.contract' call
|
|
3960
4028
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeShape.<anonymous>.<anonymous>.<anonymous>' call
|
|
3961
|
-
raise.fh(_this__u8e3s4.
|
|
4029
|
+
raise.fh(_this__u8e3s4.yl());
|
|
3962
4030
|
tmp$ret$1 = tmp0_also;
|
|
3963
4031
|
var tmp1_nel = tmp$ret$1;
|
|
3964
4032
|
tmp$ret$2 = nonEmptyListOf(tmp1_nel, []);
|
|
@@ -3972,10 +4040,10 @@
|
|
|
3972
4040
|
// Inline function 'arrow.core.nel' call
|
|
3973
4041
|
var tmp$ret$4;
|
|
3974
4042
|
// Inline function 'kotlin.also' call
|
|
3975
|
-
var tmp1_also = new WrongTokenException(getKClass(CustomValue), _this__u8e3s4.
|
|
4043
|
+
var tmp1_also = new WrongTokenException(getKClass(CustomValue), _this__u8e3s4.wl_1);
|
|
3976
4044
|
// Inline function 'kotlin.contracts.contract' call
|
|
3977
4045
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeShape.<anonymous>.<anonymous>' call
|
|
3978
|
-
raise.fh(_this__u8e3s4.
|
|
4046
|
+
raise.fh(_this__u8e3s4.yl());
|
|
3979
4047
|
tmp$ret$4 = tmp1_also;
|
|
3980
4048
|
var tmp2_nel = tmp$ret$4;
|
|
3981
4049
|
tmp$ret$5 = nonEmptyListOf(tmp2_nel, []);
|
|
@@ -4035,37 +4103,37 @@
|
|
|
4035
4103
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4036
4104
|
var tmp$ret$5;
|
|
4037
4105
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseField.<anonymous>' call
|
|
4038
|
-
raise.fh(_this__u8e3s4.
|
|
4039
|
-
log(_this__u8e3s4.
|
|
4040
|
-
var tmp0_subject = _this__u8e3s4.
|
|
4106
|
+
raise.fh(_this__u8e3s4.yl());
|
|
4107
|
+
log(_this__u8e3s4.wl_1, $this);
|
|
4108
|
+
var tmp0_subject = _this__u8e3s4.wl_1.el_1;
|
|
4041
4109
|
if (tmp0_subject instanceof Colon)
|
|
4042
|
-
raise.fh(_this__u8e3s4.
|
|
4110
|
+
raise.fh(_this__u8e3s4.yl());
|
|
4043
4111
|
else {
|
|
4044
4112
|
var tmp$ret$1;
|
|
4045
4113
|
// Inline function 'arrow.core.nel' call
|
|
4046
4114
|
var tmp$ret$0;
|
|
4047
4115
|
// Inline function 'kotlin.also' call
|
|
4048
|
-
var tmp0_also = new WrongTokenException(getKClass(Colon), _this__u8e3s4.
|
|
4116
|
+
var tmp0_also = new WrongTokenException(getKClass(Colon), _this__u8e3s4.wl_1);
|
|
4049
4117
|
// Inline function 'kotlin.contracts.contract' call
|
|
4050
4118
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseField.<anonymous>.<anonymous>' call
|
|
4051
|
-
raise.fh(_this__u8e3s4.
|
|
4119
|
+
raise.fh(_this__u8e3s4.yl());
|
|
4052
4120
|
tmp$ret$0 = tmp0_also;
|
|
4053
4121
|
var tmp1_nel = tmp$ret$0;
|
|
4054
4122
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
4055
4123
|
raise.eh(tmp$ret$1);
|
|
4056
4124
|
}
|
|
4057
|
-
var type = _this__u8e3s4.
|
|
4125
|
+
var type = _this__u8e3s4.wl_1.el_1;
|
|
4058
4126
|
var tmp_0;
|
|
4059
4127
|
if (isInterface(type, WsType)) {
|
|
4060
|
-
var tmp_1 = raise.fh(parseFieldValue(_this__u8e3s4, $this, type, _this__u8e3s4.
|
|
4128
|
+
var tmp_1 = raise.fh(parseFieldValue(_this__u8e3s4, $this, type, _this__u8e3s4.wl_1.fl_1));
|
|
4061
4129
|
var tmp$ret$2;
|
|
4062
4130
|
// Inline function 'kotlin.also' call
|
|
4063
|
-
var tmp_2 = _this__u8e3s4.
|
|
4131
|
+
var tmp_2 = _this__u8e3s4.wl_1.el_1;
|
|
4064
4132
|
var tmp2_also = tmp_2 instanceof QuestionMark;
|
|
4065
4133
|
// Inline function 'kotlin.contracts.contract' call
|
|
4066
4134
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseField.<anonymous>.<anonymous>' call
|
|
4067
4135
|
if (tmp2_also)
|
|
4068
|
-
raise.fh(_this__u8e3s4.
|
|
4136
|
+
raise.fh(_this__u8e3s4.yl());
|
|
4069
4137
|
tmp$ret$2 = tmp2_also;
|
|
4070
4138
|
tmp_0 = new Field(identifier, tmp_1, tmp$ret$2);
|
|
4071
4139
|
} else {
|
|
@@ -4073,10 +4141,10 @@
|
|
|
4073
4141
|
// Inline function 'arrow.core.nel' call
|
|
4074
4142
|
var tmp$ret$3;
|
|
4075
4143
|
// Inline function 'kotlin.also' call
|
|
4076
|
-
var tmp3_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.
|
|
4144
|
+
var tmp3_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.wl_1);
|
|
4077
4145
|
// Inline function 'kotlin.contracts.contract' call
|
|
4078
4146
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseField.<anonymous>.<anonymous>' call
|
|
4079
|
-
raise.fh(_this__u8e3s4.
|
|
4147
|
+
raise.fh(_this__u8e3s4.yl());
|
|
4080
4148
|
tmp$ret$3 = tmp3_also;
|
|
4081
4149
|
var tmp4_nel = tmp$ret$3;
|
|
4082
4150
|
tmp$ret$4 = nonEmptyListOf(tmp4_nel, []);
|
|
@@ -4133,16 +4201,16 @@
|
|
|
4133
4201
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4134
4202
|
var tmp$ret$1;
|
|
4135
4203
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseFieldValue.<anonymous>' call
|
|
4136
|
-
raise.fh(_this__u8e3s4.
|
|
4137
|
-
log(_this__u8e3s4.
|
|
4204
|
+
raise.fh(_this__u8e3s4.yl());
|
|
4205
|
+
log(_this__u8e3s4.wl_1, $this);
|
|
4138
4206
|
var tmp$ret$0;
|
|
4139
4207
|
// Inline function 'kotlin.also' call
|
|
4140
|
-
var tmp_0 = _this__u8e3s4.
|
|
4208
|
+
var tmp_0 = _this__u8e3s4.wl_1.el_1;
|
|
4141
4209
|
var tmp0_also = tmp_0 instanceof Brackets;
|
|
4142
4210
|
// Inline function 'kotlin.contracts.contract' call
|
|
4143
4211
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseFieldValue.<anonymous>.<anonymous>' call
|
|
4144
4212
|
if (tmp0_also)
|
|
4145
|
-
raise.fh(_this__u8e3s4.
|
|
4213
|
+
raise.fh(_this__u8e3s4.yl());
|
|
4146
4214
|
tmp$ret$0 = tmp0_also;
|
|
4147
4215
|
var isIterable = tmp$ret$0;
|
|
4148
4216
|
var tmp0_subject = wsType;
|
|
@@ -4215,21 +4283,21 @@
|
|
|
4215
4283
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4216
4284
|
var tmp$ret$2;
|
|
4217
4285
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDeclaration.<anonymous>' call
|
|
4218
|
-
raise.fh(_this__u8e3s4.
|
|
4219
|
-
log(_this__u8e3s4.
|
|
4220
|
-
var tmp0_subject = _this__u8e3s4.
|
|
4286
|
+
raise.fh(_this__u8e3s4.yl());
|
|
4287
|
+
log(_this__u8e3s4.wl_1, $this);
|
|
4288
|
+
var tmp0_subject = _this__u8e3s4.wl_1.el_1;
|
|
4221
4289
|
var tmp_0;
|
|
4222
4290
|
if (tmp0_subject instanceof CustomType) {
|
|
4223
|
-
tmp_0 = raise.fh(parseEnumTypeDefinition(_this__u8e3s4, $this, _this__u8e3s4.
|
|
4291
|
+
tmp_0 = raise.fh(parseEnumTypeDefinition(_this__u8e3s4, $this, _this__u8e3s4.wl_1.fl_1));
|
|
4224
4292
|
} else {
|
|
4225
4293
|
var tmp$ret$1;
|
|
4226
4294
|
// Inline function 'arrow.core.nel' call
|
|
4227
4295
|
var tmp$ret$0;
|
|
4228
4296
|
// Inline function 'kotlin.also' call
|
|
4229
|
-
var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.
|
|
4297
|
+
var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.wl_1);
|
|
4230
4298
|
// Inline function 'kotlin.contracts.contract' call
|
|
4231
4299
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDeclaration.<anonymous>.<anonymous>' call
|
|
4232
|
-
raise.fh(_this__u8e3s4.
|
|
4300
|
+
raise.fh(_this__u8e3s4.yl());
|
|
4233
4301
|
tmp$ret$0 = tmp0_also;
|
|
4234
4302
|
var tmp1_nel = tmp$ret$0;
|
|
4235
4303
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
@@ -4286,11 +4354,11 @@
|
|
|
4286
4354
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4287
4355
|
var tmp$ret$5;
|
|
4288
4356
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDefinition.<anonymous>' call
|
|
4289
|
-
raise.fh(_this__u8e3s4.
|
|
4290
|
-
log(_this__u8e3s4.
|
|
4357
|
+
raise.fh(_this__u8e3s4.yl());
|
|
4358
|
+
log(_this__u8e3s4.wl_1, $this);
|
|
4291
4359
|
var tmp$ret$4;
|
|
4292
4360
|
// Inline function 'kotlin.also' call
|
|
4293
|
-
var tmp0_subject = _this__u8e3s4.
|
|
4361
|
+
var tmp0_subject = _this__u8e3s4.wl_1.el_1;
|
|
4294
4362
|
var tmp_0;
|
|
4295
4363
|
if (tmp0_subject instanceof LeftCurly) {
|
|
4296
4364
|
tmp_0 = new Enum_0(typeName, raise.fh(parseEnumTypeEntries(_this__u8e3s4, $this)));
|
|
@@ -4299,10 +4367,10 @@
|
|
|
4299
4367
|
// Inline function 'arrow.core.nel' call
|
|
4300
4368
|
var tmp$ret$0;
|
|
4301
4369
|
// Inline function 'kotlin.also' call
|
|
4302
|
-
var tmp0_also = new WrongTokenException(getKClass(LeftCurly), _this__u8e3s4.
|
|
4370
|
+
var tmp0_also = new WrongTokenException(getKClass(LeftCurly), _this__u8e3s4.wl_1);
|
|
4303
4371
|
// Inline function 'kotlin.contracts.contract' call
|
|
4304
4372
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDefinition.<anonymous>.<anonymous>' call
|
|
4305
|
-
raise.fh(_this__u8e3s4.
|
|
4373
|
+
raise.fh(_this__u8e3s4.yl());
|
|
4306
4374
|
tmp$ret$0 = tmp0_also;
|
|
4307
4375
|
var tmp1_nel = tmp$ret$0;
|
|
4308
4376
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
@@ -4311,18 +4379,18 @@
|
|
|
4311
4379
|
var tmp2_also = tmp_0;
|
|
4312
4380
|
// Inline function 'kotlin.contracts.contract' call
|
|
4313
4381
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDefinition.<anonymous>.<anonymous>' call
|
|
4314
|
-
var tmp0_subject_0 = _this__u8e3s4.
|
|
4382
|
+
var tmp0_subject_0 = _this__u8e3s4.wl_1.el_1;
|
|
4315
4383
|
if (tmp0_subject_0 instanceof RightCurly)
|
|
4316
|
-
raise.fh(_this__u8e3s4.
|
|
4384
|
+
raise.fh(_this__u8e3s4.yl());
|
|
4317
4385
|
else {
|
|
4318
4386
|
var tmp$ret$3;
|
|
4319
4387
|
// Inline function 'arrow.core.nel' call
|
|
4320
4388
|
var tmp$ret$2;
|
|
4321
4389
|
// Inline function 'kotlin.also' call
|
|
4322
|
-
var tmp0_also_0 = new WrongTokenException(getKClass(RightCurly), _this__u8e3s4.
|
|
4390
|
+
var tmp0_also_0 = new WrongTokenException(getKClass(RightCurly), _this__u8e3s4.wl_1);
|
|
4323
4391
|
// Inline function 'kotlin.contracts.contract' call
|
|
4324
4392
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDefinition.<anonymous>.<anonymous>.<anonymous>' call
|
|
4325
|
-
raise.fh(_this__u8e3s4.
|
|
4393
|
+
raise.fh(_this__u8e3s4.yl());
|
|
4326
4394
|
tmp$ret$2 = tmp0_also_0;
|
|
4327
4395
|
var tmp1_nel_0 = tmp$ret$2;
|
|
4328
4396
|
tmp$ret$3 = nonEmptyListOf(tmp1_nel_0, []);
|
|
@@ -4380,9 +4448,9 @@
|
|
|
4380
4448
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4381
4449
|
var tmp$ret$7;
|
|
4382
4450
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>' call
|
|
4383
|
-
raise.fh(_this__u8e3s4.
|
|
4384
|
-
log(_this__u8e3s4.
|
|
4385
|
-
var tmp0_subject = _this__u8e3s4.
|
|
4451
|
+
raise.fh(_this__u8e3s4.yl());
|
|
4452
|
+
log(_this__u8e3s4.wl_1, $this);
|
|
4453
|
+
var tmp0_subject = _this__u8e3s4.wl_1.el_1;
|
|
4386
4454
|
var tmp_0;
|
|
4387
4455
|
if (tmp0_subject instanceof CustomType) {
|
|
4388
4456
|
var tmp$ret$4;
|
|
@@ -4393,28 +4461,28 @@
|
|
|
4393
4461
|
var tmp0_apply = tmp$ret$0;
|
|
4394
4462
|
// Inline function 'kotlin.contracts.contract' call
|
|
4395
4463
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>.<anonymous>' call
|
|
4396
|
-
tmp0_apply.a(_this__u8e3s4.
|
|
4397
|
-
raise.fh(_this__u8e3s4.
|
|
4398
|
-
while (equals(_this__u8e3s4.
|
|
4399
|
-
raise.fh(_this__u8e3s4.
|
|
4400
|
-
var tmp0_subject_0 = _this__u8e3s4.
|
|
4464
|
+
tmp0_apply.a(_this__u8e3s4.wl_1.fl_1);
|
|
4465
|
+
raise.fh(_this__u8e3s4.yl());
|
|
4466
|
+
while (equals(_this__u8e3s4.wl_1.el_1, Comma_getInstance())) {
|
|
4467
|
+
raise.fh(_this__u8e3s4.yl());
|
|
4468
|
+
var tmp0_subject_0 = _this__u8e3s4.wl_1.el_1;
|
|
4401
4469
|
if (tmp0_subject_0 instanceof CustomType) {
|
|
4402
4470
|
var tmp$ret$1;
|
|
4403
4471
|
// Inline function 'kotlin.also' call
|
|
4404
|
-
var tmp0_also = tmp0_apply.a(_this__u8e3s4.
|
|
4472
|
+
var tmp0_also = tmp0_apply.a(_this__u8e3s4.wl_1.fl_1);
|
|
4405
4473
|
// Inline function 'kotlin.contracts.contract' call
|
|
4406
4474
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
|
|
4407
|
-
raise.fh(_this__u8e3s4.
|
|
4475
|
+
raise.fh(_this__u8e3s4.yl());
|
|
4408
4476
|
tmp$ret$1 = tmp0_also;
|
|
4409
4477
|
} else {
|
|
4410
4478
|
var tmp$ret$3;
|
|
4411
4479
|
// Inline function 'arrow.core.nel' call
|
|
4412
4480
|
var tmp$ret$2;
|
|
4413
4481
|
// Inline function 'kotlin.also' call
|
|
4414
|
-
var tmp1_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.
|
|
4482
|
+
var tmp1_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.wl_1);
|
|
4415
4483
|
// Inline function 'kotlin.contracts.contract' call
|
|
4416
4484
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
|
|
4417
|
-
raise.fh(_this__u8e3s4.
|
|
4485
|
+
raise.fh(_this__u8e3s4.yl());
|
|
4418
4486
|
tmp$ret$2 = tmp1_also;
|
|
4419
4487
|
var tmp2_nel = tmp$ret$2;
|
|
4420
4488
|
tmp$ret$3 = nonEmptyListOf(tmp2_nel, []);
|
|
@@ -4428,10 +4496,10 @@
|
|
|
4428
4496
|
// Inline function 'arrow.core.nel' call
|
|
4429
4497
|
var tmp$ret$5;
|
|
4430
4498
|
// Inline function 'kotlin.also' call
|
|
4431
|
-
var tmp1_also_0 = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.
|
|
4499
|
+
var tmp1_also_0 = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.wl_1);
|
|
4432
4500
|
// Inline function 'kotlin.contracts.contract' call
|
|
4433
4501
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>.<anonymous>' call
|
|
4434
|
-
raise.fh(_this__u8e3s4.
|
|
4502
|
+
raise.fh(_this__u8e3s4.yl());
|
|
4435
4503
|
tmp$ret$5 = tmp1_also_0;
|
|
4436
4504
|
var tmp2_nel_0 = tmp$ret$5;
|
|
4437
4505
|
tmp$ret$6 = nonEmptyListOf(tmp2_nel_0, []);
|
|
@@ -4488,21 +4556,21 @@
|
|
|
4488
4556
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4489
4557
|
var tmp$ret$2;
|
|
4490
4558
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseRefinedTypeDeclaration.<anonymous>' call
|
|
4491
|
-
raise.fh(_this__u8e3s4.
|
|
4492
|
-
log(_this__u8e3s4.
|
|
4493
|
-
var tmp0_subject = _this__u8e3s4.
|
|
4559
|
+
raise.fh(_this__u8e3s4.yl());
|
|
4560
|
+
log(_this__u8e3s4.wl_1, $this);
|
|
4561
|
+
var tmp0_subject = _this__u8e3s4.wl_1.el_1;
|
|
4494
4562
|
var tmp_0;
|
|
4495
4563
|
if (tmp0_subject instanceof CustomType) {
|
|
4496
|
-
tmp_0 = raise.fh(parseCustomRegex(_this__u8e3s4, $this, _this__u8e3s4.
|
|
4564
|
+
tmp_0 = raise.fh(parseCustomRegex(_this__u8e3s4, $this, _this__u8e3s4.wl_1.fl_1));
|
|
4497
4565
|
} else {
|
|
4498
4566
|
var tmp$ret$1;
|
|
4499
4567
|
// Inline function 'arrow.core.nel' call
|
|
4500
4568
|
var tmp$ret$0;
|
|
4501
4569
|
// Inline function 'kotlin.also' call
|
|
4502
|
-
var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.
|
|
4570
|
+
var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.wl_1);
|
|
4503
4571
|
// Inline function 'kotlin.contracts.contract' call
|
|
4504
4572
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseRefinedTypeDeclaration.<anonymous>.<anonymous>' call
|
|
4505
|
-
raise.fh(_this__u8e3s4.
|
|
4573
|
+
raise.fh(_this__u8e3s4.yl());
|
|
4506
4574
|
tmp$ret$0 = tmp0_also;
|
|
4507
4575
|
var tmp1_nel = tmp$ret$0;
|
|
4508
4576
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
@@ -4559,23 +4627,23 @@
|
|
|
4559
4627
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4560
4628
|
var tmp$ret$3;
|
|
4561
4629
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseCustomRegex.<anonymous>' call
|
|
4562
|
-
raise.fh(_this__u8e3s4.
|
|
4563
|
-
log(_this__u8e3s4.
|
|
4630
|
+
raise.fh(_this__u8e3s4.yl());
|
|
4631
|
+
log(_this__u8e3s4.wl_1, $this);
|
|
4564
4632
|
var tmp$ret$2;
|
|
4565
4633
|
// Inline function 'kotlin.also' call
|
|
4566
|
-
var tmp0_subject = _this__u8e3s4.
|
|
4634
|
+
var tmp0_subject = _this__u8e3s4.wl_1.el_1;
|
|
4567
4635
|
var tmp_0;
|
|
4568
4636
|
if (tmp0_subject instanceof CustomRegex) {
|
|
4569
|
-
tmp_0 = new Refined(typeName, new Validator(_this__u8e3s4.
|
|
4637
|
+
tmp_0 = new Refined(typeName, new Validator(_this__u8e3s4.wl_1.fl_1));
|
|
4570
4638
|
} else {
|
|
4571
4639
|
var tmp$ret$1;
|
|
4572
4640
|
// Inline function 'arrow.core.nel' call
|
|
4573
4641
|
var tmp$ret$0;
|
|
4574
4642
|
// Inline function 'kotlin.also' call
|
|
4575
|
-
var tmp0_also = new WrongTokenException(getKClass(CustomRegex), _this__u8e3s4.
|
|
4643
|
+
var tmp0_also = new WrongTokenException(getKClass(CustomRegex), _this__u8e3s4.wl_1);
|
|
4576
4644
|
// Inline function 'kotlin.contracts.contract' call
|
|
4577
4645
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseCustomRegex.<anonymous>.<anonymous>' call
|
|
4578
|
-
raise.fh(_this__u8e3s4.
|
|
4646
|
+
raise.fh(_this__u8e3s4.yl());
|
|
4579
4647
|
tmp$ret$0 = tmp0_also;
|
|
4580
4648
|
var tmp1_nel = tmp$ret$0;
|
|
4581
4649
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
@@ -4584,7 +4652,7 @@
|
|
|
4584
4652
|
var tmp2_also = tmp_0;
|
|
4585
4653
|
// Inline function 'kotlin.contracts.contract' call
|
|
4586
4654
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseCustomRegex.<anonymous>.<anonymous>' call
|
|
4587
|
-
raise.fh(_this__u8e3s4.
|
|
4655
|
+
raise.fh(_this__u8e3s4.yl());
|
|
4588
4656
|
tmp$ret$2 = tmp2_also;
|
|
4589
4657
|
tmp$ret$3 = tmp$ret$2;
|
|
4590
4658
|
tmp$ret$4 = tmp$ret$3;
|
|
@@ -4622,7 +4690,7 @@
|
|
|
4622
4690
|
return tmp$ret$9;
|
|
4623
4691
|
}
|
|
4624
4692
|
function log(_this__u8e3s4, $this) {
|
|
4625
|
-
return $this.ph_1.lh('Parsing ' + _this__u8e3s4.
|
|
4693
|
+
return $this.ph_1.lh('Parsing ' + _this__u8e3s4.el_1 + ' at line ' + _this__u8e3s4.gl_1.hl_1 + ' position ' + _this__u8e3s4.gl_1.il_1);
|
|
4626
4694
|
}
|
|
4627
4695
|
function Parser(logger) {
|
|
4628
4696
|
this.ph_1 = logger;
|
|
@@ -4638,7 +4706,7 @@
|
|
|
4638
4706
|
var element = tmp0_iterator.e();
|
|
4639
4707
|
var tmp$ret$0;
|
|
4640
4708
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parse.<anonymous>' call
|
|
4641
|
-
var tmp = element.
|
|
4709
|
+
var tmp = element.el_1;
|
|
4642
4710
|
tmp$ret$0 = isInterface(tmp, WhiteSpace);
|
|
4643
4711
|
if (!tmp$ret$0) {
|
|
4644
4712
|
tmp0_filterNotTo.a(element);
|
|
@@ -4659,7 +4727,7 @@
|
|
|
4659
4727
|
// Inline function 'kotlin.contracts.contract' call
|
|
4660
4728
|
var tmp$ret$0;
|
|
4661
4729
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>' call
|
|
4662
|
-
tmp$ret$0 = "Eating: '" + tmp0_safe_receiver.
|
|
4730
|
+
tmp$ret$0 = "Eating: '" + tmp0_safe_receiver.fl_1 + "', ";
|
|
4663
4731
|
tmp$ret$1 = tmp$ret$0;
|
|
4664
4732
|
tmp = tmp$ret$1;
|
|
4665
4733
|
}
|
|
@@ -4667,14 +4735,14 @@
|
|
|
4667
4735
|
var prev = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
|
|
4668
4736
|
var tmp$ret$3;
|
|
4669
4737
|
// Inline function 'kotlin.run' call
|
|
4670
|
-
var tmp0_run = $this.
|
|
4738
|
+
var tmp0_run = $this.wl_1;
|
|
4671
4739
|
// Inline function 'kotlin.contracts.contract' call
|
|
4672
4740
|
var tmp$ret$2;
|
|
4673
4741
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>' call
|
|
4674
|
-
tmp$ret$2 = "Current: '" + tmp0_run.
|
|
4742
|
+
tmp$ret$2 = "Current: '" + tmp0_run.fl_1 + "'";
|
|
4675
4743
|
tmp$ret$3 = tmp$ret$2;
|
|
4676
4744
|
var curr = tmp$ret$3;
|
|
4677
|
-
var tmp2_safe_receiver = $this.
|
|
4745
|
+
var tmp2_safe_receiver = $this.xl_1;
|
|
4678
4746
|
var tmp_0;
|
|
4679
4747
|
if (tmp2_safe_receiver == null) {
|
|
4680
4748
|
tmp_0 = null;
|
|
@@ -4684,13 +4752,13 @@
|
|
|
4684
4752
|
// Inline function 'kotlin.contracts.contract' call
|
|
4685
4753
|
var tmp$ret$4;
|
|
4686
4754
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>' call
|
|
4687
|
-
tmp$ret$4 = ", Next: '" + tmp2_safe_receiver.
|
|
4755
|
+
tmp$ret$4 = ", Next: '" + tmp2_safe_receiver.fl_1 + "'";
|
|
4688
4756
|
tmp$ret$5 = tmp$ret$4;
|
|
4689
4757
|
tmp_0 = tmp$ret$5;
|
|
4690
4758
|
}
|
|
4691
4759
|
var tmp3_elvis_lhs = tmp_0;
|
|
4692
4760
|
var next = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
|
|
4693
|
-
$this.
|
|
4761
|
+
$this.ul_1.lh(prev + curr + next);
|
|
4694
4762
|
}
|
|
4695
4763
|
function printTokens$default($this, previousToken, $super) {
|
|
4696
4764
|
previousToken = previousToken === VOID ? null : previousToken;
|
|
@@ -4708,7 +4776,7 @@
|
|
|
4708
4776
|
var tmp0_success = Companion_getInstance();
|
|
4709
4777
|
var tmp$ret$0;
|
|
4710
4778
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.nextToken.<anonymous>' call
|
|
4711
|
-
tmp$ret$0 = $this.
|
|
4779
|
+
tmp$ret$0 = $this.vl_1.e();
|
|
4712
4780
|
var tmp1_success = tmp$ret$0;
|
|
4713
4781
|
tmp$ret$1 = _Result___init__impl__xyqfz8(tmp1_success);
|
|
4714
4782
|
tmp = tmp$ret$1;
|
|
@@ -4739,8 +4807,8 @@
|
|
|
4739
4807
|
return tmp$ret$4;
|
|
4740
4808
|
}
|
|
4741
4809
|
function TokenProvider(logger, tokenIterator) {
|
|
4742
|
-
this.
|
|
4743
|
-
this.
|
|
4810
|
+
this.ul_1 = logger;
|
|
4811
|
+
this.vl_1 = tokenIterator;
|
|
4744
4812
|
var tmp = this;
|
|
4745
4813
|
var tmp0_elvis_lhs = nextToken(this);
|
|
4746
4814
|
var tmp_0;
|
|
@@ -4753,14 +4821,14 @@
|
|
|
4753
4821
|
} else {
|
|
4754
4822
|
tmp_0 = tmp0_elvis_lhs;
|
|
4755
4823
|
}
|
|
4756
|
-
tmp.
|
|
4757
|
-
this.
|
|
4824
|
+
tmp.wl_1 = tmp_0;
|
|
4825
|
+
this.xl_1 = nextToken(this);
|
|
4758
4826
|
printTokens$default(this);
|
|
4759
4827
|
}
|
|
4760
4828
|
protoOf(TokenProvider).d = function () {
|
|
4761
|
-
return !(this.
|
|
4829
|
+
return !(this.xl_1 == null);
|
|
4762
4830
|
};
|
|
4763
|
-
protoOf(TokenProvider).
|
|
4831
|
+
protoOf(TokenProvider).yl = function () {
|
|
4764
4832
|
var tmp$ret$6;
|
|
4765
4833
|
// Inline function 'arrow.core.raise.either' call
|
|
4766
4834
|
var tmp$ret$5;
|
|
@@ -4774,21 +4842,21 @@
|
|
|
4774
4842
|
try {
|
|
4775
4843
|
var tmp$ret$1;
|
|
4776
4844
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4777
|
-
var previousToken = this.
|
|
4845
|
+
var previousToken = this.wl_1;
|
|
4778
4846
|
var tmp_0 = this;
|
|
4779
|
-
var tmp0_elvis_lhs = this.
|
|
4847
|
+
var tmp0_elvis_lhs = this.xl_1;
|
|
4780
4848
|
var tmp_1;
|
|
4781
4849
|
if (tmp0_elvis_lhs == null) {
|
|
4782
4850
|
var tmp$ret$0;
|
|
4783
4851
|
// Inline function 'arrow.core.nel' call
|
|
4784
|
-
var tmp0_nel = new NextException(previousToken.
|
|
4852
|
+
var tmp0_nel = new NextException(previousToken.gl_1);
|
|
4785
4853
|
tmp$ret$0 = nonEmptyListOf(tmp0_nel, []);
|
|
4786
4854
|
raise.eh(tmp$ret$0);
|
|
4787
4855
|
} else {
|
|
4788
4856
|
tmp_1 = tmp0_elvis_lhs;
|
|
4789
4857
|
}
|
|
4790
|
-
tmp_0.
|
|
4791
|
-
this.
|
|
4858
|
+
tmp_0.wl_1 = tmp_1;
|
|
4859
|
+
this.xl_1 = nextToken(this);
|
|
4792
4860
|
printTokens(this, previousToken);
|
|
4793
4861
|
tmp$ret$1 = Unit_getInstance();
|
|
4794
4862
|
var res = tmp$ret$1;
|
|
@@ -4830,15 +4898,15 @@
|
|
|
4830
4898
|
function IdxAndLength(idx, length) {
|
|
4831
4899
|
idx = idx === VOID ? 0 : idx;
|
|
4832
4900
|
length = length === VOID ? 0 : length;
|
|
4833
|
-
this.
|
|
4834
|
-
this.
|
|
4901
|
+
this.zl_1 = idx;
|
|
4902
|
+
this.am_1 = length;
|
|
4835
4903
|
}
|
|
4836
4904
|
protoOf(IdxAndLength).toString = function () {
|
|
4837
|
-
return 'IdxAndLength(idx=' + this.
|
|
4905
|
+
return 'IdxAndLength(idx=' + this.zl_1 + ', length=' + this.am_1 + ')';
|
|
4838
4906
|
};
|
|
4839
4907
|
protoOf(IdxAndLength).hashCode = function () {
|
|
4840
|
-
var result = this.
|
|
4841
|
-
result = imul(result, 31) + this.
|
|
4908
|
+
var result = this.zl_1;
|
|
4909
|
+
result = imul(result, 31) + this.am_1 | 0;
|
|
4842
4910
|
return result;
|
|
4843
4911
|
};
|
|
4844
4912
|
protoOf(IdxAndLength).equals = function (other) {
|
|
@@ -4847,9 +4915,9 @@
|
|
|
4847
4915
|
if (!(other instanceof IdxAndLength))
|
|
4848
4916
|
return false;
|
|
4849
4917
|
var tmp0_other_with_cast = other instanceof IdxAndLength ? other : THROW_CCE();
|
|
4850
|
-
if (!(this.
|
|
4918
|
+
if (!(this.zl_1 === tmp0_other_with_cast.zl_1))
|
|
4851
4919
|
return false;
|
|
4852
|
-
if (!(this.
|
|
4920
|
+
if (!(this.am_1 === tmp0_other_with_cast.am_1))
|
|
4853
4921
|
return false;
|
|
4854
4922
|
return true;
|
|
4855
4923
|
};
|
|
@@ -4857,26 +4925,26 @@
|
|
|
4857
4925
|
line = line === VOID ? 1 : line;
|
|
4858
4926
|
position = position === VOID ? 1 : position;
|
|
4859
4927
|
idxAndLength = idxAndLength === VOID ? new IdxAndLength() : idxAndLength;
|
|
4860
|
-
this.
|
|
4861
|
-
this.
|
|
4862
|
-
this.
|
|
4928
|
+
this.hl_1 = line;
|
|
4929
|
+
this.il_1 = position;
|
|
4930
|
+
this.jl_1 = idxAndLength;
|
|
4863
4931
|
}
|
|
4864
|
-
protoOf(Coordinates).
|
|
4932
|
+
protoOf(Coordinates).bm = function (line, position, idxAndLength) {
|
|
4865
4933
|
return new Coordinates(line, position, idxAndLength);
|
|
4866
4934
|
};
|
|
4867
|
-
protoOf(Coordinates).
|
|
4868
|
-
line = line === VOID ? this.
|
|
4869
|
-
position = position === VOID ? this.
|
|
4870
|
-
idxAndLength = idxAndLength === VOID ? this.
|
|
4871
|
-
return $super === VOID ? this.
|
|
4935
|
+
protoOf(Coordinates).cm = function (line, position, idxAndLength, $super) {
|
|
4936
|
+
line = line === VOID ? this.hl_1 : line;
|
|
4937
|
+
position = position === VOID ? this.il_1 : position;
|
|
4938
|
+
idxAndLength = idxAndLength === VOID ? this.jl_1 : idxAndLength;
|
|
4939
|
+
return $super === VOID ? this.bm(line, position, idxAndLength) : $super.bm.call(this, line, position, idxAndLength);
|
|
4872
4940
|
};
|
|
4873
4941
|
protoOf(Coordinates).toString = function () {
|
|
4874
|
-
return 'Coordinates(line=' + this.
|
|
4942
|
+
return 'Coordinates(line=' + this.hl_1 + ', position=' + this.il_1 + ', idxAndLength=' + this.jl_1 + ')';
|
|
4875
4943
|
};
|
|
4876
4944
|
protoOf(Coordinates).hashCode = function () {
|
|
4877
|
-
var result = this.
|
|
4878
|
-
result = imul(result, 31) + this.
|
|
4879
|
-
result = imul(result, 31) + this.
|
|
4945
|
+
var result = this.hl_1;
|
|
4946
|
+
result = imul(result, 31) + this.il_1 | 0;
|
|
4947
|
+
result = imul(result, 31) + this.jl_1.hashCode() | 0;
|
|
4880
4948
|
return result;
|
|
4881
4949
|
};
|
|
4882
4950
|
protoOf(Coordinates).equals = function (other) {
|
|
@@ -4885,35 +4953,35 @@
|
|
|
4885
4953
|
if (!(other instanceof Coordinates))
|
|
4886
4954
|
return false;
|
|
4887
4955
|
var tmp0_other_with_cast = other instanceof Coordinates ? other : THROW_CCE();
|
|
4888
|
-
if (!(this.
|
|
4956
|
+
if (!(this.hl_1 === tmp0_other_with_cast.hl_1))
|
|
4889
4957
|
return false;
|
|
4890
|
-
if (!(this.
|
|
4958
|
+
if (!(this.il_1 === tmp0_other_with_cast.il_1))
|
|
4891
4959
|
return false;
|
|
4892
|
-
if (!this.
|
|
4960
|
+
if (!this.jl_1.equals(tmp0_other_with_cast.jl_1))
|
|
4893
4961
|
return false;
|
|
4894
4962
|
return true;
|
|
4895
4963
|
};
|
|
4896
4964
|
function Token(type, value, coordinates) {
|
|
4897
|
-
this.
|
|
4898
|
-
this.
|
|
4899
|
-
this.
|
|
4965
|
+
this.el_1 = type;
|
|
4966
|
+
this.fl_1 = value;
|
|
4967
|
+
this.gl_1 = coordinates;
|
|
4900
4968
|
}
|
|
4901
|
-
protoOf(Token).
|
|
4969
|
+
protoOf(Token).dm = function (type, value, coordinates) {
|
|
4902
4970
|
return new Token(type, value, coordinates);
|
|
4903
4971
|
};
|
|
4904
|
-
protoOf(Token).
|
|
4905
|
-
type = type === VOID ? this.
|
|
4906
|
-
value = value === VOID ? this.
|
|
4907
|
-
coordinates = coordinates === VOID ? this.
|
|
4908
|
-
return $super === VOID ? this.
|
|
4972
|
+
protoOf(Token).ll = function (type, value, coordinates, $super) {
|
|
4973
|
+
type = type === VOID ? this.el_1 : type;
|
|
4974
|
+
value = value === VOID ? this.fl_1 : value;
|
|
4975
|
+
coordinates = coordinates === VOID ? this.gl_1 : coordinates;
|
|
4976
|
+
return $super === VOID ? this.dm(type, value, coordinates) : $super.dm.call(this, type, value, coordinates);
|
|
4909
4977
|
};
|
|
4910
4978
|
protoOf(Token).toString = function () {
|
|
4911
|
-
return 'Token(type=' + this.
|
|
4979
|
+
return 'Token(type=' + this.el_1 + ', value=' + this.fl_1 + ', coordinates=' + this.gl_1 + ')';
|
|
4912
4980
|
};
|
|
4913
4981
|
protoOf(Token).hashCode = function () {
|
|
4914
|
-
var result = hashCode(this.
|
|
4915
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
4916
|
-
result = imul(result, 31) + this.
|
|
4982
|
+
var result = hashCode(this.el_1);
|
|
4983
|
+
result = imul(result, 31) + getStringHashCode(this.fl_1) | 0;
|
|
4984
|
+
result = imul(result, 31) + this.gl_1.hashCode() | 0;
|
|
4917
4985
|
return result;
|
|
4918
4986
|
};
|
|
4919
4987
|
protoOf(Token).equals = function (other) {
|
|
@@ -4922,19 +4990,19 @@
|
|
|
4922
4990
|
if (!(other instanceof Token))
|
|
4923
4991
|
return false;
|
|
4924
4992
|
var tmp0_other_with_cast = other instanceof Token ? other : THROW_CCE();
|
|
4925
|
-
if (!equals(this.
|
|
4993
|
+
if (!equals(this.el_1, tmp0_other_with_cast.el_1))
|
|
4926
4994
|
return false;
|
|
4927
|
-
if (!(this.
|
|
4995
|
+
if (!(this.fl_1 === tmp0_other_with_cast.fl_1))
|
|
4928
4996
|
return false;
|
|
4929
|
-
if (!this.
|
|
4997
|
+
if (!this.gl_1.equals(tmp0_other_with_cast.gl_1))
|
|
4930
4998
|
return false;
|
|
4931
4999
|
return true;
|
|
4932
5000
|
};
|
|
4933
5001
|
function plus_1(_this__u8e3s4, length) {
|
|
4934
|
-
return new IdxAndLength(_this__u8e3s4.
|
|
5002
|
+
return new IdxAndLength(_this__u8e3s4.zl_1 + length | 0, length);
|
|
4935
5003
|
}
|
|
4936
5004
|
function plus_2(_this__u8e3s4, length) {
|
|
4937
|
-
return _this__u8e3s4.
|
|
5005
|
+
return _this__u8e3s4.cm(VOID, _this__u8e3s4.il_1 + length | 0, plus_1(_this__u8e3s4.jl_1, length));
|
|
4938
5006
|
}
|
|
4939
5007
|
function tokenize(_this__u8e3s4, source) {
|
|
4940
5008
|
var tmp$ret$3;
|
|
@@ -4955,7 +5023,7 @@
|
|
|
4955
5023
|
// Inline function 'community.flock.wirespec.compiler.core.tokenize.tokenize.<anonymous>' call
|
|
4956
5024
|
var tmp = EndOfProgram_getInstance();
|
|
4957
5025
|
EndOfProgram_getInstance();
|
|
4958
|
-
var tmp_0 = last(tmp1_let).
|
|
5026
|
+
var tmp_0 = last(tmp1_let).gl_1;
|
|
4959
5027
|
var tmp_1 = EndOfProgram_getInstance();
|
|
4960
5028
|
EndOfProgram_getInstance();
|
|
4961
5029
|
tmp$ret$2 = tmp1_let.zg(new Token(tmp, 'EOP', nextCoordinates(tmp_0, tmp_1, 'EOP')));
|
|
@@ -4966,7 +5034,7 @@
|
|
|
4966
5034
|
var tmp0_subject = type;
|
|
4967
5035
|
var tmp;
|
|
4968
5036
|
if (tmp0_subject instanceof NewLine) {
|
|
4969
|
-
tmp = new Coordinates(_this__u8e3s4.
|
|
5037
|
+
tmp = new Coordinates(_this__u8e3s4.hl_1 + 1 | 0, VOID, plus_1(_this__u8e3s4.jl_1, value.length));
|
|
4970
5038
|
} else {
|
|
4971
5039
|
tmp = plus_2(_this__u8e3s4, value.length);
|
|
4972
5040
|
}
|
|
@@ -4978,7 +5046,7 @@
|
|
|
4978
5046
|
var incompleteTokens_0 = incompleteTokens;
|
|
4979
5047
|
$l$1: do {
|
|
4980
5048
|
$l$0: do {
|
|
4981
|
-
var tmp0_container = extractToken($this, source_0, last(incompleteTokens_0).
|
|
5049
|
+
var tmp0_container = extractToken($this, source_0, last(incompleteTokens_0).gl_1);
|
|
4982
5050
|
var token = tmp0_container.i3();
|
|
4983
5051
|
var remaining = tmp0_container.j3();
|
|
4984
5052
|
var tokens = incompleteTokens_0.zg(token);
|
|
@@ -5041,7 +5109,7 @@
|
|
|
5041
5109
|
// Inline function 'kotlin.contracts.contract' call
|
|
5042
5110
|
var tmp$ret$3;
|
|
5043
5111
|
// Inline function 'community.flock.wirespec.compiler.core.tokenize.extractToken.<anonymous>' call
|
|
5044
|
-
tmp$ret$3 = to(tmp1_let, removePrefix(source, tmp1_let.
|
|
5112
|
+
tmp$ret$3 = to(tmp1_let, removePrefix(source, tmp1_let.fl_1));
|
|
5045
5113
|
tmp$ret$4 = tmp$ret$3;
|
|
5046
5114
|
return tmp$ret$4;
|
|
5047
5115
|
}
|
|
@@ -5214,7 +5282,7 @@
|
|
|
5214
5282
|
}
|
|
5215
5283
|
function EndOfProgram() {
|
|
5216
5284
|
EndOfProgram_instance = this;
|
|
5217
|
-
this.
|
|
5285
|
+
this.fm_1 = 'EOP';
|
|
5218
5286
|
}
|
|
5219
5287
|
var EndOfProgram_instance;
|
|
5220
5288
|
function EndOfProgram_getInstance() {
|
|
@@ -5247,7 +5315,7 @@
|
|
|
5247
5315
|
}
|
|
5248
5316
|
return tmp;
|
|
5249
5317
|
};
|
|
5250
|
-
protoOf(Logger).
|
|
5318
|
+
protoOf(Logger).dl = function (s, block) {
|
|
5251
5319
|
var tmp$ret$1;
|
|
5252
5320
|
// Inline function 'kotlin.run' call
|
|
5253
5321
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -5270,73 +5338,73 @@
|
|
|
5270
5338
|
}
|
|
5271
5339
|
}
|
|
5272
5340
|
//region block: post-declaration
|
|
5273
|
-
protoOf(JavaEmitter).
|
|
5274
|
-
protoOf(JavaEmitter).
|
|
5275
|
-
protoOf(JavaEmitter).
|
|
5276
|
-
protoOf(JavaEmitter).
|
|
5277
|
-
protoOf(JavaEmitter).
|
|
5278
|
-
protoOf(JavaEmitter).
|
|
5279
|
-
protoOf(JavaEmitter).
|
|
5280
|
-
protoOf(JavaEmitter).
|
|
5281
|
-
protoOf(JavaEmitter).
|
|
5282
|
-
protoOf(JavaEmitter).
|
|
5283
|
-
protoOf(KotlinEmitter).
|
|
5284
|
-
protoOf(KotlinEmitter).
|
|
5285
|
-
protoOf(KotlinEmitter).
|
|
5286
|
-
protoOf(KotlinEmitter).
|
|
5287
|
-
protoOf(KotlinEmitter).
|
|
5288
|
-
protoOf(KotlinEmitter).
|
|
5289
|
-
protoOf(KotlinEmitter).
|
|
5290
|
-
protoOf(KotlinEmitter).
|
|
5291
|
-
protoOf(KotlinEmitter).
|
|
5292
|
-
protoOf(KotlinEmitter).
|
|
5293
|
-
protoOf(ScalaEmitter).
|
|
5294
|
-
protoOf(ScalaEmitter).
|
|
5295
|
-
protoOf(ScalaEmitter).
|
|
5296
|
-
protoOf(ScalaEmitter).
|
|
5297
|
-
protoOf(ScalaEmitter).
|
|
5298
|
-
protoOf(ScalaEmitter).
|
|
5299
|
-
protoOf(ScalaEmitter).
|
|
5300
|
-
protoOf(ScalaEmitter).
|
|
5301
|
-
protoOf(ScalaEmitter).
|
|
5302
|
-
protoOf(TypeScriptEmitter).
|
|
5303
|
-
protoOf(TypeScriptEmitter).
|
|
5304
|
-
protoOf(TypeScriptEmitter).
|
|
5305
|
-
protoOf(TypeScriptEmitter).
|
|
5306
|
-
protoOf(TypeScriptEmitter).
|
|
5307
|
-
protoOf(TypeScriptEmitter).
|
|
5308
|
-
protoOf(TypeScriptEmitter).
|
|
5309
|
-
protoOf(TypeScriptEmitter).
|
|
5310
|
-
protoOf(TypeScriptEmitter).
|
|
5311
|
-
protoOf(TypeScriptEmitter).
|
|
5312
|
-
protoOf(WirespecEmitter).
|
|
5313
|
-
protoOf(WirespecEmitter).
|
|
5314
|
-
protoOf(WirespecEmitter).
|
|
5315
|
-
protoOf(WirespecEmitter).
|
|
5316
|
-
protoOf(WirespecEmitter).
|
|
5317
|
-
protoOf(WirespecEmitter).
|
|
5318
|
-
protoOf(WirespecEmitter).
|
|
5319
|
-
protoOf(WirespecEmitter).
|
|
5320
|
-
protoOf(WirespecEmitter).
|
|
5321
|
-
protoOf(WsTypeDef).
|
|
5322
|
-
protoOf(WsEnumTypeDef).
|
|
5323
|
-
protoOf(WsRefinedTypeDef).
|
|
5324
|
-
protoOf(WhiteSpaceExceptNewLine).
|
|
5325
|
-
protoOf(NewLine).
|
|
5326
|
-
protoOf(LeftCurly).
|
|
5327
|
-
protoOf(Colon).
|
|
5328
|
-
protoOf(Comma).
|
|
5329
|
-
protoOf(QuestionMark).
|
|
5330
|
-
protoOf(Brackets).
|
|
5331
|
-
protoOf(WsString).
|
|
5332
|
-
protoOf(WsInteger).
|
|
5333
|
-
protoOf(WsBoolean).
|
|
5334
|
-
protoOf(RightCurly).
|
|
5335
|
-
protoOf(CustomValue).
|
|
5336
|
-
protoOf(CustomType).
|
|
5337
|
-
protoOf(CustomRegex).
|
|
5338
|
-
protoOf(Invalid).
|
|
5339
|
-
protoOf(EndOfProgram).
|
|
5341
|
+
protoOf(JavaEmitter).wj = withLogging;
|
|
5342
|
+
protoOf(JavaEmitter).xj = withLogging_0;
|
|
5343
|
+
protoOf(JavaEmitter).yj = withLogging_1;
|
|
5344
|
+
protoOf(JavaEmitter).zj = withLogging_2;
|
|
5345
|
+
protoOf(JavaEmitter).yh = withLogging_3;
|
|
5346
|
+
protoOf(JavaEmitter).bk = withLogging_4;
|
|
5347
|
+
protoOf(JavaEmitter).dk = withLogging_5;
|
|
5348
|
+
protoOf(JavaEmitter).ek = withLogging_6;
|
|
5349
|
+
protoOf(JavaEmitter).gk = withLogging_7;
|
|
5350
|
+
protoOf(JavaEmitter).ui = withLogging_8;
|
|
5351
|
+
protoOf(KotlinEmitter).wj = withLogging;
|
|
5352
|
+
protoOf(KotlinEmitter).xj = withLogging_0;
|
|
5353
|
+
protoOf(KotlinEmitter).yj = withLogging_1;
|
|
5354
|
+
protoOf(KotlinEmitter).zj = withLogging_2;
|
|
5355
|
+
protoOf(KotlinEmitter).yh = withLogging_3;
|
|
5356
|
+
protoOf(KotlinEmitter).bk = withLogging_4;
|
|
5357
|
+
protoOf(KotlinEmitter).dk = withLogging_5;
|
|
5358
|
+
protoOf(KotlinEmitter).ek = withLogging_6;
|
|
5359
|
+
protoOf(KotlinEmitter).gk = withLogging_7;
|
|
5360
|
+
protoOf(KotlinEmitter).ui = withLogging_8;
|
|
5361
|
+
protoOf(ScalaEmitter).wj = withLogging;
|
|
5362
|
+
protoOf(ScalaEmitter).xj = withLogging_0;
|
|
5363
|
+
protoOf(ScalaEmitter).yj = withLogging_1;
|
|
5364
|
+
protoOf(ScalaEmitter).zj = withLogging_2;
|
|
5365
|
+
protoOf(ScalaEmitter).yh = withLogging_3;
|
|
5366
|
+
protoOf(ScalaEmitter).bk = withLogging_4;
|
|
5367
|
+
protoOf(ScalaEmitter).dk = withLogging_5;
|
|
5368
|
+
protoOf(ScalaEmitter).ek = withLogging_6;
|
|
5369
|
+
protoOf(ScalaEmitter).gk = withLogging_7;
|
|
5370
|
+
protoOf(TypeScriptEmitter).wj = withLogging;
|
|
5371
|
+
protoOf(TypeScriptEmitter).xj = withLogging_0;
|
|
5372
|
+
protoOf(TypeScriptEmitter).yj = withLogging_1;
|
|
5373
|
+
protoOf(TypeScriptEmitter).zj = withLogging_2;
|
|
5374
|
+
protoOf(TypeScriptEmitter).yh = withLogging_3;
|
|
5375
|
+
protoOf(TypeScriptEmitter).bk = withLogging_4;
|
|
5376
|
+
protoOf(TypeScriptEmitter).dk = withLogging_5;
|
|
5377
|
+
protoOf(TypeScriptEmitter).ek = withLogging_6;
|
|
5378
|
+
protoOf(TypeScriptEmitter).gk = withLogging_7;
|
|
5379
|
+
protoOf(TypeScriptEmitter).ui = withLogging_8;
|
|
5380
|
+
protoOf(WirespecEmitter).wj = withLogging;
|
|
5381
|
+
protoOf(WirespecEmitter).xj = withLogging_0;
|
|
5382
|
+
protoOf(WirespecEmitter).yj = withLogging_1;
|
|
5383
|
+
protoOf(WirespecEmitter).zj = withLogging_2;
|
|
5384
|
+
protoOf(WirespecEmitter).yh = withLogging_3;
|
|
5385
|
+
protoOf(WirespecEmitter).bk = withLogging_4;
|
|
5386
|
+
protoOf(WirespecEmitter).dk = withLogging_5;
|
|
5387
|
+
protoOf(WirespecEmitter).ek = withLogging_6;
|
|
5388
|
+
protoOf(WirespecEmitter).gk = withLogging_7;
|
|
5389
|
+
protoOf(WsTypeDef).em = name;
|
|
5390
|
+
protoOf(WsEnumTypeDef).em = name;
|
|
5391
|
+
protoOf(WsRefinedTypeDef).em = name;
|
|
5392
|
+
protoOf(WhiteSpaceExceptNewLine).em = name;
|
|
5393
|
+
protoOf(NewLine).em = name;
|
|
5394
|
+
protoOf(LeftCurly).em = name;
|
|
5395
|
+
protoOf(Colon).em = name;
|
|
5396
|
+
protoOf(Comma).em = name;
|
|
5397
|
+
protoOf(QuestionMark).em = name;
|
|
5398
|
+
protoOf(Brackets).em = name;
|
|
5399
|
+
protoOf(WsString).em = name;
|
|
5400
|
+
protoOf(WsInteger).em = name;
|
|
5401
|
+
protoOf(WsBoolean).em = name;
|
|
5402
|
+
protoOf(RightCurly).em = name;
|
|
5403
|
+
protoOf(CustomValue).em = name;
|
|
5404
|
+
protoOf(CustomType).em = name;
|
|
5405
|
+
protoOf(CustomRegex).em = name;
|
|
5406
|
+
protoOf(Invalid).em = name;
|
|
5407
|
+
protoOf(EndOfProgram).em = name;
|
|
5340
5408
|
//endregion
|
|
5341
5409
|
//region block: init
|
|
5342
5410
|
DEFAULT_PACKAGE_NAME = 'community.flock.wirespec.generated';
|