@flock/wirespec 0.7.3 → 0.7.5
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 +292 -292
- package/kotlin/arrow-arrow-core.js +32 -19
- package/kotlin/arrow-arrow-core.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib-js-ir.js +3 -3
- package/kotlin/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin/kotlin-openapi-bindings.js +3214 -3214
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1221 -1221
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +975 -975
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/kotlin/wirespec-cli.js +83 -83
- package/kotlin/wirespec-core.js +946 -911
- package/kotlin/wirespec-core.js.map +1 -1
- package/kotlin/wirespec-lib.js +39 -39
- package/kotlin/wirespec-openapi.js +344 -344
- package/package.json +1 -1
- package/sync-hashes/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js.hash +1 -1
- package/sync-hashes/arrow-arrow-core.js.hash +1 -1
- package/sync-hashes/arrow-arrow-core.js.map.hash +1 -1
- package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.hash +1 -1
- package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.map.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
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
var getKClassFromExpression = kotlin_kotlin.$_$.c;
|
|
64
64
|
var RuntimeException = kotlin_kotlin.$_$.aa;
|
|
65
65
|
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.h1;
|
|
66
|
+
var NonEmptyList = kotlin_io_arrow_kt_arrow_core.$_$.e;
|
|
66
67
|
var getStringHashCode = kotlin_kotlin.$_$.w6;
|
|
67
68
|
var hashCode = kotlin_kotlin.$_$.x6;
|
|
68
69
|
var equals = kotlin_kotlin.$_$.r6;
|
|
@@ -78,10 +79,9 @@
|
|
|
78
79
|
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.p1;
|
|
79
80
|
var isObject = kotlin_kotlin.$_$.j7;
|
|
80
81
|
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.o1;
|
|
81
|
-
var
|
|
82
|
-
var lastOrNull = kotlin_kotlin.$_$.d5;
|
|
83
|
-
var removePrefix = kotlin_kotlin.$_$.v8;
|
|
82
|
+
var last = kotlin_kotlin.$_$.e5;
|
|
84
83
|
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.g1;
|
|
84
|
+
var removePrefix = kotlin_kotlin.$_$.v8;
|
|
85
85
|
var ensureNotNull = kotlin_kotlin.$_$.qa;
|
|
86
86
|
var println = kotlin_kotlin.$_$.g6;
|
|
87
87
|
//endregion
|
|
@@ -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.zk('Emitting Definition: Type', block);
|
|
93
93
|
}
|
|
94
94
|
function withLogging_0(_this__u8e3s4, logger, block) {
|
|
95
|
-
return logger.
|
|
95
|
+
return logger.zk('Emitting Definition: Type Shape', block);
|
|
96
96
|
}
|
|
97
97
|
function withLogging_1(_this__u8e3s4, logger, block) {
|
|
98
|
-
return logger.
|
|
98
|
+
return logger.zk('Emitting Definition: Type Shape Field', block);
|
|
99
99
|
}
|
|
100
100
|
function withLogging_2(_this__u8e3s4, logger, block) {
|
|
101
|
-
return logger.
|
|
101
|
+
return logger.zk('Emitting Definition: Type Shape Field Key', block);
|
|
102
102
|
}
|
|
103
103
|
function withLogging_3(_this__u8e3s4, logger, block) {
|
|
104
|
-
return logger.
|
|
104
|
+
return logger.zk('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.zk('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.zk('Emitting Definition: Refined', block);
|
|
113
113
|
}
|
|
114
114
|
function withLogging_6(_this__u8e3s4, logger, block) {
|
|
115
|
-
return logger.
|
|
115
|
+
return logger.zk('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.zk('Emitting Definition: Endpoint', block);
|
|
120
120
|
}
|
|
121
121
|
function withLogging_8(_this__u8e3s4, logger, block) {
|
|
122
|
-
return logger.
|
|
122
|
+
return logger.zk('Emitting Definition: Endpoint Segment', block);
|
|
123
123
|
}
|
|
124
124
|
setMetadataFor(EndpointDefinitionEmitterLogger, 'EndpointDefinitionEmitterLogger', interfaceMeta);
|
|
125
125
|
setMetadataFor(Emitter, 'Emitter', classMeta, VOID, [TypeDefinitionEmitterLogger, EnumDefinitionEmitterLogger, RefinedTypeDefinitionEmitterLogger, EndpointDefinitionEmitterLogger]);
|
|
@@ -135,7 +135,6 @@
|
|
|
135
135
|
setMetadataFor(CompilerException, 'CompilerException', classMeta, WirespecException);
|
|
136
136
|
setMetadataFor(ParserException, 'ParserException', classMeta, CompilerException);
|
|
137
137
|
setMetadataFor(NullTokenException, 'NullTokenException', classMeta, ParserException);
|
|
138
|
-
setMetadataFor(StartingException, 'StartingException', classMeta, NullTokenException);
|
|
139
138
|
setMetadataFor(NextException, 'NextException', classMeta, NullTokenException);
|
|
140
139
|
setMetadataFor(WrongTokenException, 'WrongTokenException', classMeta, ParserException);
|
|
141
140
|
setMetadataFor(Type, 'Type', classMeta, Enum);
|
|
@@ -198,7 +197,7 @@
|
|
|
198
197
|
var Reported_EMITTED_instance;
|
|
199
198
|
function Reported$report$lambda($logger, this$0) {
|
|
200
199
|
return function (it) {
|
|
201
|
-
$logger.
|
|
200
|
+
$logger.lh('********** ' + this$0.p4_1 + ' **********\n' + toString(it) + '\n########## ' + this$0.p4_1 + ' ##########');
|
|
202
201
|
return Unit_getInstance();
|
|
203
202
|
};
|
|
204
203
|
}
|
|
@@ -215,40 +214,40 @@
|
|
|
215
214
|
function Reported(name, ordinal) {
|
|
216
215
|
Enum.call(this, name, ordinal);
|
|
217
216
|
}
|
|
218
|
-
protoOf(Reported).
|
|
217
|
+
protoOf(Reported).oh = function (logger) {
|
|
219
218
|
return Reported$report$lambda(logger, this);
|
|
220
219
|
};
|
|
221
220
|
function Reported$report$ref($boundThis) {
|
|
222
221
|
var l = function (p0) {
|
|
223
|
-
return $boundThis.
|
|
222
|
+
return $boundThis.oh(p0);
|
|
224
223
|
};
|
|
225
224
|
l.callableName = 'report';
|
|
226
225
|
return l;
|
|
227
226
|
}
|
|
228
227
|
function Reported$report$ref_0($boundThis) {
|
|
229
228
|
var l = function (p0) {
|
|
230
|
-
return $boundThis.
|
|
229
|
+
return $boundThis.oh(p0);
|
|
231
230
|
};
|
|
232
231
|
l.callableName = 'report';
|
|
233
232
|
return l;
|
|
234
233
|
}
|
|
235
234
|
function Reported$report$ref_1($boundThis) {
|
|
236
235
|
var l = function (p0) {
|
|
237
|
-
return $boundThis.
|
|
236
|
+
return $boundThis.oh(p0);
|
|
238
237
|
};
|
|
239
238
|
l.callableName = 'report';
|
|
240
239
|
return l;
|
|
241
240
|
}
|
|
242
241
|
function Reported$report$ref_2($boundThis) {
|
|
243
242
|
var l = function (p0) {
|
|
244
|
-
return $boundThis.
|
|
243
|
+
return $boundThis.oh(p0);
|
|
245
244
|
};
|
|
246
245
|
l.callableName = 'report';
|
|
247
246
|
return l;
|
|
248
247
|
}
|
|
249
248
|
function Reported$report$ref_3($boundThis) {
|
|
250
249
|
var l = function (p0) {
|
|
251
|
-
return $boundThis.
|
|
250
|
+
return $boundThis.oh(p0);
|
|
252
251
|
};
|
|
253
252
|
l.callableName = 'report';
|
|
254
253
|
return l;
|
|
@@ -285,7 +284,7 @@
|
|
|
285
284
|
// Inline function 'kotlin.contracts.contract' call
|
|
286
285
|
var tmp$ret$2;
|
|
287
286
|
// Inline function 'community.flock.wirespec.compiler.core.compile.<anonymous>.<anonymous>.<anonymous>' call
|
|
288
|
-
tmp$ret$2 = (new Parser($logger)).
|
|
287
|
+
tmp$ret$2 = (new Parser($logger)).qh(tmp4_let);
|
|
289
288
|
tmp$ret$3 = tmp$ret$2;
|
|
290
289
|
var tmp5_also = tmp$ret$3;
|
|
291
290
|
var tmp6_also = Reported$report$ref_1(Reported_PARSED_getInstance())($logger);
|
|
@@ -335,7 +334,7 @@
|
|
|
335
334
|
var tmp11__anonymous__tkubxh = tmp12_map.qg_1;
|
|
336
335
|
var tmp$ret$10;
|
|
337
336
|
// Inline function 'community.flock.wirespec.compiler.core.compile.<anonymous>.<anonymous>.<anonymous>' call
|
|
338
|
-
tmp$ret$10 = emitter.
|
|
337
|
+
tmp$ret$10 = emitter.th(tmp11__anonymous__tkubxh);
|
|
339
338
|
tmp$ret$11 = new Right(tmp$ret$10);
|
|
340
339
|
tmp_0 = tmp$ret$11;
|
|
341
340
|
} else {
|
|
@@ -378,10 +377,10 @@
|
|
|
378
377
|
}
|
|
379
378
|
function Wirespec() {
|
|
380
379
|
Wirespec_instance = this;
|
|
381
|
-
this.
|
|
380
|
+
this.uh_1 = listOf([to(Regex_init_$Create$('^type'), WsTypeDef_getInstance()), to(Regex_init_$Create$('^enum'), WsEnumTypeDef_getInstance()), to(Regex_init_$Create$('^refined'), WsRefinedTypeDef_getInstance()), to(Regex_init_$Create$('^[^\\S\\r\\n]+'), WhiteSpaceExceptNewLine_getInstance()), to(Regex_init_$Create$('^[\\r\\n]'), NewLine_getInstance()), to(Regex_init_$Create$('^\\{'), LeftCurly_getInstance()), to(Regex_init_$Create$('^:'), Colon_getInstance()), to(Regex_init_$Create$('^,'), Comma_getInstance()), to(Regex_init_$Create$('^\\?'), QuestionMark_getInstance()), to(Regex_init_$Create$('^\\[\\]'), Brackets_getInstance()), to(Regex_init_$Create$('^String'), WsString_getInstance()), to(Regex_init_$Create$('^Integer'), WsInteger_getInstance()), to(Regex_init_$Create$('^Boolean'), WsBoolean_getInstance()), to(Regex_init_$Create$('^\\}'), RightCurly_getInstance()), to(Regex_init_$Create$('^[a-z][a-zA-Z]*'), CustomValue_getInstance()), to(Regex_init_$Create$('^[A-Z][a-zA-Z]*'), CustomType_getInstance()), to(Regex_init_$Create$('^/.*/g'), CustomRegex_getInstance()), to(Regex_init_$Create$('^.'), Invalid_getInstance())]);
|
|
382
381
|
}
|
|
383
|
-
protoOf(Wirespec).
|
|
384
|
-
return this.
|
|
382
|
+
protoOf(Wirespec).vh = function () {
|
|
383
|
+
return this.uh_1;
|
|
385
384
|
};
|
|
386
385
|
var Wirespec_instance;
|
|
387
386
|
function Wirespec_getInstance() {
|
|
@@ -390,14 +389,14 @@
|
|
|
390
389
|
return Wirespec_instance;
|
|
391
390
|
}
|
|
392
391
|
function emitPrimaryType(_this__u8e3s4, $this) {
|
|
393
|
-
return $this.
|
|
392
|
+
return $this.wh(_this__u8e3s4, $this.rh_1, JavaEmitter$emitPrimaryType$lambda(_this__u8e3s4));
|
|
394
393
|
}
|
|
395
394
|
function emit(_this__u8e3s4, $this, endpoint) {
|
|
396
395
|
Companion_getInstance_2();
|
|
397
|
-
var tmp = emitContentType(_this__u8e3s4.
|
|
398
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
399
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
400
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.
|
|
396
|
+
var tmp = emitContentType(_this__u8e3s4.xh_1, $this);
|
|
397
|
+
var tmp0_safe_receiver = _this__u8e3s4.xh_1;
|
|
398
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zh_1;
|
|
399
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.fi(tmp1_safe_receiver);
|
|
401
400
|
var tmp_0 = tmp2_elvis_lhs == null ? 'Void' : tmp2_elvis_lhs;
|
|
402
401
|
Companion_getInstance_2();
|
|
403
402
|
Companion_getInstance_2();
|
|
@@ -409,33 +408,33 @@
|
|
|
409
408
|
Companion_getInstance_2();
|
|
410
409
|
Companion_getInstance_2();
|
|
411
410
|
Companion_getInstance_2();
|
|
412
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
413
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
414
|
-
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : $this.
|
|
411
|
+
var tmp3_safe_receiver = _this__u8e3s4.xh_1;
|
|
412
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.zh_1;
|
|
413
|
+
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : $this.fi(tmp4_safe_receiver);
|
|
415
414
|
var tmp_1 = tmp5_elvis_lhs == null ? 'Void' : tmp5_elvis_lhs;
|
|
416
415
|
Companion_getInstance_2();
|
|
417
416
|
Companion_getInstance_2();
|
|
418
|
-
var tmp_2 = emitContentType(_this__u8e3s4.
|
|
419
|
-
var tmp_3 = emitRequestSignature(endpoint, $this, _this__u8e3s4.
|
|
417
|
+
var tmp_2 = emitContentType(_this__u8e3s4.xh_1, $this);
|
|
418
|
+
var tmp_3 = emitRequestSignature(endpoint, $this, _this__u8e3s4.xh_1);
|
|
420
419
|
Companion_getInstance_2();
|
|
421
420
|
Companion_getInstance_2();
|
|
422
421
|
Companion_getInstance_2();
|
|
423
|
-
var tmp_4 = emitPath(endpoint.
|
|
422
|
+
var tmp_4 = emitPath(endpoint.ii_1, $this);
|
|
424
423
|
Companion_getInstance_2();
|
|
425
424
|
Companion_getInstance_2();
|
|
426
425
|
Companion_getInstance_2();
|
|
427
426
|
Companion_getInstance_2();
|
|
428
427
|
Companion_getInstance_2();
|
|
429
428
|
Companion_getInstance_2();
|
|
430
|
-
var tmp_5 = emitMap(endpoint.
|
|
429
|
+
var tmp_5 = emitMap(endpoint.ji_1, $this);
|
|
431
430
|
Companion_getInstance_2();
|
|
432
431
|
Companion_getInstance_2();
|
|
433
432
|
Companion_getInstance_2();
|
|
434
|
-
var tmp_6 = emitMap(endpoint.
|
|
433
|
+
var tmp_6 = emitMap(endpoint.ki_1, $this);
|
|
435
434
|
Companion_getInstance_2();
|
|
436
435
|
Companion_getInstance_2();
|
|
437
436
|
Companion_getInstance_2();
|
|
438
|
-
var tmp6_safe_receiver = _this__u8e3s4.
|
|
437
|
+
var tmp6_safe_receiver = _this__u8e3s4.xh_1;
|
|
439
438
|
var tmp_7;
|
|
440
439
|
if (tmp6_safe_receiver == null) {
|
|
441
440
|
tmp_7 = null;
|
|
@@ -445,7 +444,7 @@
|
|
|
445
444
|
// Inline function 'kotlin.contracts.contract' call
|
|
446
445
|
var tmp$ret$0;
|
|
447
446
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emit.<anonymous>' call
|
|
448
|
-
tmp$ret$0 = 'new WirespecShared.Content("' + tmp6_safe_receiver.
|
|
447
|
+
tmp$ret$0 = 'new WirespecShared.Content("' + tmp6_safe_receiver.yh_1 + '", body)';
|
|
449
448
|
tmp$ret$1 = tmp$ret$0;
|
|
450
449
|
tmp_7 = tmp$ret$1;
|
|
451
450
|
}
|
|
@@ -463,20 +462,20 @@
|
|
|
463
462
|
Companion_getInstance_2();
|
|
464
463
|
Companion_getInstance_2();
|
|
465
464
|
Companion_getInstance_2();
|
|
466
|
-
var tmp8_safe_receiver = _this__u8e3s4.
|
|
467
|
-
var tmp9_safe_receiver = tmp8_safe_receiver == null ? null : tmp8_safe_receiver.
|
|
468
|
-
var tmp10_elvis_lhs = tmp9_safe_receiver == null ? null : $this.
|
|
465
|
+
var tmp8_safe_receiver = _this__u8e3s4.xh_1;
|
|
466
|
+
var tmp9_safe_receiver = tmp8_safe_receiver == null ? null : tmp8_safe_receiver.zh_1;
|
|
467
|
+
var tmp10_elvis_lhs = tmp9_safe_receiver == null ? null : $this.fi(tmp9_safe_receiver);
|
|
469
468
|
var tmp_9 = tmp10_elvis_lhs == null ? 'Void' : tmp10_elvis_lhs;
|
|
470
469
|
Companion_getInstance_2();
|
|
471
|
-
return trimMargin('\n |' + ' ' + 'class Request' + tmp + ' implements Request<' + tmp_0 + '> {\n |' + ' ' + ' ' + 'private final String path;\n |' + ' ' + ' ' + 'private final WirespecShared.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 WirespecShared.Content<' + tmp_1 + '> content;\n |' + ' ' + ' ' + 'public Request' + tmp_2 + '(' + tmp_3 + ') {\n |' + ' ' + ' ' + ' ' + 'this.path = ' + tmp_4 + ';\n |' + ' ' + ' ' + ' ' + 'this.method = WirespecShared.Method.' + endpoint.
|
|
470
|
+
return trimMargin('\n |' + ' ' + 'class Request' + tmp + ' implements Request<' + tmp_0 + '> {\n |' + ' ' + ' ' + 'private final String path;\n |' + ' ' + ' ' + 'private final WirespecShared.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 WirespecShared.Content<' + tmp_1 + '> content;\n |' + ' ' + ' ' + 'public Request' + tmp_2 + '(' + tmp_3 + ') {\n |' + ' ' + ' ' + ' ' + 'this.path = ' + tmp_4 + ';\n |' + ' ' + ' ' + ' ' + 'this.method = WirespecShared.Method.' + endpoint.hi_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 WirespecShared.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 WirespecShared.Content<' + tmp_9 + '> getContent() {return content;}\n |' + ' ' + '}\n ');
|
|
472
471
|
}
|
|
473
472
|
function emit_0(_this__u8e3s4, $this) {
|
|
474
473
|
Companion_getInstance_2();
|
|
475
|
-
var tmp = Companion_getInstance_2().
|
|
476
|
-
var tmp_0 = emitContentType(_this__u8e3s4.
|
|
474
|
+
var tmp = Companion_getInstance_2().ri(_this__u8e3s4.oi_1);
|
|
475
|
+
var tmp_0 = emitContentType(_this__u8e3s4.pi_1, $this);
|
|
477
476
|
var tmp$ret$1;
|
|
478
477
|
// Inline function 'kotlin.takeIf' call
|
|
479
|
-
var tmp0_takeIf = _this__u8e3s4.
|
|
478
|
+
var tmp0_takeIf = _this__u8e3s4.oi_1;
|
|
480
479
|
// Inline function 'kotlin.contracts.contract' call
|
|
481
480
|
var tmp_1;
|
|
482
481
|
var tmp$ret$0;
|
|
@@ -490,9 +489,9 @@
|
|
|
490
489
|
tmp$ret$1 = tmp_1;
|
|
491
490
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
492
491
|
var tmp_2 = orEmptyString(tmp0_safe_receiver == null ? null : groupStatus(tmp0_safe_receiver, $this), $this);
|
|
493
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
494
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
495
|
-
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : $this.
|
|
492
|
+
var tmp1_safe_receiver = _this__u8e3s4.pi_1;
|
|
493
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.zh_1;
|
|
494
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : $this.fi(tmp2_safe_receiver);
|
|
496
495
|
var tmp_3 = tmp3_elvis_lhs == null ? 'Void' : tmp3_elvis_lhs;
|
|
497
496
|
Companion_getInstance_2();
|
|
498
497
|
Companion_getInstance_2();
|
|
@@ -500,17 +499,17 @@
|
|
|
500
499
|
Companion_getInstance_2();
|
|
501
500
|
Companion_getInstance_2();
|
|
502
501
|
Companion_getInstance_2();
|
|
503
|
-
var tmp4_safe_receiver = _this__u8e3s4.
|
|
504
|
-
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.
|
|
505
|
-
var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : $this.
|
|
502
|
+
var tmp4_safe_receiver = _this__u8e3s4.pi_1;
|
|
503
|
+
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.zh_1;
|
|
504
|
+
var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : $this.fi(tmp5_safe_receiver);
|
|
506
505
|
var tmp_4 = tmp6_elvis_lhs == null ? 'Void' : tmp6_elvis_lhs;
|
|
507
506
|
Companion_getInstance_2();
|
|
508
507
|
Companion_getInstance_2();
|
|
509
|
-
var tmp_5 = Companion_getInstance_2().
|
|
510
|
-
var tmp_6 = emitContentType(_this__u8e3s4.
|
|
508
|
+
var tmp_5 = Companion_getInstance_2().ri(_this__u8e3s4.oi_1);
|
|
509
|
+
var tmp_6 = emitContentType(_this__u8e3s4.pi_1, $this);
|
|
511
510
|
var tmp$ret$3;
|
|
512
511
|
// Inline function 'kotlin.takeIf' call
|
|
513
|
-
var tmp1_takeIf = _this__u8e3s4.
|
|
512
|
+
var tmp1_takeIf = _this__u8e3s4.oi_1;
|
|
514
513
|
// Inline function 'kotlin.contracts.contract' call
|
|
515
514
|
var tmp_7;
|
|
516
515
|
var tmp$ret$2;
|
|
@@ -537,7 +536,7 @@
|
|
|
537
536
|
tmp_8 = tmp$ret$5;
|
|
538
537
|
}
|
|
539
538
|
var tmp_9 = orEmptyString(tmp_8, $this);
|
|
540
|
-
var tmp8_safe_receiver = _this__u8e3s4.
|
|
539
|
+
var tmp8_safe_receiver = _this__u8e3s4.pi_1;
|
|
541
540
|
var tmp_10;
|
|
542
541
|
if (tmp8_safe_receiver == null) {
|
|
543
542
|
tmp_10 = null;
|
|
@@ -547,7 +546,7 @@
|
|
|
547
546
|
// Inline function 'kotlin.contracts.contract' call
|
|
548
547
|
var tmp$ret$6;
|
|
549
548
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emit.<anonymous>' call
|
|
550
|
-
tmp$ret$6 = ', ' + $this.
|
|
549
|
+
tmp$ret$6 = ', ' + $this.fi(tmp8_safe_receiver.zh_1) + ' body';
|
|
551
550
|
tmp$ret$7 = tmp$ret$6;
|
|
552
551
|
tmp_10 = tmp$ret$7;
|
|
553
552
|
}
|
|
@@ -558,7 +557,7 @@
|
|
|
558
557
|
Companion_getInstance_2();
|
|
559
558
|
var tmp$ret$9;
|
|
560
559
|
// Inline function 'kotlin.takeIf' call
|
|
561
|
-
var tmp2_takeIf = _this__u8e3s4.
|
|
560
|
+
var tmp2_takeIf = _this__u8e3s4.oi_1;
|
|
562
561
|
// Inline function 'kotlin.contracts.contract' call
|
|
563
562
|
var tmp_12;
|
|
564
563
|
var tmp$ret$8;
|
|
@@ -578,7 +577,7 @@
|
|
|
578
577
|
Companion_getInstance_2();
|
|
579
578
|
Companion_getInstance_2();
|
|
580
579
|
Companion_getInstance_2();
|
|
581
|
-
var tmp11_safe_receiver = _this__u8e3s4.
|
|
580
|
+
var tmp11_safe_receiver = _this__u8e3s4.pi_1;
|
|
582
581
|
var tmp_14;
|
|
583
582
|
if (tmp11_safe_receiver == null) {
|
|
584
583
|
tmp_14 = null;
|
|
@@ -588,7 +587,7 @@
|
|
|
588
587
|
// Inline function 'kotlin.contracts.contract' call
|
|
589
588
|
var tmp$ret$10;
|
|
590
589
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emit.<anonymous>' call
|
|
591
|
-
tmp$ret$10 = 'new WirespecShared.Content("' + tmp11_safe_receiver.
|
|
590
|
+
tmp$ret$10 = 'new WirespecShared.Content("' + tmp11_safe_receiver.yh_1 + '", body)';
|
|
592
591
|
tmp$ret$11 = tmp$ret$10;
|
|
593
592
|
tmp_14 = tmp$ret$11;
|
|
594
593
|
}
|
|
@@ -602,9 +601,9 @@
|
|
|
602
601
|
Companion_getInstance_2();
|
|
603
602
|
Companion_getInstance_2();
|
|
604
603
|
Companion_getInstance_2();
|
|
605
|
-
var tmp13_safe_receiver = _this__u8e3s4.
|
|
606
|
-
var tmp14_safe_receiver = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.
|
|
607
|
-
var tmp15_elvis_lhs = tmp14_safe_receiver == null ? null : $this.
|
|
604
|
+
var tmp13_safe_receiver = _this__u8e3s4.pi_1;
|
|
605
|
+
var tmp14_safe_receiver = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.zh_1;
|
|
606
|
+
var tmp15_elvis_lhs = tmp14_safe_receiver == null ? null : $this.fi(tmp14_safe_receiver);
|
|
608
607
|
var tmp_16 = tmp15_elvis_lhs == null ? 'Void' : tmp15_elvis_lhs;
|
|
609
608
|
Companion_getInstance_2();
|
|
610
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 WirespecShared.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 WirespecShared.Content<' + tmp_16 + '> getContent() {return content;}\n |' + ' ' + '}\n ');
|
|
@@ -620,8 +619,8 @@
|
|
|
620
619
|
var e = tmp0_iterator.e();
|
|
621
620
|
var tmp$ret$0;
|
|
622
621
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emitResponseMapper.<anonymous>' call
|
|
623
|
-
var tmp0_safe_receiver = e.
|
|
624
|
-
tmp$ret$0 = to(e.
|
|
622
|
+
var tmp0_safe_receiver = e.pi_1;
|
|
623
|
+
tmp$ret$0 = to(e.oi_1, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yh_1);
|
|
625
624
|
var key = tmp$ret$0;
|
|
626
625
|
if (set.a(key)) {
|
|
627
626
|
list.a(e);
|
|
@@ -636,7 +635,7 @@
|
|
|
636
635
|
return trimMargin('\n |' + ' ' + 'static <B> Response RESPONSE_MAPPER(WirespecShared.ContentMapper<B> contentMapper, int status, java.util.Map<String, java.util.List<Object>> headers, WirespecShared.Content<B> content) {\n |' + tmp_0 + '\n |' + ' ' + ' ' + 'throw new IllegalStateException("Unknown response type");\n |' + ' ' + '}\n ');
|
|
637
636
|
}
|
|
638
637
|
function emitResponseMapperCondition(_this__u8e3s4, $this) {
|
|
639
|
-
var tmp0_subject = _this__u8e3s4.
|
|
638
|
+
var tmp0_subject = _this__u8e3s4.pi_1;
|
|
640
639
|
var tmp;
|
|
641
640
|
if (tmp0_subject == null) {
|
|
642
641
|
Companion_getInstance_2();
|
|
@@ -644,7 +643,7 @@
|
|
|
644
643
|
Companion_getInstance_2();
|
|
645
644
|
var tmp$ret$1;
|
|
646
645
|
// Inline function 'kotlin.takeIf' call
|
|
647
|
-
var tmp0_takeIf = _this__u8e3s4.
|
|
646
|
+
var tmp0_takeIf = _this__u8e3s4.oi_1;
|
|
648
647
|
// Inline function 'kotlin.contracts.contract' call
|
|
649
648
|
var tmp_0;
|
|
650
649
|
var tmp$ret$0;
|
|
@@ -666,15 +665,15 @@
|
|
|
666
665
|
// Inline function 'kotlin.contracts.contract' call
|
|
667
666
|
var tmp$ret$2;
|
|
668
667
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emitResponseMapperCondition.<anonymous>' call
|
|
669
|
-
tmp$ret$2 = 'status == ' + _this__u8e3s4.
|
|
668
|
+
tmp$ret$2 = 'status == ' + _this__u8e3s4.oi_1 + ' && ';
|
|
670
669
|
tmp$ret$3 = tmp$ret$2;
|
|
671
670
|
tmp_1 = tmp$ret$3;
|
|
672
671
|
}
|
|
673
672
|
var tmp_2 = orEmptyString(tmp_1, $this);
|
|
674
|
-
var tmp_3 = Companion_getInstance_2().
|
|
673
|
+
var tmp_3 = Companion_getInstance_2().ri(_this__u8e3s4.oi_1);
|
|
675
674
|
var tmp$ret$5;
|
|
676
675
|
// Inline function 'kotlin.takeIf' call
|
|
677
|
-
var tmp1_takeIf = _this__u8e3s4.
|
|
676
|
+
var tmp1_takeIf = _this__u8e3s4.oi_1;
|
|
678
677
|
// Inline function 'kotlin.contracts.contract' call
|
|
679
678
|
var tmp_4;
|
|
680
679
|
var tmp$ret$4;
|
|
@@ -707,7 +706,7 @@
|
|
|
707
706
|
Companion_getInstance_2();
|
|
708
707
|
var tmp$ret$9;
|
|
709
708
|
// Inline function 'kotlin.takeIf' call
|
|
710
|
-
var tmp2_takeIf = _this__u8e3s4.
|
|
709
|
+
var tmp2_takeIf = _this__u8e3s4.oi_1;
|
|
711
710
|
// Inline function 'kotlin.contracts.contract' call
|
|
712
711
|
var tmp_6;
|
|
713
712
|
var tmp$ret$8;
|
|
@@ -729,7 +728,7 @@
|
|
|
729
728
|
// Inline function 'kotlin.contracts.contract' call
|
|
730
729
|
var tmp$ret$10;
|
|
731
730
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emitResponseMapperCondition.<anonymous>' call
|
|
732
|
-
tmp$ret$10 = 'status == ' + _this__u8e3s4.
|
|
731
|
+
tmp$ret$10 = 'status == ' + _this__u8e3s4.oi_1 + ' && ';
|
|
733
732
|
tmp$ret$11 = tmp$ret$10;
|
|
734
733
|
tmp_7 = tmp$ret$11;
|
|
735
734
|
}
|
|
@@ -738,18 +737,18 @@
|
|
|
738
737
|
Companion_getInstance_2();
|
|
739
738
|
Companion_getInstance_2();
|
|
740
739
|
Companion_getInstance_2();
|
|
741
|
-
var tmp_9 = $this.
|
|
742
|
-
var tmp_10 = emitPrimaryType(_this__u8e3s4.
|
|
743
|
-
var tmp_11 = _this__u8e3s4.
|
|
740
|
+
var tmp_9 = $this.fi(_this__u8e3s4.pi_1.zh_1);
|
|
741
|
+
var tmp_10 = emitPrimaryType(_this__u8e3s4.pi_1.zh_1, $this);
|
|
742
|
+
var tmp_11 = _this__u8e3s4.pi_1.zh_1.si();
|
|
744
743
|
Companion_getInstance_2();
|
|
745
744
|
Companion_getInstance_2();
|
|
746
745
|
Companion_getInstance_2();
|
|
747
746
|
Companion_getInstance_2();
|
|
748
|
-
var tmp_12 = Companion_getInstance_2().
|
|
749
|
-
var tmp_13 = emitContentType(_this__u8e3s4.
|
|
747
|
+
var tmp_12 = Companion_getInstance_2().ri(_this__u8e3s4.oi_1);
|
|
748
|
+
var tmp_13 = emitContentType(_this__u8e3s4.pi_1, $this);
|
|
750
749
|
var tmp$ret$13;
|
|
751
750
|
// Inline function 'kotlin.takeIf' call
|
|
752
|
-
var tmp3_takeIf = _this__u8e3s4.
|
|
751
|
+
var tmp3_takeIf = _this__u8e3s4.oi_1;
|
|
753
752
|
// Inline function 'kotlin.contracts.contract' call
|
|
754
753
|
var tmp_14;
|
|
755
754
|
var tmp$ret$12;
|
|
@@ -779,13 +778,13 @@
|
|
|
779
778
|
Companion_getInstance_2();
|
|
780
779
|
Companion_getInstance_2();
|
|
781
780
|
Companion_getInstance_2();
|
|
782
|
-
tmp = trimMargin('\n |' + ' ' + ' ' + ' ' + 'if(' + tmp_8 + 'content.type().equals("' + _this__u8e3s4.
|
|
781
|
+
tmp = trimMargin('\n |' + ' ' + ' ' + ' ' + 'if(' + tmp_8 + 'content.type().equals("' + _this__u8e3s4.pi_1.yh_1 + '")) {\n |' + ' ' + ' ' + ' ' + ' ' + 'WirespecShared.Content<' + tmp_9 + '> c = contentMapper.read(content, WirespecShared.getType(' + tmp_10 + '.class, ' + tmp_11 + '));\n |' + ' ' + ' ' + ' ' + ' ' + 'return new Response' + tmp_12 + tmp_13 + '(' + tmp_16 + 'headers, c.body());\n |' + ' ' + ' ' + ' ' + '}\n |\n ');
|
|
783
782
|
}
|
|
784
783
|
return tmp;
|
|
785
784
|
}
|
|
786
785
|
function emitContentType(_this__u8e3s4, $this) {
|
|
787
786
|
var tmp0_safe_receiver = _this__u8e3s4;
|
|
788
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
787
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yh_1;
|
|
789
788
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : split(tmp1_safe_receiver, ['/', '-']);
|
|
790
789
|
var tmp;
|
|
791
790
|
if (tmp2_safe_receiver == null) {
|
|
@@ -797,14 +796,14 @@
|
|
|
797
796
|
return tmp3_elvis_lhs == null ? 'Void' : tmp3_elvis_lhs;
|
|
798
797
|
}
|
|
799
798
|
function emit_1(_this__u8e3s4, $this) {
|
|
800
|
-
return $this.
|
|
799
|
+
return $this.ti(_this__u8e3s4, $this.rh_1, JavaEmitter$emit$lambda_8(_this__u8e3s4));
|
|
801
800
|
}
|
|
802
801
|
function emitRequestSignature(_this__u8e3s4, $this, content) {
|
|
803
802
|
var tmp$ret$4;
|
|
804
803
|
// Inline function 'kotlin.collections.map' call
|
|
805
804
|
var tmp$ret$1;
|
|
806
805
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
807
|
-
var tmp1_filterIsInstance = _this__u8e3s4.
|
|
806
|
+
var tmp1_filterIsInstance = _this__u8e3s4.ii_1;
|
|
808
807
|
var tmp$ret$0;
|
|
809
808
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
810
809
|
var tmp0_filterIsInstanceTo = ArrayList_init_$Create$();
|
|
@@ -826,15 +825,15 @@
|
|
|
826
825
|
var item = tmp0_iterator_0.e();
|
|
827
826
|
var tmp$ret$2;
|
|
828
827
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emitRequestSignature.<anonymous>' call
|
|
829
|
-
tmp$ret$2 = new Field(item.
|
|
828
|
+
tmp$ret$2 = new Field(item.ui_1, item.vi_1, false);
|
|
830
829
|
tmp2_mapTo.a(tmp$ret$2);
|
|
831
830
|
}
|
|
832
831
|
tmp$ret$3 = tmp2_mapTo;
|
|
833
832
|
tmp$ret$4 = tmp$ret$3;
|
|
834
833
|
var pathField = tmp$ret$4;
|
|
835
|
-
var parameters = plus(plus(plus(pathField, _this__u8e3s4.
|
|
834
|
+
var parameters = plus(plus(plus(pathField, _this__u8e3s4.ji_1), _this__u8e3s4.ki_1), _this__u8e3s4.li_1);
|
|
836
835
|
var tmp0_safe_receiver = content;
|
|
837
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
836
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zh_1;
|
|
838
837
|
var tmp = filterNotNull(plus_0(parameters, tmp1_safe_receiver == null ? null : toField(tmp1_safe_receiver, 'body', false)));
|
|
839
838
|
return joinToString(tmp, ', ', VOID, VOID, VOID, VOID, JavaEmitter$emitRequestSignature$lambda($this));
|
|
840
839
|
}
|
|
@@ -865,34 +864,34 @@
|
|
|
865
864
|
tmp$ret$1 = tmp$ret$0.substring(0, 1);
|
|
866
865
|
tmp = tmp$ret$1 + 'XX';
|
|
867
866
|
} else {
|
|
868
|
-
tmp = Companion_getInstance_2().
|
|
867
|
+
tmp = Companion_getInstance_2().ri(_this__u8e3s4);
|
|
869
868
|
}
|
|
870
869
|
return tmp;
|
|
871
870
|
}
|
|
872
871
|
function JavaEmitter$emit$lambda($this_emit, this$0) {
|
|
873
872
|
return function () {
|
|
874
|
-
return trimMargin('public record ' + $this_emit.
|
|
873
|
+
return trimMargin('public record ' + $this_emit.wi_1 + '(\n |' + this$0.yi($this_emit.xi_1) + '\n |) {};\n |');
|
|
875
874
|
};
|
|
876
875
|
}
|
|
877
876
|
function JavaEmitter$emit$lambda$lambda(this$0) {
|
|
878
877
|
return function (it) {
|
|
879
|
-
return this$0.
|
|
878
|
+
return this$0.zi(it);
|
|
880
879
|
};
|
|
881
880
|
}
|
|
882
881
|
function JavaEmitter$emit$lambda_0($this_emit, this$0) {
|
|
883
882
|
return function () {
|
|
884
|
-
return joinToString($this_emit.
|
|
883
|
+
return joinToString($this_emit.aj_1, ',\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda$lambda(this$0));
|
|
885
884
|
};
|
|
886
885
|
}
|
|
887
886
|
function JavaEmitter$emit$lambda_1($this_emit, this$0) {
|
|
888
887
|
return function () {
|
|
889
888
|
Companion_getInstance_2();
|
|
890
|
-
return ' ' + ($this_emit.
|
|
889
|
+
return ' ' + ($this_emit.dj_1 ? 'java.util.Optional<' + this$0.fi($this_emit.cj_1) + '>' : this$0.fi($this_emit.cj_1)) + ' ' + this$0.ej($this_emit.bj_1);
|
|
891
890
|
};
|
|
892
891
|
}
|
|
893
892
|
function JavaEmitter$emit$lambda_2($this_emit) {
|
|
894
893
|
return function () {
|
|
895
|
-
return $this_emit.
|
|
894
|
+
return $this_emit.fj_1;
|
|
896
895
|
};
|
|
897
896
|
}
|
|
898
897
|
function JavaEmitter$emitPrimaryType$lambda($this_emitPrimaryType) {
|
|
@@ -903,10 +902,10 @@
|
|
|
903
902
|
tmp = 'Object';
|
|
904
903
|
} else {
|
|
905
904
|
if (tmp0_subject instanceof Custom) {
|
|
906
|
-
tmp = $this_emitPrimaryType.
|
|
905
|
+
tmp = $this_emitPrimaryType.jj_1;
|
|
907
906
|
} else {
|
|
908
907
|
if (tmp0_subject instanceof Primitive) {
|
|
909
|
-
var tmp1_subject = $this_emitPrimaryType.
|
|
908
|
+
var tmp1_subject = $this_emitPrimaryType.gj_1;
|
|
910
909
|
var tmp0 = tmp1_subject.q4_1;
|
|
911
910
|
var tmp_0;
|
|
912
911
|
switch (tmp0) {
|
|
@@ -940,7 +939,7 @@
|
|
|
940
939
|
// Inline function 'kotlin.contracts.contract' call
|
|
941
940
|
var tmp$ret$0;
|
|
942
941
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emit.<anonymous>.<anonymous>' call
|
|
943
|
-
tmp$ret$0 = $this_emit.
|
|
942
|
+
tmp$ret$0 = $this_emit.si() ? 'java.util.List<' + tmp0_let + '>' : tmp0_let;
|
|
944
943
|
tmp$ret$1 = tmp$ret$0;
|
|
945
944
|
return tmp$ret$1;
|
|
946
945
|
};
|
|
@@ -966,26 +965,32 @@
|
|
|
966
965
|
Companion_getInstance_2();
|
|
967
966
|
Companion_getInstance_2();
|
|
968
967
|
Companion_getInstance_2();
|
|
969
|
-
var body = trimMargin('\n |' + ' ' + 'public final String label;\n |' + ' ' + $this_emit.
|
|
968
|
+
var body = trimMargin('\n |' + ' ' + 'public final String label;\n |' + ' ' + $this_emit.mj_1 + '(String label) {\n |' + ' ' + ' ' + 'this.label = label;\n |' + ' ' + '}\n ');
|
|
969
|
+
Companion_getInstance_2();
|
|
970
|
+
Companion_getInstance_2();
|
|
971
|
+
Companion_getInstance_2();
|
|
972
|
+
Companion_getInstance_2();
|
|
973
|
+
Companion_getInstance_2();
|
|
974
|
+
var toString = trimMargin('\n |' + ' ' + '@Override\n |' + ' ' + 'public String toString() {\n |' + ' ' + ' ' + 'return label;\n |' + ' ' + '}\n ');
|
|
970
975
|
Companion_getInstance_2();
|
|
971
976
|
Companion_getInstance_2();
|
|
972
977
|
var tmp = ',\n' + ' ';
|
|
973
|
-
return 'public enum ' + $this_emit.
|
|
978
|
+
return 'public enum ' + $this_emit.mj_1 + ' {\n' + ' ' + joinToString($this_emit.nj_1, tmp, VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda$lambda_0) + ';\n' + body + '\n' + toString + '\n}\n';
|
|
974
979
|
};
|
|
975
980
|
}
|
|
976
981
|
function JavaEmitter$emit$lambda_5($this_emit, this$0) {
|
|
977
982
|
return function () {
|
|
978
983
|
Companion_getInstance_2();
|
|
979
984
|
Companion_getInstance_2();
|
|
980
|
-
var tmp = this$0.
|
|
985
|
+
var tmp = this$0.qj($this_emit.pj_1);
|
|
981
986
|
Companion_getInstance_2();
|
|
982
|
-
return trimMargin('public record ' + $this_emit.
|
|
987
|
+
return trimMargin('public record ' + $this_emit.oj_1 + '(String value) {\n |' + ' ' + 'static void validate(' + $this_emit.oj_1 + ' record) {\n |' + ' ' + tmp + '\n |' + ' ' + '}\n |}\n |');
|
|
983
988
|
};
|
|
984
989
|
}
|
|
985
990
|
function JavaEmitter$emit$lambda_6($this_emit) {
|
|
986
991
|
return function () {
|
|
987
992
|
Companion_getInstance_2();
|
|
988
|
-
return ' ' + 'java.util.regex.Pattern.compile(' + $this_emit.
|
|
993
|
+
return ' ' + 'java.util.regex.Pattern.compile(' + $this_emit.rj_1 + ').matcher(record.value).find();';
|
|
989
994
|
};
|
|
990
995
|
}
|
|
991
996
|
function JavaEmitter$emit$lambda$lambda_1(this$0, $this_emit) {
|
|
@@ -1011,14 +1016,14 @@
|
|
|
1011
1016
|
function JavaEmitter$emit$lambda_7($this_emit, this$0) {
|
|
1012
1017
|
return function () {
|
|
1013
1018
|
Companion_getInstance_2();
|
|
1014
|
-
var tmp = emitSegment($this_emit.
|
|
1015
|
-
var tmp_0 = emitResponseMapper($this_emit.
|
|
1019
|
+
var tmp = emitSegment($this_emit.ii_1, this$0);
|
|
1020
|
+
var tmp_0 = emitResponseMapper($this_emit.ni_1, this$0);
|
|
1016
1021
|
Companion_getInstance_2();
|
|
1017
|
-
var tmp_1 = joinToString($this_emit.
|
|
1022
|
+
var tmp_1 = joinToString($this_emit.mi_1, '\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda$lambda_1(this$0, $this_emit));
|
|
1018
1023
|
Companion_getInstance_2();
|
|
1019
1024
|
var tmp$ret$2;
|
|
1020
1025
|
// Inline function 'kotlin.collections.map' call
|
|
1021
|
-
var tmp1_map = $this_emit.
|
|
1026
|
+
var tmp1_map = $this_emit.ni_1;
|
|
1022
1027
|
var tmp$ret$1;
|
|
1023
1028
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1024
1029
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -1027,7 +1032,7 @@
|
|
|
1027
1032
|
var item = tmp0_iterator.e();
|
|
1028
1033
|
var tmp$ret$0;
|
|
1029
1034
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emit.<anonymous>.<anonymous>' call
|
|
1030
|
-
tmp$ret$0 = groupStatus(item.
|
|
1035
|
+
tmp$ret$0 = groupStatus(item.oi_1, this$0);
|
|
1031
1036
|
tmp0_mapTo.a(tmp$ret$0);
|
|
1032
1037
|
}
|
|
1033
1038
|
tmp$ret$1 = tmp0_mapTo;
|
|
@@ -1038,7 +1043,7 @@
|
|
|
1038
1043
|
// Inline function 'kotlin.collections.map' call
|
|
1039
1044
|
var tmp$ret$5;
|
|
1040
1045
|
// Inline function 'kotlin.collections.filter' call
|
|
1041
|
-
var tmp3_filter = $this_emit.
|
|
1046
|
+
var tmp3_filter = $this_emit.ni_1;
|
|
1042
1047
|
var tmp$ret$4;
|
|
1043
1048
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1044
1049
|
var tmp2_filterTo = ArrayList_init_$Create$();
|
|
@@ -1047,7 +1052,7 @@
|
|
|
1047
1052
|
var element = tmp0_iterator_0.e();
|
|
1048
1053
|
var tmp$ret$3;
|
|
1049
1054
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emit.<anonymous>.<anonymous>' call
|
|
1050
|
-
tmp$ret$3 = isInt(element.
|
|
1055
|
+
tmp$ret$3 = isInt(element.oi_1, this$0);
|
|
1051
1056
|
if (tmp$ret$3) {
|
|
1052
1057
|
tmp2_filterTo.a(element);
|
|
1053
1058
|
}
|
|
@@ -1063,7 +1068,7 @@
|
|
|
1063
1068
|
var item_0 = tmp0_iterator_1.e();
|
|
1064
1069
|
var tmp$ret$6;
|
|
1065
1070
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emit.<anonymous>.<anonymous>' call
|
|
1066
|
-
tmp$ret$6 = item_0.
|
|
1071
|
+
tmp$ret$6 = item_0.oi_1;
|
|
1067
1072
|
tmp4_mapTo.a(tmp$ret$6);
|
|
1068
1073
|
}
|
|
1069
1074
|
tmp$ret$7 = tmp4_mapTo;
|
|
@@ -1072,7 +1077,7 @@
|
|
|
1072
1077
|
var tmp_5 = joinToString(tmp_4, '\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda$lambda_3(this$0));
|
|
1073
1078
|
var tmp$ret$10;
|
|
1074
1079
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
1075
|
-
var tmp6_distinctBy = $this_emit.
|
|
1080
|
+
var tmp6_distinctBy = $this_emit.ni_1;
|
|
1076
1081
|
var set = HashSet_init_$Create$();
|
|
1077
1082
|
var list = ArrayList_init_$Create$();
|
|
1078
1083
|
var tmp0_iterator_2 = tmp6_distinctBy.c();
|
|
@@ -1080,8 +1085,8 @@
|
|
|
1080
1085
|
var e = tmp0_iterator_2.e();
|
|
1081
1086
|
var tmp$ret$9;
|
|
1082
1087
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emit.<anonymous>.<anonymous>' call
|
|
1083
|
-
var tmp0_safe_receiver = e.
|
|
1084
|
-
tmp$ret$9 = to(e.
|
|
1088
|
+
var tmp0_safe_receiver = e.pi_1;
|
|
1089
|
+
tmp$ret$9 = to(e.oi_1, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yh_1);
|
|
1085
1090
|
var key = tmp$ret$9;
|
|
1086
1091
|
if (set.a(key)) {
|
|
1087
1092
|
list.a(e);
|
|
@@ -1091,7 +1096,7 @@
|
|
|
1091
1096
|
var tmp_6 = tmp$ret$10;
|
|
1092
1097
|
var tmp_7 = joinToString(tmp_6, '\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda$lambda_4(this$0));
|
|
1093
1098
|
Companion_getInstance_2();
|
|
1094
|
-
return trimMargin('public interface ' + $this_emit.
|
|
1099
|
+
return trimMargin('public interface ' + $this_emit.gi_1 + ' {\n |' + ' ' + 'static String PATH = "' + tmp + '";\n |' + tmp_0 + '\n |' + ' ' + 'interface Request<T> extends WirespecShared.Request<T> {}\n |' + tmp_1 + '\n |' + ' ' + 'interface Response<T> extends WirespecShared.Response<T> {}\n |' + tmp_3 + '\n |' + tmp_5 + '\n |' + tmp_7 + '\n |' + ' ' + 'public Response ' + Companion_getInstance_2().sj($this_emit.gi_1) + '(Request request);\n |}\n |');
|
|
1095
1100
|
};
|
|
1096
1101
|
}
|
|
1097
1102
|
function JavaEmitter$emitResponseMapper$lambda(this$0) {
|
|
@@ -1100,17 +1105,17 @@
|
|
|
1100
1105
|
};
|
|
1101
1106
|
}
|
|
1102
1107
|
function JavaEmitter$emitContentType$lambda(it) {
|
|
1103
|
-
return Companion_getInstance_2().
|
|
1108
|
+
return Companion_getInstance_2().ri(it);
|
|
1104
1109
|
}
|
|
1105
1110
|
function JavaEmitter$emit$lambda_8($this_emit) {
|
|
1106
1111
|
return function () {
|
|
1107
1112
|
var tmp0_subject = $this_emit;
|
|
1108
1113
|
var tmp;
|
|
1109
1114
|
if (tmp0_subject instanceof Literal) {
|
|
1110
|
-
tmp = '"' + $this_emit.
|
|
1115
|
+
tmp = '"' + $this_emit.tj_1 + '"';
|
|
1111
1116
|
} else {
|
|
1112
1117
|
if (tmp0_subject instanceof Param) {
|
|
1113
|
-
tmp = $this_emit.
|
|
1118
|
+
tmp = $this_emit.ui_1.fj_1;
|
|
1114
1119
|
} else {
|
|
1115
1120
|
noWhenBranchMatchedException();
|
|
1116
1121
|
}
|
|
@@ -1120,22 +1125,22 @@
|
|
|
1120
1125
|
}
|
|
1121
1126
|
function JavaEmitter$emitRequestSignature$lambda(this$0) {
|
|
1122
1127
|
return function (it) {
|
|
1123
|
-
return this$0.
|
|
1128
|
+
return this$0.zi(it);
|
|
1124
1129
|
};
|
|
1125
1130
|
}
|
|
1126
1131
|
function JavaEmitter$emitMap$lambda(this$0) {
|
|
1127
1132
|
return function (it) {
|
|
1128
|
-
return '"' + this$0.
|
|
1133
|
+
return '"' + this$0.ej(it.bj_1) + '", java.util.List.of(' + this$0.ej(it.bj_1) + ')';
|
|
1129
1134
|
};
|
|
1130
1135
|
}
|
|
1131
1136
|
function JavaEmitter$emitSegment$lambda(it) {
|
|
1132
1137
|
var tmp0_subject = it;
|
|
1133
1138
|
var tmp;
|
|
1134
1139
|
if (tmp0_subject instanceof Param) {
|
|
1135
|
-
tmp = '{' + it.
|
|
1140
|
+
tmp = '{' + it.ui_1.fj_1 + '}';
|
|
1136
1141
|
} else {
|
|
1137
1142
|
if (tmp0_subject instanceof Literal) {
|
|
1138
|
-
tmp = it.
|
|
1143
|
+
tmp = it.tj_1;
|
|
1139
1144
|
} else {
|
|
1140
1145
|
noWhenBranchMatchedException();
|
|
1141
1146
|
}
|
|
@@ -1188,13 +1193,13 @@
|
|
|
1188
1193
|
Companion_getInstance_2();
|
|
1189
1194
|
Companion_getInstance_2();
|
|
1190
1195
|
Companion_getInstance_2();
|
|
1191
|
-
tmp.
|
|
1192
|
-
this.
|
|
1196
|
+
tmp.di_1 = trimMargin('\n |import java.lang.reflect.Type;\n |import java.lang.reflect.ParameterizedType;\n |\n |public interface WirespecShared {\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 ');
|
|
1197
|
+
this.ei_1 = isBlank(packageName) ? '' : 'package ' + packageName + ';';
|
|
1193
1198
|
}
|
|
1194
|
-
protoOf(JavaEmitter).
|
|
1199
|
+
protoOf(JavaEmitter).th = function (ast) {
|
|
1195
1200
|
var tmp$ret$2;
|
|
1196
1201
|
// Inline function 'kotlin.collections.map' call
|
|
1197
|
-
var tmp1_map = protoOf(Emitter).
|
|
1202
|
+
var tmp1_map = protoOf(Emitter).th.call(this, ast);
|
|
1198
1203
|
var tmp$ret$1;
|
|
1199
1204
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1200
1205
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -1205,46 +1210,46 @@
|
|
|
1205
1210
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emit.<anonymous>' call
|
|
1206
1211
|
var name = item.i3();
|
|
1207
1212
|
var result = item.j3();
|
|
1208
|
-
tmp$ret$0 = to(name, this.
|
|
1213
|
+
tmp$ret$0 = to(name, this.ei_1 + '\n\n' + result);
|
|
1209
1214
|
tmp0_mapTo.a(tmp$ret$0);
|
|
1210
1215
|
}
|
|
1211
1216
|
tmp$ret$1 = tmp0_mapTo;
|
|
1212
1217
|
tmp$ret$2 = tmp$ret$1;
|
|
1213
|
-
return plus_0(tmp$ret$2, to('WirespecShared', this.
|
|
1218
|
+
return plus_0(tmp$ret$2, to('WirespecShared', this.ei_1 + '\n\n' + this.di_1));
|
|
1214
1219
|
};
|
|
1215
|
-
protoOf(JavaEmitter).
|
|
1216
|
-
return this.
|
|
1217
|
-
};
|
|
1218
|
-
protoOf(JavaEmitter).xi = function (_this__u8e3s4) {
|
|
1219
|
-
return this.vj(_this__u8e3s4, this.qh_1, JavaEmitter$emit$lambda_0(_this__u8e3s4, this));
|
|
1220
|
+
protoOf(JavaEmitter).uj = function (_this__u8e3s4) {
|
|
1221
|
+
return this.vj(_this__u8e3s4, this.rh_1, JavaEmitter$emit$lambda(_this__u8e3s4, this));
|
|
1220
1222
|
};
|
|
1221
1223
|
protoOf(JavaEmitter).yi = function (_this__u8e3s4) {
|
|
1222
|
-
return this.wj(_this__u8e3s4, this.
|
|
1224
|
+
return this.wj(_this__u8e3s4, this.rh_1, JavaEmitter$emit$lambda_0(_this__u8e3s4, this));
|
|
1225
|
+
};
|
|
1226
|
+
protoOf(JavaEmitter).zi = function (_this__u8e3s4) {
|
|
1227
|
+
return this.xj(_this__u8e3s4, this.rh_1, JavaEmitter$emit$lambda_1(_this__u8e3s4, this));
|
|
1223
1228
|
};
|
|
1224
|
-
protoOf(JavaEmitter).
|
|
1225
|
-
return this.
|
|
1229
|
+
protoOf(JavaEmitter).ej = function (_this__u8e3s4) {
|
|
1230
|
+
return this.yj(_this__u8e3s4, this.rh_1, JavaEmitter$emit$lambda_2(_this__u8e3s4));
|
|
1226
1231
|
};
|
|
1227
|
-
protoOf(JavaEmitter).
|
|
1228
|
-
return this.
|
|
1232
|
+
protoOf(JavaEmitter).fi = function (_this__u8e3s4) {
|
|
1233
|
+
return this.wh(_this__u8e3s4, this.rh_1, JavaEmitter$emit$lambda_3(this, _this__u8e3s4));
|
|
1229
1234
|
};
|
|
1230
|
-
protoOf(JavaEmitter).
|
|
1231
|
-
return this.
|
|
1235
|
+
protoOf(JavaEmitter).zj = function (_this__u8e3s4) {
|
|
1236
|
+
return this.ak(_this__u8e3s4, this.rh_1, JavaEmitter$emit$lambda_4(_this__u8e3s4));
|
|
1232
1237
|
};
|
|
1233
|
-
protoOf(JavaEmitter).
|
|
1234
|
-
return this.
|
|
1238
|
+
protoOf(JavaEmitter).bk = function (_this__u8e3s4) {
|
|
1239
|
+
return this.ck(_this__u8e3s4, this.rh_1, JavaEmitter$emit$lambda_5(_this__u8e3s4, this));
|
|
1235
1240
|
};
|
|
1236
|
-
protoOf(JavaEmitter).
|
|
1237
|
-
return this.
|
|
1241
|
+
protoOf(JavaEmitter).qj = function (_this__u8e3s4) {
|
|
1242
|
+
return this.dk(_this__u8e3s4, this.rh_1, JavaEmitter$emit$lambda_6(_this__u8e3s4));
|
|
1238
1243
|
};
|
|
1239
|
-
protoOf(JavaEmitter).
|
|
1240
|
-
return this.
|
|
1244
|
+
protoOf(JavaEmitter).ek = function (_this__u8e3s4) {
|
|
1245
|
+
return this.fk(_this__u8e3s4, this.rh_1, JavaEmitter$emit$lambda_7(_this__u8e3s4, this));
|
|
1241
1246
|
};
|
|
1242
1247
|
function emitRequestSignature_0(_this__u8e3s4, $this, content) {
|
|
1243
1248
|
var tmp$ret$4;
|
|
1244
1249
|
// Inline function 'kotlin.collections.map' call
|
|
1245
1250
|
var tmp$ret$1;
|
|
1246
1251
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1247
|
-
var tmp1_filterIsInstance = _this__u8e3s4.
|
|
1252
|
+
var tmp1_filterIsInstance = _this__u8e3s4.ii_1;
|
|
1248
1253
|
var tmp$ret$0;
|
|
1249
1254
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
1250
1255
|
var tmp0_filterIsInstanceTo = ArrayList_init_$Create$();
|
|
@@ -1266,15 +1271,15 @@
|
|
|
1266
1271
|
var item = tmp0_iterator_0.e();
|
|
1267
1272
|
var tmp$ret$2;
|
|
1268
1273
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitRequestSignature.<anonymous>' call
|
|
1269
|
-
tmp$ret$2 = new Field(item.
|
|
1274
|
+
tmp$ret$2 = new Field(item.ui_1, item.vi_1, false);
|
|
1270
1275
|
tmp2_mapTo.a(tmp$ret$2);
|
|
1271
1276
|
}
|
|
1272
1277
|
tmp$ret$3 = tmp2_mapTo;
|
|
1273
1278
|
tmp$ret$4 = tmp$ret$3;
|
|
1274
1279
|
var pathField = tmp$ret$4;
|
|
1275
|
-
var parameters = plus(plus(plus(pathField, _this__u8e3s4.
|
|
1280
|
+
var parameters = plus(plus(plus(pathField, _this__u8e3s4.ji_1), _this__u8e3s4.ki_1), _this__u8e3s4.li_1);
|
|
1276
1281
|
var tmp0_safe_receiver = content;
|
|
1277
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1282
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zh_1;
|
|
1278
1283
|
var tmp = filterNotNull(plus_0(parameters, tmp1_safe_receiver == null ? null : toField(tmp1_safe_receiver, 'body', false)));
|
|
1279
1284
|
return trimMargin('\n |(' + joinToString(tmp, ', ', VOID, VOID, VOID, VOID, KotlinEmitter$emitRequestSignature$lambda($this)) + ')\n ');
|
|
1280
1285
|
}
|
|
@@ -1285,7 +1290,7 @@
|
|
|
1285
1290
|
return joinToString(_this__u8e3s4, ', ', VOID, VOID, VOID, VOID, KotlinEmitter$emitMap$lambda($this));
|
|
1286
1291
|
}
|
|
1287
1292
|
function emit_2(_this__u8e3s4, $this) {
|
|
1288
|
-
return $this.
|
|
1293
|
+
return $this.ti(_this__u8e3s4, $this.rh_1, KotlinEmitter$emit$lambda_8(_this__u8e3s4));
|
|
1289
1294
|
}
|
|
1290
1295
|
function emitPath_0(_this__u8e3s4, $this) {
|
|
1291
1296
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, KotlinEmitter$emitPath$lambda($this));
|
|
@@ -1306,7 +1311,7 @@
|
|
|
1306
1311
|
var element = tmp0_iterator.e();
|
|
1307
1312
|
var tmp$ret$0;
|
|
1308
1313
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseMapper.<anonymous>' call
|
|
1309
|
-
tmp$ret$0 = Companion_getInstance_2().
|
|
1314
|
+
tmp$ret$0 = Companion_getInstance_2().gk(element.oi_1);
|
|
1310
1315
|
if (tmp$ret$0) {
|
|
1311
1316
|
tmp0_filterTo.a(element);
|
|
1312
1317
|
}
|
|
@@ -1321,8 +1326,8 @@
|
|
|
1321
1326
|
var e = tmp0_iterator_0.e();
|
|
1322
1327
|
var tmp$ret$3;
|
|
1323
1328
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseMapper.<anonymous>' call
|
|
1324
|
-
var tmp0_safe_receiver = e.
|
|
1325
|
-
tmp$ret$3 = to(e.
|
|
1329
|
+
var tmp0_safe_receiver = e.pi_1;
|
|
1330
|
+
tmp$ret$3 = to(e.oi_1, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yh_1);
|
|
1326
1331
|
var key = tmp$ret$3;
|
|
1327
1332
|
if (set.a(key)) {
|
|
1328
1333
|
list.a(e);
|
|
@@ -1343,7 +1348,7 @@
|
|
|
1343
1348
|
var element_0 = tmp0_iterator_1.e();
|
|
1344
1349
|
var tmp$ret$5;
|
|
1345
1350
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseMapper.<anonymous>' call
|
|
1346
|
-
tmp$ret$5 = !Companion_getInstance_2().
|
|
1351
|
+
tmp$ret$5 = !Companion_getInstance_2().gk(element_0.oi_1);
|
|
1347
1352
|
if (tmp$ret$5) {
|
|
1348
1353
|
tmp2_filterTo.a(element_0);
|
|
1349
1354
|
}
|
|
@@ -1358,8 +1363,8 @@
|
|
|
1358
1363
|
var e_0 = tmp0_iterator_2.e();
|
|
1359
1364
|
var tmp$ret$8;
|
|
1360
1365
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseMapper.<anonymous>' call
|
|
1361
|
-
var tmp0_safe_receiver_0 = e_0.
|
|
1362
|
-
tmp$ret$8 = to(e_0.
|
|
1366
|
+
var tmp0_safe_receiver_0 = e_0.pi_1;
|
|
1367
|
+
tmp$ret$8 = to(e_0.oi_1, tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.yh_1);
|
|
1363
1368
|
var key_0 = tmp$ret$8;
|
|
1364
1369
|
if (set_0.a(key_0)) {
|
|
1365
1370
|
list_0.a(e_0);
|
|
@@ -1374,7 +1379,7 @@
|
|
|
1374
1379
|
return trimMargin('\n |fun <B> RESPONSE_MAPPER(contentMapper: WirespecShared.ContentMapper<B>) =\n |' + ' ' + 'fun(status: Int, headers:Map<String, List<Any?>>, content: WirespecShared.Content<B>?) =\n |' + ' ' + ' ' + 'when {\n |' + tmp_0 + '\n |' + tmp_2 + '\n |' + ' ' + ' ' + ' ' + 'else -> error("Cannot map response with status $status")\n ');
|
|
1375
1380
|
}
|
|
1376
1381
|
function emitResponseMapperCondition_0(_this__u8e3s4, $this) {
|
|
1377
|
-
var tmp0_subject = _this__u8e3s4.
|
|
1382
|
+
var tmp0_subject = _this__u8e3s4.pi_1;
|
|
1378
1383
|
var tmp;
|
|
1379
1384
|
if (tmp0_subject == null) {
|
|
1380
1385
|
Companion_getInstance_2();
|
|
@@ -1382,12 +1387,12 @@
|
|
|
1382
1387
|
Companion_getInstance_2();
|
|
1383
1388
|
var tmp$ret$1;
|
|
1384
1389
|
// Inline function 'kotlin.takeIf' call
|
|
1385
|
-
var tmp0_takeIf = _this__u8e3s4.
|
|
1390
|
+
var tmp0_takeIf = _this__u8e3s4.oi_1;
|
|
1386
1391
|
// Inline function 'kotlin.contracts.contract' call
|
|
1387
1392
|
var tmp_0;
|
|
1388
1393
|
var tmp$ret$0;
|
|
1389
1394
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseMapperCondition.<anonymous>' call
|
|
1390
|
-
tmp$ret$0 = Companion_getInstance_2().
|
|
1395
|
+
tmp$ret$0 = Companion_getInstance_2().gk(tmp0_takeIf);
|
|
1391
1396
|
if (tmp$ret$0) {
|
|
1392
1397
|
tmp_0 = tmp0_takeIf;
|
|
1393
1398
|
} else {
|
|
@@ -1404,20 +1409,20 @@
|
|
|
1404
1409
|
// Inline function 'kotlin.contracts.contract' call
|
|
1405
1410
|
var tmp$ret$2;
|
|
1406
1411
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseMapperCondition.<anonymous>' call
|
|
1407
|
-
tmp$ret$2 = 'status == ' + _this__u8e3s4.
|
|
1412
|
+
tmp$ret$2 = 'status == ' + _this__u8e3s4.oi_1 + ' && ';
|
|
1408
1413
|
tmp$ret$3 = tmp$ret$2;
|
|
1409
1414
|
tmp_1 = tmp$ret$3;
|
|
1410
1415
|
}
|
|
1411
1416
|
var tmp_2 = orEmptyString_0(tmp_1);
|
|
1412
|
-
var tmp_3 = Companion_getInstance_2().
|
|
1417
|
+
var tmp_3 = Companion_getInstance_2().ri(_this__u8e3s4.oi_1);
|
|
1413
1418
|
var tmp$ret$5;
|
|
1414
1419
|
// Inline function 'kotlin.takeIf' call
|
|
1415
|
-
var tmp1_takeIf = _this__u8e3s4.
|
|
1420
|
+
var tmp1_takeIf = _this__u8e3s4.oi_1;
|
|
1416
1421
|
// Inline function 'kotlin.contracts.contract' call
|
|
1417
1422
|
var tmp_4;
|
|
1418
1423
|
var tmp$ret$4;
|
|
1419
1424
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseMapperCondition.<anonymous>' call
|
|
1420
|
-
tmp$ret$4 = !Companion_getInstance_2().
|
|
1425
|
+
tmp$ret$4 = !Companion_getInstance_2().gk(tmp1_takeIf);
|
|
1421
1426
|
if (tmp$ret$4) {
|
|
1422
1427
|
tmp_4 = tmp1_takeIf;
|
|
1423
1428
|
} else {
|
|
@@ -1445,12 +1450,12 @@
|
|
|
1445
1450
|
Companion_getInstance_2();
|
|
1446
1451
|
var tmp$ret$9;
|
|
1447
1452
|
// Inline function 'kotlin.takeIf' call
|
|
1448
|
-
var tmp2_takeIf = _this__u8e3s4.
|
|
1453
|
+
var tmp2_takeIf = _this__u8e3s4.oi_1;
|
|
1449
1454
|
// Inline function 'kotlin.contracts.contract' call
|
|
1450
1455
|
var tmp_6;
|
|
1451
1456
|
var tmp$ret$8;
|
|
1452
1457
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseMapperCondition.<anonymous>' call
|
|
1453
|
-
tmp$ret$8 = Companion_getInstance_2().
|
|
1458
|
+
tmp$ret$8 = Companion_getInstance_2().gk(tmp2_takeIf);
|
|
1454
1459
|
if (tmp$ret$8) {
|
|
1455
1460
|
tmp_6 = tmp2_takeIf;
|
|
1456
1461
|
} else {
|
|
@@ -1467,7 +1472,7 @@
|
|
|
1467
1472
|
// Inline function 'kotlin.contracts.contract' call
|
|
1468
1473
|
var tmp$ret$10;
|
|
1469
1474
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseMapperCondition.<anonymous>' call
|
|
1470
|
-
tmp$ret$10 = 'status == ' + _this__u8e3s4.
|
|
1475
|
+
tmp$ret$10 = 'status == ' + _this__u8e3s4.oi_1 + ' && ';
|
|
1471
1476
|
tmp$ret$11 = tmp$ret$10;
|
|
1472
1477
|
tmp_7 = tmp$ret$11;
|
|
1473
1478
|
}
|
|
@@ -1476,22 +1481,22 @@
|
|
|
1476
1481
|
Companion_getInstance_2();
|
|
1477
1482
|
Companion_getInstance_2();
|
|
1478
1483
|
Companion_getInstance_2();
|
|
1479
|
-
var tmp_9 = $this.
|
|
1480
|
-
var tmp_10 = $this.
|
|
1484
|
+
var tmp_9 = $this.fi(_this__u8e3s4.pi_1.zh_1);
|
|
1485
|
+
var tmp_10 = $this.fi(_this__u8e3s4.pi_1.zh_1);
|
|
1481
1486
|
Companion_getInstance_2();
|
|
1482
1487
|
Companion_getInstance_2();
|
|
1483
1488
|
Companion_getInstance_2();
|
|
1484
1489
|
Companion_getInstance_2();
|
|
1485
|
-
var tmp_11 = Companion_getInstance_2().
|
|
1486
|
-
var tmp_12 = emitContentType_0(_this__u8e3s4.
|
|
1490
|
+
var tmp_11 = Companion_getInstance_2().ri(_this__u8e3s4.oi_1);
|
|
1491
|
+
var tmp_12 = emitContentType_0(_this__u8e3s4.pi_1);
|
|
1487
1492
|
var tmp$ret$13;
|
|
1488
1493
|
// Inline function 'kotlin.takeIf' call
|
|
1489
|
-
var tmp3_takeIf = _this__u8e3s4.
|
|
1494
|
+
var tmp3_takeIf = _this__u8e3s4.oi_1;
|
|
1490
1495
|
// Inline function 'kotlin.contracts.contract' call
|
|
1491
1496
|
var tmp_13;
|
|
1492
1497
|
var tmp$ret$12;
|
|
1493
1498
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseMapperCondition.<anonymous>' call
|
|
1494
|
-
tmp$ret$12 = !Companion_getInstance_2().
|
|
1499
|
+
tmp$ret$12 = !Companion_getInstance_2().gk(tmp3_takeIf);
|
|
1495
1500
|
if (tmp$ret$12) {
|
|
1496
1501
|
tmp_13 = tmp3_takeIf;
|
|
1497
1502
|
} else {
|
|
@@ -1512,13 +1517,13 @@
|
|
|
1512
1517
|
tmp$ret$15 = tmp$ret$14;
|
|
1513
1518
|
tmp_14 = tmp$ret$15;
|
|
1514
1519
|
}
|
|
1515
|
-
tmp = trimMargin('\n |' + ' ' + ' ' + ' ' + tmp_8 + 'content?.type == "' + _this__u8e3s4.
|
|
1520
|
+
tmp = trimMargin('\n |' + ' ' + ' ' + ' ' + tmp_8 + 'content?.type == "' + _this__u8e3s4.pi_1.yh_1 + '" -> contentMapper\n |' + ' ' + ' ' + ' ' + ' ' + '.read<' + tmp_9 + '>(content, typeOf<' + tmp_10 + '>())\n |' + ' ' + ' ' + ' ' + ' ' + '.let{ Response' + tmp_11 + tmp_12 + '(' + orEmptyString_0(tmp_14) + 'headers, it.body) }\n ');
|
|
1516
1521
|
}
|
|
1517
1522
|
return tmp;
|
|
1518
1523
|
}
|
|
1519
1524
|
function Companion() {
|
|
1520
1525
|
Companion_instance = this;
|
|
1521
|
-
this.
|
|
1526
|
+
this.lk_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']);
|
|
1522
1527
|
}
|
|
1523
1528
|
var Companion_instance;
|
|
1524
1529
|
function Companion_getInstance_0() {
|
|
@@ -1528,30 +1533,30 @@
|
|
|
1528
1533
|
}
|
|
1529
1534
|
function KotlinEmitter$emit$lambda($this_emit, this$0) {
|
|
1530
1535
|
return function () {
|
|
1531
|
-
return trimMargin('|data class ' + $this_emit.
|
|
1536
|
+
return trimMargin('|data class ' + $this_emit.wi_1 + '(\n |' + this$0.yi($this_emit.xi_1) + '\n |)\n |');
|
|
1532
1537
|
};
|
|
1533
1538
|
}
|
|
1534
1539
|
function KotlinEmitter$emit$lambda$lambda(this$0) {
|
|
1535
1540
|
return function (it) {
|
|
1536
1541
|
Companion_getInstance_2();
|
|
1537
|
-
return ' ' + 'val ' + this$0.
|
|
1542
|
+
return ' ' + 'val ' + this$0.zi(it);
|
|
1538
1543
|
};
|
|
1539
1544
|
}
|
|
1540
1545
|
function KotlinEmitter$emit$lambda_0($this_emit, this$0) {
|
|
1541
1546
|
return function () {
|
|
1542
|
-
return joinToString($this_emit.
|
|
1547
|
+
return joinToString($this_emit.aj_1, ',\n', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda$lambda(this$0));
|
|
1543
1548
|
};
|
|
1544
1549
|
}
|
|
1545
1550
|
function KotlinEmitter$emit$lambda_1(this$0, $this_emit) {
|
|
1546
1551
|
return function () {
|
|
1547
|
-
return this$0.
|
|
1552
|
+
return this$0.ej($this_emit.bj_1) + ': ' + this$0.fi($this_emit.cj_1) + ($this_emit.dj_1 ? '? = null' : '');
|
|
1548
1553
|
};
|
|
1549
1554
|
}
|
|
1550
1555
|
function KotlinEmitter$emit$lambda_2(this$0, $this_emit) {
|
|
1551
1556
|
return function () {
|
|
1552
1557
|
var tmp$ret$2;
|
|
1553
1558
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
1554
|
-
var tmp1_mapIndexed = split($this_emit.
|
|
1559
|
+
var tmp1_mapIndexed = split($this_emit.fj_1, ['-']);
|
|
1555
1560
|
var tmp$ret$1;
|
|
1556
1561
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
1557
1562
|
var tmp0_mapIndexedTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_mapIndexed, 10));
|
|
@@ -1564,12 +1569,12 @@
|
|
|
1564
1569
|
var tmp1 = index;
|
|
1565
1570
|
index = tmp1 + 1 | 0;
|
|
1566
1571
|
var tmp2__anonymous__z9zvc9 = checkIndexOverflow(tmp1);
|
|
1567
|
-
tmp$ret$0 = tmp2__anonymous__z9zvc9 > 0 ? Companion_getInstance_2().
|
|
1572
|
+
tmp$ret$0 = tmp2__anonymous__z9zvc9 > 0 ? Companion_getInstance_2().ri(item) : item;
|
|
1568
1573
|
tmp0_mapIndexedTo.a(tmp$ret$0);
|
|
1569
1574
|
}
|
|
1570
1575
|
tmp$ret$1 = tmp0_mapIndexedTo;
|
|
1571
1576
|
tmp$ret$2 = tmp$ret$1;
|
|
1572
|
-
return this$0.
|
|
1577
|
+
return this$0.mk(joinToString(tmp$ret$2, ''));
|
|
1573
1578
|
};
|
|
1574
1579
|
}
|
|
1575
1580
|
function KotlinEmitter$emit$lambda_3($this_emit) {
|
|
@@ -1584,10 +1589,10 @@
|
|
|
1584
1589
|
tmp = 'Any';
|
|
1585
1590
|
} else {
|
|
1586
1591
|
if (tmp0_subject instanceof Custom) {
|
|
1587
|
-
tmp = $this_emit.
|
|
1592
|
+
tmp = $this_emit.jj_1;
|
|
1588
1593
|
} else {
|
|
1589
1594
|
if (tmp0_subject instanceof Primitive) {
|
|
1590
|
-
var tmp1_subject = $this_emit.
|
|
1595
|
+
var tmp1_subject = $this_emit.gj_1;
|
|
1591
1596
|
var tmp0 = tmp1_subject.q4_1;
|
|
1592
1597
|
var tmp_0;
|
|
1593
1598
|
switch (tmp0) {
|
|
@@ -1614,13 +1619,13 @@
|
|
|
1614
1619
|
// Inline function 'kotlin.contracts.contract' call
|
|
1615
1620
|
var tmp$ret$0;
|
|
1616
1621
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
|
|
1617
|
-
tmp$ret$0 = $this_emit.
|
|
1622
|
+
tmp$ret$0 = $this_emit.si() ? 'List<' + tmp0_let + '>' : tmp0_let;
|
|
1618
1623
|
tmp$ret$1 = tmp$ret$0;
|
|
1619
1624
|
var tmp1_let = tmp$ret$1;
|
|
1620
1625
|
// Inline function 'kotlin.contracts.contract' call
|
|
1621
1626
|
var tmp$ret$2;
|
|
1622
1627
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
|
|
1623
|
-
tmp$ret$2 = $this_emit.
|
|
1628
|
+
tmp$ret$2 = $this_emit.nk() ? 'Map<String, ' + tmp1_let + '>' : tmp1_let;
|
|
1624
1629
|
tmp$ret$3 = tmp$ret$2;
|
|
1625
1630
|
return tmp$ret$3;
|
|
1626
1631
|
};
|
|
@@ -1638,7 +1643,7 @@
|
|
|
1638
1643
|
}
|
|
1639
1644
|
function KotlinEmitter$emit$lambda$lambda_0(this$0) {
|
|
1640
1645
|
return function (it) {
|
|
1641
|
-
return this$0.
|
|
1646
|
+
return this$0.mk(invoke$sanitize_0(it)) + '("' + it + '")';
|
|
1642
1647
|
};
|
|
1643
1648
|
}
|
|
1644
1649
|
function KotlinEmitter$emit$lambda_4($this_emit, this$0) {
|
|
@@ -1646,34 +1651,39 @@
|
|
|
1646
1651
|
Companion_getInstance_2();
|
|
1647
1652
|
Companion_getInstance_2();
|
|
1648
1653
|
var tmp = ',\n' + ' ';
|
|
1649
|
-
|
|
1654
|
+
var tmp_0 = joinToString($this_emit.nj_1, tmp, VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda$lambda_0(this$0));
|
|
1655
|
+
Companion_getInstance_2();
|
|
1656
|
+
Companion_getInstance_2();
|
|
1657
|
+
Companion_getInstance_2();
|
|
1658
|
+
Companion_getInstance_2();
|
|
1659
|
+
return 'enum class ' + $this_emit.mj_1 + ' (val label: String){\n' + ' ' + tmp_0 + ';\n\n' + ' ' + 'override fun toString(): String {\n' + ' ' + ' ' + 'return label\n' + ' ' + '}\n}\n';
|
|
1650
1660
|
};
|
|
1651
1661
|
}
|
|
1652
1662
|
function KotlinEmitter$emit$lambda_5($this_emit, this$0) {
|
|
1653
1663
|
return function () {
|
|
1654
|
-
return trimMargin('data class ' + $this_emit.
|
|
1664
|
+
return trimMargin('data class ' + $this_emit.oj_1 + '(val value: String)\n |fun ' + $this_emit.oj_1 + '.validate() = ' + this$0.qj($this_emit.pj_1) + '\n |');
|
|
1655
1665
|
};
|
|
1656
1666
|
}
|
|
1657
1667
|
function KotlinEmitter$emit$lambda_6($this_emit) {
|
|
1658
1668
|
return function () {
|
|
1659
|
-
return 'Regex(' + $this_emit.
|
|
1669
|
+
return 'Regex(' + $this_emit.rj_1 + ').find(value)';
|
|
1660
1670
|
};
|
|
1661
1671
|
}
|
|
1662
1672
|
function KotlinEmitter$emit$lambda$lambda_1(this$0, $this_emit) {
|
|
1663
1673
|
return function (it) {
|
|
1664
1674
|
Companion_getInstance_2();
|
|
1665
|
-
var tmp0_safe_receiver = it.
|
|
1675
|
+
var tmp0_safe_receiver = it.xh_1;
|
|
1666
1676
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : emitContentType_0(tmp0_safe_receiver);
|
|
1667
1677
|
var tmp = tmp1_elvis_lhs == null ? 'Unit' : tmp1_elvis_lhs;
|
|
1668
|
-
var tmp_0 = emitRequestSignature_0($this_emit, this$0, it.
|
|
1669
|
-
var tmp2_safe_receiver = it.
|
|
1670
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
1671
|
-
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : this$0.
|
|
1678
|
+
var tmp_0 = emitRequestSignature_0($this_emit, this$0, it.xh_1);
|
|
1679
|
+
var tmp2_safe_receiver = it.xh_1;
|
|
1680
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.zh_1;
|
|
1681
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : this$0.fi(tmp3_safe_receiver);
|
|
1672
1682
|
var tmp_1 = tmp4_elvis_lhs == null ? 'Unit' : tmp4_elvis_lhs;
|
|
1673
|
-
var tmp_2 = emitPath_0($this_emit.
|
|
1674
|
-
var tmp_3 = emitMap_0($this_emit.
|
|
1675
|
-
var tmp_4 = emitMap_0($this_emit.
|
|
1676
|
-
var tmp5_safe_receiver = it.
|
|
1683
|
+
var tmp_2 = emitPath_0($this_emit.ii_1, this$0);
|
|
1684
|
+
var tmp_3 = emitMap_0($this_emit.ji_1, this$0);
|
|
1685
|
+
var tmp_4 = emitMap_0($this_emit.ki_1, this$0);
|
|
1686
|
+
var tmp5_safe_receiver = it.xh_1;
|
|
1677
1687
|
var tmp_5;
|
|
1678
1688
|
if (tmp5_safe_receiver == null) {
|
|
1679
1689
|
tmp_5 = null;
|
|
@@ -1683,12 +1693,12 @@
|
|
|
1683
1693
|
// Inline function 'kotlin.contracts.contract' call
|
|
1684
1694
|
var tmp$ret$0;
|
|
1685
1695
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>.<anonymous>' call
|
|
1686
|
-
tmp$ret$0 = 'WirespecShared.Content("' + tmp5_safe_receiver.
|
|
1696
|
+
tmp$ret$0 = 'WirespecShared.Content("' + tmp5_safe_receiver.yh_1 + '", body)';
|
|
1687
1697
|
tmp$ret$1 = tmp$ret$0;
|
|
1688
1698
|
tmp_5 = tmp$ret$1;
|
|
1689
1699
|
}
|
|
1690
1700
|
var tmp6_elvis_lhs = tmp_5;
|
|
1691
|
-
return ' ' + 'class Request' + tmp + ' ' + tmp_0 + ': Request<' + tmp_1 + '> {override val path = "' + tmp_2 + '"; override val method = WirespecShared.Method.' + $this_emit.
|
|
1701
|
+
return ' ' + 'class Request' + tmp + ' ' + tmp_0 + ': Request<' + tmp_1 + '> {override val path = "' + tmp_2 + '"; override val method = WirespecShared.Method.' + $this_emit.hi_1.p4_1 + '; override val query = mapOf<String, List<Any?>>(' + tmp_3 + '); override val headers = mapOf<String, List<Any?>>(' + tmp_4 + '); override val content = ' + (tmp6_elvis_lhs == null ? 'null' : tmp6_elvis_lhs) + '}';
|
|
1692
1702
|
};
|
|
1693
1703
|
}
|
|
1694
1704
|
function KotlinEmitter$emit$lambda$lambda_2(it) {
|
|
@@ -1702,10 +1712,10 @@
|
|
|
1702
1712
|
function KotlinEmitter$emit$lambda$lambda_4(this$0) {
|
|
1703
1713
|
return function (it) {
|
|
1704
1714
|
Companion_getInstance_2();
|
|
1705
|
-
var tmp0_safe_receiver = it.
|
|
1715
|
+
var tmp0_safe_receiver = it.pi_1;
|
|
1706
1716
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : emitContentType_0(tmp0_safe_receiver);
|
|
1707
1717
|
var tmp = tmp1_elvis_lhs == null ? 'Unit' : tmp1_elvis_lhs;
|
|
1708
|
-
var tmp2_safe_receiver = it.
|
|
1718
|
+
var tmp2_safe_receiver = it.pi_1;
|
|
1709
1719
|
var tmp_0;
|
|
1710
1720
|
if (tmp2_safe_receiver == null) {
|
|
1711
1721
|
tmp_0 = null;
|
|
@@ -1715,17 +1725,17 @@
|
|
|
1715
1725
|
// Inline function 'kotlin.contracts.contract' call
|
|
1716
1726
|
var tmp$ret$0;
|
|
1717
1727
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>.<anonymous>' call
|
|
1718
|
-
tmp$ret$0 = ', body: ' + this$0.
|
|
1728
|
+
tmp$ret$0 = ', body: ' + this$0.fi(tmp2_safe_receiver.zh_1);
|
|
1719
1729
|
tmp$ret$1 = tmp$ret$0;
|
|
1720
1730
|
tmp_0 = tmp$ret$1;
|
|
1721
1731
|
}
|
|
1722
1732
|
var tmp3_elvis_lhs = tmp_0;
|
|
1723
1733
|
var tmp_1 = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
|
|
1724
|
-
var tmp4_safe_receiver = it.
|
|
1725
|
-
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.
|
|
1726
|
-
var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : this$0.
|
|
1734
|
+
var tmp4_safe_receiver = it.pi_1;
|
|
1735
|
+
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.zh_1;
|
|
1736
|
+
var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : this$0.fi(tmp5_safe_receiver);
|
|
1727
1737
|
var tmp_2 = tmp6_elvis_lhs == null ? 'Unit' : tmp6_elvis_lhs;
|
|
1728
|
-
var tmp7_safe_receiver = it.
|
|
1738
|
+
var tmp7_safe_receiver = it.pi_1;
|
|
1729
1739
|
var tmp_3;
|
|
1730
1740
|
if (tmp7_safe_receiver == null) {
|
|
1731
1741
|
tmp_3 = null;
|
|
@@ -1735,22 +1745,22 @@
|
|
|
1735
1745
|
// Inline function 'kotlin.contracts.contract' call
|
|
1736
1746
|
var tmp$ret$2;
|
|
1737
1747
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>.<anonymous>' call
|
|
1738
|
-
tmp$ret$2 = 'WirespecShared.Content("' + tmp7_safe_receiver.
|
|
1748
|
+
tmp$ret$2 = 'WirespecShared.Content("' + tmp7_safe_receiver.yh_1 + '", body)';
|
|
1739
1749
|
tmp$ret$3 = tmp$ret$2;
|
|
1740
1750
|
tmp_3 = tmp$ret$3;
|
|
1741
1751
|
}
|
|
1742
1752
|
var tmp8_elvis_lhs = tmp_3;
|
|
1743
|
-
return ' ' + 'class Response' + it.
|
|
1753
|
+
return ' ' + 'class Response' + it.oi_1 + tmp + ' (override val headers: Map<String, List<Any?>>' + tmp_1 + ' ): Response' + it.oi_1 + '<' + tmp_2 + '> { override val status = ' + it.oi_1 + '; override val content = ' + (tmp8_elvis_lhs == null ? 'null' : tmp8_elvis_lhs) + '}';
|
|
1744
1754
|
};
|
|
1745
1755
|
}
|
|
1746
1756
|
function KotlinEmitter$emit$lambda$lambda_5(this$0) {
|
|
1747
1757
|
return function (it) {
|
|
1748
1758
|
Companion_getInstance_2();
|
|
1749
|
-
var tmp = Companion_getInstance_2().
|
|
1750
|
-
var tmp0_safe_receiver = it.
|
|
1759
|
+
var tmp = Companion_getInstance_2().ri(it.oi_1);
|
|
1760
|
+
var tmp0_safe_receiver = it.pi_1;
|
|
1751
1761
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : emitContentType_0(tmp0_safe_receiver);
|
|
1752
1762
|
var tmp_0 = tmp1_elvis_lhs == null ? 'Unit' : tmp1_elvis_lhs;
|
|
1753
|
-
var tmp2_safe_receiver = it.
|
|
1763
|
+
var tmp2_safe_receiver = it.pi_1;
|
|
1754
1764
|
var tmp_1;
|
|
1755
1765
|
if (tmp2_safe_receiver == null) {
|
|
1756
1766
|
tmp_1 = null;
|
|
@@ -1760,18 +1770,18 @@
|
|
|
1760
1770
|
// Inline function 'kotlin.contracts.contract' call
|
|
1761
1771
|
var tmp$ret$0;
|
|
1762
1772
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>.<anonymous>' call
|
|
1763
|
-
tmp$ret$0 = ', body: ' + this$0.
|
|
1773
|
+
tmp$ret$0 = ', body: ' + this$0.fi(tmp2_safe_receiver.zh_1);
|
|
1764
1774
|
tmp$ret$1 = tmp$ret$0;
|
|
1765
1775
|
tmp_1 = tmp$ret$1;
|
|
1766
1776
|
}
|
|
1767
1777
|
var tmp3_elvis_lhs = tmp_1;
|
|
1768
1778
|
var tmp_2 = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
|
|
1769
|
-
var tmp_3 = Companion_getInstance_2().
|
|
1770
|
-
var tmp4_safe_receiver = it.
|
|
1771
|
-
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.
|
|
1772
|
-
var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : this$0.
|
|
1779
|
+
var tmp_3 = Companion_getInstance_2().ri(it.oi_1);
|
|
1780
|
+
var tmp4_safe_receiver = it.pi_1;
|
|
1781
|
+
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.zh_1;
|
|
1782
|
+
var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : this$0.fi(tmp5_safe_receiver);
|
|
1773
1783
|
var tmp_4 = tmp6_elvis_lhs == null ? 'Unit' : tmp6_elvis_lhs;
|
|
1774
|
-
var tmp7_safe_receiver = it.
|
|
1784
|
+
var tmp7_safe_receiver = it.pi_1;
|
|
1775
1785
|
var tmp_5;
|
|
1776
1786
|
if (tmp7_safe_receiver == null) {
|
|
1777
1787
|
tmp_5 = null;
|
|
@@ -1781,7 +1791,7 @@
|
|
|
1781
1791
|
// Inline function 'kotlin.contracts.contract' call
|
|
1782
1792
|
var tmp$ret$2;
|
|
1783
1793
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>.<anonymous>' call
|
|
1784
|
-
tmp$ret$2 = 'WirespecShared.Content("' + tmp7_safe_receiver.
|
|
1794
|
+
tmp$ret$2 = 'WirespecShared.Content("' + tmp7_safe_receiver.yh_1 + '", body)';
|
|
1785
1795
|
tmp$ret$3 = tmp$ret$2;
|
|
1786
1796
|
tmp_5 = tmp$ret$3;
|
|
1787
1797
|
}
|
|
@@ -1792,11 +1802,11 @@
|
|
|
1792
1802
|
function KotlinEmitter$emit$lambda_7($this_emit, this$0) {
|
|
1793
1803
|
return function () {
|
|
1794
1804
|
Companion_getInstance_2();
|
|
1795
|
-
var tmp = joinToString($this_emit.
|
|
1805
|
+
var tmp = joinToString($this_emit.mi_1, '\n', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda$lambda_1(this$0, $this_emit));
|
|
1796
1806
|
Companion_getInstance_2();
|
|
1797
1807
|
var tmp$ret$2;
|
|
1798
1808
|
// Inline function 'kotlin.collections.map' call
|
|
1799
|
-
var tmp1_map = $this_emit.
|
|
1809
|
+
var tmp1_map = $this_emit.ni_1;
|
|
1800
1810
|
var tmp$ret$1;
|
|
1801
1811
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1802
1812
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -1805,7 +1815,7 @@
|
|
|
1805
1815
|
var item = tmp0_iterator.e();
|
|
1806
1816
|
var tmp$ret$0;
|
|
1807
1817
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
|
|
1808
|
-
tmp$ret$0 = groupStatus_0(item.
|
|
1818
|
+
tmp$ret$0 = groupStatus_0(item.oi_1);
|
|
1809
1819
|
tmp0_mapTo.a(tmp$ret$0);
|
|
1810
1820
|
}
|
|
1811
1821
|
tmp$ret$1 = tmp0_mapTo;
|
|
@@ -1816,7 +1826,7 @@
|
|
|
1816
1826
|
// Inline function 'kotlin.collections.map' call
|
|
1817
1827
|
var tmp$ret$5;
|
|
1818
1828
|
// Inline function 'kotlin.collections.filter' call
|
|
1819
|
-
var tmp3_filter = $this_emit.
|
|
1829
|
+
var tmp3_filter = $this_emit.ni_1;
|
|
1820
1830
|
var tmp$ret$4;
|
|
1821
1831
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1822
1832
|
var tmp2_filterTo = ArrayList_init_$Create$();
|
|
@@ -1825,7 +1835,7 @@
|
|
|
1825
1835
|
var element = tmp0_iterator_0.e();
|
|
1826
1836
|
var tmp$ret$3;
|
|
1827
1837
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
|
|
1828
|
-
tmp$ret$3 = Companion_getInstance_2().
|
|
1838
|
+
tmp$ret$3 = Companion_getInstance_2().gk(element.oi_1);
|
|
1829
1839
|
if (tmp$ret$3) {
|
|
1830
1840
|
tmp2_filterTo.a(element);
|
|
1831
1841
|
}
|
|
@@ -1841,7 +1851,7 @@
|
|
|
1841
1851
|
var item_0 = tmp0_iterator_1.e();
|
|
1842
1852
|
var tmp$ret$6;
|
|
1843
1853
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
|
|
1844
|
-
tmp$ret$6 = item_0.
|
|
1854
|
+
tmp$ret$6 = item_0.oi_1;
|
|
1845
1855
|
tmp4_mapTo.a(tmp$ret$6);
|
|
1846
1856
|
}
|
|
1847
1857
|
tmp$ret$7 = tmp4_mapTo;
|
|
@@ -1852,7 +1862,7 @@
|
|
|
1852
1862
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
1853
1863
|
var tmp$ret$11;
|
|
1854
1864
|
// Inline function 'kotlin.collections.filter' call
|
|
1855
|
-
var tmp7_filter = $this_emit.
|
|
1865
|
+
var tmp7_filter = $this_emit.ni_1;
|
|
1856
1866
|
var tmp$ret$10;
|
|
1857
1867
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1858
1868
|
var tmp6_filterTo = ArrayList_init_$Create$();
|
|
@@ -1861,7 +1871,7 @@
|
|
|
1861
1871
|
var element_0 = tmp0_iterator_2.e();
|
|
1862
1872
|
var tmp$ret$9;
|
|
1863
1873
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
|
|
1864
|
-
tmp$ret$9 = Companion_getInstance_2().
|
|
1874
|
+
tmp$ret$9 = Companion_getInstance_2().gk(element_0.oi_1);
|
|
1865
1875
|
if (tmp$ret$9) {
|
|
1866
1876
|
tmp6_filterTo.a(element_0);
|
|
1867
1877
|
}
|
|
@@ -1876,8 +1886,8 @@
|
|
|
1876
1886
|
var e = tmp0_iterator_3.e();
|
|
1877
1887
|
var tmp$ret$12;
|
|
1878
1888
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
|
|
1879
|
-
var tmp0_safe_receiver = e.
|
|
1880
|
-
tmp$ret$12 = to(e.
|
|
1889
|
+
var tmp0_safe_receiver = e.pi_1;
|
|
1890
|
+
tmp$ret$12 = to(e.oi_1, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yh_1);
|
|
1881
1891
|
var key = tmp$ret$12;
|
|
1882
1892
|
if (set.a(key)) {
|
|
1883
1893
|
list.a(e);
|
|
@@ -1890,7 +1900,7 @@
|
|
|
1890
1900
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
1891
1901
|
var tmp$ret$16;
|
|
1892
1902
|
// Inline function 'kotlin.collections.filter' call
|
|
1893
|
-
var tmp10_filter = $this_emit.
|
|
1903
|
+
var tmp10_filter = $this_emit.ni_1;
|
|
1894
1904
|
var tmp$ret$15;
|
|
1895
1905
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1896
1906
|
var tmp9_filterTo = ArrayList_init_$Create$();
|
|
@@ -1899,7 +1909,7 @@
|
|
|
1899
1909
|
var element_1 = tmp0_iterator_4.e();
|
|
1900
1910
|
var tmp$ret$14;
|
|
1901
1911
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
|
|
1902
|
-
tmp$ret$14 = !Companion_getInstance_2().
|
|
1912
|
+
tmp$ret$14 = !Companion_getInstance_2().gk(element_1.oi_1);
|
|
1903
1913
|
if (tmp$ret$14) {
|
|
1904
1914
|
tmp9_filterTo.a(element_1);
|
|
1905
1915
|
}
|
|
@@ -1914,8 +1924,8 @@
|
|
|
1914
1924
|
var e_0 = tmp0_iterator_5.e();
|
|
1915
1925
|
var tmp$ret$17;
|
|
1916
1926
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
|
|
1917
|
-
var tmp0_safe_receiver_0 = e_0.
|
|
1918
|
-
tmp$ret$17 = to(e_0.
|
|
1927
|
+
var tmp0_safe_receiver_0 = e_0.pi_1;
|
|
1928
|
+
tmp$ret$17 = to(e_0.oi_1, tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.yh_1);
|
|
1919
1929
|
var key_0 = tmp$ret$17;
|
|
1920
1930
|
if (set_0.a(key_0)) {
|
|
1921
1931
|
list_0.a(e_0);
|
|
@@ -1924,33 +1934,33 @@
|
|
|
1924
1934
|
tmp$ret$18 = list_0;
|
|
1925
1935
|
var tmp_6 = tmp$ret$18;
|
|
1926
1936
|
var tmp_7 = joinToString(tmp_6, '\n', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda$lambda_5(this$0));
|
|
1927
|
-
var tmp_8 = Companion_getInstance_2().
|
|
1937
|
+
var tmp_8 = Companion_getInstance_2().sj($this_emit.gi_1);
|
|
1928
1938
|
Companion_getInstance_2();
|
|
1929
1939
|
Companion_getInstance_2();
|
|
1930
1940
|
Companion_getInstance_2();
|
|
1931
|
-
var tmp_9 = emitSegment_0($this_emit.
|
|
1941
|
+
var tmp_9 = emitSegment_0($this_emit.ii_1, this$0);
|
|
1932
1942
|
Companion_getInstance_2();
|
|
1933
1943
|
Companion_getInstance_2();
|
|
1934
|
-
var tmp_10 = emitResponseMapper_0($this_emit.
|
|
1944
|
+
var tmp_10 = emitResponseMapper_0($this_emit.ni_1, this$0);
|
|
1935
1945
|
Companion_getInstance_2();
|
|
1936
1946
|
Companion_getInstance_2();
|
|
1937
1947
|
Companion_getInstance_2();
|
|
1938
|
-
return trimMargin('interface ' + $this_emit.
|
|
1948
|
+
return trimMargin('interface ' + $this_emit.gi_1 + ' {\n |' + ' ' + 'sealed interface Request<T>: WirespecShared.Request<T>\n |' + tmp + '\n |' + ' ' + 'sealed interface Response<T>: WirespecShared.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 |' + ' ' + ' ' + '}\n |' + ' ' + '}\n |}\n |');
|
|
1939
1949
|
};
|
|
1940
1950
|
}
|
|
1941
1951
|
function KotlinEmitter$emitRequestSignature$lambda(this$0) {
|
|
1942
1952
|
return function (it) {
|
|
1943
|
-
return this$0.
|
|
1953
|
+
return this$0.zi(it);
|
|
1944
1954
|
};
|
|
1945
1955
|
}
|
|
1946
1956
|
function KotlinEmitter$emitSegment$lambda(it) {
|
|
1947
1957
|
var tmp0_subject = it;
|
|
1948
1958
|
var tmp;
|
|
1949
1959
|
if (tmp0_subject instanceof Param) {
|
|
1950
|
-
tmp = '{' + it.
|
|
1960
|
+
tmp = '{' + it.ui_1.fj_1 + '}';
|
|
1951
1961
|
} else {
|
|
1952
1962
|
if (tmp0_subject instanceof Literal) {
|
|
1953
|
-
tmp = it.
|
|
1963
|
+
tmp = it.tj_1;
|
|
1954
1964
|
} else {
|
|
1955
1965
|
noWhenBranchMatchedException();
|
|
1956
1966
|
}
|
|
@@ -1959,7 +1969,7 @@
|
|
|
1959
1969
|
}
|
|
1960
1970
|
function KotlinEmitter$emitMap$lambda(this$0) {
|
|
1961
1971
|
return function (it) {
|
|
1962
|
-
return '"' + this$0.
|
|
1972
|
+
return '"' + this$0.ej(it.bj_1) + '" to listOf(' + this$0.ej(it.bj_1) + ')';
|
|
1963
1973
|
};
|
|
1964
1974
|
}
|
|
1965
1975
|
function KotlinEmitter$emit$lambda_8($this_emit) {
|
|
@@ -1967,10 +1977,10 @@
|
|
|
1967
1977
|
var tmp0_subject = $this_emit;
|
|
1968
1978
|
var tmp;
|
|
1969
1979
|
if (tmp0_subject instanceof Literal) {
|
|
1970
|
-
tmp = $this_emit.
|
|
1980
|
+
tmp = $this_emit.tj_1;
|
|
1971
1981
|
} else {
|
|
1972
1982
|
if (tmp0_subject instanceof Param) {
|
|
1973
|
-
tmp = '${' + $this_emit.
|
|
1983
|
+
tmp = '${' + $this_emit.ui_1.fj_1 + '}';
|
|
1974
1984
|
} else {
|
|
1975
1985
|
noWhenBranchMatchedException();
|
|
1976
1986
|
}
|
|
@@ -1998,19 +2008,19 @@
|
|
|
1998
2008
|
packageName = packageName === VOID ? get_DEFAULT_PACKAGE_NAME() : packageName;
|
|
1999
2009
|
logger = logger === VOID ? get_noLogger() : logger;
|
|
2000
2010
|
Emitter.call(this, logger);
|
|
2001
|
-
this.
|
|
2011
|
+
this.jk_1 = packageName;
|
|
2002
2012
|
var tmp = this;
|
|
2003
2013
|
Companion_getInstance_2();
|
|
2004
2014
|
Companion_getInstance_2();
|
|
2005
2015
|
Companion_getInstance_2();
|
|
2006
2016
|
Companion_getInstance_2();
|
|
2007
2017
|
Companion_getInstance_2();
|
|
2008
|
-
tmp.
|
|
2018
|
+
tmp.kk_1 = trimMargin('\n |import kotlin.reflect.KType\n |import kotlin.reflect.typeOf\n |object WirespecShared {\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: KType): Content<T> fun <T> write(content: Content<T>): Content<B> }\n |}\n ');
|
|
2009
2019
|
}
|
|
2010
|
-
protoOf(KotlinEmitter).
|
|
2020
|
+
protoOf(KotlinEmitter).th = function (ast) {
|
|
2011
2021
|
var tmp$ret$3;
|
|
2012
2022
|
// Inline function 'kotlin.collections.map' call
|
|
2013
|
-
var tmp1_map = protoOf(Emitter).
|
|
2023
|
+
var tmp1_map = protoOf(Emitter).th.call(this, ast);
|
|
2014
2024
|
var tmp$ret$2;
|
|
2015
2025
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2016
2026
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -2023,7 +2033,7 @@
|
|
|
2023
2033
|
var result = item.j3();
|
|
2024
2034
|
var tmp$ret$0;
|
|
2025
2035
|
// Inline function 'kotlin.text.trimStart' call
|
|
2026
|
-
var tmp0_trimStart = trimMargin('\n |' + (isBlank(this.
|
|
2036
|
+
var tmp0_trimStart = trimMargin('\n |' + (isBlank(this.jk_1) ? '' : 'package ' + this.jk_1) + '\n |' + (Companion_getInstance_2().ok(ast) ? this.kk_1 : '') + '\n |' + result + '\n ');
|
|
2027
2037
|
tmp$ret$0 = toString(trimStart(isCharSequence(tmp0_trimStart) ? tmp0_trimStart : THROW_CCE()));
|
|
2028
2038
|
tmp$ret$1 = to(name, tmp$ret$0);
|
|
2029
2039
|
tmp0_mapTo.a(tmp$ret$1);
|
|
@@ -2032,46 +2042,46 @@
|
|
|
2032
2042
|
tmp$ret$3 = tmp$ret$2;
|
|
2033
2043
|
return tmp$ret$3;
|
|
2034
2044
|
};
|
|
2035
|
-
protoOf(KotlinEmitter).
|
|
2036
|
-
return this.
|
|
2037
|
-
};
|
|
2038
|
-
protoOf(KotlinEmitter).xi = function (_this__u8e3s4) {
|
|
2039
|
-
return this.vj(_this__u8e3s4, this.qh_1, KotlinEmitter$emit$lambda_0(_this__u8e3s4, this));
|
|
2045
|
+
protoOf(KotlinEmitter).uj = function (_this__u8e3s4) {
|
|
2046
|
+
return this.vj(_this__u8e3s4, this.rh_1, KotlinEmitter$emit$lambda(_this__u8e3s4, this));
|
|
2040
2047
|
};
|
|
2041
2048
|
protoOf(KotlinEmitter).yi = function (_this__u8e3s4) {
|
|
2042
|
-
return this.wj(_this__u8e3s4, this.
|
|
2049
|
+
return this.wj(_this__u8e3s4, this.rh_1, KotlinEmitter$emit$lambda_0(_this__u8e3s4, this));
|
|
2050
|
+
};
|
|
2051
|
+
protoOf(KotlinEmitter).zi = function (_this__u8e3s4) {
|
|
2052
|
+
return this.xj(_this__u8e3s4, this.rh_1, KotlinEmitter$emit$lambda_1(this, _this__u8e3s4));
|
|
2043
2053
|
};
|
|
2044
|
-
protoOf(KotlinEmitter).
|
|
2045
|
-
return this.
|
|
2054
|
+
protoOf(KotlinEmitter).ej = function (_this__u8e3s4) {
|
|
2055
|
+
return this.yj(_this__u8e3s4, this.rh_1, KotlinEmitter$emit$lambda_2(this, _this__u8e3s4));
|
|
2046
2056
|
};
|
|
2047
|
-
protoOf(KotlinEmitter).
|
|
2048
|
-
return this.
|
|
2057
|
+
protoOf(KotlinEmitter).fi = function (_this__u8e3s4) {
|
|
2058
|
+
return this.wh(_this__u8e3s4, this.rh_1, KotlinEmitter$emit$lambda_3(_this__u8e3s4));
|
|
2049
2059
|
};
|
|
2050
|
-
protoOf(KotlinEmitter).
|
|
2051
|
-
return this.
|
|
2060
|
+
protoOf(KotlinEmitter).zj = function (_this__u8e3s4) {
|
|
2061
|
+
return this.ak(_this__u8e3s4, this.rh_1, KotlinEmitter$emit$lambda_4(_this__u8e3s4, this));
|
|
2052
2062
|
};
|
|
2053
|
-
protoOf(KotlinEmitter).
|
|
2054
|
-
return this.
|
|
2063
|
+
protoOf(KotlinEmitter).bk = function (_this__u8e3s4) {
|
|
2064
|
+
return this.ck(_this__u8e3s4, this.rh_1, KotlinEmitter$emit$lambda_5(_this__u8e3s4, this));
|
|
2055
2065
|
};
|
|
2056
|
-
protoOf(KotlinEmitter).
|
|
2057
|
-
return this.
|
|
2066
|
+
protoOf(KotlinEmitter).qj = function (_this__u8e3s4) {
|
|
2067
|
+
return this.dk(_this__u8e3s4, this.rh_1, KotlinEmitter$emit$lambda_6(_this__u8e3s4));
|
|
2058
2068
|
};
|
|
2059
|
-
protoOf(KotlinEmitter).
|
|
2060
|
-
return this.
|
|
2069
|
+
protoOf(KotlinEmitter).ek = function (_this__u8e3s4) {
|
|
2070
|
+
return this.fk(_this__u8e3s4, this.rh_1, KotlinEmitter$emit$lambda_7(_this__u8e3s4, this));
|
|
2061
2071
|
};
|
|
2062
|
-
protoOf(KotlinEmitter).
|
|
2063
|
-
return Companion_getInstance_0().
|
|
2072
|
+
protoOf(KotlinEmitter).mk = function (_this__u8e3s4) {
|
|
2073
|
+
return Companion_getInstance_0().lk_1.i1(_this__u8e3s4) ? '`' + _this__u8e3s4 + '`' : _this__u8e3s4;
|
|
2064
2074
|
};
|
|
2065
2075
|
function toField(_this__u8e3s4, identifier, isNullable) {
|
|
2066
2076
|
return new Field(new Identifier(identifier), _this__u8e3s4, isNullable);
|
|
2067
2077
|
}
|
|
2068
2078
|
function emitContentType_0(_this__u8e3s4) {
|
|
2069
|
-
var tmp = split(_this__u8e3s4.
|
|
2079
|
+
var tmp = split(_this__u8e3s4.yh_1, ['/', '-']);
|
|
2070
2080
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, emitContentType$lambda);
|
|
2071
2081
|
}
|
|
2072
2082
|
function groupStatus_0(_this__u8e3s4) {
|
|
2073
2083
|
var tmp;
|
|
2074
|
-
if (Companion_getInstance_2().
|
|
2084
|
+
if (Companion_getInstance_2().gk(_this__u8e3s4)) {
|
|
2075
2085
|
var tmp$ret$1;
|
|
2076
2086
|
// Inline function 'kotlin.text.substring' call
|
|
2077
2087
|
var tmp$ret$0;
|
|
@@ -2080,7 +2090,7 @@
|
|
|
2080
2090
|
tmp$ret$1 = tmp$ret$0.substring(0, 1);
|
|
2081
2091
|
tmp = tmp$ret$1 + 'XX';
|
|
2082
2092
|
} else {
|
|
2083
|
-
tmp = Companion_getInstance_2().
|
|
2093
|
+
tmp = Companion_getInstance_2().ri(_this__u8e3s4);
|
|
2084
2094
|
}
|
|
2085
2095
|
return tmp;
|
|
2086
2096
|
}
|
|
@@ -2089,11 +2099,11 @@
|
|
|
2089
2099
|
return tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
2090
2100
|
}
|
|
2091
2101
|
function emitContentType$lambda(it) {
|
|
2092
|
-
return Companion_getInstance_2().
|
|
2102
|
+
return Companion_getInstance_2().ri(it);
|
|
2093
2103
|
}
|
|
2094
2104
|
function Companion_0() {
|
|
2095
2105
|
Companion_instance_0 = this;
|
|
2096
|
-
this.
|
|
2106
|
+
this.pk_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']);
|
|
2097
2107
|
}
|
|
2098
2108
|
var Companion_instance_0;
|
|
2099
2109
|
function Companion_getInstance_1() {
|
|
@@ -2103,28 +2113,28 @@
|
|
|
2103
2113
|
}
|
|
2104
2114
|
function ScalaEmitter$emit$lambda($this_emit, this$0) {
|
|
2105
2115
|
return function () {
|
|
2106
|
-
return trimMargin('case class ' + $this_emit.
|
|
2116
|
+
return trimMargin('case class ' + $this_emit.wi_1 + '(\n |' + this$0.yi($this_emit.xi_1) + '\n |)\n |\n |');
|
|
2107
2117
|
};
|
|
2108
2118
|
}
|
|
2109
2119
|
function ScalaEmitter$emit$lambda$lambda(this$0) {
|
|
2110
2120
|
return function (it) {
|
|
2111
|
-
return this$0.
|
|
2121
|
+
return this$0.zi(it);
|
|
2112
2122
|
};
|
|
2113
2123
|
}
|
|
2114
2124
|
function ScalaEmitter$emit$lambda_0($this_emit, this$0) {
|
|
2115
2125
|
return function () {
|
|
2116
|
-
return dropLast(joinToString($this_emit.
|
|
2126
|
+
return dropLast(joinToString($this_emit.aj_1, '\n', VOID, VOID, VOID, VOID, ScalaEmitter$emit$lambda$lambda(this$0)), 1);
|
|
2117
2127
|
};
|
|
2118
2128
|
}
|
|
2119
2129
|
function ScalaEmitter$emit$lambda_1(this$0, $this_emit) {
|
|
2120
2130
|
return function () {
|
|
2121
2131
|
Companion_getInstance_2();
|
|
2122
|
-
return ' ' + 'val ' + this$0.
|
|
2132
|
+
return ' ' + 'val ' + this$0.ej($this_emit.bj_1) + ': ' + ($this_emit.dj_1 ? 'Option[' + this$0.fi($this_emit.cj_1) + ']' : this$0.fi($this_emit.cj_1)) + ',';
|
|
2123
2133
|
};
|
|
2124
2134
|
}
|
|
2125
2135
|
function ScalaEmitter$emit$lambda_2($this_emit) {
|
|
2126
2136
|
return function () {
|
|
2127
|
-
return Companion_getInstance_1().
|
|
2137
|
+
return Companion_getInstance_1().pk_1.i1($this_emit.fj_1) ? '`' + $this_emit.fj_1 + '`' : $this_emit.fj_1;
|
|
2128
2138
|
};
|
|
2129
2139
|
}
|
|
2130
2140
|
function ScalaEmitter$emit$lambda_3($this_emit) {
|
|
@@ -2137,10 +2147,10 @@
|
|
|
2137
2147
|
tmp = 'Any';
|
|
2138
2148
|
} else {
|
|
2139
2149
|
if (tmp0_subject instanceof Custom) {
|
|
2140
|
-
tmp = $this_emit.
|
|
2150
|
+
tmp = $this_emit.jj_1;
|
|
2141
2151
|
} else {
|
|
2142
2152
|
if (tmp0_subject instanceof Primitive) {
|
|
2143
|
-
var tmp1_subject = $this_emit.
|
|
2153
|
+
var tmp1_subject = $this_emit.gj_1;
|
|
2144
2154
|
var tmp0 = tmp1_subject.q4_1;
|
|
2145
2155
|
var tmp_0;
|
|
2146
2156
|
switch (tmp0) {
|
|
@@ -2167,7 +2177,7 @@
|
|
|
2167
2177
|
// Inline function 'kotlin.contracts.contract' call
|
|
2168
2178
|
var tmp$ret$0;
|
|
2169
2179
|
// Inline function 'community.flock.wirespec.compiler.core.emit.ScalaEmitter.emit.<anonymous>.<anonymous>' call
|
|
2170
|
-
tmp$ret$0 = $this_emit.
|
|
2180
|
+
tmp$ret$0 = $this_emit.si() ? 'List[' + tmp0_let + ']' : tmp0_let;
|
|
2171
2181
|
tmp$ret$1 = tmp$ret$0;
|
|
2172
2182
|
return tmp$ret$1;
|
|
2173
2183
|
};
|
|
@@ -2193,20 +2203,20 @@
|
|
|
2193
2203
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2194
2204
|
tmp$ret$0 = tmp0_uppercase;
|
|
2195
2205
|
tmp$ret$1 = tmp$ret$0.toUpperCase();
|
|
2196
|
-
return ' ' + 'final case object ' + tmp$ret$1 + ' extends ' + $this_emit.
|
|
2206
|
+
return ' ' + 'final case object ' + tmp$ret$1 + ' extends ' + $this_emit.mj_1 + '(label = "' + it + '")';
|
|
2197
2207
|
};
|
|
2198
2208
|
}
|
|
2199
2209
|
function ScalaEmitter$emit$lambda_4($this_emit) {
|
|
2200
2210
|
return function () {
|
|
2201
|
-
return trimMargin('\n |sealed abstract class ' + $this_emit.
|
|
2211
|
+
return trimMargin('\n |sealed abstract class ' + $this_emit.mj_1 + '(val label: String)\n |object ' + $this_emit.mj_1 + ' {\n |' + joinToString($this_emit.nj_1, '\n', VOID, VOID, VOID, VOID, ScalaEmitter$emit$lambda$lambda_0($this_emit)) + '\n |}\n |');
|
|
2202
2212
|
};
|
|
2203
2213
|
}
|
|
2204
2214
|
function ScalaEmitter$emit$lambda_5($this_emit, this$0) {
|
|
2205
2215
|
return function () {
|
|
2206
2216
|
Companion_getInstance_2();
|
|
2207
|
-
var tmp = this$0.
|
|
2217
|
+
var tmp = this$0.qj($this_emit.pj_1);
|
|
2208
2218
|
Companion_getInstance_2();
|
|
2209
|
-
return trimMargin('case class ' + $this_emit.
|
|
2219
|
+
return trimMargin('case class ' + $this_emit.oj_1 + '(val value: String) {\n |' + ' ' + 'implicit class ' + $this_emit.oj_1 + 'Ops(val that: ' + $this_emit.oj_1 + ') {\n |' + tmp + '\n |' + ' ' + '}\n |}\n |\n |');
|
|
2210
2220
|
};
|
|
2211
2221
|
}
|
|
2212
2222
|
function ScalaEmitter$emit$lambda_6($this_emit) {
|
|
@@ -2215,7 +2225,7 @@
|
|
|
2215
2225
|
Companion_getInstance_2();
|
|
2216
2226
|
Companion_getInstance_2();
|
|
2217
2227
|
Companion_getInstance_2();
|
|
2218
|
-
return trimMargin(' ' + ' ' + 'val regex = new scala.util.matching.Regex(' + $this_emit.
|
|
2228
|
+
return trimMargin(' ' + ' ' + 'val regex = new scala.util.matching.Regex(' + $this_emit.rj_1 + ')\n |' + ' ' + ' ' + 'regex.findFirstIn(that.value)');
|
|
2219
2229
|
};
|
|
2220
2230
|
}
|
|
2221
2231
|
function ScalaEmitter$emit$lambda_7() {
|
|
@@ -2226,12 +2236,12 @@
|
|
|
2226
2236
|
packageName = packageName === VOID ? get_DEFAULT_PACKAGE_NAME() : packageName;
|
|
2227
2237
|
logger = logger === VOID ? get_noLogger() : logger;
|
|
2228
2238
|
Emitter.call(this, logger);
|
|
2229
|
-
this.
|
|
2239
|
+
this.sk_1 = packageName;
|
|
2230
2240
|
}
|
|
2231
|
-
protoOf(ScalaEmitter).
|
|
2241
|
+
protoOf(ScalaEmitter).th = function (ast) {
|
|
2232
2242
|
var tmp$ret$2;
|
|
2233
2243
|
// Inline function 'kotlin.collections.map' call
|
|
2234
|
-
var tmp1_map = protoOf(Emitter).
|
|
2244
|
+
var tmp1_map = protoOf(Emitter).th.call(this, ast);
|
|
2235
2245
|
var tmp$ret$1;
|
|
2236
2246
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2237
2247
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -2242,54 +2252,54 @@
|
|
|
2242
2252
|
// Inline function 'community.flock.wirespec.compiler.core.emit.ScalaEmitter.emit.<anonymous>' call
|
|
2243
2253
|
var name = item.i3();
|
|
2244
2254
|
var result = item.j3();
|
|
2245
|
-
tmp$ret$0 = to(name, isBlank(this.
|
|
2255
|
+
tmp$ret$0 = to(name, isBlank(this.sk_1) ? '' : 'package ' + this.sk_1 + '\n\n' + result);
|
|
2246
2256
|
tmp0_mapTo.a(tmp$ret$0);
|
|
2247
2257
|
}
|
|
2248
2258
|
tmp$ret$1 = tmp0_mapTo;
|
|
2249
2259
|
tmp$ret$2 = tmp$ret$1;
|
|
2250
2260
|
return tmp$ret$2;
|
|
2251
2261
|
};
|
|
2252
|
-
protoOf(ScalaEmitter).
|
|
2253
|
-
return this.
|
|
2254
|
-
};
|
|
2255
|
-
protoOf(ScalaEmitter).xi = function (_this__u8e3s4) {
|
|
2256
|
-
return this.vj(_this__u8e3s4, this.qh_1, ScalaEmitter$emit$lambda_0(_this__u8e3s4, this));
|
|
2262
|
+
protoOf(ScalaEmitter).uj = function (_this__u8e3s4) {
|
|
2263
|
+
return this.vj(_this__u8e3s4, this.rh_1, ScalaEmitter$emit$lambda(_this__u8e3s4, this));
|
|
2257
2264
|
};
|
|
2258
2265
|
protoOf(ScalaEmitter).yi = function (_this__u8e3s4) {
|
|
2259
|
-
return this.wj(_this__u8e3s4, this.
|
|
2266
|
+
return this.wj(_this__u8e3s4, this.rh_1, ScalaEmitter$emit$lambda_0(_this__u8e3s4, this));
|
|
2267
|
+
};
|
|
2268
|
+
protoOf(ScalaEmitter).zi = function (_this__u8e3s4) {
|
|
2269
|
+
return this.xj(_this__u8e3s4, this.rh_1, ScalaEmitter$emit$lambda_1(this, _this__u8e3s4));
|
|
2260
2270
|
};
|
|
2261
|
-
protoOf(ScalaEmitter).
|
|
2262
|
-
return this.
|
|
2271
|
+
protoOf(ScalaEmitter).ej = function (_this__u8e3s4) {
|
|
2272
|
+
return this.yj(_this__u8e3s4, this.rh_1, ScalaEmitter$emit$lambda_2(_this__u8e3s4));
|
|
2263
2273
|
};
|
|
2264
|
-
protoOf(ScalaEmitter).
|
|
2265
|
-
return this.
|
|
2274
|
+
protoOf(ScalaEmitter).fi = function (_this__u8e3s4) {
|
|
2275
|
+
return this.wh(_this__u8e3s4, this.rh_1, ScalaEmitter$emit$lambda_3(_this__u8e3s4));
|
|
2266
2276
|
};
|
|
2267
|
-
protoOf(ScalaEmitter).
|
|
2268
|
-
return this.
|
|
2277
|
+
protoOf(ScalaEmitter).zj = function (_this__u8e3s4) {
|
|
2278
|
+
return this.ak(_this__u8e3s4, this.rh_1, ScalaEmitter$emit$lambda_4(_this__u8e3s4));
|
|
2269
2279
|
};
|
|
2270
|
-
protoOf(ScalaEmitter).
|
|
2271
|
-
return this.
|
|
2280
|
+
protoOf(ScalaEmitter).bk = function (_this__u8e3s4) {
|
|
2281
|
+
return this.ck(_this__u8e3s4, this.rh_1, ScalaEmitter$emit$lambda_5(_this__u8e3s4, this));
|
|
2272
2282
|
};
|
|
2273
|
-
protoOf(ScalaEmitter).
|
|
2274
|
-
return this.
|
|
2283
|
+
protoOf(ScalaEmitter).qj = function (_this__u8e3s4) {
|
|
2284
|
+
return this.dk(_this__u8e3s4, this.rh_1, ScalaEmitter$emit$lambda_6(_this__u8e3s4));
|
|
2275
2285
|
};
|
|
2276
|
-
protoOf(ScalaEmitter).
|
|
2277
|
-
return this.
|
|
2286
|
+
protoOf(ScalaEmitter).ek = function (_this__u8e3s4) {
|
|
2287
|
+
return this.fk(_this__u8e3s4, this.rh_1, ScalaEmitter$emit$lambda_7);
|
|
2278
2288
|
};
|
|
2279
2289
|
function emitType(_this__u8e3s4, $this) {
|
|
2280
2290
|
return '`' + joinToString(_this__u8e3s4, '', VOID, VOID, VOID, VOID, TypeScriptEmitter$emitType$lambda($this)) + '`';
|
|
2281
2291
|
}
|
|
2282
2292
|
function emitType_0(_this__u8e3s4, $this) {
|
|
2283
|
-
return $this.
|
|
2293
|
+
return $this.ti(_this__u8e3s4, $this.rh_1, TypeScriptEmitter$emitType$lambda_0(_this__u8e3s4, $this));
|
|
2284
2294
|
}
|
|
2285
2295
|
function emitName(_this__u8e3s4, $this) {
|
|
2286
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2296
|
+
var tmp0_safe_receiver = _this__u8e3s4.xh_1;
|
|
2287
2297
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : emitContentType_0(tmp0_safe_receiver);
|
|
2288
2298
|
return 'Request' + (tmp1_elvis_lhs == null ? 'Undefined' : tmp1_elvis_lhs);
|
|
2289
2299
|
}
|
|
2290
2300
|
function emitName_0(_this__u8e3s4, $this) {
|
|
2291
|
-
var tmp = 'Response' + Companion_getInstance_2().
|
|
2292
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2301
|
+
var tmp = 'Response' + Companion_getInstance_2().ri(_this__u8e3s4.oi_1);
|
|
2302
|
+
var tmp0_safe_receiver = _this__u8e3s4.pi_1;
|
|
2293
2303
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : emitContentType_0(tmp0_safe_receiver);
|
|
2294
2304
|
return tmp + (tmp1_elvis_lhs == null ? 'Undefined' : tmp1_elvis_lhs);
|
|
2295
2305
|
}
|
|
@@ -2300,32 +2310,32 @@
|
|
|
2300
2310
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, TypeScriptEmitter$emitPath$lambda($this));
|
|
2301
2311
|
}
|
|
2302
2312
|
function emit_3(_this__u8e3s4, $this) {
|
|
2303
|
-
return $this.
|
|
2313
|
+
return $this.ti(_this__u8e3s4, $this.rh_1, TypeScriptEmitter$emit$lambda_8(_this__u8e3s4));
|
|
2304
2314
|
}
|
|
2305
2315
|
function TypeScriptEmitter$emit$lambda($this_emit, this$0) {
|
|
2306
2316
|
return function () {
|
|
2307
|
-
return trimMargin('export type ' + $this_emit.
|
|
2317
|
+
return trimMargin('export type ' + $this_emit.wi_1 + ' = {\n |' + this$0.yi($this_emit.xi_1) + '\n |}\n |\n |');
|
|
2308
2318
|
};
|
|
2309
2319
|
}
|
|
2310
2320
|
function TypeScriptEmitter$emit$lambda$lambda(this$0) {
|
|
2311
2321
|
return function (it) {
|
|
2312
|
-
return this$0.
|
|
2322
|
+
return this$0.zi(it);
|
|
2313
2323
|
};
|
|
2314
2324
|
}
|
|
2315
2325
|
function TypeScriptEmitter$emit$lambda_0($this_emit, this$0) {
|
|
2316
2326
|
return function () {
|
|
2317
|
-
return joinToString($this_emit.
|
|
2327
|
+
return joinToString($this_emit.aj_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda(this$0));
|
|
2318
2328
|
};
|
|
2319
2329
|
}
|
|
2320
2330
|
function TypeScriptEmitter$emit$lambda_1(this$0, $this_emit) {
|
|
2321
2331
|
return function () {
|
|
2322
2332
|
Companion_getInstance_2();
|
|
2323
|
-
return ' ' + this$0.
|
|
2333
|
+
return ' ' + this$0.ej($this_emit.bj_1) + ($this_emit.dj_1 ? '?' : '') + ': ' + this$0.fi($this_emit.cj_1);
|
|
2324
2334
|
};
|
|
2325
2335
|
}
|
|
2326
2336
|
function TypeScriptEmitter$emit$lambda_2($this_emit) {
|
|
2327
2337
|
return function () {
|
|
2328
|
-
return $this_emit.
|
|
2338
|
+
return $this_emit.fj_1;
|
|
2329
2339
|
};
|
|
2330
2340
|
}
|
|
2331
2341
|
function TypeScriptEmitter$emit$lambda_3($this_emit) {
|
|
@@ -2340,10 +2350,10 @@
|
|
|
2340
2350
|
tmp = 'any';
|
|
2341
2351
|
} else {
|
|
2342
2352
|
if (tmp0_subject instanceof Custom) {
|
|
2343
|
-
tmp = $this_emit.
|
|
2353
|
+
tmp = $this_emit.jj_1;
|
|
2344
2354
|
} else {
|
|
2345
2355
|
if (tmp0_subject instanceof Primitive) {
|
|
2346
|
-
var tmp1_subject = $this_emit.
|
|
2356
|
+
var tmp1_subject = $this_emit.gj_1;
|
|
2347
2357
|
var tmp0 = tmp1_subject.q4_1;
|
|
2348
2358
|
var tmp_0;
|
|
2349
2359
|
switch (tmp0) {
|
|
@@ -2370,13 +2380,13 @@
|
|
|
2370
2380
|
// Inline function 'kotlin.contracts.contract' call
|
|
2371
2381
|
var tmp$ret$0;
|
|
2372
2382
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>' call
|
|
2373
|
-
tmp$ret$0 = $this_emit.
|
|
2383
|
+
tmp$ret$0 = $this_emit.si() ? tmp0_let + '[]' : tmp0_let;
|
|
2374
2384
|
tmp$ret$1 = tmp$ret$0;
|
|
2375
2385
|
var tmp1_let = tmp$ret$1;
|
|
2376
2386
|
// Inline function 'kotlin.contracts.contract' call
|
|
2377
2387
|
var tmp$ret$2;
|
|
2378
2388
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>' call
|
|
2379
|
-
tmp$ret$2 = $this_emit.
|
|
2389
|
+
tmp$ret$2 = $this_emit.nk() ? 'Record<string, ' + tmp1_let + '>' : tmp1_let;
|
|
2380
2390
|
tmp$ret$3 = tmp$ret$2;
|
|
2381
2391
|
return tmp$ret$3;
|
|
2382
2392
|
};
|
|
@@ -2386,28 +2396,28 @@
|
|
|
2386
2396
|
}
|
|
2387
2397
|
function TypeScriptEmitter$emit$lambda_4($this_emit) {
|
|
2388
2398
|
return function () {
|
|
2389
|
-
return 'type ' + $this_emit.
|
|
2399
|
+
return 'type ' + $this_emit.mj_1 + ' = ' + joinToString($this_emit.nj_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda_0) + '\n';
|
|
2390
2400
|
};
|
|
2391
2401
|
}
|
|
2392
2402
|
function TypeScriptEmitter$emit$lambda_5($this_emit, this$0) {
|
|
2393
2403
|
return function () {
|
|
2394
2404
|
Companion_getInstance_2();
|
|
2395
|
-
return trimMargin('type ' + $this_emit.
|
|
2405
|
+
return trimMargin('type ' + $this_emit.oj_1 + ' = {\n |' + ' ' + 'value: string\n |}\n |const validate' + $this_emit.oj_1 + ' = (type: ' + $this_emit.oj_1 + ') => (' + this$0.qj($this_emit.pj_1) + ').test(type.value);\n |\n |');
|
|
2396
2406
|
};
|
|
2397
2407
|
}
|
|
2398
2408
|
function TypeScriptEmitter$emit$lambda_6($this_emit) {
|
|
2399
2409
|
return function () {
|
|
2400
|
-
return "new RegExp('" + dropLast(drop($this_emit.
|
|
2410
|
+
return "new RegExp('" + dropLast(drop($this_emit.rj_1, 1), 1) + "')";
|
|
2401
2411
|
};
|
|
2402
2412
|
}
|
|
2403
2413
|
function TypeScriptEmitter$emit$lambda$lambda_1(this$0, $this_emit) {
|
|
2404
2414
|
return function (it) {
|
|
2405
2415
|
Companion_getInstance_2();
|
|
2406
2416
|
var tmp = emitName(it, this$0);
|
|
2407
|
-
var tmp_0 = emitType($this_emit.
|
|
2417
|
+
var tmp_0 = emitType($this_emit.ii_1, this$0);
|
|
2408
2418
|
var tmp$ret$2;
|
|
2409
2419
|
// Inline function 'kotlin.collections.map' call
|
|
2410
|
-
var tmp1_map = $this_emit.
|
|
2420
|
+
var tmp1_map = $this_emit.ki_1;
|
|
2411
2421
|
var tmp$ret$1;
|
|
2412
2422
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2413
2423
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -2416,7 +2426,7 @@
|
|
|
2416
2426
|
var item = tmp0_iterator.e();
|
|
2417
2427
|
var tmp$ret$0;
|
|
2418
2428
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>.<anonymous>' call
|
|
2419
|
-
tmp$ret$0 = this$0.
|
|
2429
|
+
tmp$ret$0 = this$0.zi(item);
|
|
2420
2430
|
tmp0_mapTo.a(tmp$ret$0);
|
|
2421
2431
|
}
|
|
2422
2432
|
tmp$ret$1 = tmp0_mapTo;
|
|
@@ -2424,7 +2434,7 @@
|
|
|
2424
2434
|
var tmp_1 = joinToString(tmp$ret$2, ',');
|
|
2425
2435
|
var tmp$ret$5;
|
|
2426
2436
|
// Inline function 'kotlin.collections.map' call
|
|
2427
|
-
var tmp3_map = $this_emit.
|
|
2437
|
+
var tmp3_map = $this_emit.ji_1;
|
|
2428
2438
|
var tmp$ret$4;
|
|
2429
2439
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2430
2440
|
var tmp2_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp3_map, 10));
|
|
@@ -2433,13 +2443,13 @@
|
|
|
2433
2443
|
var item_0 = tmp0_iterator_0.e();
|
|
2434
2444
|
var tmp$ret$3;
|
|
2435
2445
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>.<anonymous>' call
|
|
2436
|
-
tmp$ret$3 = this$0.
|
|
2446
|
+
tmp$ret$3 = this$0.zi(item_0);
|
|
2437
2447
|
tmp2_mapTo.a(tmp$ret$3);
|
|
2438
2448
|
}
|
|
2439
2449
|
tmp$ret$4 = tmp2_mapTo;
|
|
2440
2450
|
tmp$ret$5 = tmp$ret$4;
|
|
2441
2451
|
var tmp_2 = joinToString(tmp$ret$5, ',');
|
|
2442
|
-
var tmp0_safe_receiver = it.
|
|
2452
|
+
var tmp0_safe_receiver = it.xh_1;
|
|
2443
2453
|
var tmp_3;
|
|
2444
2454
|
if (tmp0_safe_receiver == null) {
|
|
2445
2455
|
tmp_3 = null;
|
|
@@ -2449,12 +2459,12 @@
|
|
|
2449
2459
|
// Inline function 'kotlin.contracts.contract' call
|
|
2450
2460
|
var tmp$ret$6;
|
|
2451
2461
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>.<anonymous>' call
|
|
2452
|
-
tmp$ret$6 = ', content: { type: "' + tmp0_safe_receiver.
|
|
2462
|
+
tmp$ret$6 = ', content: { type: "' + tmp0_safe_receiver.yh_1 + '", body: ' + this$0.fi(tmp0_safe_receiver.zh_1) + ' }';
|
|
2453
2463
|
tmp$ret$7 = tmp$ret$6;
|
|
2454
2464
|
tmp_3 = tmp$ret$7;
|
|
2455
2465
|
}
|
|
2456
2466
|
var tmp1_elvis_lhs = tmp_3;
|
|
2457
|
-
return ' ' + 'type ' + tmp + ' = { path: ' + tmp_0 + ', method: "' + $this_emit.
|
|
2467
|
+
return ' ' + 'type ' + tmp + ' = { path: ' + tmp_0 + ', method: "' + $this_emit.hi_1 + '", headers: {' + tmp_1 + '}, query: {' + tmp_2 + '}' + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs) + ' } ';
|
|
2458
2468
|
};
|
|
2459
2469
|
}
|
|
2460
2470
|
function TypeScriptEmitter$emit$lambda$lambda_2(this$0) {
|
|
@@ -2466,8 +2476,8 @@
|
|
|
2466
2476
|
return function (it) {
|
|
2467
2477
|
Companion_getInstance_2();
|
|
2468
2478
|
var tmp = emitName_0(it, this$0);
|
|
2469
|
-
var tmp_0 = Companion_getInstance_2().
|
|
2470
|
-
var tmp0_safe_receiver = it.
|
|
2479
|
+
var tmp_0 = Companion_getInstance_2().gk(it.oi_1) ? it.oi_1 : 'number';
|
|
2480
|
+
var tmp0_safe_receiver = it.pi_1;
|
|
2471
2481
|
var tmp_1;
|
|
2472
2482
|
if (tmp0_safe_receiver == null) {
|
|
2473
2483
|
tmp_1 = null;
|
|
@@ -2477,7 +2487,7 @@
|
|
|
2477
2487
|
// Inline function 'kotlin.contracts.contract' call
|
|
2478
2488
|
var tmp$ret$0;
|
|
2479
2489
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>.<anonymous>' call
|
|
2480
|
-
tmp$ret$0 = ', content: { type: "' + tmp0_safe_receiver.
|
|
2490
|
+
tmp$ret$0 = ', content: { type: "' + tmp0_safe_receiver.yh_1 + '", body: ' + this$0.fi(tmp0_safe_receiver.zh_1) + ' }';
|
|
2481
2491
|
tmp$ret$1 = tmp$ret$0;
|
|
2482
2492
|
tmp_1 = tmp$ret$1;
|
|
2483
2493
|
}
|
|
@@ -2492,18 +2502,18 @@
|
|
|
2492
2502
|
}
|
|
2493
2503
|
function TypeScriptEmitter$emit$lambda$lambda$lambda(this$0) {
|
|
2494
2504
|
return function (it) {
|
|
2495
|
-
return this$0.
|
|
2505
|
+
return this$0.zi(it);
|
|
2496
2506
|
};
|
|
2497
2507
|
}
|
|
2498
2508
|
function TypeScriptEmitter$emit$lambda$lambda_5(this$0, $this_emit) {
|
|
2499
2509
|
return function (it) {
|
|
2500
|
-
var tmp = Companion_getInstance_2().
|
|
2501
|
-
var tmp_0 = Companion_getInstance_2().
|
|
2510
|
+
var tmp = Companion_getInstance_2().sj(emitName(it, this$0));
|
|
2511
|
+
var tmp_0 = Companion_getInstance_2().wk($this_emit, it.xh_1);
|
|
2502
2512
|
var tmp_1 = joinToString(tmp_0, ',', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda$lambda(this$0));
|
|
2503
|
-
var tmp_2 = emitPath_1($this_emit.
|
|
2504
|
-
var tmp_3 = emitMap_1($this_emit.
|
|
2505
|
-
var tmp_4 = emitMap_1($this_emit.
|
|
2506
|
-
var tmp0_safe_receiver = it.
|
|
2513
|
+
var tmp_2 = emitPath_1($this_emit.ii_1, this$0);
|
|
2514
|
+
var tmp_3 = emitMap_1($this_emit.ji_1, this$0);
|
|
2515
|
+
var tmp_4 = emitMap_1($this_emit.ki_1, this$0);
|
|
2516
|
+
var tmp0_safe_receiver = it.xh_1;
|
|
2507
2517
|
var tmp_5;
|
|
2508
2518
|
if (tmp0_safe_receiver == null) {
|
|
2509
2519
|
tmp_5 = null;
|
|
@@ -2513,33 +2523,33 @@
|
|
|
2513
2523
|
// Inline function 'kotlin.contracts.contract' call
|
|
2514
2524
|
var tmp$ret$0;
|
|
2515
2525
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>.<anonymous>' call
|
|
2516
|
-
tmp$ret$0 = ', content: {type: "' + tmp0_safe_receiver.
|
|
2526
|
+
tmp$ret$0 = ', content: {type: "' + tmp0_safe_receiver.yh_1 + '", body}';
|
|
2517
2527
|
tmp$ret$1 = tmp$ret$0;
|
|
2518
2528
|
tmp_5 = tmp$ret$1;
|
|
2519
2529
|
}
|
|
2520
2530
|
var tmp1_elvis_lhs = tmp_5;
|
|
2521
|
-
return 'export const ' + tmp + ' = (' + tmp_1 + ') => ({path: `' + tmp_2 + '`, method: "' + $this_emit.
|
|
2531
|
+
return 'export const ' + tmp + ' = (' + tmp_1 + ') => ({path: `' + tmp_2 + '`, method: "' + $this_emit.hi_1.p4_1 + '", query: {' + tmp_3 + '}, headers: {' + tmp_4 + '}' + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs) + '} as const)';
|
|
2522
2532
|
};
|
|
2523
2533
|
}
|
|
2524
2534
|
function TypeScriptEmitter$emit$lambda_7($this_emit, this$0) {
|
|
2525
2535
|
return function () {
|
|
2526
|
-
var tmp = toSet($this_emit.
|
|
2536
|
+
var tmp = toSet($this_emit.mi_1);
|
|
2527
2537
|
var tmp_0 = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda_1(this$0, $this_emit));
|
|
2528
2538
|
Companion_getInstance_2();
|
|
2529
|
-
var tmp_1 = toSet($this_emit.
|
|
2539
|
+
var tmp_1 = toSet($this_emit.mi_1);
|
|
2530
2540
|
var tmp_2 = joinToString(tmp_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda_2(this$0));
|
|
2531
|
-
var tmp_3 = toSet($this_emit.
|
|
2541
|
+
var tmp_3 = toSet($this_emit.ni_1);
|
|
2532
2542
|
var tmp_4 = joinToString(tmp_3, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda_3(this$0));
|
|
2533
2543
|
Companion_getInstance_2();
|
|
2534
|
-
var tmp_5 = toSet($this_emit.
|
|
2544
|
+
var tmp_5 = toSet($this_emit.ni_1);
|
|
2535
2545
|
var tmp_6 = joinToString(tmp_5, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda_4(this$0));
|
|
2536
2546
|
Companion_getInstance_2();
|
|
2537
2547
|
Companion_getInstance_2();
|
|
2538
2548
|
Companion_getInstance_2();
|
|
2539
|
-
var tmp_7 = Companion_getInstance_2().
|
|
2549
|
+
var tmp_7 = Companion_getInstance_2().sj($this_emit.gi_1);
|
|
2540
2550
|
Companion_getInstance_2();
|
|
2541
2551
|
Companion_getInstance_2();
|
|
2542
|
-
return trimMargin('\n |export namespace ' + $this_emit.
|
|
2552
|
+
return trimMargin('\n |export namespace ' + $this_emit.gi_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.mi_1, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda_5(this$0, $this_emit)) + '\n |}\n |\n ');
|
|
2543
2553
|
};
|
|
2544
2554
|
}
|
|
2545
2555
|
function TypeScriptEmitter$emitType$lambda(this$0) {
|
|
@@ -2552,10 +2562,10 @@
|
|
|
2552
2562
|
var tmp0_subject = $this_emitType;
|
|
2553
2563
|
var tmp;
|
|
2554
2564
|
if (tmp0_subject instanceof Literal) {
|
|
2555
|
-
tmp = $this_emitType.
|
|
2565
|
+
tmp = $this_emitType.tj_1;
|
|
2556
2566
|
} else {
|
|
2557
2567
|
if (tmp0_subject instanceof Param) {
|
|
2558
|
-
tmp = '${' + this$0.
|
|
2568
|
+
tmp = '${' + this$0.fi($this_emitType.vi_1) + '}';
|
|
2559
2569
|
} else {
|
|
2560
2570
|
noWhenBranchMatchedException();
|
|
2561
2571
|
}
|
|
@@ -2565,7 +2575,7 @@
|
|
|
2565
2575
|
}
|
|
2566
2576
|
function TypeScriptEmitter$emitMap$lambda(this$0) {
|
|
2567
2577
|
return function (it) {
|
|
2568
|
-
return '"' + this$0.
|
|
2578
|
+
return '"' + this$0.ej(it.bj_1) + '": ' + this$0.ej(it.bj_1);
|
|
2569
2579
|
};
|
|
2570
2580
|
}
|
|
2571
2581
|
function TypeScriptEmitter$emitPath$lambda(this$0) {
|
|
@@ -2578,10 +2588,10 @@
|
|
|
2578
2588
|
var tmp0_subject = $this_emit;
|
|
2579
2589
|
var tmp;
|
|
2580
2590
|
if (tmp0_subject instanceof Literal) {
|
|
2581
|
-
tmp = $this_emit.
|
|
2591
|
+
tmp = $this_emit.tj_1;
|
|
2582
2592
|
} else {
|
|
2583
2593
|
if (tmp0_subject instanceof Param) {
|
|
2584
|
-
tmp = '${' + $this_emit.
|
|
2594
|
+
tmp = '${' + $this_emit.ui_1.fj_1 + '}';
|
|
2585
2595
|
} else {
|
|
2586
2596
|
noWhenBranchMatchedException();
|
|
2587
2597
|
}
|
|
@@ -2597,12 +2607,12 @@
|
|
|
2597
2607
|
Companion_getInstance_2();
|
|
2598
2608
|
Companion_getInstance_2();
|
|
2599
2609
|
Companion_getInstance_2();
|
|
2600
|
-
tmp.
|
|
2610
|
+
tmp.vk_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 ');
|
|
2601
2611
|
}
|
|
2602
|
-
protoOf(TypeScriptEmitter).
|
|
2612
|
+
protoOf(TypeScriptEmitter).th = function (ast) {
|
|
2603
2613
|
var tmp$ret$3;
|
|
2604
2614
|
// Inline function 'kotlin.collections.map' call
|
|
2605
|
-
var tmp1_map = protoOf(Emitter).
|
|
2615
|
+
var tmp1_map = protoOf(Emitter).th.call(this, ast);
|
|
2606
2616
|
var tmp$ret$2;
|
|
2607
2617
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2608
2618
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -2615,7 +2625,7 @@
|
|
|
2615
2625
|
var result = item.j3();
|
|
2616
2626
|
var tmp$ret$0;
|
|
2617
2627
|
// Inline function 'kotlin.text.trimStart' call
|
|
2618
|
-
var tmp0_trimStart = trimMargin('\n |' + (Companion_getInstance_2().
|
|
2628
|
+
var tmp0_trimStart = trimMargin('\n |' + (Companion_getInstance_2().ok(ast) ? this.vk_1 : '') + '\n |' + result + '\n ');
|
|
2619
2629
|
tmp$ret$0 = toString(trimStart(isCharSequence(tmp0_trimStart) ? tmp0_trimStart : THROW_CCE()));
|
|
2620
2630
|
tmp$ret$1 = to(name, tmp$ret$0);
|
|
2621
2631
|
tmp0_mapTo.a(tmp$ret$1);
|
|
@@ -2624,57 +2634,57 @@
|
|
|
2624
2634
|
tmp$ret$3 = tmp$ret$2;
|
|
2625
2635
|
return tmp$ret$3;
|
|
2626
2636
|
};
|
|
2627
|
-
protoOf(TypeScriptEmitter).
|
|
2628
|
-
return this.
|
|
2629
|
-
};
|
|
2630
|
-
protoOf(TypeScriptEmitter).xi = function (_this__u8e3s4) {
|
|
2631
|
-
return this.vj(_this__u8e3s4, this.qh_1, TypeScriptEmitter$emit$lambda_0(_this__u8e3s4, this));
|
|
2637
|
+
protoOf(TypeScriptEmitter).uj = function (_this__u8e3s4) {
|
|
2638
|
+
return this.vj(_this__u8e3s4, this.rh_1, TypeScriptEmitter$emit$lambda(_this__u8e3s4, this));
|
|
2632
2639
|
};
|
|
2633
2640
|
protoOf(TypeScriptEmitter).yi = function (_this__u8e3s4) {
|
|
2634
|
-
return this.wj(_this__u8e3s4, this.
|
|
2641
|
+
return this.wj(_this__u8e3s4, this.rh_1, TypeScriptEmitter$emit$lambda_0(_this__u8e3s4, this));
|
|
2635
2642
|
};
|
|
2636
|
-
protoOf(TypeScriptEmitter).
|
|
2637
|
-
return this.xj(_this__u8e3s4, this.
|
|
2643
|
+
protoOf(TypeScriptEmitter).zi = function (_this__u8e3s4) {
|
|
2644
|
+
return this.xj(_this__u8e3s4, this.rh_1, TypeScriptEmitter$emit$lambda_1(this, _this__u8e3s4));
|
|
2638
2645
|
};
|
|
2639
|
-
protoOf(TypeScriptEmitter).
|
|
2640
|
-
return this.
|
|
2646
|
+
protoOf(TypeScriptEmitter).ej = function (_this__u8e3s4) {
|
|
2647
|
+
return this.yj(_this__u8e3s4, this.rh_1, TypeScriptEmitter$emit$lambda_2(_this__u8e3s4));
|
|
2641
2648
|
};
|
|
2642
|
-
protoOf(TypeScriptEmitter).
|
|
2643
|
-
return this.
|
|
2649
|
+
protoOf(TypeScriptEmitter).fi = function (_this__u8e3s4) {
|
|
2650
|
+
return this.wh(_this__u8e3s4, this.rh_1, TypeScriptEmitter$emit$lambda_3(_this__u8e3s4));
|
|
2644
2651
|
};
|
|
2645
|
-
protoOf(TypeScriptEmitter).
|
|
2646
|
-
return this.
|
|
2652
|
+
protoOf(TypeScriptEmitter).zj = function (_this__u8e3s4) {
|
|
2653
|
+
return this.ak(_this__u8e3s4, this.rh_1, TypeScriptEmitter$emit$lambda_4(_this__u8e3s4));
|
|
2647
2654
|
};
|
|
2648
|
-
protoOf(TypeScriptEmitter).
|
|
2649
|
-
return this.ck(_this__u8e3s4, this.
|
|
2655
|
+
protoOf(TypeScriptEmitter).bk = function (_this__u8e3s4) {
|
|
2656
|
+
return this.ck(_this__u8e3s4, this.rh_1, TypeScriptEmitter$emit$lambda_5(_this__u8e3s4, this));
|
|
2650
2657
|
};
|
|
2651
|
-
protoOf(TypeScriptEmitter).
|
|
2652
|
-
return this.
|
|
2658
|
+
protoOf(TypeScriptEmitter).qj = function (_this__u8e3s4) {
|
|
2659
|
+
return this.dk(_this__u8e3s4, this.rh_1, TypeScriptEmitter$emit$lambda_6(_this__u8e3s4));
|
|
2660
|
+
};
|
|
2661
|
+
protoOf(TypeScriptEmitter).ek = function (_this__u8e3s4) {
|
|
2662
|
+
return this.fk(_this__u8e3s4, this.rh_1, TypeScriptEmitter$emit$lambda_7(_this__u8e3s4, this));
|
|
2653
2663
|
};
|
|
2654
2664
|
function WirespecEmitter$emit$lambda($this_emit, this$0) {
|
|
2655
2665
|
return function () {
|
|
2656
|
-
return trimMargin('type ' + $this_emit.
|
|
2666
|
+
return trimMargin('type ' + $this_emit.wi_1 + ' {\n |' + this$0.yi($this_emit.xi_1) + '\n |}\n |');
|
|
2657
2667
|
};
|
|
2658
2668
|
}
|
|
2659
2669
|
function WirespecEmitter$emit$lambda$lambda(this$0) {
|
|
2660
2670
|
return function (it) {
|
|
2661
|
-
return this$0.
|
|
2671
|
+
return this$0.zi(it);
|
|
2662
2672
|
};
|
|
2663
2673
|
}
|
|
2664
2674
|
function WirespecEmitter$emit$lambda_0($this_emit, this$0) {
|
|
2665
2675
|
return function () {
|
|
2666
|
-
return dropLast(joinToString($this_emit.
|
|
2676
|
+
return dropLast(joinToString($this_emit.aj_1, '\n', VOID, VOID, VOID, VOID, WirespecEmitter$emit$lambda$lambda(this$0)), 1);
|
|
2667
2677
|
};
|
|
2668
2678
|
}
|
|
2669
2679
|
function WirespecEmitter$emit$lambda_1(this$0, $this_emit) {
|
|
2670
2680
|
return function () {
|
|
2671
2681
|
Companion_getInstance_2();
|
|
2672
|
-
return ' ' + this$0.
|
|
2682
|
+
return ' ' + this$0.ej($this_emit.bj_1) + ($this_emit.dj_1 ? '?' : '') + ': ' + this$0.fi($this_emit.cj_1) + ',';
|
|
2673
2683
|
};
|
|
2674
2684
|
}
|
|
2675
2685
|
function WirespecEmitter$emit$lambda_2($this_emit) {
|
|
2676
2686
|
return function () {
|
|
2677
|
-
return $this_emit.
|
|
2687
|
+
return $this_emit.fj_1;
|
|
2678
2688
|
};
|
|
2679
2689
|
}
|
|
2680
2690
|
function WirespecEmitter$emit$lambda_3($this_emit) {
|
|
@@ -2687,10 +2697,10 @@
|
|
|
2687
2697
|
tmp = 'Any';
|
|
2688
2698
|
} else {
|
|
2689
2699
|
if (tmp0_subject instanceof Custom) {
|
|
2690
|
-
tmp = $this_emit.
|
|
2700
|
+
tmp = $this_emit.jj_1;
|
|
2691
2701
|
} else {
|
|
2692
2702
|
if (tmp0_subject instanceof Primitive) {
|
|
2693
|
-
var tmp1_subject = $this_emit.
|
|
2703
|
+
var tmp1_subject = $this_emit.gj_1;
|
|
2694
2704
|
var tmp0 = tmp1_subject.q4_1;
|
|
2695
2705
|
var tmp_0;
|
|
2696
2706
|
switch (tmp0) {
|
|
@@ -2717,7 +2727,7 @@
|
|
|
2717
2727
|
// Inline function 'kotlin.contracts.contract' call
|
|
2718
2728
|
var tmp$ret$0;
|
|
2719
2729
|
// Inline function 'community.flock.wirespec.compiler.core.emit.WirespecEmitter.emit.<anonymous>.<anonymous>' call
|
|
2720
|
-
tmp$ret$0 = $this_emit.
|
|
2730
|
+
tmp$ret$0 = $this_emit.si() ? tmp0_let + '[]' : tmp0_let;
|
|
2721
2731
|
tmp$ret$1 = tmp$ret$0;
|
|
2722
2732
|
return tmp$ret$1;
|
|
2723
2733
|
};
|
|
@@ -2725,17 +2735,17 @@
|
|
|
2725
2735
|
function WirespecEmitter$emit$lambda_4($this_emit) {
|
|
2726
2736
|
return function () {
|
|
2727
2737
|
Companion_getInstance_2();
|
|
2728
|
-
return 'enum ' + $this_emit.
|
|
2738
|
+
return 'enum ' + $this_emit.mj_1 + ' {\n' + ' ' + joinToString($this_emit.nj_1, ', ') + '\n}\n';
|
|
2729
2739
|
};
|
|
2730
2740
|
}
|
|
2731
2741
|
function WirespecEmitter$emit$lambda_5($this_emit, this$0) {
|
|
2732
2742
|
return function () {
|
|
2733
|
-
return 'refined ' + $this_emit.
|
|
2743
|
+
return 'refined ' + $this_emit.oj_1 + ' ' + this$0.qj($this_emit.pj_1) + '\n';
|
|
2734
2744
|
};
|
|
2735
2745
|
}
|
|
2736
2746
|
function WirespecEmitter$emit$lambda_6($this_emit) {
|
|
2737
2747
|
return function () {
|
|
2738
|
-
return '/' + dropLast(drop($this_emit.
|
|
2748
|
+
return '/' + dropLast(drop($this_emit.rj_1, 1), 1) + '/g';
|
|
2739
2749
|
};
|
|
2740
2750
|
}
|
|
2741
2751
|
function WirespecEmitter$emit$lambda_7() {
|
|
@@ -2745,32 +2755,32 @@
|
|
|
2745
2755
|
logger = logger === VOID ? get_noLogger() : logger;
|
|
2746
2756
|
Emitter.call(this, logger);
|
|
2747
2757
|
}
|
|
2748
|
-
protoOf(WirespecEmitter).
|
|
2749
|
-
return this.
|
|
2750
|
-
};
|
|
2751
|
-
protoOf(WirespecEmitter).xi = function (_this__u8e3s4) {
|
|
2752
|
-
return this.vj(_this__u8e3s4, this.qh_1, WirespecEmitter$emit$lambda_0(_this__u8e3s4, this));
|
|
2758
|
+
protoOf(WirespecEmitter).uj = function (_this__u8e3s4) {
|
|
2759
|
+
return this.vj(_this__u8e3s4, this.rh_1, WirespecEmitter$emit$lambda(_this__u8e3s4, this));
|
|
2753
2760
|
};
|
|
2754
2761
|
protoOf(WirespecEmitter).yi = function (_this__u8e3s4) {
|
|
2755
|
-
return this.wj(_this__u8e3s4, this.
|
|
2762
|
+
return this.wj(_this__u8e3s4, this.rh_1, WirespecEmitter$emit$lambda_0(_this__u8e3s4, this));
|
|
2763
|
+
};
|
|
2764
|
+
protoOf(WirespecEmitter).zi = function (_this__u8e3s4) {
|
|
2765
|
+
return this.xj(_this__u8e3s4, this.rh_1, WirespecEmitter$emit$lambda_1(this, _this__u8e3s4));
|
|
2756
2766
|
};
|
|
2757
|
-
protoOf(WirespecEmitter).
|
|
2758
|
-
return this.
|
|
2767
|
+
protoOf(WirespecEmitter).ej = function (_this__u8e3s4) {
|
|
2768
|
+
return this.yj(_this__u8e3s4, this.rh_1, WirespecEmitter$emit$lambda_2(_this__u8e3s4));
|
|
2759
2769
|
};
|
|
2760
|
-
protoOf(WirespecEmitter).
|
|
2761
|
-
return this.
|
|
2770
|
+
protoOf(WirespecEmitter).fi = function (_this__u8e3s4) {
|
|
2771
|
+
return this.wh(_this__u8e3s4, this.rh_1, WirespecEmitter$emit$lambda_3(_this__u8e3s4));
|
|
2762
2772
|
};
|
|
2763
|
-
protoOf(WirespecEmitter).
|
|
2764
|
-
return this.
|
|
2773
|
+
protoOf(WirespecEmitter).zj = function (_this__u8e3s4) {
|
|
2774
|
+
return this.ak(_this__u8e3s4, this.rh_1, WirespecEmitter$emit$lambda_4(_this__u8e3s4));
|
|
2765
2775
|
};
|
|
2766
|
-
protoOf(WirespecEmitter).
|
|
2767
|
-
return this.
|
|
2776
|
+
protoOf(WirespecEmitter).bk = function (_this__u8e3s4) {
|
|
2777
|
+
return this.ck(_this__u8e3s4, this.rh_1, WirespecEmitter$emit$lambda_5(_this__u8e3s4, this));
|
|
2768
2778
|
};
|
|
2769
|
-
protoOf(WirespecEmitter).
|
|
2770
|
-
return this.
|
|
2779
|
+
protoOf(WirespecEmitter).qj = function (_this__u8e3s4) {
|
|
2780
|
+
return this.dk(_this__u8e3s4, this.rh_1, WirespecEmitter$emit$lambda_6(_this__u8e3s4));
|
|
2771
2781
|
};
|
|
2772
|
-
protoOf(WirespecEmitter).
|
|
2773
|
-
return this.
|
|
2782
|
+
protoOf(WirespecEmitter).ek = function (_this__u8e3s4) {
|
|
2783
|
+
return this.fk(_this__u8e3s4, this.rh_1, WirespecEmitter$emit$lambda_7);
|
|
2774
2784
|
};
|
|
2775
2785
|
function get_DEFAULT_PACKAGE_NAME() {
|
|
2776
2786
|
return DEFAULT_PACKAGE_NAME;
|
|
@@ -2778,9 +2788,9 @@
|
|
|
2778
2788
|
var DEFAULT_PACKAGE_NAME;
|
|
2779
2789
|
function Companion_1() {
|
|
2780
2790
|
Companion_instance_1 = this;
|
|
2781
|
-
this.
|
|
2791
|
+
this.qi_1 = ' ';
|
|
2782
2792
|
}
|
|
2783
|
-
protoOf(Companion_1).
|
|
2793
|
+
protoOf(Companion_1).ri = function (_this__u8e3s4) {
|
|
2784
2794
|
var tmp$ret$6;
|
|
2785
2795
|
// Inline function 'kotlin.text.replaceFirstChar' call
|
|
2786
2796
|
var tmp;
|
|
@@ -2814,7 +2824,7 @@
|
|
|
2814
2824
|
tmp$ret$6 = tmp;
|
|
2815
2825
|
return tmp$ret$6;
|
|
2816
2826
|
};
|
|
2817
|
-
protoOf(Companion_1).
|
|
2827
|
+
protoOf(Companion_1).sj = function (_this__u8e3s4) {
|
|
2818
2828
|
var tmp$ret$6;
|
|
2819
2829
|
// Inline function 'kotlin.text.replaceFirstChar' call
|
|
2820
2830
|
var tmp;
|
|
@@ -2848,7 +2858,7 @@
|
|
|
2848
2858
|
tmp$ret$6 = tmp;
|
|
2849
2859
|
return tmp$ret$6;
|
|
2850
2860
|
};
|
|
2851
|
-
protoOf(Companion_1).
|
|
2861
|
+
protoOf(Companion_1).ok = function (_this__u8e3s4) {
|
|
2852
2862
|
var tmp$ret$0;
|
|
2853
2863
|
$l$block_0: {
|
|
2854
2864
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -2877,12 +2887,12 @@
|
|
|
2877
2887
|
}
|
|
2878
2888
|
return tmp$ret$0;
|
|
2879
2889
|
};
|
|
2880
|
-
protoOf(Companion_1).
|
|
2890
|
+
protoOf(Companion_1).wk = function (_this__u8e3s4, content) {
|
|
2881
2891
|
var tmp$ret$4;
|
|
2882
2892
|
// Inline function 'kotlin.collections.map' call
|
|
2883
2893
|
var tmp$ret$1;
|
|
2884
2894
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
2885
|
-
var tmp1_filterIsInstance = _this__u8e3s4.
|
|
2895
|
+
var tmp1_filterIsInstance = _this__u8e3s4.ii_1;
|
|
2886
2896
|
var tmp$ret$0;
|
|
2887
2897
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
2888
2898
|
var tmp0_filterIsInstanceTo = ArrayList_init_$Create$();
|
|
@@ -2904,18 +2914,18 @@
|
|
|
2904
2914
|
var item = tmp0_iterator_0.e();
|
|
2905
2915
|
var tmp$ret$2;
|
|
2906
2916
|
// Inline function 'community.flock.wirespec.compiler.core.emit.common.Companion.joinParameters.<anonymous>' call
|
|
2907
|
-
tmp$ret$2 = new Field(item.
|
|
2917
|
+
tmp$ret$2 = new Field(item.ui_1, item.vi_1, false);
|
|
2908
2918
|
tmp2_mapTo.a(tmp$ret$2);
|
|
2909
2919
|
}
|
|
2910
2920
|
tmp$ret$3 = tmp2_mapTo;
|
|
2911
2921
|
tmp$ret$4 = tmp$ret$3;
|
|
2912
2922
|
var pathField = tmp$ret$4;
|
|
2913
|
-
var parameters = plus(plus(plus(pathField, _this__u8e3s4.
|
|
2923
|
+
var parameters = plus(plus(plus(pathField, _this__u8e3s4.ji_1), _this__u8e3s4.ki_1), _this__u8e3s4.li_1);
|
|
2914
2924
|
var tmp0_safe_receiver = content;
|
|
2915
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2925
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zh_1;
|
|
2916
2926
|
return filterNotNull(plus_0(parameters, tmp1_safe_receiver == null ? null : toField(tmp1_safe_receiver, 'body', false)));
|
|
2917
2927
|
};
|
|
2918
|
-
protoOf(Companion_1).
|
|
2928
|
+
protoOf(Companion_1).gk = function (_this__u8e3s4) {
|
|
2919
2929
|
return !(toIntOrNull(_this__u8e3s4) == null);
|
|
2920
2930
|
};
|
|
2921
2931
|
var Companion_instance_1;
|
|
@@ -2930,10 +2940,10 @@
|
|
|
2930
2940
|
function Emitter(logger, split) {
|
|
2931
2941
|
Companion_getInstance_2();
|
|
2932
2942
|
split = split === VOID ? false : split;
|
|
2933
|
-
this.
|
|
2934
|
-
this.
|
|
2943
|
+
this.rh_1 = logger;
|
|
2944
|
+
this.sh_1 = split;
|
|
2935
2945
|
}
|
|
2936
|
-
protoOf(Emitter).
|
|
2946
|
+
protoOf(Emitter).th = function (ast) {
|
|
2937
2947
|
var tmp$ret$4;
|
|
2938
2948
|
// Inline function 'kotlin.run' call
|
|
2939
2949
|
var tmp$ret$2;
|
|
@@ -2946,20 +2956,20 @@
|
|
|
2946
2956
|
var item = tmp0_iterator.e();
|
|
2947
2957
|
var tmp$ret$0;
|
|
2948
2958
|
// Inline function 'community.flock.wirespec.compiler.core.emit.common.Emitter.emit.<anonymous>' call
|
|
2949
|
-
this.
|
|
2959
|
+
this.rh_1.lh('Emitting Node ' + this);
|
|
2950
2960
|
var tmp0_subject = item;
|
|
2951
2961
|
var tmp;
|
|
2952
2962
|
if (tmp0_subject instanceof Type_0) {
|
|
2953
|
-
tmp = to(item.
|
|
2963
|
+
tmp = to(item.wi_1, this.uj(item));
|
|
2954
2964
|
} else {
|
|
2955
2965
|
if (tmp0_subject instanceof Endpoint) {
|
|
2956
|
-
tmp = to(item.
|
|
2966
|
+
tmp = to(item.gi_1, this.ek(item));
|
|
2957
2967
|
} else {
|
|
2958
2968
|
if (tmp0_subject instanceof Enum_0) {
|
|
2959
|
-
tmp = to(item.
|
|
2969
|
+
tmp = to(item.mj_1, this.zj(item));
|
|
2960
2970
|
} else {
|
|
2961
2971
|
if (tmp0_subject instanceof Refined) {
|
|
2962
|
-
tmp = to(item.
|
|
2972
|
+
tmp = to(item.oj_1, this.bk(item));
|
|
2963
2973
|
} else {
|
|
2964
2974
|
noWhenBranchMatchedException();
|
|
2965
2975
|
}
|
|
@@ -2976,7 +2986,7 @@
|
|
|
2976
2986
|
var tmp$ret$3;
|
|
2977
2987
|
// Inline function 'community.flock.wirespec.compiler.core.emit.common.Emitter.emit.<anonymous>' call
|
|
2978
2988
|
var tmp_0;
|
|
2979
|
-
if (this.
|
|
2989
|
+
if (this.sh_1) {
|
|
2980
2990
|
tmp_0 = tmp1_run;
|
|
2981
2991
|
} else {
|
|
2982
2992
|
tmp_0 = listOf_0(to('NoName', joinToString(tmp1_run, '\n', VOID, VOID, VOID, VOID, Emitter$emit$lambda)));
|
|
@@ -2993,16 +3003,12 @@
|
|
|
2993
3003
|
}
|
|
2994
3004
|
function TypeDefinitionEmitterLogger() {
|
|
2995
3005
|
}
|
|
2996
|
-
function StartingException() {
|
|
2997
|
-
NullTokenException.call(this, 'Starting Token', new Coordinates());
|
|
2998
|
-
captureStack(this, StartingException);
|
|
2999
|
-
}
|
|
3000
3006
|
function NextException(coordinates) {
|
|
3001
3007
|
NullTokenException.call(this, 'Next Token', coordinates);
|
|
3002
3008
|
captureStack(this, NextException);
|
|
3003
3009
|
}
|
|
3004
3010
|
function WrongTokenException(expected, actual) {
|
|
3005
|
-
ParserException.call(this, actual.
|
|
3011
|
+
ParserException.call(this, actual.cl_1, '' + expected.fc() + ' expected, not: ' + getKClassFromExpression(actual.al_1).fc() + ' at line ' + actual.cl_1.dl_1 + ' and position ' + (actual.cl_1.el_1 - actual.bl_1.length | 0));
|
|
3006
3012
|
captureStack(this, WrongTokenException);
|
|
3007
3013
|
}
|
|
3008
3014
|
function NullTokenException(message, coordinates) {
|
|
@@ -3020,32 +3026,48 @@
|
|
|
3020
3026
|
function WirespecException(message, coordinates) {
|
|
3021
3027
|
RuntimeException_init_$Init$(message, this);
|
|
3022
3028
|
captureStack(this, WirespecException);
|
|
3023
|
-
this.
|
|
3029
|
+
this.gl_1 = coordinates;
|
|
3024
3030
|
}
|
|
3025
3031
|
function optimize(_this__u8e3s4) {
|
|
3026
|
-
var tmp$ret$
|
|
3032
|
+
var tmp$ret$4;
|
|
3033
|
+
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
3034
|
+
var tmp$ret$0;
|
|
3035
|
+
// Inline function 'community.flock.wirespec.compiler.core.optimize.optimize.<anonymous>' call
|
|
3036
|
+
var tmp2__anonymous__z9zvc9 = _this__u8e3s4.ug_1;
|
|
3037
|
+
var tmp0_subject = tmp2__anonymous__z9zvc9.al_1;
|
|
3038
|
+
var tmp;
|
|
3039
|
+
if (tmp0_subject instanceof CustomRegex) {
|
|
3040
|
+
tmp = tmp2__anonymous__z9zvc9.hl(VOID, '"' + dropLast(drop(tmp2__anonymous__z9zvc9.bl_1, 1), 2) + '"');
|
|
3041
|
+
} else {
|
|
3042
|
+
tmp = tmp2__anonymous__z9zvc9;
|
|
3043
|
+
}
|
|
3044
|
+
tmp$ret$0 = tmp;
|
|
3045
|
+
var tmp_0 = tmp$ret$0;
|
|
3046
|
+
var tmp$ret$3;
|
|
3027
3047
|
// Inline function 'kotlin.collections.map' call
|
|
3028
|
-
var
|
|
3048
|
+
var tmp1_map = _this__u8e3s4.vg_1;
|
|
3049
|
+
var tmp$ret$2;
|
|
3029
3050
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3030
|
-
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(
|
|
3031
|
-
var tmp0_iterator =
|
|
3051
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
3052
|
+
var tmp0_iterator = tmp1_map.c();
|
|
3032
3053
|
while (tmp0_iterator.d()) {
|
|
3033
3054
|
var item = tmp0_iterator.e();
|
|
3034
|
-
var tmp$ret$
|
|
3055
|
+
var tmp$ret$1;
|
|
3035
3056
|
// Inline function 'community.flock.wirespec.compiler.core.optimize.optimize.<anonymous>' call
|
|
3036
|
-
var
|
|
3037
|
-
var
|
|
3038
|
-
if (
|
|
3039
|
-
|
|
3057
|
+
var tmp0_subject_0 = item.al_1;
|
|
3058
|
+
var tmp_1;
|
|
3059
|
+
if (tmp0_subject_0 instanceof CustomRegex) {
|
|
3060
|
+
tmp_1 = item.hl(VOID, '"' + dropLast(drop(item.bl_1, 1), 2) + '"');
|
|
3040
3061
|
} else {
|
|
3041
|
-
|
|
3062
|
+
tmp_1 = item;
|
|
3042
3063
|
}
|
|
3043
|
-
tmp$ret$
|
|
3044
|
-
tmp0_mapTo.a(tmp$ret$
|
|
3064
|
+
tmp$ret$1 = tmp_1;
|
|
3065
|
+
tmp0_mapTo.a(tmp$ret$1);
|
|
3045
3066
|
}
|
|
3046
|
-
tmp$ret$
|
|
3047
|
-
tmp$ret$
|
|
3048
|
-
|
|
3067
|
+
tmp$ret$2 = tmp0_mapTo;
|
|
3068
|
+
tmp$ret$3 = tmp$ret$2;
|
|
3069
|
+
tmp$ret$4 = new NonEmptyList(tmp_0, tmp$ret$3);
|
|
3070
|
+
return tmp$ret$4;
|
|
3049
3071
|
}
|
|
3050
3072
|
var Type_String_instance;
|
|
3051
3073
|
var Type_Integer_instance;
|
|
@@ -3076,29 +3098,29 @@
|
|
|
3076
3098
|
}
|
|
3077
3099
|
function Any(isIterable, isMap) {
|
|
3078
3100
|
isMap = isMap === VOID ? false : isMap;
|
|
3079
|
-
this.
|
|
3080
|
-
this.
|
|
3101
|
+
this.il_1 = isIterable;
|
|
3102
|
+
this.jl_1 = isMap;
|
|
3081
3103
|
}
|
|
3082
|
-
protoOf(Any).
|
|
3083
|
-
return this.hl_1;
|
|
3084
|
-
};
|
|
3085
|
-
protoOf(Any).mk = function () {
|
|
3104
|
+
protoOf(Any).si = function () {
|
|
3086
3105
|
return this.il_1;
|
|
3087
3106
|
};
|
|
3088
|
-
protoOf(Any).
|
|
3107
|
+
protoOf(Any).nk = function () {
|
|
3108
|
+
return this.jl_1;
|
|
3109
|
+
};
|
|
3110
|
+
protoOf(Any).kl = function (isIterable, isMap) {
|
|
3089
3111
|
return new Any(isIterable, isMap);
|
|
3090
3112
|
};
|
|
3091
|
-
protoOf(Any).
|
|
3092
|
-
isIterable = isIterable === VOID ? this.
|
|
3093
|
-
isMap = isMap === VOID ? this.
|
|
3094
|
-
return $super === VOID ? this.
|
|
3113
|
+
protoOf(Any).ll = function (isIterable, isMap, $super) {
|
|
3114
|
+
isIterable = isIterable === VOID ? this.il_1 : isIterable;
|
|
3115
|
+
isMap = isMap === VOID ? this.jl_1 : isMap;
|
|
3116
|
+
return $super === VOID ? this.kl(isIterable, isMap) : $super.kl.call(this, isIterable, isMap);
|
|
3095
3117
|
};
|
|
3096
3118
|
protoOf(Any).toString = function () {
|
|
3097
|
-
return 'Any(isIterable=' + this.
|
|
3119
|
+
return 'Any(isIterable=' + this.il_1 + ', isMap=' + this.jl_1 + ')';
|
|
3098
3120
|
};
|
|
3099
3121
|
protoOf(Any).hashCode = function () {
|
|
3100
|
-
var result = this.
|
|
3101
|
-
result = imul(result, 31) + (this.
|
|
3122
|
+
var result = this.il_1 | 0;
|
|
3123
|
+
result = imul(result, 31) + (this.jl_1 | 0) | 0;
|
|
3102
3124
|
return result;
|
|
3103
3125
|
};
|
|
3104
3126
|
protoOf(Any).equals = function (other) {
|
|
@@ -3107,40 +3129,40 @@
|
|
|
3107
3129
|
if (!(other instanceof Any))
|
|
3108
3130
|
return false;
|
|
3109
3131
|
var tmp0_other_with_cast = other instanceof Any ? other : THROW_CCE();
|
|
3110
|
-
if (!(this.hl_1 === tmp0_other_with_cast.hl_1))
|
|
3111
|
-
return false;
|
|
3112
3132
|
if (!(this.il_1 === tmp0_other_with_cast.il_1))
|
|
3113
3133
|
return false;
|
|
3134
|
+
if (!(this.jl_1 === tmp0_other_with_cast.jl_1))
|
|
3135
|
+
return false;
|
|
3114
3136
|
return true;
|
|
3115
3137
|
};
|
|
3116
3138
|
function Custom(value, isIterable, isMap) {
|
|
3117
3139
|
isMap = isMap === VOID ? false : isMap;
|
|
3118
|
-
this.
|
|
3119
|
-
this.
|
|
3120
|
-
this.
|
|
3140
|
+
this.jj_1 = value;
|
|
3141
|
+
this.kj_1 = isIterable;
|
|
3142
|
+
this.lj_1 = isMap;
|
|
3121
3143
|
}
|
|
3122
|
-
protoOf(Custom).
|
|
3123
|
-
return this.jj_1;
|
|
3124
|
-
};
|
|
3125
|
-
protoOf(Custom).mk = function () {
|
|
3144
|
+
protoOf(Custom).si = function () {
|
|
3126
3145
|
return this.kj_1;
|
|
3127
3146
|
};
|
|
3128
|
-
protoOf(Custom).
|
|
3147
|
+
protoOf(Custom).nk = function () {
|
|
3148
|
+
return this.lj_1;
|
|
3149
|
+
};
|
|
3150
|
+
protoOf(Custom).ml = function (value, isIterable, isMap) {
|
|
3129
3151
|
return new Custom(value, isIterable, isMap);
|
|
3130
3152
|
};
|
|
3131
|
-
protoOf(Custom).
|
|
3132
|
-
value = value === VOID ? this.
|
|
3133
|
-
isIterable = isIterable === VOID ? this.
|
|
3134
|
-
isMap = isMap === VOID ? this.
|
|
3135
|
-
return $super === VOID ? this.
|
|
3153
|
+
protoOf(Custom).nl = function (value, isIterable, isMap, $super) {
|
|
3154
|
+
value = value === VOID ? this.jj_1 : value;
|
|
3155
|
+
isIterable = isIterable === VOID ? this.kj_1 : isIterable;
|
|
3156
|
+
isMap = isMap === VOID ? this.lj_1 : isMap;
|
|
3157
|
+
return $super === VOID ? this.ml(value, isIterable, isMap) : $super.ml.call(this, value, isIterable, isMap);
|
|
3136
3158
|
};
|
|
3137
3159
|
protoOf(Custom).toString = function () {
|
|
3138
|
-
return 'Custom(value=' + this.
|
|
3160
|
+
return 'Custom(value=' + this.jj_1 + ', isIterable=' + this.kj_1 + ', isMap=' + this.lj_1 + ')';
|
|
3139
3161
|
};
|
|
3140
3162
|
protoOf(Custom).hashCode = function () {
|
|
3141
|
-
var result = getStringHashCode(this.
|
|
3142
|
-
result = imul(result, 31) + (this.jj_1 | 0) | 0;
|
|
3163
|
+
var result = getStringHashCode(this.jj_1);
|
|
3143
3164
|
result = imul(result, 31) + (this.kj_1 | 0) | 0;
|
|
3165
|
+
result = imul(result, 31) + (this.lj_1 | 0) | 0;
|
|
3144
3166
|
return result;
|
|
3145
3167
|
};
|
|
3146
3168
|
protoOf(Custom).equals = function (other) {
|
|
@@ -3149,42 +3171,42 @@
|
|
|
3149
3171
|
if (!(other instanceof Custom))
|
|
3150
3172
|
return false;
|
|
3151
3173
|
var tmp0_other_with_cast = other instanceof Custom ? other : THROW_CCE();
|
|
3152
|
-
if (!(this.ij_1 === tmp0_other_with_cast.ij_1))
|
|
3153
|
-
return false;
|
|
3154
3174
|
if (!(this.jj_1 === tmp0_other_with_cast.jj_1))
|
|
3155
3175
|
return false;
|
|
3156
3176
|
if (!(this.kj_1 === tmp0_other_with_cast.kj_1))
|
|
3157
3177
|
return false;
|
|
3178
|
+
if (!(this.lj_1 === tmp0_other_with_cast.lj_1))
|
|
3179
|
+
return false;
|
|
3158
3180
|
return true;
|
|
3159
3181
|
};
|
|
3160
3182
|
function Primitive(type, isIterable, isMap) {
|
|
3161
3183
|
isMap = isMap === VOID ? false : isMap;
|
|
3162
|
-
this.
|
|
3163
|
-
this.
|
|
3164
|
-
this.
|
|
3184
|
+
this.gj_1 = type;
|
|
3185
|
+
this.hj_1 = isIterable;
|
|
3186
|
+
this.ij_1 = isMap;
|
|
3165
3187
|
}
|
|
3166
|
-
protoOf(Primitive).
|
|
3167
|
-
return this.gj_1;
|
|
3168
|
-
};
|
|
3169
|
-
protoOf(Primitive).mk = function () {
|
|
3188
|
+
protoOf(Primitive).si = function () {
|
|
3170
3189
|
return this.hj_1;
|
|
3171
3190
|
};
|
|
3172
|
-
protoOf(Primitive).
|
|
3191
|
+
protoOf(Primitive).nk = function () {
|
|
3192
|
+
return this.ij_1;
|
|
3193
|
+
};
|
|
3194
|
+
protoOf(Primitive).ol = function (type, isIterable, isMap) {
|
|
3173
3195
|
return new Primitive(type, isIterable, isMap);
|
|
3174
3196
|
};
|
|
3175
|
-
protoOf(Primitive).
|
|
3176
|
-
type = type === VOID ? this.
|
|
3177
|
-
isIterable = isIterable === VOID ? this.
|
|
3178
|
-
isMap = isMap === VOID ? this.
|
|
3179
|
-
return $super === VOID ? this.
|
|
3197
|
+
protoOf(Primitive).pl = function (type, isIterable, isMap, $super) {
|
|
3198
|
+
type = type === VOID ? this.gj_1 : type;
|
|
3199
|
+
isIterable = isIterable === VOID ? this.hj_1 : isIterable;
|
|
3200
|
+
isMap = isMap === VOID ? this.ij_1 : isMap;
|
|
3201
|
+
return $super === VOID ? this.ol(type, isIterable, isMap) : $super.ol.call(this, type, isIterable, isMap);
|
|
3180
3202
|
};
|
|
3181
3203
|
protoOf(Primitive).toString = function () {
|
|
3182
|
-
return 'Primitive(type=' + this.
|
|
3204
|
+
return 'Primitive(type=' + this.gj_1 + ', isIterable=' + this.hj_1 + ', isMap=' + this.ij_1 + ')';
|
|
3183
3205
|
};
|
|
3184
3206
|
protoOf(Primitive).hashCode = function () {
|
|
3185
|
-
var result = this.
|
|
3186
|
-
result = imul(result, 31) + (this.gj_1 | 0) | 0;
|
|
3207
|
+
var result = this.gj_1.hashCode();
|
|
3187
3208
|
result = imul(result, 31) + (this.hj_1 | 0) | 0;
|
|
3209
|
+
result = imul(result, 31) + (this.ij_1 | 0) | 0;
|
|
3188
3210
|
return result;
|
|
3189
3211
|
};
|
|
3190
3212
|
protoOf(Primitive).equals = function (other) {
|
|
@@ -3193,22 +3215,22 @@
|
|
|
3193
3215
|
if (!(other instanceof Primitive))
|
|
3194
3216
|
return false;
|
|
3195
3217
|
var tmp0_other_with_cast = other instanceof Primitive ? other : THROW_CCE();
|
|
3196
|
-
if (!this.
|
|
3197
|
-
return false;
|
|
3198
|
-
if (!(this.gj_1 === tmp0_other_with_cast.gj_1))
|
|
3218
|
+
if (!this.gj_1.equals(tmp0_other_with_cast.gj_1))
|
|
3199
3219
|
return false;
|
|
3200
3220
|
if (!(this.hj_1 === tmp0_other_with_cast.hj_1))
|
|
3201
3221
|
return false;
|
|
3222
|
+
if (!(this.ij_1 === tmp0_other_with_cast.ij_1))
|
|
3223
|
+
return false;
|
|
3202
3224
|
return true;
|
|
3203
3225
|
};
|
|
3204
3226
|
function Identifier(value) {
|
|
3205
|
-
this.
|
|
3227
|
+
this.fj_1 = value;
|
|
3206
3228
|
}
|
|
3207
3229
|
protoOf(Identifier).toString = function () {
|
|
3208
|
-
return 'Identifier(value=' + this.
|
|
3230
|
+
return 'Identifier(value=' + this.fj_1 + ')';
|
|
3209
3231
|
};
|
|
3210
3232
|
protoOf(Identifier).hashCode = function () {
|
|
3211
|
-
return getStringHashCode(this.
|
|
3233
|
+
return getStringHashCode(this.fj_1);
|
|
3212
3234
|
};
|
|
3213
3235
|
protoOf(Identifier).equals = function (other) {
|
|
3214
3236
|
if (this === other)
|
|
@@ -3216,22 +3238,22 @@
|
|
|
3216
3238
|
if (!(other instanceof Identifier))
|
|
3217
3239
|
return false;
|
|
3218
3240
|
var tmp0_other_with_cast = other instanceof Identifier ? other : THROW_CCE();
|
|
3219
|
-
if (!(this.
|
|
3241
|
+
if (!(this.fj_1 === tmp0_other_with_cast.fj_1))
|
|
3220
3242
|
return false;
|
|
3221
3243
|
return true;
|
|
3222
3244
|
};
|
|
3223
3245
|
function Field(identifier, reference, isNullable) {
|
|
3224
|
-
this.
|
|
3225
|
-
this.
|
|
3226
|
-
this.
|
|
3246
|
+
this.bj_1 = identifier;
|
|
3247
|
+
this.cj_1 = reference;
|
|
3248
|
+
this.dj_1 = isNullable;
|
|
3227
3249
|
}
|
|
3228
3250
|
protoOf(Field).toString = function () {
|
|
3229
|
-
return 'Field(identifier=' + this.
|
|
3251
|
+
return 'Field(identifier=' + this.bj_1 + ', reference=' + this.cj_1 + ', isNullable=' + this.dj_1 + ')';
|
|
3230
3252
|
};
|
|
3231
3253
|
protoOf(Field).hashCode = function () {
|
|
3232
|
-
var result = this.
|
|
3233
|
-
result = imul(result, 31) + hashCode(this.
|
|
3234
|
-
result = imul(result, 31) + (this.
|
|
3254
|
+
var result = this.bj_1.hashCode();
|
|
3255
|
+
result = imul(result, 31) + hashCode(this.cj_1) | 0;
|
|
3256
|
+
result = imul(result, 31) + (this.dj_1 | 0) | 0;
|
|
3235
3257
|
return result;
|
|
3236
3258
|
};
|
|
3237
3259
|
protoOf(Field).equals = function (other) {
|
|
@@ -3240,22 +3262,22 @@
|
|
|
3240
3262
|
if (!(other instanceof Field))
|
|
3241
3263
|
return false;
|
|
3242
3264
|
var tmp0_other_with_cast = other instanceof Field ? other : THROW_CCE();
|
|
3243
|
-
if (!this.
|
|
3265
|
+
if (!this.bj_1.equals(tmp0_other_with_cast.bj_1))
|
|
3244
3266
|
return false;
|
|
3245
|
-
if (!equals(this.
|
|
3267
|
+
if (!equals(this.cj_1, tmp0_other_with_cast.cj_1))
|
|
3246
3268
|
return false;
|
|
3247
|
-
if (!(this.
|
|
3269
|
+
if (!(this.dj_1 === tmp0_other_with_cast.dj_1))
|
|
3248
3270
|
return false;
|
|
3249
3271
|
return true;
|
|
3250
3272
|
};
|
|
3251
3273
|
function Shape(value) {
|
|
3252
|
-
this.
|
|
3274
|
+
this.aj_1 = value;
|
|
3253
3275
|
}
|
|
3254
3276
|
protoOf(Shape).toString = function () {
|
|
3255
|
-
return 'Shape(value=' + this.
|
|
3277
|
+
return 'Shape(value=' + this.aj_1 + ')';
|
|
3256
3278
|
};
|
|
3257
3279
|
protoOf(Shape).hashCode = function () {
|
|
3258
|
-
return hashCode(this.
|
|
3280
|
+
return hashCode(this.aj_1);
|
|
3259
3281
|
};
|
|
3260
3282
|
protoOf(Shape).equals = function (other) {
|
|
3261
3283
|
if (this === other)
|
|
@@ -3263,20 +3285,20 @@
|
|
|
3263
3285
|
if (!(other instanceof Shape))
|
|
3264
3286
|
return false;
|
|
3265
3287
|
var tmp0_other_with_cast = other instanceof Shape ? other : THROW_CCE();
|
|
3266
|
-
if (!equals(this.
|
|
3288
|
+
if (!equals(this.aj_1, tmp0_other_with_cast.aj_1))
|
|
3267
3289
|
return false;
|
|
3268
3290
|
return true;
|
|
3269
3291
|
};
|
|
3270
3292
|
function Type_0(name, shape) {
|
|
3271
|
-
this.
|
|
3272
|
-
this.
|
|
3293
|
+
this.wi_1 = name;
|
|
3294
|
+
this.xi_1 = shape;
|
|
3273
3295
|
}
|
|
3274
3296
|
protoOf(Type_0).toString = function () {
|
|
3275
|
-
return 'Type(name=' + this.
|
|
3297
|
+
return 'Type(name=' + this.wi_1 + ', shape=' + this.xi_1 + ')';
|
|
3276
3298
|
};
|
|
3277
3299
|
protoOf(Type_0).hashCode = function () {
|
|
3278
|
-
var result = getStringHashCode(this.
|
|
3279
|
-
result = imul(result, 31) + this.
|
|
3300
|
+
var result = getStringHashCode(this.wi_1);
|
|
3301
|
+
result = imul(result, 31) + this.xi_1.hashCode() | 0;
|
|
3280
3302
|
return result;
|
|
3281
3303
|
};
|
|
3282
3304
|
protoOf(Type_0).equals = function (other) {
|
|
@@ -3285,9 +3307,9 @@
|
|
|
3285
3307
|
if (!(other instanceof Type_0))
|
|
3286
3308
|
return false;
|
|
3287
3309
|
var tmp0_other_with_cast = other instanceof Type_0 ? other : THROW_CCE();
|
|
3288
|
-
if (!(this.
|
|
3310
|
+
if (!(this.wi_1 === tmp0_other_with_cast.wi_1))
|
|
3289
3311
|
return false;
|
|
3290
|
-
if (!this.
|
|
3312
|
+
if (!this.xi_1.equals(tmp0_other_with_cast.xi_1))
|
|
3291
3313
|
return false;
|
|
3292
3314
|
return true;
|
|
3293
3315
|
};
|
|
@@ -3317,13 +3339,13 @@
|
|
|
3317
3339
|
Method_TRACE_instance = new Method('TRACE', 7);
|
|
3318
3340
|
}
|
|
3319
3341
|
function Literal(value) {
|
|
3320
|
-
this.
|
|
3342
|
+
this.tj_1 = value;
|
|
3321
3343
|
}
|
|
3322
3344
|
protoOf(Literal).toString = function () {
|
|
3323
|
-
return 'Literal(value=' + this.
|
|
3345
|
+
return 'Literal(value=' + this.tj_1 + ')';
|
|
3324
3346
|
};
|
|
3325
3347
|
protoOf(Literal).hashCode = function () {
|
|
3326
|
-
return getStringHashCode(this.
|
|
3348
|
+
return getStringHashCode(this.tj_1);
|
|
3327
3349
|
};
|
|
3328
3350
|
protoOf(Literal).equals = function (other) {
|
|
3329
3351
|
if (this === other)
|
|
@@ -3331,20 +3353,20 @@
|
|
|
3331
3353
|
if (!(other instanceof Literal))
|
|
3332
3354
|
return false;
|
|
3333
3355
|
var tmp0_other_with_cast = other instanceof Literal ? other : THROW_CCE();
|
|
3334
|
-
if (!(this.
|
|
3356
|
+
if (!(this.tj_1 === tmp0_other_with_cast.tj_1))
|
|
3335
3357
|
return false;
|
|
3336
3358
|
return true;
|
|
3337
3359
|
};
|
|
3338
3360
|
function Param(identifier, reference) {
|
|
3339
|
-
this.
|
|
3340
|
-
this.
|
|
3361
|
+
this.ui_1 = identifier;
|
|
3362
|
+
this.vi_1 = reference;
|
|
3341
3363
|
}
|
|
3342
3364
|
protoOf(Param).toString = function () {
|
|
3343
|
-
return 'Param(identifier=' + this.
|
|
3365
|
+
return 'Param(identifier=' + this.ui_1 + ', reference=' + this.vi_1 + ')';
|
|
3344
3366
|
};
|
|
3345
3367
|
protoOf(Param).hashCode = function () {
|
|
3346
|
-
var result = this.
|
|
3347
|
-
result = imul(result, 31) + hashCode(this.
|
|
3368
|
+
var result = this.ui_1.hashCode();
|
|
3369
|
+
result = imul(result, 31) + hashCode(this.vi_1) | 0;
|
|
3348
3370
|
return result;
|
|
3349
3371
|
};
|
|
3350
3372
|
protoOf(Param).equals = function (other) {
|
|
@@ -3353,9 +3375,9 @@
|
|
|
3353
3375
|
if (!(other instanceof Param))
|
|
3354
3376
|
return false;
|
|
3355
3377
|
var tmp0_other_with_cast = other instanceof Param ? other : THROW_CCE();
|
|
3356
|
-
if (!this.
|
|
3378
|
+
if (!this.ui_1.equals(tmp0_other_with_cast.ui_1))
|
|
3357
3379
|
return false;
|
|
3358
|
-
if (!equals(this.
|
|
3380
|
+
if (!equals(this.vi_1, tmp0_other_with_cast.vi_1))
|
|
3359
3381
|
return false;
|
|
3360
3382
|
return true;
|
|
3361
3383
|
};
|
|
@@ -3363,13 +3385,13 @@
|
|
|
3363
3385
|
Enum.call(this, name, ordinal);
|
|
3364
3386
|
}
|
|
3365
3387
|
function Request(content) {
|
|
3366
|
-
this.
|
|
3388
|
+
this.xh_1 = content;
|
|
3367
3389
|
}
|
|
3368
3390
|
protoOf(Request).toString = function () {
|
|
3369
|
-
return 'Request(content=' + this.
|
|
3391
|
+
return 'Request(content=' + this.xh_1 + ')';
|
|
3370
3392
|
};
|
|
3371
3393
|
protoOf(Request).hashCode = function () {
|
|
3372
|
-
return this.
|
|
3394
|
+
return this.xh_1 == null ? 0 : this.xh_1.hashCode();
|
|
3373
3395
|
};
|
|
3374
3396
|
protoOf(Request).equals = function (other) {
|
|
3375
3397
|
if (this === other)
|
|
@@ -3377,20 +3399,20 @@
|
|
|
3377
3399
|
if (!(other instanceof Request))
|
|
3378
3400
|
return false;
|
|
3379
3401
|
var tmp0_other_with_cast = other instanceof Request ? other : THROW_CCE();
|
|
3380
|
-
if (!equals(this.
|
|
3402
|
+
if (!equals(this.xh_1, tmp0_other_with_cast.xh_1))
|
|
3381
3403
|
return false;
|
|
3382
3404
|
return true;
|
|
3383
3405
|
};
|
|
3384
3406
|
function Response(status, content) {
|
|
3385
|
-
this.
|
|
3386
|
-
this.
|
|
3407
|
+
this.oi_1 = status;
|
|
3408
|
+
this.pi_1 = content;
|
|
3387
3409
|
}
|
|
3388
3410
|
protoOf(Response).toString = function () {
|
|
3389
|
-
return 'Response(status=' + this.
|
|
3411
|
+
return 'Response(status=' + this.oi_1 + ', content=' + this.pi_1 + ')';
|
|
3390
3412
|
};
|
|
3391
3413
|
protoOf(Response).hashCode = function () {
|
|
3392
|
-
var result = getStringHashCode(this.
|
|
3393
|
-
result = imul(result, 31) + (this.
|
|
3414
|
+
var result = getStringHashCode(this.oi_1);
|
|
3415
|
+
result = imul(result, 31) + (this.pi_1 == null ? 0 : this.pi_1.hashCode()) | 0;
|
|
3394
3416
|
return result;
|
|
3395
3417
|
};
|
|
3396
3418
|
protoOf(Response).equals = function (other) {
|
|
@@ -3399,24 +3421,24 @@
|
|
|
3399
3421
|
if (!(other instanceof Response))
|
|
3400
3422
|
return false;
|
|
3401
3423
|
var tmp0_other_with_cast = other instanceof Response ? other : THROW_CCE();
|
|
3402
|
-
if (!(this.
|
|
3424
|
+
if (!(this.oi_1 === tmp0_other_with_cast.oi_1))
|
|
3403
3425
|
return false;
|
|
3404
|
-
if (!equals(this.
|
|
3426
|
+
if (!equals(this.pi_1, tmp0_other_with_cast.pi_1))
|
|
3405
3427
|
return false;
|
|
3406
3428
|
return true;
|
|
3407
3429
|
};
|
|
3408
3430
|
function Content(type, reference, isNullable) {
|
|
3409
|
-
this.
|
|
3410
|
-
this.
|
|
3411
|
-
this.
|
|
3431
|
+
this.yh_1 = type;
|
|
3432
|
+
this.zh_1 = reference;
|
|
3433
|
+
this.ai_1 = isNullable;
|
|
3412
3434
|
}
|
|
3413
3435
|
protoOf(Content).toString = function () {
|
|
3414
|
-
return 'Content(type=' + this.
|
|
3436
|
+
return 'Content(type=' + this.yh_1 + ', reference=' + this.zh_1 + ', isNullable=' + this.ai_1 + ')';
|
|
3415
3437
|
};
|
|
3416
3438
|
protoOf(Content).hashCode = function () {
|
|
3417
|
-
var result = getStringHashCode(this.
|
|
3418
|
-
result = imul(result, 31) + hashCode(this.
|
|
3419
|
-
result = imul(result, 31) + (this.
|
|
3439
|
+
var result = getStringHashCode(this.yh_1);
|
|
3440
|
+
result = imul(result, 31) + hashCode(this.zh_1) | 0;
|
|
3441
|
+
result = imul(result, 31) + (this.ai_1 | 0) | 0;
|
|
3420
3442
|
return result;
|
|
3421
3443
|
};
|
|
3422
3444
|
protoOf(Content).equals = function (other) {
|
|
@@ -3425,11 +3447,11 @@
|
|
|
3425
3447
|
if (!(other instanceof Content))
|
|
3426
3448
|
return false;
|
|
3427
3449
|
var tmp0_other_with_cast = other instanceof Content ? other : THROW_CCE();
|
|
3428
|
-
if (!(this.
|
|
3450
|
+
if (!(this.yh_1 === tmp0_other_with_cast.yh_1))
|
|
3429
3451
|
return false;
|
|
3430
|
-
if (!equals(this.
|
|
3452
|
+
if (!equals(this.zh_1, tmp0_other_with_cast.zh_1))
|
|
3431
3453
|
return false;
|
|
3432
|
-
if (!(this.
|
|
3454
|
+
if (!(this.ai_1 === tmp0_other_with_cast.ai_1))
|
|
3433
3455
|
return false;
|
|
3434
3456
|
return true;
|
|
3435
3457
|
};
|
|
@@ -3466,27 +3488,27 @@
|
|
|
3466
3488
|
return Method_TRACE_instance;
|
|
3467
3489
|
}
|
|
3468
3490
|
function Endpoint(name, method, path, query, headers, cookies, requests, responses) {
|
|
3469
|
-
this.
|
|
3470
|
-
this.
|
|
3471
|
-
this.
|
|
3472
|
-
this.
|
|
3473
|
-
this.
|
|
3474
|
-
this.
|
|
3475
|
-
this.
|
|
3476
|
-
this.
|
|
3491
|
+
this.gi_1 = name;
|
|
3492
|
+
this.hi_1 = method;
|
|
3493
|
+
this.ii_1 = path;
|
|
3494
|
+
this.ji_1 = query;
|
|
3495
|
+
this.ki_1 = headers;
|
|
3496
|
+
this.li_1 = cookies;
|
|
3497
|
+
this.mi_1 = requests;
|
|
3498
|
+
this.ni_1 = responses;
|
|
3477
3499
|
}
|
|
3478
3500
|
protoOf(Endpoint).toString = function () {
|
|
3479
|
-
return 'Endpoint(name=' + this.
|
|
3501
|
+
return 'Endpoint(name=' + this.gi_1 + ', method=' + this.hi_1 + ', path=' + this.ii_1 + ', query=' + this.ji_1 + ', headers=' + this.ki_1 + ', cookies=' + this.li_1 + ', requests=' + this.mi_1 + ', responses=' + this.ni_1 + ')';
|
|
3480
3502
|
};
|
|
3481
3503
|
protoOf(Endpoint).hashCode = function () {
|
|
3482
|
-
var result = getStringHashCode(this.
|
|
3483
|
-
result = imul(result, 31) + this.
|
|
3484
|
-
result = imul(result, 31) + hashCode(this.hi_1) | 0;
|
|
3504
|
+
var result = getStringHashCode(this.gi_1);
|
|
3505
|
+
result = imul(result, 31) + this.hi_1.hashCode() | 0;
|
|
3485
3506
|
result = imul(result, 31) + hashCode(this.ii_1) | 0;
|
|
3486
3507
|
result = imul(result, 31) + hashCode(this.ji_1) | 0;
|
|
3487
3508
|
result = imul(result, 31) + hashCode(this.ki_1) | 0;
|
|
3488
3509
|
result = imul(result, 31) + hashCode(this.li_1) | 0;
|
|
3489
3510
|
result = imul(result, 31) + hashCode(this.mi_1) | 0;
|
|
3511
|
+
result = imul(result, 31) + hashCode(this.ni_1) | 0;
|
|
3490
3512
|
return result;
|
|
3491
3513
|
};
|
|
3492
3514
|
protoOf(Endpoint).equals = function (other) {
|
|
@@ -3495,11 +3517,9 @@
|
|
|
3495
3517
|
if (!(other instanceof Endpoint))
|
|
3496
3518
|
return false;
|
|
3497
3519
|
var tmp0_other_with_cast = other instanceof Endpoint ? other : THROW_CCE();
|
|
3498
|
-
if (!(this.
|
|
3499
|
-
return false;
|
|
3500
|
-
if (!this.gi_1.equals(tmp0_other_with_cast.gi_1))
|
|
3520
|
+
if (!(this.gi_1 === tmp0_other_with_cast.gi_1))
|
|
3501
3521
|
return false;
|
|
3502
|
-
if (!
|
|
3522
|
+
if (!this.hi_1.equals(tmp0_other_with_cast.hi_1))
|
|
3503
3523
|
return false;
|
|
3504
3524
|
if (!equals(this.ii_1, tmp0_other_with_cast.ii_1))
|
|
3505
3525
|
return false;
|
|
@@ -3511,18 +3531,20 @@
|
|
|
3511
3531
|
return false;
|
|
3512
3532
|
if (!equals(this.mi_1, tmp0_other_with_cast.mi_1))
|
|
3513
3533
|
return false;
|
|
3534
|
+
if (!equals(this.ni_1, tmp0_other_with_cast.ni_1))
|
|
3535
|
+
return false;
|
|
3514
3536
|
return true;
|
|
3515
3537
|
};
|
|
3516
3538
|
function Enum_0(name, entries) {
|
|
3517
|
-
this.
|
|
3518
|
-
this.
|
|
3539
|
+
this.mj_1 = name;
|
|
3540
|
+
this.nj_1 = entries;
|
|
3519
3541
|
}
|
|
3520
3542
|
protoOf(Enum_0).toString = function () {
|
|
3521
|
-
return 'Enum(name=' + this.
|
|
3543
|
+
return 'Enum(name=' + this.mj_1 + ', entries=' + this.nj_1 + ')';
|
|
3522
3544
|
};
|
|
3523
3545
|
protoOf(Enum_0).hashCode = function () {
|
|
3524
|
-
var result = getStringHashCode(this.
|
|
3525
|
-
result = imul(result, 31) + hashCode(this.
|
|
3546
|
+
var result = getStringHashCode(this.mj_1);
|
|
3547
|
+
result = imul(result, 31) + hashCode(this.nj_1) | 0;
|
|
3526
3548
|
return result;
|
|
3527
3549
|
};
|
|
3528
3550
|
protoOf(Enum_0).equals = function (other) {
|
|
@@ -3531,20 +3553,20 @@
|
|
|
3531
3553
|
if (!(other instanceof Enum_0))
|
|
3532
3554
|
return false;
|
|
3533
3555
|
var tmp0_other_with_cast = other instanceof Enum_0 ? other : THROW_CCE();
|
|
3534
|
-
if (!(this.
|
|
3556
|
+
if (!(this.mj_1 === tmp0_other_with_cast.mj_1))
|
|
3535
3557
|
return false;
|
|
3536
|
-
if (!equals(this.
|
|
3558
|
+
if (!equals(this.nj_1, tmp0_other_with_cast.nj_1))
|
|
3537
3559
|
return false;
|
|
3538
3560
|
return true;
|
|
3539
3561
|
};
|
|
3540
3562
|
function Validator(value) {
|
|
3541
|
-
this.
|
|
3563
|
+
this.rj_1 = value;
|
|
3542
3564
|
}
|
|
3543
3565
|
protoOf(Validator).toString = function () {
|
|
3544
|
-
return 'Validator(value=' + this.
|
|
3566
|
+
return 'Validator(value=' + this.rj_1 + ')';
|
|
3545
3567
|
};
|
|
3546
3568
|
protoOf(Validator).hashCode = function () {
|
|
3547
|
-
return getStringHashCode(this.
|
|
3569
|
+
return getStringHashCode(this.rj_1);
|
|
3548
3570
|
};
|
|
3549
3571
|
protoOf(Validator).equals = function (other) {
|
|
3550
3572
|
if (this === other)
|
|
@@ -3552,20 +3574,20 @@
|
|
|
3552
3574
|
if (!(other instanceof Validator))
|
|
3553
3575
|
return false;
|
|
3554
3576
|
var tmp0_other_with_cast = other instanceof Validator ? other : THROW_CCE();
|
|
3555
|
-
if (!(this.
|
|
3577
|
+
if (!(this.rj_1 === tmp0_other_with_cast.rj_1))
|
|
3556
3578
|
return false;
|
|
3557
3579
|
return true;
|
|
3558
3580
|
};
|
|
3559
3581
|
function Refined(name, validator) {
|
|
3560
|
-
this.
|
|
3561
|
-
this.
|
|
3582
|
+
this.oj_1 = name;
|
|
3583
|
+
this.pj_1 = validator;
|
|
3562
3584
|
}
|
|
3563
3585
|
protoOf(Refined).toString = function () {
|
|
3564
|
-
return 'Refined(name=' + this.
|
|
3586
|
+
return 'Refined(name=' + this.oj_1 + ', validator=' + this.pj_1 + ')';
|
|
3565
3587
|
};
|
|
3566
3588
|
protoOf(Refined).hashCode = function () {
|
|
3567
|
-
var result = getStringHashCode(this.
|
|
3568
|
-
result = imul(result, 31) + this.
|
|
3589
|
+
var result = getStringHashCode(this.oj_1);
|
|
3590
|
+
result = imul(result, 31) + this.pj_1.hashCode() | 0;
|
|
3569
3591
|
return result;
|
|
3570
3592
|
};
|
|
3571
3593
|
protoOf(Refined).equals = function (other) {
|
|
@@ -3574,9 +3596,9 @@
|
|
|
3574
3596
|
if (!(other instanceof Refined))
|
|
3575
3597
|
return false;
|
|
3576
3598
|
var tmp0_other_with_cast = other instanceof Refined ? other : THROW_CCE();
|
|
3577
|
-
if (!(this.
|
|
3599
|
+
if (!(this.oj_1 === tmp0_other_with_cast.oj_1))
|
|
3578
3600
|
return false;
|
|
3579
|
-
if (!this.
|
|
3601
|
+
if (!this.pj_1.equals(tmp0_other_with_cast.pj_1))
|
|
3580
3602
|
return false;
|
|
3581
3603
|
return true;
|
|
3582
3604
|
};
|
|
@@ -3619,7 +3641,7 @@
|
|
|
3619
3641
|
var item = tmp0_iterator.e();
|
|
3620
3642
|
var tmp$ret$2;
|
|
3621
3643
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parse.<anonymous>.<anonymous>' call
|
|
3622
|
-
tmp$ret$2 = raise.
|
|
3644
|
+
tmp$ret$2 = raise.fh(item);
|
|
3623
3645
|
tmp1_mapTo.a(tmp$ret$2);
|
|
3624
3646
|
}
|
|
3625
3647
|
tmp$ret$3 = tmp1_mapTo;
|
|
@@ -3627,7 +3649,7 @@
|
|
|
3627
3649
|
tmp$ret$5 = tmp$ret$4;
|
|
3628
3650
|
tmp$ret$6 = tmp$ret$5;
|
|
3629
3651
|
var res = tmp$ret$6;
|
|
3630
|
-
raise.
|
|
3652
|
+
raise.ch();
|
|
3631
3653
|
var tmp$ret$7;
|
|
3632
3654
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3633
3655
|
tmp$ret$7 = new Right(res);
|
|
@@ -3636,7 +3658,7 @@
|
|
|
3636
3658
|
var tmp_0;
|
|
3637
3659
|
if ($p instanceof CancellationException) {
|
|
3638
3660
|
var e = $p;
|
|
3639
|
-
raise.
|
|
3661
|
+
raise.ch();
|
|
3640
3662
|
var tmp$ret$8;
|
|
3641
3663
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3642
3664
|
var tmp1__anonymous__uwfjfc = raisedOrRethrow(e, raise);
|
|
@@ -3645,7 +3667,7 @@
|
|
|
3645
3667
|
} else {
|
|
3646
3668
|
if ($p instanceof Error) {
|
|
3647
3669
|
var e_0 = $p;
|
|
3648
|
-
raise.
|
|
3670
|
+
raise.ch();
|
|
3649
3671
|
var tmp0__anonymous__q1qw7t = nonFatalOrThrow(e_0);
|
|
3650
3672
|
throw tmp0__anonymous__q1qw7t;
|
|
3651
3673
|
} else {
|
|
@@ -3675,37 +3697,37 @@
|
|
|
3675
3697
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3676
3698
|
var tmp$ret$2;
|
|
3677
3699
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>' call
|
|
3678
|
-
log(_this__u8e3s4.
|
|
3679
|
-
var tmp0_subject = _this__u8e3s4.
|
|
3700
|
+
log(_this__u8e3s4.sl_1, $this);
|
|
3701
|
+
var tmp0_subject = _this__u8e3s4.sl_1.al_1;
|
|
3680
3702
|
var tmp_0;
|
|
3681
3703
|
if (tmp0_subject instanceof WsTypeDef) {
|
|
3682
|
-
tmp_0 = raise.
|
|
3704
|
+
tmp_0 = raise.fh(parseTypeDeclaration(_this__u8e3s4, $this));
|
|
3683
3705
|
} else {
|
|
3684
3706
|
if (tmp0_subject instanceof WsEnumTypeDef) {
|
|
3685
|
-
tmp_0 = raise.
|
|
3707
|
+
tmp_0 = raise.fh(parseEnumTypeDeclaration(_this__u8e3s4, $this));
|
|
3686
3708
|
} else {
|
|
3687
3709
|
if (tmp0_subject instanceof WsRefinedTypeDef) {
|
|
3688
|
-
tmp_0 = raise.
|
|
3710
|
+
tmp_0 = raise.fh(parseRefinedTypeDeclaration(_this__u8e3s4, $this));
|
|
3689
3711
|
} else {
|
|
3690
3712
|
var tmp$ret$1;
|
|
3691
3713
|
// Inline function 'arrow.core.nel' call
|
|
3692
3714
|
var tmp$ret$0;
|
|
3693
3715
|
// Inline function 'kotlin.also' call
|
|
3694
|
-
var tmp0_also = new WrongTokenException(getKClass(WsTypeDef), _this__u8e3s4.
|
|
3716
|
+
var tmp0_also = new WrongTokenException(getKClass(WsTypeDef), _this__u8e3s4.sl_1);
|
|
3695
3717
|
// Inline function 'kotlin.contracts.contract' call
|
|
3696
3718
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
3697
|
-
raise.
|
|
3719
|
+
raise.fh(_this__u8e3s4.ul());
|
|
3698
3720
|
tmp$ret$0 = tmp0_also;
|
|
3699
3721
|
var tmp1_nel = tmp$ret$0;
|
|
3700
3722
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
3701
|
-
raise.
|
|
3723
|
+
raise.eh(tmp$ret$1);
|
|
3702
3724
|
}
|
|
3703
3725
|
}
|
|
3704
3726
|
}
|
|
3705
3727
|
tmp$ret$2 = tmp_0;
|
|
3706
3728
|
tmp$ret$3 = tmp$ret$2;
|
|
3707
3729
|
var res = tmp$ret$3;
|
|
3708
|
-
raise.
|
|
3730
|
+
raise.ch();
|
|
3709
3731
|
var tmp$ret$4;
|
|
3710
3732
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3711
3733
|
tmp$ret$4 = new Right(res);
|
|
@@ -3714,7 +3736,7 @@
|
|
|
3714
3736
|
var tmp_1;
|
|
3715
3737
|
if ($p instanceof CancellationException) {
|
|
3716
3738
|
var e = $p;
|
|
3717
|
-
raise.
|
|
3739
|
+
raise.ch();
|
|
3718
3740
|
var tmp$ret$5;
|
|
3719
3741
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3720
3742
|
var tmp1__anonymous__uwfjfc = raisedOrRethrow(e, raise);
|
|
@@ -3723,7 +3745,7 @@
|
|
|
3723
3745
|
} else {
|
|
3724
3746
|
if ($p instanceof Error) {
|
|
3725
3747
|
var e_0 = $p;
|
|
3726
|
-
raise.
|
|
3748
|
+
raise.ch();
|
|
3727
3749
|
var tmp0__anonymous__q1qw7t = nonFatalOrThrow(e_0);
|
|
3728
3750
|
throw tmp0__anonymous__q1qw7t;
|
|
3729
3751
|
} else {
|
|
@@ -3753,30 +3775,30 @@
|
|
|
3753
3775
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3754
3776
|
var tmp$ret$2;
|
|
3755
3777
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDeclaration.<anonymous>' call
|
|
3756
|
-
raise.
|
|
3757
|
-
log(_this__u8e3s4.
|
|
3758
|
-
var tmp0_subject = _this__u8e3s4.
|
|
3778
|
+
raise.fh(_this__u8e3s4.ul());
|
|
3779
|
+
log(_this__u8e3s4.sl_1, $this);
|
|
3780
|
+
var tmp0_subject = _this__u8e3s4.sl_1.al_1;
|
|
3759
3781
|
var tmp_0;
|
|
3760
3782
|
if (tmp0_subject instanceof CustomType) {
|
|
3761
|
-
tmp_0 = raise.
|
|
3783
|
+
tmp_0 = raise.fh(parseTypeDefinition(_this__u8e3s4, $this, _this__u8e3s4.sl_1.bl_1));
|
|
3762
3784
|
} else {
|
|
3763
3785
|
var tmp$ret$1;
|
|
3764
3786
|
// Inline function 'arrow.core.nel' call
|
|
3765
3787
|
var tmp$ret$0;
|
|
3766
3788
|
// Inline function 'kotlin.also' call
|
|
3767
|
-
var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.
|
|
3789
|
+
var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.sl_1);
|
|
3768
3790
|
// Inline function 'kotlin.contracts.contract' call
|
|
3769
3791
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDeclaration.<anonymous>.<anonymous>' call
|
|
3770
|
-
raise.
|
|
3792
|
+
raise.fh(_this__u8e3s4.ul());
|
|
3771
3793
|
tmp$ret$0 = tmp0_also;
|
|
3772
3794
|
var tmp1_nel = tmp$ret$0;
|
|
3773
3795
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
3774
|
-
raise.
|
|
3796
|
+
raise.eh(tmp$ret$1);
|
|
3775
3797
|
}
|
|
3776
3798
|
tmp$ret$2 = tmp_0;
|
|
3777
3799
|
tmp$ret$3 = tmp$ret$2;
|
|
3778
3800
|
var res = tmp$ret$3;
|
|
3779
|
-
raise.
|
|
3801
|
+
raise.ch();
|
|
3780
3802
|
var tmp$ret$4;
|
|
3781
3803
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3782
3804
|
tmp$ret$4 = new Right(res);
|
|
@@ -3785,7 +3807,7 @@
|
|
|
3785
3807
|
var tmp_1;
|
|
3786
3808
|
if ($p instanceof CancellationException) {
|
|
3787
3809
|
var e = $p;
|
|
3788
|
-
raise.
|
|
3810
|
+
raise.ch();
|
|
3789
3811
|
var tmp$ret$5;
|
|
3790
3812
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3791
3813
|
var tmp1__anonymous__uwfjfc = raisedOrRethrow(e, raise);
|
|
@@ -3794,7 +3816,7 @@
|
|
|
3794
3816
|
} else {
|
|
3795
3817
|
if ($p instanceof Error) {
|
|
3796
3818
|
var e_0 = $p;
|
|
3797
|
-
raise.
|
|
3819
|
+
raise.ch();
|
|
3798
3820
|
var tmp0__anonymous__q1qw7t = nonFatalOrThrow(e_0);
|
|
3799
3821
|
throw tmp0__anonymous__q1qw7t;
|
|
3800
3822
|
} else {
|
|
@@ -3824,53 +3846,53 @@
|
|
|
3824
3846
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3825
3847
|
var tmp$ret$5;
|
|
3826
3848
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDefinition.<anonymous>' call
|
|
3827
|
-
raise.
|
|
3828
|
-
log(_this__u8e3s4.
|
|
3849
|
+
raise.fh(_this__u8e3s4.ul());
|
|
3850
|
+
log(_this__u8e3s4.sl_1, $this);
|
|
3829
3851
|
var tmp$ret$4;
|
|
3830
3852
|
// Inline function 'kotlin.also' call
|
|
3831
|
-
var tmp0_subject = _this__u8e3s4.
|
|
3853
|
+
var tmp0_subject = _this__u8e3s4.sl_1.al_1;
|
|
3832
3854
|
var tmp_0;
|
|
3833
3855
|
if (tmp0_subject instanceof LeftCurly) {
|
|
3834
|
-
tmp_0 = new Type_0(typeName, raise.
|
|
3856
|
+
tmp_0 = new Type_0(typeName, raise.fh(parseTypeShape(_this__u8e3s4, $this)));
|
|
3835
3857
|
} else {
|
|
3836
3858
|
var tmp$ret$1;
|
|
3837
3859
|
// Inline function 'arrow.core.nel' call
|
|
3838
3860
|
var tmp$ret$0;
|
|
3839
3861
|
// Inline function 'kotlin.also' call
|
|
3840
|
-
var tmp0_also = new WrongTokenException(getKClass(LeftCurly), _this__u8e3s4.
|
|
3862
|
+
var tmp0_also = new WrongTokenException(getKClass(LeftCurly), _this__u8e3s4.sl_1);
|
|
3841
3863
|
// Inline function 'kotlin.contracts.contract' call
|
|
3842
3864
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDefinition.<anonymous>.<anonymous>' call
|
|
3843
|
-
raise.
|
|
3865
|
+
raise.fh(_this__u8e3s4.ul());
|
|
3844
3866
|
tmp$ret$0 = tmp0_also;
|
|
3845
3867
|
var tmp1_nel = tmp$ret$0;
|
|
3846
3868
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
3847
|
-
raise.
|
|
3869
|
+
raise.eh(tmp$ret$1);
|
|
3848
3870
|
}
|
|
3849
3871
|
var tmp2_also = tmp_0;
|
|
3850
3872
|
// Inline function 'kotlin.contracts.contract' call
|
|
3851
3873
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDefinition.<anonymous>.<anonymous>' call
|
|
3852
|
-
var tmp0_subject_0 = _this__u8e3s4.
|
|
3874
|
+
var tmp0_subject_0 = _this__u8e3s4.sl_1.al_1;
|
|
3853
3875
|
if (tmp0_subject_0 instanceof RightCurly)
|
|
3854
|
-
raise.
|
|
3876
|
+
raise.fh(_this__u8e3s4.ul());
|
|
3855
3877
|
else {
|
|
3856
3878
|
var tmp$ret$3;
|
|
3857
3879
|
// Inline function 'arrow.core.nel' call
|
|
3858
3880
|
var tmp$ret$2;
|
|
3859
3881
|
// Inline function 'kotlin.also' call
|
|
3860
|
-
var tmp0_also_0 = new WrongTokenException(getKClass(RightCurly), _this__u8e3s4.
|
|
3882
|
+
var tmp0_also_0 = new WrongTokenException(getKClass(RightCurly), _this__u8e3s4.sl_1);
|
|
3861
3883
|
// Inline function 'kotlin.contracts.contract' call
|
|
3862
3884
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDefinition.<anonymous>.<anonymous>.<anonymous>' call
|
|
3863
|
-
raise.
|
|
3885
|
+
raise.fh(_this__u8e3s4.ul());
|
|
3864
3886
|
tmp$ret$2 = tmp0_also_0;
|
|
3865
3887
|
var tmp1_nel_0 = tmp$ret$2;
|
|
3866
3888
|
tmp$ret$3 = nonEmptyListOf(tmp1_nel_0, []);
|
|
3867
|
-
raise.
|
|
3889
|
+
raise.eh(tmp$ret$3);
|
|
3868
3890
|
}
|
|
3869
3891
|
tmp$ret$4 = tmp2_also;
|
|
3870
3892
|
tmp$ret$5 = tmp$ret$4;
|
|
3871
3893
|
tmp$ret$6 = tmp$ret$5;
|
|
3872
3894
|
var res = tmp$ret$6;
|
|
3873
|
-
raise.
|
|
3895
|
+
raise.ch();
|
|
3874
3896
|
var tmp$ret$7;
|
|
3875
3897
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3876
3898
|
tmp$ret$7 = new Right(res);
|
|
@@ -3879,7 +3901,7 @@
|
|
|
3879
3901
|
var tmp_1;
|
|
3880
3902
|
if ($p instanceof CancellationException) {
|
|
3881
3903
|
var e = $p;
|
|
3882
|
-
raise.
|
|
3904
|
+
raise.ch();
|
|
3883
3905
|
var tmp$ret$8;
|
|
3884
3906
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3885
3907
|
var tmp1__anonymous__uwfjfc = raisedOrRethrow(e, raise);
|
|
@@ -3888,7 +3910,7 @@
|
|
|
3888
3910
|
} else {
|
|
3889
3911
|
if ($p instanceof Error) {
|
|
3890
3912
|
var e_0 = $p;
|
|
3891
|
-
raise.
|
|
3913
|
+
raise.ch();
|
|
3892
3914
|
var tmp0__anonymous__q1qw7t = nonFatalOrThrow(e_0);
|
|
3893
3915
|
throw tmp0__anonymous__q1qw7t;
|
|
3894
3916
|
} else {
|
|
@@ -3918,11 +3940,11 @@
|
|
|
3918
3940
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3919
3941
|
var tmp$ret$7;
|
|
3920
3942
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeShape.<anonymous>' call
|
|
3921
|
-
raise.
|
|
3922
|
-
log(_this__u8e3s4.
|
|
3943
|
+
raise.fh(_this__u8e3s4.ul());
|
|
3944
|
+
log(_this__u8e3s4.sl_1, $this);
|
|
3923
3945
|
var tmp$ret$6;
|
|
3924
3946
|
// Inline function 'kotlin.let' call
|
|
3925
|
-
var tmp0_subject = _this__u8e3s4.
|
|
3947
|
+
var tmp0_subject = _this__u8e3s4.sl_1.al_1;
|
|
3926
3948
|
var tmp_0;
|
|
3927
3949
|
if (tmp0_subject instanceof CustomValue) {
|
|
3928
3950
|
var tmp$ret$3;
|
|
@@ -3933,25 +3955,25 @@
|
|
|
3933
3955
|
var tmp0_apply = tmp$ret$0;
|
|
3934
3956
|
// Inline function 'kotlin.contracts.contract' call
|
|
3935
3957
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeShape.<anonymous>.<anonymous>' call
|
|
3936
|
-
tmp0_apply.a(raise.
|
|
3937
|
-
while (equals(_this__u8e3s4.
|
|
3938
|
-
raise.
|
|
3939
|
-
var tmp0_subject_0 = _this__u8e3s4.
|
|
3958
|
+
tmp0_apply.a(raise.fh(parseField(_this__u8e3s4, $this, new Identifier(_this__u8e3s4.sl_1.bl_1))));
|
|
3959
|
+
while (equals(_this__u8e3s4.sl_1.al_1, Comma_getInstance())) {
|
|
3960
|
+
raise.fh(_this__u8e3s4.ul());
|
|
3961
|
+
var tmp0_subject_0 = _this__u8e3s4.sl_1.al_1;
|
|
3940
3962
|
if (tmp0_subject_0 instanceof CustomValue) {
|
|
3941
|
-
tmp0_apply.a(raise.
|
|
3963
|
+
tmp0_apply.a(raise.fh(parseField(_this__u8e3s4, $this, new Identifier(_this__u8e3s4.sl_1.bl_1))));
|
|
3942
3964
|
} else {
|
|
3943
3965
|
var tmp$ret$2;
|
|
3944
3966
|
// Inline function 'arrow.core.nel' call
|
|
3945
3967
|
var tmp$ret$1;
|
|
3946
3968
|
// Inline function 'kotlin.also' call
|
|
3947
|
-
var tmp0_also = new WrongTokenException(getKClass(CustomValue), _this__u8e3s4.
|
|
3969
|
+
var tmp0_also = new WrongTokenException(getKClass(CustomValue), _this__u8e3s4.sl_1);
|
|
3948
3970
|
// Inline function 'kotlin.contracts.contract' call
|
|
3949
3971
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeShape.<anonymous>.<anonymous>.<anonymous>' call
|
|
3950
|
-
raise.
|
|
3972
|
+
raise.fh(_this__u8e3s4.ul());
|
|
3951
3973
|
tmp$ret$1 = tmp0_also;
|
|
3952
3974
|
var tmp1_nel = tmp$ret$1;
|
|
3953
3975
|
tmp$ret$2 = nonEmptyListOf(tmp1_nel, []);
|
|
3954
|
-
raise.
|
|
3976
|
+
raise.eh(tmp$ret$2);
|
|
3955
3977
|
}
|
|
3956
3978
|
}
|
|
3957
3979
|
tmp$ret$3 = tmp0_apply;
|
|
@@ -3961,14 +3983,14 @@
|
|
|
3961
3983
|
// Inline function 'arrow.core.nel' call
|
|
3962
3984
|
var tmp$ret$4;
|
|
3963
3985
|
// Inline function 'kotlin.also' call
|
|
3964
|
-
var tmp1_also = new WrongTokenException(getKClass(CustomValue), _this__u8e3s4.
|
|
3986
|
+
var tmp1_also = new WrongTokenException(getKClass(CustomValue), _this__u8e3s4.sl_1);
|
|
3965
3987
|
// Inline function 'kotlin.contracts.contract' call
|
|
3966
3988
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeShape.<anonymous>.<anonymous>' call
|
|
3967
|
-
raise.
|
|
3989
|
+
raise.fh(_this__u8e3s4.ul());
|
|
3968
3990
|
tmp$ret$4 = tmp1_also;
|
|
3969
3991
|
var tmp2_nel = tmp$ret$4;
|
|
3970
3992
|
tmp$ret$5 = nonEmptyListOf(tmp2_nel, []);
|
|
3971
|
-
raise.
|
|
3993
|
+
raise.eh(tmp$ret$5);
|
|
3972
3994
|
}
|
|
3973
3995
|
var tmp3_let = tmp_0;
|
|
3974
3996
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -3976,7 +3998,7 @@
|
|
|
3976
3998
|
tmp$ret$7 = tmp$ret$6;
|
|
3977
3999
|
tmp$ret$8 = tmp$ret$7;
|
|
3978
4000
|
var res = tmp$ret$8;
|
|
3979
|
-
raise.
|
|
4001
|
+
raise.ch();
|
|
3980
4002
|
var tmp$ret$9;
|
|
3981
4003
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3982
4004
|
tmp$ret$9 = new Right(res);
|
|
@@ -3985,7 +4007,7 @@
|
|
|
3985
4007
|
var tmp_1;
|
|
3986
4008
|
if ($p instanceof CancellationException) {
|
|
3987
4009
|
var e = $p;
|
|
3988
|
-
raise.
|
|
4010
|
+
raise.ch();
|
|
3989
4011
|
var tmp$ret$10;
|
|
3990
4012
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3991
4013
|
var tmp1__anonymous__uwfjfc = raisedOrRethrow(e, raise);
|
|
@@ -3994,7 +4016,7 @@
|
|
|
3994
4016
|
} else {
|
|
3995
4017
|
if ($p instanceof Error) {
|
|
3996
4018
|
var e_0 = $p;
|
|
3997
|
-
raise.
|
|
4019
|
+
raise.ch();
|
|
3998
4020
|
var tmp0__anonymous__q1qw7t = nonFatalOrThrow(e_0);
|
|
3999
4021
|
throw tmp0__anonymous__q1qw7t;
|
|
4000
4022
|
} else {
|
|
@@ -4024,37 +4046,37 @@
|
|
|
4024
4046
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4025
4047
|
var tmp$ret$5;
|
|
4026
4048
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseField.<anonymous>' call
|
|
4027
|
-
raise.
|
|
4028
|
-
log(_this__u8e3s4.
|
|
4029
|
-
var tmp0_subject = _this__u8e3s4.
|
|
4049
|
+
raise.fh(_this__u8e3s4.ul());
|
|
4050
|
+
log(_this__u8e3s4.sl_1, $this);
|
|
4051
|
+
var tmp0_subject = _this__u8e3s4.sl_1.al_1;
|
|
4030
4052
|
if (tmp0_subject instanceof Colon)
|
|
4031
|
-
raise.
|
|
4053
|
+
raise.fh(_this__u8e3s4.ul());
|
|
4032
4054
|
else {
|
|
4033
4055
|
var tmp$ret$1;
|
|
4034
4056
|
// Inline function 'arrow.core.nel' call
|
|
4035
4057
|
var tmp$ret$0;
|
|
4036
4058
|
// Inline function 'kotlin.also' call
|
|
4037
|
-
var tmp0_also = new WrongTokenException(getKClass(Colon), _this__u8e3s4.
|
|
4059
|
+
var tmp0_also = new WrongTokenException(getKClass(Colon), _this__u8e3s4.sl_1);
|
|
4038
4060
|
// Inline function 'kotlin.contracts.contract' call
|
|
4039
4061
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseField.<anonymous>.<anonymous>' call
|
|
4040
|
-
raise.
|
|
4062
|
+
raise.fh(_this__u8e3s4.ul());
|
|
4041
4063
|
tmp$ret$0 = tmp0_also;
|
|
4042
4064
|
var tmp1_nel = tmp$ret$0;
|
|
4043
4065
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
4044
|
-
raise.
|
|
4066
|
+
raise.eh(tmp$ret$1);
|
|
4045
4067
|
}
|
|
4046
|
-
var type = _this__u8e3s4.
|
|
4068
|
+
var type = _this__u8e3s4.sl_1.al_1;
|
|
4047
4069
|
var tmp_0;
|
|
4048
4070
|
if (isInterface(type, WsType)) {
|
|
4049
|
-
var tmp_1 = raise.
|
|
4071
|
+
var tmp_1 = raise.fh(parseFieldValue(_this__u8e3s4, $this, type, _this__u8e3s4.sl_1.bl_1));
|
|
4050
4072
|
var tmp$ret$2;
|
|
4051
4073
|
// Inline function 'kotlin.also' call
|
|
4052
|
-
var tmp_2 = _this__u8e3s4.
|
|
4074
|
+
var tmp_2 = _this__u8e3s4.sl_1.al_1;
|
|
4053
4075
|
var tmp2_also = tmp_2 instanceof QuestionMark;
|
|
4054
4076
|
// Inline function 'kotlin.contracts.contract' call
|
|
4055
4077
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseField.<anonymous>.<anonymous>' call
|
|
4056
4078
|
if (tmp2_also)
|
|
4057
|
-
raise.
|
|
4079
|
+
raise.fh(_this__u8e3s4.ul());
|
|
4058
4080
|
tmp$ret$2 = tmp2_also;
|
|
4059
4081
|
tmp_0 = new Field(identifier, tmp_1, tmp$ret$2);
|
|
4060
4082
|
} else {
|
|
@@ -4062,19 +4084,19 @@
|
|
|
4062
4084
|
// Inline function 'arrow.core.nel' call
|
|
4063
4085
|
var tmp$ret$3;
|
|
4064
4086
|
// Inline function 'kotlin.also' call
|
|
4065
|
-
var tmp3_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.
|
|
4087
|
+
var tmp3_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.sl_1);
|
|
4066
4088
|
// Inline function 'kotlin.contracts.contract' call
|
|
4067
4089
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseField.<anonymous>.<anonymous>' call
|
|
4068
|
-
raise.
|
|
4090
|
+
raise.fh(_this__u8e3s4.ul());
|
|
4069
4091
|
tmp$ret$3 = tmp3_also;
|
|
4070
4092
|
var tmp4_nel = tmp$ret$3;
|
|
4071
4093
|
tmp$ret$4 = nonEmptyListOf(tmp4_nel, []);
|
|
4072
|
-
raise.
|
|
4094
|
+
raise.eh(tmp$ret$4);
|
|
4073
4095
|
}
|
|
4074
4096
|
tmp$ret$5 = tmp_0;
|
|
4075
4097
|
tmp$ret$6 = tmp$ret$5;
|
|
4076
4098
|
var res = tmp$ret$6;
|
|
4077
|
-
raise.
|
|
4099
|
+
raise.ch();
|
|
4078
4100
|
var tmp$ret$7;
|
|
4079
4101
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4080
4102
|
tmp$ret$7 = new Right(res);
|
|
@@ -4083,7 +4105,7 @@
|
|
|
4083
4105
|
var tmp_3;
|
|
4084
4106
|
if ($p instanceof CancellationException) {
|
|
4085
4107
|
var e = $p;
|
|
4086
|
-
raise.
|
|
4108
|
+
raise.ch();
|
|
4087
4109
|
var tmp$ret$8;
|
|
4088
4110
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4089
4111
|
var tmp1__anonymous__uwfjfc = raisedOrRethrow(e, raise);
|
|
@@ -4092,7 +4114,7 @@
|
|
|
4092
4114
|
} else {
|
|
4093
4115
|
if ($p instanceof Error) {
|
|
4094
4116
|
var e_0 = $p;
|
|
4095
|
-
raise.
|
|
4117
|
+
raise.ch();
|
|
4096
4118
|
var tmp0__anonymous__q1qw7t = nonFatalOrThrow(e_0);
|
|
4097
4119
|
throw tmp0__anonymous__q1qw7t;
|
|
4098
4120
|
} else {
|
|
@@ -4122,16 +4144,16 @@
|
|
|
4122
4144
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4123
4145
|
var tmp$ret$1;
|
|
4124
4146
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseFieldValue.<anonymous>' call
|
|
4125
|
-
raise.
|
|
4126
|
-
log(_this__u8e3s4.
|
|
4147
|
+
raise.fh(_this__u8e3s4.ul());
|
|
4148
|
+
log(_this__u8e3s4.sl_1, $this);
|
|
4127
4149
|
var tmp$ret$0;
|
|
4128
4150
|
// Inline function 'kotlin.also' call
|
|
4129
|
-
var tmp_0 = _this__u8e3s4.
|
|
4151
|
+
var tmp_0 = _this__u8e3s4.sl_1.al_1;
|
|
4130
4152
|
var tmp0_also = tmp_0 instanceof Brackets;
|
|
4131
4153
|
// Inline function 'kotlin.contracts.contract' call
|
|
4132
4154
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseFieldValue.<anonymous>.<anonymous>' call
|
|
4133
4155
|
if (tmp0_also)
|
|
4134
|
-
raise.
|
|
4156
|
+
raise.fh(_this__u8e3s4.ul());
|
|
4135
4157
|
tmp$ret$0 = tmp0_also;
|
|
4136
4158
|
var isIterable = tmp$ret$0;
|
|
4137
4159
|
var tmp0_subject = wsType;
|
|
@@ -4156,7 +4178,7 @@
|
|
|
4156
4178
|
tmp$ret$1 = tmp_1;
|
|
4157
4179
|
tmp$ret$2 = tmp$ret$1;
|
|
4158
4180
|
var res = tmp$ret$2;
|
|
4159
|
-
raise.
|
|
4181
|
+
raise.ch();
|
|
4160
4182
|
var tmp$ret$3;
|
|
4161
4183
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4162
4184
|
tmp$ret$3 = new Right(res);
|
|
@@ -4165,7 +4187,7 @@
|
|
|
4165
4187
|
var tmp_2;
|
|
4166
4188
|
if ($p instanceof CancellationException) {
|
|
4167
4189
|
var e = $p;
|
|
4168
|
-
raise.
|
|
4190
|
+
raise.ch();
|
|
4169
4191
|
var tmp$ret$4;
|
|
4170
4192
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4171
4193
|
var tmp1__anonymous__uwfjfc = raisedOrRethrow(e, raise);
|
|
@@ -4174,7 +4196,7 @@
|
|
|
4174
4196
|
} else {
|
|
4175
4197
|
if ($p instanceof Error) {
|
|
4176
4198
|
var e_0 = $p;
|
|
4177
|
-
raise.
|
|
4199
|
+
raise.ch();
|
|
4178
4200
|
var tmp0__anonymous__q1qw7t = nonFatalOrThrow(e_0);
|
|
4179
4201
|
throw tmp0__anonymous__q1qw7t;
|
|
4180
4202
|
} else {
|
|
@@ -4204,30 +4226,30 @@
|
|
|
4204
4226
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4205
4227
|
var tmp$ret$2;
|
|
4206
4228
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDeclaration.<anonymous>' call
|
|
4207
|
-
raise.
|
|
4208
|
-
log(_this__u8e3s4.
|
|
4209
|
-
var tmp0_subject = _this__u8e3s4.
|
|
4229
|
+
raise.fh(_this__u8e3s4.ul());
|
|
4230
|
+
log(_this__u8e3s4.sl_1, $this);
|
|
4231
|
+
var tmp0_subject = _this__u8e3s4.sl_1.al_1;
|
|
4210
4232
|
var tmp_0;
|
|
4211
4233
|
if (tmp0_subject instanceof CustomType) {
|
|
4212
|
-
tmp_0 = raise.
|
|
4234
|
+
tmp_0 = raise.fh(parseEnumTypeDefinition(_this__u8e3s4, $this, _this__u8e3s4.sl_1.bl_1));
|
|
4213
4235
|
} else {
|
|
4214
4236
|
var tmp$ret$1;
|
|
4215
4237
|
// Inline function 'arrow.core.nel' call
|
|
4216
4238
|
var tmp$ret$0;
|
|
4217
4239
|
// Inline function 'kotlin.also' call
|
|
4218
|
-
var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.
|
|
4240
|
+
var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.sl_1);
|
|
4219
4241
|
// Inline function 'kotlin.contracts.contract' call
|
|
4220
4242
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDeclaration.<anonymous>.<anonymous>' call
|
|
4221
|
-
raise.
|
|
4243
|
+
raise.fh(_this__u8e3s4.ul());
|
|
4222
4244
|
tmp$ret$0 = tmp0_also;
|
|
4223
4245
|
var tmp1_nel = tmp$ret$0;
|
|
4224
4246
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
4225
|
-
raise.
|
|
4247
|
+
raise.eh(tmp$ret$1);
|
|
4226
4248
|
}
|
|
4227
4249
|
tmp$ret$2 = tmp_0;
|
|
4228
4250
|
tmp$ret$3 = tmp$ret$2;
|
|
4229
4251
|
var res = tmp$ret$3;
|
|
4230
|
-
raise.
|
|
4252
|
+
raise.ch();
|
|
4231
4253
|
var tmp$ret$4;
|
|
4232
4254
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4233
4255
|
tmp$ret$4 = new Right(res);
|
|
@@ -4236,7 +4258,7 @@
|
|
|
4236
4258
|
var tmp_1;
|
|
4237
4259
|
if ($p instanceof CancellationException) {
|
|
4238
4260
|
var e = $p;
|
|
4239
|
-
raise.
|
|
4261
|
+
raise.ch();
|
|
4240
4262
|
var tmp$ret$5;
|
|
4241
4263
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4242
4264
|
var tmp1__anonymous__uwfjfc = raisedOrRethrow(e, raise);
|
|
@@ -4245,7 +4267,7 @@
|
|
|
4245
4267
|
} else {
|
|
4246
4268
|
if ($p instanceof Error) {
|
|
4247
4269
|
var e_0 = $p;
|
|
4248
|
-
raise.
|
|
4270
|
+
raise.ch();
|
|
4249
4271
|
var tmp0__anonymous__q1qw7t = nonFatalOrThrow(e_0);
|
|
4250
4272
|
throw tmp0__anonymous__q1qw7t;
|
|
4251
4273
|
} else {
|
|
@@ -4275,53 +4297,53 @@
|
|
|
4275
4297
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4276
4298
|
var tmp$ret$5;
|
|
4277
4299
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDefinition.<anonymous>' call
|
|
4278
|
-
raise.
|
|
4279
|
-
log(_this__u8e3s4.
|
|
4300
|
+
raise.fh(_this__u8e3s4.ul());
|
|
4301
|
+
log(_this__u8e3s4.sl_1, $this);
|
|
4280
4302
|
var tmp$ret$4;
|
|
4281
4303
|
// Inline function 'kotlin.also' call
|
|
4282
|
-
var tmp0_subject = _this__u8e3s4.
|
|
4304
|
+
var tmp0_subject = _this__u8e3s4.sl_1.al_1;
|
|
4283
4305
|
var tmp_0;
|
|
4284
4306
|
if (tmp0_subject instanceof LeftCurly) {
|
|
4285
|
-
tmp_0 = new Enum_0(typeName, raise.
|
|
4307
|
+
tmp_0 = new Enum_0(typeName, raise.fh(parseEnumTypeEntries(_this__u8e3s4, $this)));
|
|
4286
4308
|
} else {
|
|
4287
4309
|
var tmp$ret$1;
|
|
4288
4310
|
// Inline function 'arrow.core.nel' call
|
|
4289
4311
|
var tmp$ret$0;
|
|
4290
4312
|
// Inline function 'kotlin.also' call
|
|
4291
|
-
var tmp0_also = new WrongTokenException(getKClass(LeftCurly), _this__u8e3s4.
|
|
4313
|
+
var tmp0_also = new WrongTokenException(getKClass(LeftCurly), _this__u8e3s4.sl_1);
|
|
4292
4314
|
// Inline function 'kotlin.contracts.contract' call
|
|
4293
4315
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDefinition.<anonymous>.<anonymous>' call
|
|
4294
|
-
raise.
|
|
4316
|
+
raise.fh(_this__u8e3s4.ul());
|
|
4295
4317
|
tmp$ret$0 = tmp0_also;
|
|
4296
4318
|
var tmp1_nel = tmp$ret$0;
|
|
4297
4319
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
4298
|
-
raise.
|
|
4320
|
+
raise.eh(tmp$ret$1);
|
|
4299
4321
|
}
|
|
4300
4322
|
var tmp2_also = tmp_0;
|
|
4301
4323
|
// Inline function 'kotlin.contracts.contract' call
|
|
4302
4324
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDefinition.<anonymous>.<anonymous>' call
|
|
4303
|
-
var tmp0_subject_0 = _this__u8e3s4.
|
|
4325
|
+
var tmp0_subject_0 = _this__u8e3s4.sl_1.al_1;
|
|
4304
4326
|
if (tmp0_subject_0 instanceof RightCurly)
|
|
4305
|
-
raise.
|
|
4327
|
+
raise.fh(_this__u8e3s4.ul());
|
|
4306
4328
|
else {
|
|
4307
4329
|
var tmp$ret$3;
|
|
4308
4330
|
// Inline function 'arrow.core.nel' call
|
|
4309
4331
|
var tmp$ret$2;
|
|
4310
4332
|
// Inline function 'kotlin.also' call
|
|
4311
|
-
var tmp0_also_0 = new WrongTokenException(getKClass(RightCurly), _this__u8e3s4.
|
|
4333
|
+
var tmp0_also_0 = new WrongTokenException(getKClass(RightCurly), _this__u8e3s4.sl_1);
|
|
4312
4334
|
// Inline function 'kotlin.contracts.contract' call
|
|
4313
4335
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDefinition.<anonymous>.<anonymous>.<anonymous>' call
|
|
4314
|
-
raise.
|
|
4336
|
+
raise.fh(_this__u8e3s4.ul());
|
|
4315
4337
|
tmp$ret$2 = tmp0_also_0;
|
|
4316
4338
|
var tmp1_nel_0 = tmp$ret$2;
|
|
4317
4339
|
tmp$ret$3 = nonEmptyListOf(tmp1_nel_0, []);
|
|
4318
|
-
raise.
|
|
4340
|
+
raise.eh(tmp$ret$3);
|
|
4319
4341
|
}
|
|
4320
4342
|
tmp$ret$4 = tmp2_also;
|
|
4321
4343
|
tmp$ret$5 = tmp$ret$4;
|
|
4322
4344
|
tmp$ret$6 = tmp$ret$5;
|
|
4323
4345
|
var res = tmp$ret$6;
|
|
4324
|
-
raise.
|
|
4346
|
+
raise.ch();
|
|
4325
4347
|
var tmp$ret$7;
|
|
4326
4348
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4327
4349
|
tmp$ret$7 = new Right(res);
|
|
@@ -4330,7 +4352,7 @@
|
|
|
4330
4352
|
var tmp_1;
|
|
4331
4353
|
if ($p instanceof CancellationException) {
|
|
4332
4354
|
var e = $p;
|
|
4333
|
-
raise.
|
|
4355
|
+
raise.ch();
|
|
4334
4356
|
var tmp$ret$8;
|
|
4335
4357
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4336
4358
|
var tmp1__anonymous__uwfjfc = raisedOrRethrow(e, raise);
|
|
@@ -4339,7 +4361,7 @@
|
|
|
4339
4361
|
} else {
|
|
4340
4362
|
if ($p instanceof Error) {
|
|
4341
4363
|
var e_0 = $p;
|
|
4342
|
-
raise.
|
|
4364
|
+
raise.ch();
|
|
4343
4365
|
var tmp0__anonymous__q1qw7t = nonFatalOrThrow(e_0);
|
|
4344
4366
|
throw tmp0__anonymous__q1qw7t;
|
|
4345
4367
|
} else {
|
|
@@ -4369,9 +4391,9 @@
|
|
|
4369
4391
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4370
4392
|
var tmp$ret$7;
|
|
4371
4393
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>' call
|
|
4372
|
-
raise.
|
|
4373
|
-
log(_this__u8e3s4.
|
|
4374
|
-
var tmp0_subject = _this__u8e3s4.
|
|
4394
|
+
raise.fh(_this__u8e3s4.ul());
|
|
4395
|
+
log(_this__u8e3s4.sl_1, $this);
|
|
4396
|
+
var tmp0_subject = _this__u8e3s4.sl_1.al_1;
|
|
4375
4397
|
var tmp_0;
|
|
4376
4398
|
if (tmp0_subject instanceof CustomType) {
|
|
4377
4399
|
var tmp$ret$4;
|
|
@@ -4382,32 +4404,32 @@
|
|
|
4382
4404
|
var tmp0_apply = tmp$ret$0;
|
|
4383
4405
|
// Inline function 'kotlin.contracts.contract' call
|
|
4384
4406
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>.<anonymous>' call
|
|
4385
|
-
tmp0_apply.a(_this__u8e3s4.
|
|
4386
|
-
raise.
|
|
4387
|
-
while (equals(_this__u8e3s4.
|
|
4388
|
-
raise.
|
|
4389
|
-
var tmp0_subject_0 = _this__u8e3s4.
|
|
4407
|
+
tmp0_apply.a(_this__u8e3s4.sl_1.bl_1);
|
|
4408
|
+
raise.fh(_this__u8e3s4.ul());
|
|
4409
|
+
while (equals(_this__u8e3s4.sl_1.al_1, Comma_getInstance())) {
|
|
4410
|
+
raise.fh(_this__u8e3s4.ul());
|
|
4411
|
+
var tmp0_subject_0 = _this__u8e3s4.sl_1.al_1;
|
|
4390
4412
|
if (tmp0_subject_0 instanceof CustomType) {
|
|
4391
4413
|
var tmp$ret$1;
|
|
4392
4414
|
// Inline function 'kotlin.also' call
|
|
4393
|
-
var tmp0_also = tmp0_apply.a(_this__u8e3s4.
|
|
4415
|
+
var tmp0_also = tmp0_apply.a(_this__u8e3s4.sl_1.bl_1);
|
|
4394
4416
|
// Inline function 'kotlin.contracts.contract' call
|
|
4395
4417
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
|
|
4396
|
-
raise.
|
|
4418
|
+
raise.fh(_this__u8e3s4.ul());
|
|
4397
4419
|
tmp$ret$1 = tmp0_also;
|
|
4398
4420
|
} else {
|
|
4399
4421
|
var tmp$ret$3;
|
|
4400
4422
|
// Inline function 'arrow.core.nel' call
|
|
4401
4423
|
var tmp$ret$2;
|
|
4402
4424
|
// Inline function 'kotlin.also' call
|
|
4403
|
-
var tmp1_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.
|
|
4425
|
+
var tmp1_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.sl_1);
|
|
4404
4426
|
// Inline function 'kotlin.contracts.contract' call
|
|
4405
4427
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
|
|
4406
|
-
raise.
|
|
4428
|
+
raise.fh(_this__u8e3s4.ul());
|
|
4407
4429
|
tmp$ret$2 = tmp1_also;
|
|
4408
4430
|
var tmp2_nel = tmp$ret$2;
|
|
4409
4431
|
tmp$ret$3 = nonEmptyListOf(tmp2_nel, []);
|
|
4410
|
-
raise.
|
|
4432
|
+
raise.eh(tmp$ret$3);
|
|
4411
4433
|
}
|
|
4412
4434
|
}
|
|
4413
4435
|
tmp$ret$4 = tmp0_apply;
|
|
@@ -4417,19 +4439,19 @@
|
|
|
4417
4439
|
// Inline function 'arrow.core.nel' call
|
|
4418
4440
|
var tmp$ret$5;
|
|
4419
4441
|
// Inline function 'kotlin.also' call
|
|
4420
|
-
var tmp1_also_0 = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.
|
|
4442
|
+
var tmp1_also_0 = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.sl_1);
|
|
4421
4443
|
// Inline function 'kotlin.contracts.contract' call
|
|
4422
4444
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>.<anonymous>' call
|
|
4423
|
-
raise.
|
|
4445
|
+
raise.fh(_this__u8e3s4.ul());
|
|
4424
4446
|
tmp$ret$5 = tmp1_also_0;
|
|
4425
4447
|
var tmp2_nel_0 = tmp$ret$5;
|
|
4426
4448
|
tmp$ret$6 = nonEmptyListOf(tmp2_nel_0, []);
|
|
4427
|
-
raise.
|
|
4449
|
+
raise.eh(tmp$ret$6);
|
|
4428
4450
|
}
|
|
4429
4451
|
tmp$ret$7 = toSet(tmp_0);
|
|
4430
4452
|
tmp$ret$8 = tmp$ret$7;
|
|
4431
4453
|
var res = tmp$ret$8;
|
|
4432
|
-
raise.
|
|
4454
|
+
raise.ch();
|
|
4433
4455
|
var tmp$ret$9;
|
|
4434
4456
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4435
4457
|
tmp$ret$9 = new Right(res);
|
|
@@ -4438,7 +4460,7 @@
|
|
|
4438
4460
|
var tmp_1;
|
|
4439
4461
|
if ($p instanceof CancellationException) {
|
|
4440
4462
|
var e = $p;
|
|
4441
|
-
raise.
|
|
4463
|
+
raise.ch();
|
|
4442
4464
|
var tmp$ret$10;
|
|
4443
4465
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4444
4466
|
var tmp1__anonymous__uwfjfc = raisedOrRethrow(e, raise);
|
|
@@ -4447,7 +4469,7 @@
|
|
|
4447
4469
|
} else {
|
|
4448
4470
|
if ($p instanceof Error) {
|
|
4449
4471
|
var e_0 = $p;
|
|
4450
|
-
raise.
|
|
4472
|
+
raise.ch();
|
|
4451
4473
|
var tmp0__anonymous__q1qw7t = nonFatalOrThrow(e_0);
|
|
4452
4474
|
throw tmp0__anonymous__q1qw7t;
|
|
4453
4475
|
} else {
|
|
@@ -4477,30 +4499,30 @@
|
|
|
4477
4499
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4478
4500
|
var tmp$ret$2;
|
|
4479
4501
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseRefinedTypeDeclaration.<anonymous>' call
|
|
4480
|
-
raise.
|
|
4481
|
-
log(_this__u8e3s4.
|
|
4482
|
-
var tmp0_subject = _this__u8e3s4.
|
|
4502
|
+
raise.fh(_this__u8e3s4.ul());
|
|
4503
|
+
log(_this__u8e3s4.sl_1, $this);
|
|
4504
|
+
var tmp0_subject = _this__u8e3s4.sl_1.al_1;
|
|
4483
4505
|
var tmp_0;
|
|
4484
4506
|
if (tmp0_subject instanceof CustomType) {
|
|
4485
|
-
tmp_0 = raise.
|
|
4507
|
+
tmp_0 = raise.fh(parseCustomRegex(_this__u8e3s4, $this, _this__u8e3s4.sl_1.bl_1));
|
|
4486
4508
|
} else {
|
|
4487
4509
|
var tmp$ret$1;
|
|
4488
4510
|
// Inline function 'arrow.core.nel' call
|
|
4489
4511
|
var tmp$ret$0;
|
|
4490
4512
|
// Inline function 'kotlin.also' call
|
|
4491
|
-
var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.
|
|
4513
|
+
var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.sl_1);
|
|
4492
4514
|
// Inline function 'kotlin.contracts.contract' call
|
|
4493
4515
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseRefinedTypeDeclaration.<anonymous>.<anonymous>' call
|
|
4494
|
-
raise.
|
|
4516
|
+
raise.fh(_this__u8e3s4.ul());
|
|
4495
4517
|
tmp$ret$0 = tmp0_also;
|
|
4496
4518
|
var tmp1_nel = tmp$ret$0;
|
|
4497
4519
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
4498
|
-
raise.
|
|
4520
|
+
raise.eh(tmp$ret$1);
|
|
4499
4521
|
}
|
|
4500
4522
|
tmp$ret$2 = tmp_0;
|
|
4501
4523
|
tmp$ret$3 = tmp$ret$2;
|
|
4502
4524
|
var res = tmp$ret$3;
|
|
4503
|
-
raise.
|
|
4525
|
+
raise.ch();
|
|
4504
4526
|
var tmp$ret$4;
|
|
4505
4527
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4506
4528
|
tmp$ret$4 = new Right(res);
|
|
@@ -4509,7 +4531,7 @@
|
|
|
4509
4531
|
var tmp_1;
|
|
4510
4532
|
if ($p instanceof CancellationException) {
|
|
4511
4533
|
var e = $p;
|
|
4512
|
-
raise.
|
|
4534
|
+
raise.ch();
|
|
4513
4535
|
var tmp$ret$5;
|
|
4514
4536
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4515
4537
|
var tmp1__anonymous__uwfjfc = raisedOrRethrow(e, raise);
|
|
@@ -4518,7 +4540,7 @@
|
|
|
4518
4540
|
} else {
|
|
4519
4541
|
if ($p instanceof Error) {
|
|
4520
4542
|
var e_0 = $p;
|
|
4521
|
-
raise.
|
|
4543
|
+
raise.ch();
|
|
4522
4544
|
var tmp0__anonymous__q1qw7t = nonFatalOrThrow(e_0);
|
|
4523
4545
|
throw tmp0__anonymous__q1qw7t;
|
|
4524
4546
|
} else {
|
|
@@ -4548,37 +4570,37 @@
|
|
|
4548
4570
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4549
4571
|
var tmp$ret$3;
|
|
4550
4572
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseCustomRegex.<anonymous>' call
|
|
4551
|
-
raise.
|
|
4552
|
-
log(_this__u8e3s4.
|
|
4573
|
+
raise.fh(_this__u8e3s4.ul());
|
|
4574
|
+
log(_this__u8e3s4.sl_1, $this);
|
|
4553
4575
|
var tmp$ret$2;
|
|
4554
4576
|
// Inline function 'kotlin.also' call
|
|
4555
|
-
var tmp0_subject = _this__u8e3s4.
|
|
4577
|
+
var tmp0_subject = _this__u8e3s4.sl_1.al_1;
|
|
4556
4578
|
var tmp_0;
|
|
4557
4579
|
if (tmp0_subject instanceof CustomRegex) {
|
|
4558
|
-
tmp_0 = new Refined(typeName, new Validator(_this__u8e3s4.
|
|
4580
|
+
tmp_0 = new Refined(typeName, new Validator(_this__u8e3s4.sl_1.bl_1));
|
|
4559
4581
|
} else {
|
|
4560
4582
|
var tmp$ret$1;
|
|
4561
4583
|
// Inline function 'arrow.core.nel' call
|
|
4562
4584
|
var tmp$ret$0;
|
|
4563
4585
|
// Inline function 'kotlin.also' call
|
|
4564
|
-
var tmp0_also = new WrongTokenException(getKClass(CustomRegex), _this__u8e3s4.
|
|
4586
|
+
var tmp0_also = new WrongTokenException(getKClass(CustomRegex), _this__u8e3s4.sl_1);
|
|
4565
4587
|
// Inline function 'kotlin.contracts.contract' call
|
|
4566
4588
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseCustomRegex.<anonymous>.<anonymous>' call
|
|
4567
|
-
raise.
|
|
4589
|
+
raise.fh(_this__u8e3s4.ul());
|
|
4568
4590
|
tmp$ret$0 = tmp0_also;
|
|
4569
4591
|
var tmp1_nel = tmp$ret$0;
|
|
4570
4592
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
4571
|
-
raise.
|
|
4593
|
+
raise.eh(tmp$ret$1);
|
|
4572
4594
|
}
|
|
4573
4595
|
var tmp2_also = tmp_0;
|
|
4574
4596
|
// Inline function 'kotlin.contracts.contract' call
|
|
4575
4597
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseCustomRegex.<anonymous>.<anonymous>' call
|
|
4576
|
-
raise.
|
|
4598
|
+
raise.fh(_this__u8e3s4.ul());
|
|
4577
4599
|
tmp$ret$2 = tmp2_also;
|
|
4578
4600
|
tmp$ret$3 = tmp$ret$2;
|
|
4579
4601
|
tmp$ret$4 = tmp$ret$3;
|
|
4580
4602
|
var res = tmp$ret$4;
|
|
4581
|
-
raise.
|
|
4603
|
+
raise.ch();
|
|
4582
4604
|
var tmp$ret$5;
|
|
4583
4605
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4584
4606
|
tmp$ret$5 = new Right(res);
|
|
@@ -4587,7 +4609,7 @@
|
|
|
4587
4609
|
var tmp_1;
|
|
4588
4610
|
if ($p instanceof CancellationException) {
|
|
4589
4611
|
var e = $p;
|
|
4590
|
-
raise.
|
|
4612
|
+
raise.ch();
|
|
4591
4613
|
var tmp$ret$6;
|
|
4592
4614
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4593
4615
|
var tmp1__anonymous__uwfjfc = raisedOrRethrow(e, raise);
|
|
@@ -4596,7 +4618,7 @@
|
|
|
4596
4618
|
} else {
|
|
4597
4619
|
if ($p instanceof Error) {
|
|
4598
4620
|
var e_0 = $p;
|
|
4599
|
-
raise.
|
|
4621
|
+
raise.ch();
|
|
4600
4622
|
var tmp0__anonymous__q1qw7t = nonFatalOrThrow(e_0);
|
|
4601
4623
|
throw tmp0__anonymous__q1qw7t;
|
|
4602
4624
|
} else {
|
|
@@ -4611,12 +4633,12 @@
|
|
|
4611
4633
|
return tmp$ret$9;
|
|
4612
4634
|
}
|
|
4613
4635
|
function log(_this__u8e3s4, $this) {
|
|
4614
|
-
return $this.
|
|
4636
|
+
return $this.ph_1.lh('Parsing ' + _this__u8e3s4.al_1 + ' at line ' + _this__u8e3s4.cl_1.dl_1 + ' position ' + _this__u8e3s4.cl_1.el_1);
|
|
4615
4637
|
}
|
|
4616
4638
|
function Parser(logger) {
|
|
4617
|
-
this.
|
|
4639
|
+
this.ph_1 = logger;
|
|
4618
4640
|
}
|
|
4619
|
-
protoOf(Parser).
|
|
4641
|
+
protoOf(Parser).qh = function (tokens) {
|
|
4620
4642
|
var tmp$ret$2;
|
|
4621
4643
|
// Inline function 'kotlin.collections.filterNot' call
|
|
4622
4644
|
var tmp$ret$1;
|
|
@@ -4627,7 +4649,7 @@
|
|
|
4627
4649
|
var element = tmp0_iterator.e();
|
|
4628
4650
|
var tmp$ret$0;
|
|
4629
4651
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parse.<anonymous>' call
|
|
4630
|
-
var tmp = element.
|
|
4652
|
+
var tmp = element.al_1;
|
|
4631
4653
|
tmp$ret$0 = isInterface(tmp, WhiteSpace);
|
|
4632
4654
|
if (!tmp$ret$0) {
|
|
4633
4655
|
tmp0_filterNotTo.a(element);
|
|
@@ -4635,12 +4657,9 @@
|
|
|
4635
4657
|
}
|
|
4636
4658
|
tmp$ret$1 = tmp0_filterNotTo;
|
|
4637
4659
|
tmp$ret$2 = tmp$ret$1;
|
|
4638
|
-
return parse(toProvider(tmp$ret$2, this.
|
|
4660
|
+
return parse(toProvider(tmp$ret$2, this.ph_1), this);
|
|
4639
4661
|
};
|
|
4640
4662
|
function printTokens($this, previousToken) {
|
|
4641
|
-
var tmp$ret$6;
|
|
4642
|
-
// Inline function 'kotlin.run' call
|
|
4643
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
4644
4663
|
var tmp0_safe_receiver = previousToken;
|
|
4645
4664
|
var tmp;
|
|
4646
4665
|
if (tmp0_safe_receiver == null) {
|
|
@@ -4650,8 +4669,8 @@
|
|
|
4650
4669
|
// Inline function 'kotlin.run' call
|
|
4651
4670
|
// Inline function 'kotlin.contracts.contract' call
|
|
4652
4671
|
var tmp$ret$0;
|
|
4653
|
-
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous
|
|
4654
|
-
tmp$ret$0 = "Eating: '" + tmp0_safe_receiver.
|
|
4672
|
+
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>' call
|
|
4673
|
+
tmp$ret$0 = "Eating: '" + tmp0_safe_receiver.bl_1 + "', ";
|
|
4655
4674
|
tmp$ret$1 = tmp$ret$0;
|
|
4656
4675
|
tmp = tmp$ret$1;
|
|
4657
4676
|
}
|
|
@@ -4659,14 +4678,14 @@
|
|
|
4659
4678
|
var prev = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
|
|
4660
4679
|
var tmp$ret$3;
|
|
4661
4680
|
// Inline function 'kotlin.run' call
|
|
4662
|
-
var tmp0_run = $this.
|
|
4681
|
+
var tmp0_run = $this.sl_1;
|
|
4663
4682
|
// Inline function 'kotlin.contracts.contract' call
|
|
4664
4683
|
var tmp$ret$2;
|
|
4665
|
-
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous
|
|
4666
|
-
tmp$ret$2 = "Current: '" + tmp0_run.
|
|
4684
|
+
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>' call
|
|
4685
|
+
tmp$ret$2 = "Current: '" + tmp0_run.bl_1 + "'";
|
|
4667
4686
|
tmp$ret$3 = tmp$ret$2;
|
|
4668
4687
|
var curr = tmp$ret$3;
|
|
4669
|
-
var tmp2_safe_receiver = $this.
|
|
4688
|
+
var tmp2_safe_receiver = $this.tl_1;
|
|
4670
4689
|
var tmp_0;
|
|
4671
4690
|
if (tmp2_safe_receiver == null) {
|
|
4672
4691
|
tmp_0 = null;
|
|
@@ -4675,16 +4694,14 @@
|
|
|
4675
4694
|
// Inline function 'kotlin.run' call
|
|
4676
4695
|
// Inline function 'kotlin.contracts.contract' call
|
|
4677
4696
|
var tmp$ret$4;
|
|
4678
|
-
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous
|
|
4679
|
-
tmp$ret$4 = ", Next: '" + tmp2_safe_receiver.
|
|
4697
|
+
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>' call
|
|
4698
|
+
tmp$ret$4 = ", Next: '" + tmp2_safe_receiver.bl_1 + "'";
|
|
4680
4699
|
tmp$ret$5 = tmp$ret$4;
|
|
4681
4700
|
tmp_0 = tmp$ret$5;
|
|
4682
4701
|
}
|
|
4683
4702
|
var tmp3_elvis_lhs = tmp_0;
|
|
4684
4703
|
var next = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
|
|
4685
|
-
$this.
|
|
4686
|
-
tmp$ret$6 = Unit_getInstance();
|
|
4687
|
-
return tmp$ret$6;
|
|
4704
|
+
$this.ql_1.lh(prev + curr + next);
|
|
4688
4705
|
}
|
|
4689
4706
|
function printTokens$default($this, previousToken, $super) {
|
|
4690
4707
|
previousToken = previousToken === VOID ? null : previousToken;
|
|
@@ -4702,7 +4719,7 @@
|
|
|
4702
4719
|
var tmp0_success = Companion_getInstance();
|
|
4703
4720
|
var tmp$ret$0;
|
|
4704
4721
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.nextToken.<anonymous>' call
|
|
4705
|
-
tmp$ret$0 = $this.
|
|
4722
|
+
tmp$ret$0 = $this.rl_1.e();
|
|
4706
4723
|
var tmp1_success = tmp$ret$0;
|
|
4707
4724
|
tmp$ret$1 = _Result___init__impl__xyqfz8(tmp1_success);
|
|
4708
4725
|
tmp = tmp$ret$1;
|
|
@@ -4733,24 +4750,28 @@
|
|
|
4733
4750
|
return tmp$ret$4;
|
|
4734
4751
|
}
|
|
4735
4752
|
function TokenProvider(logger, tokenIterator) {
|
|
4736
|
-
this.
|
|
4737
|
-
this.
|
|
4753
|
+
this.ql_1 = logger;
|
|
4754
|
+
this.rl_1 = tokenIterator;
|
|
4738
4755
|
var tmp = this;
|
|
4739
4756
|
var tmp0_elvis_lhs = nextToken(this);
|
|
4740
4757
|
var tmp_0;
|
|
4741
4758
|
if (tmp0_elvis_lhs == null) {
|
|
4742
|
-
|
|
4759
|
+
var tmp_1 = EndOfProgram_getInstance();
|
|
4760
|
+
EndOfProgram_getInstance();
|
|
4761
|
+
var tmp_2 = new Coordinates();
|
|
4762
|
+
EndOfProgram_getInstance();
|
|
4763
|
+
tmp_0 = new Token(tmp_1, 'EOP', plus_2(tmp_2, 'EOP'.length));
|
|
4743
4764
|
} else {
|
|
4744
4765
|
tmp_0 = tmp0_elvis_lhs;
|
|
4745
4766
|
}
|
|
4746
|
-
tmp.
|
|
4747
|
-
this.
|
|
4767
|
+
tmp.sl_1 = tmp_0;
|
|
4768
|
+
this.tl_1 = nextToken(this);
|
|
4748
4769
|
printTokens$default(this);
|
|
4749
4770
|
}
|
|
4750
4771
|
protoOf(TokenProvider).d = function () {
|
|
4751
|
-
return !(this.
|
|
4772
|
+
return !(this.tl_1 == null);
|
|
4752
4773
|
};
|
|
4753
|
-
protoOf(TokenProvider).
|
|
4774
|
+
protoOf(TokenProvider).ul = function () {
|
|
4754
4775
|
var tmp$ret$6;
|
|
4755
4776
|
// Inline function 'arrow.core.raise.either' call
|
|
4756
4777
|
var tmp$ret$5;
|
|
@@ -4764,25 +4785,25 @@
|
|
|
4764
4785
|
try {
|
|
4765
4786
|
var tmp$ret$1;
|
|
4766
4787
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4767
|
-
var previousToken = this.
|
|
4788
|
+
var previousToken = this.sl_1;
|
|
4768
4789
|
var tmp_0 = this;
|
|
4769
|
-
var tmp0_elvis_lhs = this.
|
|
4790
|
+
var tmp0_elvis_lhs = this.tl_1;
|
|
4770
4791
|
var tmp_1;
|
|
4771
4792
|
if (tmp0_elvis_lhs == null) {
|
|
4772
4793
|
var tmp$ret$0;
|
|
4773
4794
|
// Inline function 'arrow.core.nel' call
|
|
4774
|
-
var tmp0_nel = new NextException(previousToken.
|
|
4795
|
+
var tmp0_nel = new NextException(previousToken.cl_1);
|
|
4775
4796
|
tmp$ret$0 = nonEmptyListOf(tmp0_nel, []);
|
|
4776
|
-
raise.
|
|
4797
|
+
raise.eh(tmp$ret$0);
|
|
4777
4798
|
} else {
|
|
4778
4799
|
tmp_1 = tmp0_elvis_lhs;
|
|
4779
4800
|
}
|
|
4780
|
-
tmp_0.
|
|
4781
|
-
this.
|
|
4801
|
+
tmp_0.sl_1 = tmp_1;
|
|
4802
|
+
this.tl_1 = nextToken(this);
|
|
4782
4803
|
printTokens(this, previousToken);
|
|
4783
4804
|
tmp$ret$1 = Unit_getInstance();
|
|
4784
4805
|
var res = tmp$ret$1;
|
|
4785
|
-
raise.
|
|
4806
|
+
raise.ch();
|
|
4786
4807
|
var tmp$ret$2;
|
|
4787
4808
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4788
4809
|
tmp$ret$2 = new Right(Unit_getInstance());
|
|
@@ -4791,7 +4812,7 @@
|
|
|
4791
4812
|
var tmp_2;
|
|
4792
4813
|
if ($p instanceof CancellationException) {
|
|
4793
4814
|
var e = $p;
|
|
4794
|
-
raise.
|
|
4815
|
+
raise.ch();
|
|
4795
4816
|
var tmp$ret$3;
|
|
4796
4817
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4797
4818
|
var tmp1__anonymous__uwfjfc = raisedOrRethrow(e, raise);
|
|
@@ -4800,7 +4821,7 @@
|
|
|
4800
4821
|
} else {
|
|
4801
4822
|
if ($p instanceof Error) {
|
|
4802
4823
|
var e_0 = $p;
|
|
4803
|
-
raise.
|
|
4824
|
+
raise.ch();
|
|
4804
4825
|
var tmp0__anonymous__q1qw7t = nonFatalOrThrow(e_0);
|
|
4805
4826
|
throw tmp0__anonymous__q1qw7t;
|
|
4806
4827
|
} else {
|
|
@@ -4820,15 +4841,15 @@
|
|
|
4820
4841
|
function IdxAndLength(idx, length) {
|
|
4821
4842
|
idx = idx === VOID ? 0 : idx;
|
|
4822
4843
|
length = length === VOID ? 0 : length;
|
|
4823
|
-
this.
|
|
4824
|
-
this.
|
|
4844
|
+
this.vl_1 = idx;
|
|
4845
|
+
this.wl_1 = length;
|
|
4825
4846
|
}
|
|
4826
4847
|
protoOf(IdxAndLength).toString = function () {
|
|
4827
|
-
return 'IdxAndLength(idx=' + this.
|
|
4848
|
+
return 'IdxAndLength(idx=' + this.vl_1 + ', length=' + this.wl_1 + ')';
|
|
4828
4849
|
};
|
|
4829
4850
|
protoOf(IdxAndLength).hashCode = function () {
|
|
4830
|
-
var result = this.
|
|
4831
|
-
result = imul(result, 31) + this.
|
|
4851
|
+
var result = this.vl_1;
|
|
4852
|
+
result = imul(result, 31) + this.wl_1 | 0;
|
|
4832
4853
|
return result;
|
|
4833
4854
|
};
|
|
4834
4855
|
protoOf(IdxAndLength).equals = function (other) {
|
|
@@ -4837,36 +4858,36 @@
|
|
|
4837
4858
|
if (!(other instanceof IdxAndLength))
|
|
4838
4859
|
return false;
|
|
4839
4860
|
var tmp0_other_with_cast = other instanceof IdxAndLength ? other : THROW_CCE();
|
|
4840
|
-
if (!(this.ul_1 === tmp0_other_with_cast.ul_1))
|
|
4841
|
-
return false;
|
|
4842
4861
|
if (!(this.vl_1 === tmp0_other_with_cast.vl_1))
|
|
4843
4862
|
return false;
|
|
4863
|
+
if (!(this.wl_1 === tmp0_other_with_cast.wl_1))
|
|
4864
|
+
return false;
|
|
4844
4865
|
return true;
|
|
4845
4866
|
};
|
|
4846
4867
|
function Coordinates(line, position, idxAndLength) {
|
|
4847
4868
|
line = line === VOID ? 1 : line;
|
|
4848
4869
|
position = position === VOID ? 1 : position;
|
|
4849
4870
|
idxAndLength = idxAndLength === VOID ? new IdxAndLength() : idxAndLength;
|
|
4850
|
-
this.
|
|
4851
|
-
this.
|
|
4852
|
-
this.
|
|
4871
|
+
this.dl_1 = line;
|
|
4872
|
+
this.el_1 = position;
|
|
4873
|
+
this.fl_1 = idxAndLength;
|
|
4853
4874
|
}
|
|
4854
|
-
protoOf(Coordinates).
|
|
4875
|
+
protoOf(Coordinates).xl = function (line, position, idxAndLength) {
|
|
4855
4876
|
return new Coordinates(line, position, idxAndLength);
|
|
4856
4877
|
};
|
|
4857
|
-
protoOf(Coordinates).
|
|
4858
|
-
line = line === VOID ? this.
|
|
4859
|
-
position = position === VOID ? this.
|
|
4860
|
-
idxAndLength = idxAndLength === VOID ? this.
|
|
4861
|
-
return $super === VOID ? this.
|
|
4878
|
+
protoOf(Coordinates).yl = function (line, position, idxAndLength, $super) {
|
|
4879
|
+
line = line === VOID ? this.dl_1 : line;
|
|
4880
|
+
position = position === VOID ? this.el_1 : position;
|
|
4881
|
+
idxAndLength = idxAndLength === VOID ? this.fl_1 : idxAndLength;
|
|
4882
|
+
return $super === VOID ? this.xl(line, position, idxAndLength) : $super.xl.call(this, line, position, idxAndLength);
|
|
4862
4883
|
};
|
|
4863
4884
|
protoOf(Coordinates).toString = function () {
|
|
4864
|
-
return 'Coordinates(line=' + this.
|
|
4885
|
+
return 'Coordinates(line=' + this.dl_1 + ', position=' + this.el_1 + ', idxAndLength=' + this.fl_1 + ')';
|
|
4865
4886
|
};
|
|
4866
4887
|
protoOf(Coordinates).hashCode = function () {
|
|
4867
|
-
var result = this.
|
|
4868
|
-
result = imul(result, 31) + this.
|
|
4869
|
-
result = imul(result, 31) + this.
|
|
4888
|
+
var result = this.dl_1;
|
|
4889
|
+
result = imul(result, 31) + this.el_1 | 0;
|
|
4890
|
+
result = imul(result, 31) + this.fl_1.hashCode() | 0;
|
|
4870
4891
|
return result;
|
|
4871
4892
|
};
|
|
4872
4893
|
protoOf(Coordinates).equals = function (other) {
|
|
@@ -4875,35 +4896,35 @@
|
|
|
4875
4896
|
if (!(other instanceof Coordinates))
|
|
4876
4897
|
return false;
|
|
4877
4898
|
var tmp0_other_with_cast = other instanceof Coordinates ? other : THROW_CCE();
|
|
4878
|
-
if (!(this.cl_1 === tmp0_other_with_cast.cl_1))
|
|
4879
|
-
return false;
|
|
4880
4899
|
if (!(this.dl_1 === tmp0_other_with_cast.dl_1))
|
|
4881
4900
|
return false;
|
|
4882
|
-
if (!this.el_1
|
|
4901
|
+
if (!(this.el_1 === tmp0_other_with_cast.el_1))
|
|
4902
|
+
return false;
|
|
4903
|
+
if (!this.fl_1.equals(tmp0_other_with_cast.fl_1))
|
|
4883
4904
|
return false;
|
|
4884
4905
|
return true;
|
|
4885
4906
|
};
|
|
4886
4907
|
function Token(type, value, coordinates) {
|
|
4887
|
-
this.
|
|
4888
|
-
this.
|
|
4889
|
-
this.
|
|
4908
|
+
this.al_1 = type;
|
|
4909
|
+
this.bl_1 = value;
|
|
4910
|
+
this.cl_1 = coordinates;
|
|
4890
4911
|
}
|
|
4891
|
-
protoOf(Token).
|
|
4912
|
+
protoOf(Token).zl = function (type, value, coordinates) {
|
|
4892
4913
|
return new Token(type, value, coordinates);
|
|
4893
4914
|
};
|
|
4894
|
-
protoOf(Token).
|
|
4895
|
-
type = type === VOID ? this.
|
|
4896
|
-
value = value === VOID ? this.
|
|
4897
|
-
coordinates = coordinates === VOID ? this.
|
|
4898
|
-
return $super === VOID ? this.
|
|
4915
|
+
protoOf(Token).hl = function (type, value, coordinates, $super) {
|
|
4916
|
+
type = type === VOID ? this.al_1 : type;
|
|
4917
|
+
value = value === VOID ? this.bl_1 : value;
|
|
4918
|
+
coordinates = coordinates === VOID ? this.cl_1 : coordinates;
|
|
4919
|
+
return $super === VOID ? this.zl(type, value, coordinates) : $super.zl.call(this, type, value, coordinates);
|
|
4899
4920
|
};
|
|
4900
4921
|
protoOf(Token).toString = function () {
|
|
4901
|
-
return 'Token(type=' + this.
|
|
4922
|
+
return 'Token(type=' + this.al_1 + ', value=' + this.bl_1 + ', coordinates=' + this.cl_1 + ')';
|
|
4902
4923
|
};
|
|
4903
4924
|
protoOf(Token).hashCode = function () {
|
|
4904
|
-
var result = hashCode(this.
|
|
4905
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
4906
|
-
result = imul(result, 31) + this.
|
|
4925
|
+
var result = hashCode(this.al_1);
|
|
4926
|
+
result = imul(result, 31) + getStringHashCode(this.bl_1) | 0;
|
|
4927
|
+
result = imul(result, 31) + this.cl_1.hashCode() | 0;
|
|
4907
4928
|
return result;
|
|
4908
4929
|
};
|
|
4909
4930
|
protoOf(Token).equals = function (other) {
|
|
@@ -4912,73 +4933,79 @@
|
|
|
4912
4933
|
if (!(other instanceof Token))
|
|
4913
4934
|
return false;
|
|
4914
4935
|
var tmp0_other_with_cast = other instanceof Token ? other : THROW_CCE();
|
|
4915
|
-
if (!equals(this.
|
|
4936
|
+
if (!equals(this.al_1, tmp0_other_with_cast.al_1))
|
|
4916
4937
|
return false;
|
|
4917
|
-
if (!(this.
|
|
4938
|
+
if (!(this.bl_1 === tmp0_other_with_cast.bl_1))
|
|
4918
4939
|
return false;
|
|
4919
|
-
if (!this.
|
|
4940
|
+
if (!this.cl_1.equals(tmp0_other_with_cast.cl_1))
|
|
4920
4941
|
return false;
|
|
4921
4942
|
return true;
|
|
4922
4943
|
};
|
|
4923
4944
|
function plus_1(_this__u8e3s4, length) {
|
|
4924
|
-
return new IdxAndLength(_this__u8e3s4.
|
|
4945
|
+
return new IdxAndLength(_this__u8e3s4.vl_1 + length | 0, length);
|
|
4925
4946
|
}
|
|
4926
4947
|
function plus_2(_this__u8e3s4, length) {
|
|
4927
|
-
return _this__u8e3s4.
|
|
4948
|
+
return _this__u8e3s4.yl(VOID, _this__u8e3s4.el_1 + length | 0, plus_1(_this__u8e3s4.fl_1, length));
|
|
4928
4949
|
}
|
|
4929
4950
|
function tokenize(_this__u8e3s4, source) {
|
|
4951
|
+
var tmp$ret$3;
|
|
4952
|
+
// Inline function 'kotlin.let' call
|
|
4930
4953
|
var tmp$ret$1;
|
|
4931
4954
|
// Inline function 'kotlin.let' call
|
|
4932
|
-
var tmp0_let =
|
|
4955
|
+
var tmp0_let = extractToken(_this__u8e3s4, source, new Coordinates());
|
|
4933
4956
|
// Inline function 'kotlin.contracts.contract' call
|
|
4934
4957
|
var tmp$ret$0;
|
|
4935
4958
|
// Inline function 'community.flock.wirespec.compiler.core.tokenize.tokenize.<anonymous>' call
|
|
4959
|
+
var token = tmp0_let.i3();
|
|
4960
|
+
var remaining = tmp0_let.j3();
|
|
4961
|
+
tmp$ret$0 = tokenize_0(_this__u8e3s4, remaining, nonEmptyListOf(token, []));
|
|
4962
|
+
tmp$ret$1 = tmp$ret$0;
|
|
4963
|
+
var tmp1_let = tmp$ret$1;
|
|
4964
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
4965
|
+
var tmp$ret$2;
|
|
4966
|
+
// Inline function 'community.flock.wirespec.compiler.core.tokenize.tokenize.<anonymous>' call
|
|
4936
4967
|
var tmp = EndOfProgram_getInstance();
|
|
4937
4968
|
EndOfProgram_getInstance();
|
|
4938
|
-
var tmp_0 =
|
|
4969
|
+
var tmp_0 = last(tmp1_let).cl_1;
|
|
4939
4970
|
var tmp_1 = EndOfProgram_getInstance();
|
|
4940
4971
|
EndOfProgram_getInstance();
|
|
4941
|
-
tmp$ret$
|
|
4942
|
-
tmp$ret$
|
|
4943
|
-
return tmp$ret$
|
|
4972
|
+
tmp$ret$2 = tmp1_let.zg(new Token(tmp, 'EOP', nextCoordinates(tmp_0, tmp_1, 'EOP')));
|
|
4973
|
+
tmp$ret$3 = tmp$ret$2;
|
|
4974
|
+
return tmp$ret$3;
|
|
4944
4975
|
}
|
|
4945
4976
|
function nextCoordinates(_this__u8e3s4, type, value) {
|
|
4946
4977
|
var tmp0_subject = type;
|
|
4947
4978
|
var tmp;
|
|
4948
4979
|
if (tmp0_subject instanceof NewLine) {
|
|
4949
|
-
tmp = new Coordinates(_this__u8e3s4.
|
|
4980
|
+
tmp = new Coordinates(_this__u8e3s4.dl_1 + 1 | 0, VOID, plus_1(_this__u8e3s4.fl_1, value.length));
|
|
4950
4981
|
} else {
|
|
4951
4982
|
tmp = plus_2(_this__u8e3s4, value.length);
|
|
4952
4983
|
}
|
|
4953
4984
|
return tmp;
|
|
4954
4985
|
}
|
|
4955
|
-
function
|
|
4956
|
-
var tmp0_safe_receiver = lastOrNull(_this__u8e3s4);
|
|
4957
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bl_1;
|
|
4958
|
-
return tmp1_elvis_lhs == null ? new Coordinates() : tmp1_elvis_lhs;
|
|
4959
|
-
}
|
|
4960
|
-
function tokenize_0(_this__u8e3s4, source, tokens) {
|
|
4986
|
+
function tokenize_0(_this__u8e3s4, source, incompleteTokens) {
|
|
4961
4987
|
var $this = _this__u8e3s4;
|
|
4962
4988
|
var source_0 = source;
|
|
4963
|
-
var
|
|
4989
|
+
var incompleteTokens_0 = incompleteTokens;
|
|
4964
4990
|
$l$1: do {
|
|
4965
4991
|
$l$0: do {
|
|
4966
|
-
var
|
|
4967
|
-
var
|
|
4968
|
-
var
|
|
4992
|
+
var tmp0_container = extractToken($this, source_0, last(incompleteTokens_0).cl_1);
|
|
4993
|
+
var token = tmp0_container.i3();
|
|
4994
|
+
var remaining = tmp0_container.j3();
|
|
4995
|
+
var tokens = incompleteTokens_0.zg(token);
|
|
4969
4996
|
var tmp;
|
|
4970
4997
|
var tmp$ret$0;
|
|
4971
4998
|
// Inline function 'kotlin.text.isEmpty' call
|
|
4972
|
-
tmp$ret$0 = charSequenceLength(
|
|
4999
|
+
tmp$ret$0 = charSequenceLength(remaining) === 0;
|
|
4973
5000
|
if (tmp$ret$0) {
|
|
4974
|
-
tmp =
|
|
5001
|
+
tmp = tokens;
|
|
4975
5002
|
} else {
|
|
4976
5003
|
var tmp0 = $this;
|
|
4977
|
-
var tmp1 =
|
|
4978
|
-
var tmp2 =
|
|
5004
|
+
var tmp1 = remaining;
|
|
5005
|
+
var tmp2 = tokens;
|
|
4979
5006
|
$this = tmp0;
|
|
4980
5007
|
source_0 = tmp1;
|
|
4981
|
-
|
|
5008
|
+
incompleteTokens_0 = tmp2;
|
|
4982
5009
|
continue $l$0;
|
|
4983
5010
|
}
|
|
4984
5011
|
return tmp;
|
|
@@ -4987,10 +5014,12 @@
|
|
|
4987
5014
|
}
|
|
4988
5015
|
while (true);
|
|
4989
5016
|
}
|
|
4990
|
-
function
|
|
5017
|
+
function extractToken(_this__u8e3s4, source, previousTokenCoordinates) {
|
|
5018
|
+
var tmp$ret$4;
|
|
5019
|
+
// Inline function 'kotlin.let' call
|
|
4991
5020
|
var tmp$ret$2;
|
|
4992
5021
|
// Inline function 'kotlin.collections.firstNotNullOf' call
|
|
4993
|
-
var tmp0_firstNotNullOf = _this__u8e3s4.
|
|
5022
|
+
var tmp0_firstNotNullOf = _this__u8e3s4.vh();
|
|
4994
5023
|
var tmp$ret$1;
|
|
4995
5024
|
$l$block: {
|
|
4996
5025
|
// Inline function 'kotlin.collections.firstNotNullOfOrNull' call
|
|
@@ -4998,7 +5027,7 @@
|
|
|
4998
5027
|
while (tmp0_iterator.d()) {
|
|
4999
5028
|
var element = tmp0_iterator.e();
|
|
5000
5029
|
var tmp$ret$0;
|
|
5001
|
-
// Inline function 'community.flock.wirespec.compiler.core.tokenize.
|
|
5030
|
+
// Inline function 'community.flock.wirespec.compiler.core.tokenize.extractToken.<anonymous>' call
|
|
5002
5031
|
var regex = element.i3();
|
|
5003
5032
|
var tokenType = element.j3();
|
|
5004
5033
|
var tmp0_safe_receiver = regex.ce(source);
|
|
@@ -5019,7 +5048,13 @@
|
|
|
5019
5048
|
tmp = tmp0_elvis_lhs;
|
|
5020
5049
|
}
|
|
5021
5050
|
tmp$ret$2 = tmp;
|
|
5022
|
-
|
|
5051
|
+
var tmp1_let = tmp$ret$2;
|
|
5052
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
5053
|
+
var tmp$ret$3;
|
|
5054
|
+
// Inline function 'community.flock.wirespec.compiler.core.tokenize.extractToken.<anonymous>' call
|
|
5055
|
+
tmp$ret$3 = to(tmp1_let, removePrefix(source, tmp1_let.bl_1));
|
|
5056
|
+
tmp$ret$4 = tmp$ret$3;
|
|
5057
|
+
return tmp$ret$4;
|
|
5023
5058
|
}
|
|
5024
5059
|
function toToken(_this__u8e3s4, type, previousTokenCoordinates) {
|
|
5025
5060
|
return new Token(type, _this__u8e3s4.w(), nextCoordinates(previousTokenCoordinates, type, _this__u8e3s4.w()));
|
|
@@ -5190,7 +5225,7 @@
|
|
|
5190
5225
|
}
|
|
5191
5226
|
function EndOfProgram() {
|
|
5192
5227
|
EndOfProgram_instance = this;
|
|
5193
|
-
this.
|
|
5228
|
+
this.bm_1 = 'EOP';
|
|
5194
5229
|
}
|
|
5195
5230
|
var EndOfProgram_instance;
|
|
5196
5231
|
function EndOfProgram_getInstance() {
|
|
@@ -5211,11 +5246,11 @@
|
|
|
5211
5246
|
}
|
|
5212
5247
|
var noLogger;
|
|
5213
5248
|
function Logger(enableLogging) {
|
|
5214
|
-
this.
|
|
5249
|
+
this.kh_1 = enableLogging;
|
|
5215
5250
|
}
|
|
5216
|
-
protoOf(Logger).
|
|
5251
|
+
protoOf(Logger).lh = function (s) {
|
|
5217
5252
|
var tmp;
|
|
5218
|
-
if (this.
|
|
5253
|
+
if (this.kh_1) {
|
|
5219
5254
|
println(s);
|
|
5220
5255
|
tmp = Unit_getInstance();
|
|
5221
5256
|
} else {
|
|
@@ -5223,13 +5258,13 @@
|
|
|
5223
5258
|
}
|
|
5224
5259
|
return tmp;
|
|
5225
5260
|
};
|
|
5226
|
-
protoOf(Logger).
|
|
5261
|
+
protoOf(Logger).zk = function (s, block) {
|
|
5227
5262
|
var tmp$ret$1;
|
|
5228
5263
|
// Inline function 'kotlin.run' call
|
|
5229
5264
|
// Inline function 'kotlin.contracts.contract' call
|
|
5230
5265
|
var tmp$ret$0;
|
|
5231
5266
|
// Inline function 'community.flock.wirespec.compiler.utils.Logger.log.<anonymous>' call
|
|
5232
|
-
this.
|
|
5267
|
+
this.lh(s);
|
|
5233
5268
|
tmp$ret$0 = block();
|
|
5234
5269
|
tmp$ret$1 = tmp$ret$0;
|
|
5235
5270
|
return tmp$ret$1;
|
|
@@ -5246,73 +5281,73 @@
|
|
|
5246
5281
|
}
|
|
5247
5282
|
}
|
|
5248
5283
|
//region block: post-declaration
|
|
5249
|
-
protoOf(JavaEmitter).
|
|
5250
|
-
protoOf(JavaEmitter).
|
|
5251
|
-
protoOf(JavaEmitter).
|
|
5252
|
-
protoOf(JavaEmitter).
|
|
5253
|
-
protoOf(JavaEmitter).
|
|
5254
|
-
protoOf(JavaEmitter).
|
|
5255
|
-
protoOf(JavaEmitter).
|
|
5256
|
-
protoOf(JavaEmitter).
|
|
5257
|
-
protoOf(JavaEmitter).
|
|
5258
|
-
protoOf(JavaEmitter).
|
|
5259
|
-
protoOf(KotlinEmitter).
|
|
5260
|
-
protoOf(KotlinEmitter).
|
|
5261
|
-
protoOf(KotlinEmitter).
|
|
5262
|
-
protoOf(KotlinEmitter).
|
|
5263
|
-
protoOf(KotlinEmitter).
|
|
5264
|
-
protoOf(KotlinEmitter).
|
|
5265
|
-
protoOf(KotlinEmitter).
|
|
5266
|
-
protoOf(KotlinEmitter).
|
|
5267
|
-
protoOf(KotlinEmitter).
|
|
5268
|
-
protoOf(KotlinEmitter).
|
|
5269
|
-
protoOf(ScalaEmitter).
|
|
5270
|
-
protoOf(ScalaEmitter).
|
|
5271
|
-
protoOf(ScalaEmitter).
|
|
5272
|
-
protoOf(ScalaEmitter).
|
|
5273
|
-
protoOf(ScalaEmitter).
|
|
5274
|
-
protoOf(ScalaEmitter).
|
|
5275
|
-
protoOf(ScalaEmitter).
|
|
5276
|
-
protoOf(ScalaEmitter).
|
|
5277
|
-
protoOf(ScalaEmitter).
|
|
5278
|
-
protoOf(TypeScriptEmitter).
|
|
5279
|
-
protoOf(TypeScriptEmitter).
|
|
5280
|
-
protoOf(TypeScriptEmitter).
|
|
5281
|
-
protoOf(TypeScriptEmitter).
|
|
5282
|
-
protoOf(TypeScriptEmitter).
|
|
5283
|
-
protoOf(TypeScriptEmitter).
|
|
5284
|
-
protoOf(TypeScriptEmitter).
|
|
5285
|
-
protoOf(TypeScriptEmitter).
|
|
5286
|
-
protoOf(TypeScriptEmitter).
|
|
5287
|
-
protoOf(TypeScriptEmitter).
|
|
5288
|
-
protoOf(WirespecEmitter).
|
|
5289
|
-
protoOf(WirespecEmitter).
|
|
5290
|
-
protoOf(WirespecEmitter).
|
|
5291
|
-
protoOf(WirespecEmitter).
|
|
5292
|
-
protoOf(WirespecEmitter).
|
|
5293
|
-
protoOf(WirespecEmitter).
|
|
5294
|
-
protoOf(WirespecEmitter).
|
|
5295
|
-
protoOf(WirespecEmitter).
|
|
5296
|
-
protoOf(WirespecEmitter).
|
|
5297
|
-
protoOf(WsTypeDef).
|
|
5298
|
-
protoOf(WsEnumTypeDef).
|
|
5299
|
-
protoOf(WsRefinedTypeDef).
|
|
5300
|
-
protoOf(WhiteSpaceExceptNewLine).
|
|
5301
|
-
protoOf(NewLine).
|
|
5302
|
-
protoOf(LeftCurly).
|
|
5303
|
-
protoOf(Colon).
|
|
5304
|
-
protoOf(Comma).
|
|
5305
|
-
protoOf(QuestionMark).
|
|
5306
|
-
protoOf(Brackets).
|
|
5307
|
-
protoOf(WsString).
|
|
5308
|
-
protoOf(WsInteger).
|
|
5309
|
-
protoOf(WsBoolean).
|
|
5310
|
-
protoOf(RightCurly).
|
|
5311
|
-
protoOf(CustomValue).
|
|
5312
|
-
protoOf(CustomType).
|
|
5313
|
-
protoOf(CustomRegex).
|
|
5314
|
-
protoOf(Invalid).
|
|
5315
|
-
protoOf(EndOfProgram).
|
|
5284
|
+
protoOf(JavaEmitter).vj = withLogging;
|
|
5285
|
+
protoOf(JavaEmitter).wj = withLogging_0;
|
|
5286
|
+
protoOf(JavaEmitter).xj = withLogging_1;
|
|
5287
|
+
protoOf(JavaEmitter).yj = withLogging_2;
|
|
5288
|
+
protoOf(JavaEmitter).wh = withLogging_3;
|
|
5289
|
+
protoOf(JavaEmitter).ak = withLogging_4;
|
|
5290
|
+
protoOf(JavaEmitter).ck = withLogging_5;
|
|
5291
|
+
protoOf(JavaEmitter).dk = withLogging_6;
|
|
5292
|
+
protoOf(JavaEmitter).fk = withLogging_7;
|
|
5293
|
+
protoOf(JavaEmitter).ti = withLogging_8;
|
|
5294
|
+
protoOf(KotlinEmitter).vj = withLogging;
|
|
5295
|
+
protoOf(KotlinEmitter).wj = withLogging_0;
|
|
5296
|
+
protoOf(KotlinEmitter).xj = withLogging_1;
|
|
5297
|
+
protoOf(KotlinEmitter).yj = withLogging_2;
|
|
5298
|
+
protoOf(KotlinEmitter).wh = withLogging_3;
|
|
5299
|
+
protoOf(KotlinEmitter).ak = withLogging_4;
|
|
5300
|
+
protoOf(KotlinEmitter).ck = withLogging_5;
|
|
5301
|
+
protoOf(KotlinEmitter).dk = withLogging_6;
|
|
5302
|
+
protoOf(KotlinEmitter).fk = withLogging_7;
|
|
5303
|
+
protoOf(KotlinEmitter).ti = withLogging_8;
|
|
5304
|
+
protoOf(ScalaEmitter).vj = withLogging;
|
|
5305
|
+
protoOf(ScalaEmitter).wj = withLogging_0;
|
|
5306
|
+
protoOf(ScalaEmitter).xj = withLogging_1;
|
|
5307
|
+
protoOf(ScalaEmitter).yj = withLogging_2;
|
|
5308
|
+
protoOf(ScalaEmitter).wh = withLogging_3;
|
|
5309
|
+
protoOf(ScalaEmitter).ak = withLogging_4;
|
|
5310
|
+
protoOf(ScalaEmitter).ck = withLogging_5;
|
|
5311
|
+
protoOf(ScalaEmitter).dk = withLogging_6;
|
|
5312
|
+
protoOf(ScalaEmitter).fk = withLogging_7;
|
|
5313
|
+
protoOf(TypeScriptEmitter).vj = withLogging;
|
|
5314
|
+
protoOf(TypeScriptEmitter).wj = withLogging_0;
|
|
5315
|
+
protoOf(TypeScriptEmitter).xj = withLogging_1;
|
|
5316
|
+
protoOf(TypeScriptEmitter).yj = withLogging_2;
|
|
5317
|
+
protoOf(TypeScriptEmitter).wh = withLogging_3;
|
|
5318
|
+
protoOf(TypeScriptEmitter).ak = withLogging_4;
|
|
5319
|
+
protoOf(TypeScriptEmitter).ck = withLogging_5;
|
|
5320
|
+
protoOf(TypeScriptEmitter).dk = withLogging_6;
|
|
5321
|
+
protoOf(TypeScriptEmitter).fk = withLogging_7;
|
|
5322
|
+
protoOf(TypeScriptEmitter).ti = withLogging_8;
|
|
5323
|
+
protoOf(WirespecEmitter).vj = withLogging;
|
|
5324
|
+
protoOf(WirespecEmitter).wj = withLogging_0;
|
|
5325
|
+
protoOf(WirespecEmitter).xj = withLogging_1;
|
|
5326
|
+
protoOf(WirespecEmitter).yj = withLogging_2;
|
|
5327
|
+
protoOf(WirespecEmitter).wh = withLogging_3;
|
|
5328
|
+
protoOf(WirespecEmitter).ak = withLogging_4;
|
|
5329
|
+
protoOf(WirespecEmitter).ck = withLogging_5;
|
|
5330
|
+
protoOf(WirespecEmitter).dk = withLogging_6;
|
|
5331
|
+
protoOf(WirespecEmitter).fk = withLogging_7;
|
|
5332
|
+
protoOf(WsTypeDef).am = name;
|
|
5333
|
+
protoOf(WsEnumTypeDef).am = name;
|
|
5334
|
+
protoOf(WsRefinedTypeDef).am = name;
|
|
5335
|
+
protoOf(WhiteSpaceExceptNewLine).am = name;
|
|
5336
|
+
protoOf(NewLine).am = name;
|
|
5337
|
+
protoOf(LeftCurly).am = name;
|
|
5338
|
+
protoOf(Colon).am = name;
|
|
5339
|
+
protoOf(Comma).am = name;
|
|
5340
|
+
protoOf(QuestionMark).am = name;
|
|
5341
|
+
protoOf(Brackets).am = name;
|
|
5342
|
+
protoOf(WsString).am = name;
|
|
5343
|
+
protoOf(WsInteger).am = name;
|
|
5344
|
+
protoOf(WsBoolean).am = name;
|
|
5345
|
+
protoOf(RightCurly).am = name;
|
|
5346
|
+
protoOf(CustomValue).am = name;
|
|
5347
|
+
protoOf(CustomType).am = name;
|
|
5348
|
+
protoOf(CustomRegex).am = name;
|
|
5349
|
+
protoOf(Invalid).am = name;
|
|
5350
|
+
protoOf(EndOfProgram).am = name;
|
|
5316
5351
|
//endregion
|
|
5317
5352
|
//region block: init
|
|
5318
5353
|
DEFAULT_PACKAGE_NAME = 'community.flock.wirespec.generated';
|