@flock/wirespec 0.5.2 → 0.6.1

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.
Files changed (27) hide show
  1. package/kotlin/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js +294 -294
  2. package/kotlin/kotlin-kotlin-stdlib-js-ir.js +6 -6
  3. package/kotlin/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
  4. package/kotlin/kotlin-openapi-bindings.js +3290 -3290
  5. package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1238 -1238
  6. package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
  7. package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +979 -979
  8. package/kotlin/wirespec-cli.js +80 -80
  9. package/kotlin/wirespec-core.js +379 -232
  10. package/kotlin/wirespec-core.js.map +1 -1
  11. package/kotlin/wirespec-lib.js +38 -38
  12. package/kotlin/wirespec-openapi.js +346 -317
  13. package/kotlin/wirespec-openapi.js.map +1 -1
  14. package/package.json +1 -1
  15. package/sync-hashes/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js.hash +1 -1
  16. package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.hash +1 -1
  17. package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.map.hash +1 -1
  18. package/sync-hashes/kotlin-openapi-bindings.js.hash +1 -1
  19. package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.hash +1 -1
  20. package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map.hash +1 -1
  21. package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.hash +1 -1
  22. package/sync-hashes/wirespec-cli.js.hash +1 -1
  23. package/sync-hashes/wirespec-core.js.hash +1 -1
  24. package/sync-hashes/wirespec-core.js.map.hash +1 -1
  25. package/sync-hashes/wirespec-lib.js.hash +1 -1
  26. package/sync-hashes/wirespec-openapi.js.hash +1 -1
  27. package/sync-hashes/wirespec-openapi.js.map.hash +1 -1
@@ -43,8 +43,6 @@
43
43
  var toIntOrNull = kotlin_kotlin.$_$.b9;
44
44
  var toSet = kotlin_kotlin.$_$.b6;
45
45
  var isBlank = kotlin_kotlin.$_$.q8;
46
- var Collection = kotlin_kotlin.$_$.m3;
47
- var isInterface = kotlin_kotlin.$_$.i7;
48
46
  var checkIndexOverflow = kotlin_kotlin.$_$.b4;
49
47
  var THROW_CCE = kotlin_kotlin.$_$.y9;
50
48
  var isCharSequence = kotlin_kotlin.$_$.e7;
@@ -54,6 +52,8 @@
54
52
  var charSequenceLength = kotlin_kotlin.$_$.o6;
55
53
  var charSequenceGet = kotlin_kotlin.$_$.n6;
56
54
  var toString_0 = kotlin_kotlin.$_$.l1;
55
+ var Collection = kotlin_kotlin.$_$.m3;
56
+ var isInterface = kotlin_kotlin.$_$.i7;
57
57
  var listOf_0 = kotlin_kotlin.$_$.i5;
58
58
  var interfaceMeta = kotlin_kotlin.$_$.z6;
59
59
  var captureStack = kotlin_kotlin.$_$.k6;
@@ -86,37 +86,37 @@
86
86
  setMetadataFor(Reported, 'Reported', classMeta, Enum);
87
87
  setMetadataFor(Wirespec, 'Wirespec', objectMeta);
88
88
  function withLogging(_this__u8e3s4, logger, block) {
89
- return logger.rk('Emitting Definition: Type', block);
89
+ return logger.tk('Emitting Definition: Type', block);
90
90
  }
91
91
  function withLogging_0(_this__u8e3s4, logger, block) {
92
- return logger.rk('Emitting Definition: Type Shape', block);
92
+ return logger.tk('Emitting Definition: Type Shape', block);
93
93
  }
94
94
  function withLogging_1(_this__u8e3s4, logger, block) {
95
- return logger.rk('Emitting Definition: Type Shape Field', block);
95
+ return logger.tk('Emitting Definition: Type Shape Field', block);
96
96
  }
97
97
  function withLogging_2(_this__u8e3s4, logger, block) {
98
- return logger.rk('Emitting Definition: Type Shape Field Key', block);
98
+ return logger.tk('Emitting Definition: Type Shape Field Key', block);
99
99
  }
100
100
  function withLogging_3(_this__u8e3s4, logger, block) {
101
- return logger.rk('Emitting Definition: Type Shape Field Value', block);
101
+ return logger.tk('Emitting Definition: Type Shape Field Value', block);
102
102
  }
103
103
  setMetadataFor(TypeDefinitionEmitterLogger, 'TypeDefinitionEmitterLogger', interfaceMeta);
104
104
  function withLogging_4(_this__u8e3s4, logger, block) {
105
- return logger.rk('Emitting Definition: Endpoint', block);
105
+ return logger.tk('Emitting Definition: Endpoint', block);
106
106
  }
107
107
  setMetadataFor(EnumDefinitionEmitterLogger, 'EnumDefinitionEmitterLogger', interfaceMeta);
108
108
  function withLogging_5(_this__u8e3s4, logger, block) {
109
- return logger.rk('Emitting Definition: Refined', block);
109
+ return logger.tk('Emitting Definition: Refined', block);
110
110
  }
111
111
  function withLogging_6(_this__u8e3s4, logger, block) {
112
- return logger.rk('Emitting Definition: Refined Validator', block);
112
+ return logger.tk('Emitting Definition: Refined Validator', block);
113
113
  }
114
114
  setMetadataFor(RefinedTypeDefinitionEmitterLogger, 'RefinedTypeDefinitionEmitterLogger', interfaceMeta);
115
115
  function withLogging_7(_this__u8e3s4, logger, block) {
116
- return logger.rk('Emitting Definition: Endpoint', block);
116
+ return logger.tk('Emitting Definition: Endpoint', block);
117
117
  }
118
118
  function withLogging_8(_this__u8e3s4, logger, block) {
119
- return logger.rk('Emitting Definition: Endpoint Segment', block);
119
+ return logger.tk('Emitting Definition: Endpoint Segment', block);
120
120
  }
121
121
  setMetadataFor(EndpointDefinitionEmitterLogger, 'EndpointDefinitionEmitterLogger', interfaceMeta);
122
122
  setMetadataFor(Emitter, 'Emitter', classMeta, VOID, [TypeDefinitionEmitterLogger, EnumDefinitionEmitterLogger, RefinedTypeDefinitionEmitterLogger, EndpointDefinitionEmitterLogger]);
@@ -1209,35 +1209,6 @@
1209
1209
  protoOf(JavaEmitter).ck = function (_this__u8e3s4) {
1210
1210
  return this.dk(_this__u8e3s4, this.oh_1, JavaEmitter$emit$lambda_7(_this__u8e3s4, this));
1211
1211
  };
1212
- function hasEndpoints(_this__u8e3s4, $this) {
1213
- var tmp$ret$0;
1214
- $l$block_0: {
1215
- // Inline function 'kotlin.collections.any' call
1216
- var tmp;
1217
- if (isInterface(_this__u8e3s4, Collection)) {
1218
- tmp = _this__u8e3s4.g();
1219
- } else {
1220
- tmp = false;
1221
- }
1222
- if (tmp) {
1223
- tmp$ret$0 = false;
1224
- break $l$block_0;
1225
- }
1226
- var tmp0_iterator = _this__u8e3s4.c();
1227
- while (tmp0_iterator.d()) {
1228
- var element = tmp0_iterator.e();
1229
- var tmp$ret$1;
1230
- // Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.hasEndpoints.<anonymous>' call
1231
- tmp$ret$1 = element instanceof Endpoint;
1232
- if (tmp$ret$1) {
1233
- tmp$ret$0 = true;
1234
- break $l$block_0;
1235
- }
1236
- }
1237
- tmp$ret$0 = false;
1238
- }
1239
- return tmp$ret$0;
1240
- }
1241
1212
  function emitRequestSignature_0(_this__u8e3s4, $this, content) {
1242
1213
  var tmp$ret$4;
1243
1214
  // Inline function 'kotlin.collections.map' call
@@ -1989,7 +1960,7 @@
1989
1960
  var result = item.j3();
1990
1961
  var tmp$ret$0;
1991
1962
  // Inline function 'kotlin.text.trimStart' call
1992
- var tmp0_trimStart = trimMargin('\n |' + (isBlank(this.gk_1) ? '' : 'package ' + this.gk_1) + '\n |' + (hasEndpoints(ast, this) ? this.hk_1 : '') + '\n |' + result + '\n ');
1963
+ var tmp0_trimStart = trimMargin('\n |' + (isBlank(this.gk_1) ? '' : 'package ' + this.gk_1) + '\n |' + (Companion_getInstance_1().jk(ast) ? this.hk_1 : '') + '\n |' + result + '\n ');
1993
1964
  tmp$ret$0 = toString(trimStart(isCharSequence(tmp0_trimStart) ? tmp0_trimStart : THROW_CCE()));
1994
1965
  tmp$ret$1 = to(name, tmp$ret$0);
1995
1966
  tmp0_mapTo.a(tmp$ret$1);
@@ -2059,7 +2030,7 @@
2059
2030
  }
2060
2031
  function Companion() {
2061
2032
  Companion_instance = this;
2062
- this.jk_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']);
2033
+ this.kk_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']);
2063
2034
  }
2064
2035
  var Companion_instance;
2065
2036
  function Companion_getInstance_0() {
@@ -2090,7 +2061,7 @@
2090
2061
  }
2091
2062
  function ScalaEmitter$emit$lambda_2($this_emit) {
2092
2063
  return function () {
2093
- return Companion_getInstance_0().jk_1.i1($this_emit.dj_1) ? '`' + $this_emit.dj_1 + '`' : $this_emit.dj_1;
2064
+ return Companion_getInstance_0().kk_1.i1($this_emit.dj_1) ? '`' + $this_emit.dj_1 + '`' : $this_emit.dj_1;
2094
2065
  };
2095
2066
  }
2096
2067
  function ScalaEmitter$emit$lambda_3($this_emit) {
@@ -2170,7 +2141,7 @@
2170
2141
  packageName = packageName === VOID ? get_DEFAULT_PACKAGE_NAME() : packageName;
2171
2142
  logger = logger === VOID ? get_noLogger() : logger;
2172
2143
  Emitter.call(this, logger);
2173
- this.mk_1 = packageName;
2144
+ this.nk_1 = packageName;
2174
2145
  }
2175
2146
  protoOf(ScalaEmitter).qh = function (ast) {
2176
2147
  var tmp$ret$2;
@@ -2186,7 +2157,7 @@
2186
2157
  // Inline function 'community.flock.wirespec.compiler.core.emit.ScalaEmitter.emit.<anonymous>' call
2187
2158
  var name = item.i3();
2188
2159
  var result = item.j3();
2189
- tmp$ret$0 = to(name, isBlank(this.mk_1) ? '' : 'package ' + this.mk_1 + '\n\n' + result);
2160
+ tmp$ret$0 = to(name, isBlank(this.nk_1) ? '' : 'package ' + this.nk_1 + '\n\n' + result);
2190
2161
  tmp0_mapTo.a(tmp$ret$0);
2191
2162
  }
2192
2163
  tmp$ret$1 = tmp0_mapTo;
@@ -2220,6 +2191,17 @@
2220
2191
  protoOf(ScalaEmitter).ck = function (_this__u8e3s4) {
2221
2192
  return this.dk(_this__u8e3s4, this.oh_1, ScalaEmitter$emit$lambda_7);
2222
2193
  };
2194
+ function emitName(_this__u8e3s4, $this) {
2195
+ var tmp0_safe_receiver = _this__u8e3s4.uh_1;
2196
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : emitContentType_0(tmp0_safe_receiver);
2197
+ return 'Request' + (tmp1_elvis_lhs == null ? 'unknown' : tmp1_elvis_lhs);
2198
+ }
2199
+ function emitName_0(_this__u8e3s4, $this) {
2200
+ var tmp = 'Response' + _this__u8e3s4.mi_1;
2201
+ var tmp0_safe_receiver = _this__u8e3s4.ni_1;
2202
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : emitContentType_0(tmp0_safe_receiver);
2203
+ return tmp + (tmp1_elvis_lhs == null ? 'unknown' : tmp1_elvis_lhs);
2204
+ }
2223
2205
  function TypeScriptEmitter$emit$lambda($this_emit, this$0) {
2224
2206
  return function () {
2225
2207
  return trimMargin('interface ' + $this_emit.ui_1 + ' {\n |' + this$0.wi($this_emit.vi_1) + '\n |}\n |\n |');
@@ -2232,13 +2214,13 @@
2232
2214
  }
2233
2215
  function TypeScriptEmitter$emit$lambda_0($this_emit, this$0) {
2234
2216
  return function () {
2235
- return dropLast(joinToString($this_emit.yi_1, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda(this$0)), 1);
2217
+ return joinToString($this_emit.yi_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda(this$0));
2236
2218
  };
2237
2219
  }
2238
2220
  function TypeScriptEmitter$emit$lambda_1(this$0, $this_emit) {
2239
2221
  return function () {
2240
2222
  Companion_getInstance_1();
2241
- return ' ' + this$0.cj($this_emit.zi_1) + ($this_emit.bj_1 ? '?' : '') + ': ' + this$0.di($this_emit.aj_1) + ',';
2223
+ return ' ' + this$0.cj($this_emit.zi_1) + ($this_emit.bj_1 ? '?' : '') + ': ' + this$0.di($this_emit.aj_1);
2242
2224
  };
2243
2225
  }
2244
2226
  function TypeScriptEmitter$emit$lambda_2($this_emit) {
@@ -2306,13 +2288,149 @@
2306
2288
  return "new RegExp('" + dropLast(drop($this_emit.pj_1, 1), 1) + "')";
2307
2289
  };
2308
2290
  }
2309
- function TypeScriptEmitter$emit$lambda_7() {
2310
- return '// TODO("Not yet implemented")\n';
2291
+ function TypeScriptEmitter$emit$lambda$lambda_1(this$0, $this_emit) {
2292
+ return function (it) {
2293
+ Companion_getInstance_1();
2294
+ var tmp = emitName(it, this$0);
2295
+ var tmp$ret$2;
2296
+ // Inline function 'kotlin.collections.map' call
2297
+ var tmp1_map = $this_emit.ii_1;
2298
+ var tmp$ret$1;
2299
+ // Inline function 'kotlin.collections.mapTo' call
2300
+ var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
2301
+ var tmp0_iterator = tmp1_map.c();
2302
+ while (tmp0_iterator.d()) {
2303
+ var item = tmp0_iterator.e();
2304
+ var tmp$ret$0;
2305
+ // Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>.<anonymous>' call
2306
+ tmp$ret$0 = this$0.xi(item);
2307
+ tmp0_mapTo.a(tmp$ret$0);
2308
+ }
2309
+ tmp$ret$1 = tmp0_mapTo;
2310
+ tmp$ret$2 = tmp$ret$1;
2311
+ var tmp_0 = joinToString(tmp$ret$2, ',');
2312
+ var tmp$ret$5;
2313
+ // Inline function 'kotlin.collections.map' call
2314
+ var tmp3_map = $this_emit.ii_1;
2315
+ var tmp$ret$4;
2316
+ // Inline function 'kotlin.collections.mapTo' call
2317
+ var tmp2_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp3_map, 10));
2318
+ var tmp0_iterator_0 = tmp3_map.c();
2319
+ while (tmp0_iterator_0.d()) {
2320
+ var item_0 = tmp0_iterator_0.e();
2321
+ var tmp$ret$3;
2322
+ // Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>.<anonymous>' call
2323
+ tmp$ret$3 = this$0.xi(item_0);
2324
+ tmp2_mapTo.a(tmp$ret$3);
2325
+ }
2326
+ tmp$ret$4 = tmp2_mapTo;
2327
+ tmp$ret$5 = tmp$ret$4;
2328
+ var tmp_1 = joinToString(tmp$ret$5, ',');
2329
+ var tmp0_safe_receiver = it.uh_1;
2330
+ var tmp_2;
2331
+ if (tmp0_safe_receiver == null) {
2332
+ tmp_2 = null;
2333
+ } else {
2334
+ var tmp$ret$7;
2335
+ // Inline function 'kotlin.let' call
2336
+ // Inline function 'kotlin.contracts.contract' call
2337
+ var tmp$ret$6;
2338
+ // Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>.<anonymous>' call
2339
+ tmp$ret$6 = '{ type: "' + tmp0_safe_receiver.vh_1 + '", body: ' + this$0.di(tmp0_safe_receiver.wh_1) + ' }';
2340
+ tmp$ret$7 = tmp$ret$6;
2341
+ tmp_2 = tmp$ret$7;
2342
+ }
2343
+ var tmp1_elvis_lhs = tmp_2;
2344
+ return ' ' + 'type ' + tmp + ' = { path: string, method: "' + $this_emit.fi_1 + '", headers: {' + tmp_0 + '}, query: {' + tmp_1 + '}, content: ' + (tmp1_elvis_lhs == null ? 'undefined' : tmp1_elvis_lhs) + ' } ';
2345
+ };
2346
+ }
2347
+ function TypeScriptEmitter$emit$lambda$lambda_2(this$0) {
2348
+ return function (it) {
2349
+ return emitName(it, this$0);
2350
+ };
2351
+ }
2352
+ function TypeScriptEmitter$emit$lambda$lambda_3(this$0) {
2353
+ return function (it) {
2354
+ Companion_getInstance_1();
2355
+ var tmp = emitName_0(it, this$0);
2356
+ var tmp0_safe_receiver = it.ni_1;
2357
+ var tmp_0;
2358
+ if (tmp0_safe_receiver == null) {
2359
+ tmp_0 = null;
2360
+ } else {
2361
+ var tmp$ret$1;
2362
+ // Inline function 'kotlin.let' call
2363
+ // Inline function 'kotlin.contracts.contract' call
2364
+ var tmp$ret$0;
2365
+ // Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>.<anonymous>' call
2366
+ tmp$ret$0 = '{ type: "' + tmp0_safe_receiver.vh_1 + '", body: ' + this$0.di(tmp0_safe_receiver.wh_1) + ' }';
2367
+ tmp$ret$1 = tmp$ret$0;
2368
+ tmp_0 = tmp$ret$1;
2369
+ }
2370
+ var tmp1_elvis_lhs = tmp_0;
2371
+ return ' ' + 'type ' + tmp + ' = { status: ' + it.mi_1 + ', content: ' + (tmp1_elvis_lhs == null ? 'undefined' : tmp1_elvis_lhs) + ' }';
2372
+ };
2373
+ }
2374
+ function TypeScriptEmitter$emit$lambda$lambda_4(this$0) {
2375
+ return function (it) {
2376
+ return emitName_0(it, this$0);
2377
+ };
2378
+ }
2379
+ function TypeScriptEmitter$emit$lambda_7($this_emit, this$0) {
2380
+ return function () {
2381
+ var tmp = toSet($this_emit.ki_1);
2382
+ var tmp_0 = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda_1(this$0, $this_emit));
2383
+ Companion_getInstance_1();
2384
+ var tmp_1 = toSet($this_emit.ki_1);
2385
+ var tmp_2 = joinToString(tmp_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda_2(this$0));
2386
+ var tmp_3 = toSet($this_emit.li_1);
2387
+ var tmp_4 = joinToString(tmp_3, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda_3(this$0));
2388
+ Companion_getInstance_1();
2389
+ var tmp_5 = toSet($this_emit.li_1);
2390
+ var tmp_6 = joinToString(tmp_5, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda_4(this$0));
2391
+ Companion_getInstance_1();
2392
+ Companion_getInstance_1();
2393
+ Companion_getInstance_1();
2394
+ var tmp_7 = Companion_getInstance_1().qj($this_emit.ei_1);
2395
+ Companion_getInstance_1();
2396
+ return trimMargin('\n |export namespace ' + $this_emit.ei_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 |}\n ');
2397
+ };
2311
2398
  }
2312
2399
  function TypeScriptEmitter(logger) {
2313
2400
  logger = logger === VOID ? get_noLogger() : logger;
2314
2401
  Emitter.call(this, logger);
2402
+ var tmp = this;
2403
+ Companion_getInstance_1();
2404
+ Companion_getInstance_1();
2405
+ Companion_getInstance_1();
2406
+ Companion_getInstance_1();
2407
+ tmp.qk_1 = trimMargin('\n |export namespace WirespecShared {\n |' + ' ' + 'export type Method = "GET" | "PUT" | "POST" | "DELETE" | "OPTIONS" | "HEAD" | "PATCH" | "TRACE"\n |' + ' ' + 'export 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 ');
2315
2408
  }
2409
+ protoOf(TypeScriptEmitter).qh = function (ast) {
2410
+ var tmp$ret$3;
2411
+ // Inline function 'kotlin.collections.map' call
2412
+ var tmp1_map = protoOf(Emitter).qh.call(this, ast);
2413
+ var tmp$ret$2;
2414
+ // Inline function 'kotlin.collections.mapTo' call
2415
+ var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
2416
+ var tmp0_iterator = tmp1_map.c();
2417
+ while (tmp0_iterator.d()) {
2418
+ var item = tmp0_iterator.e();
2419
+ var tmp$ret$1;
2420
+ // Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>' call
2421
+ var name = item.i3();
2422
+ var result = item.j3();
2423
+ var tmp$ret$0;
2424
+ // Inline function 'kotlin.text.trimStart' call
2425
+ var tmp0_trimStart = trimMargin('\n |' + (Companion_getInstance_1().jk(ast) ? this.qk_1 : '') + '\n |' + result + '\n ');
2426
+ tmp$ret$0 = toString(trimStart(isCharSequence(tmp0_trimStart) ? tmp0_trimStart : THROW_CCE()));
2427
+ tmp$ret$1 = to(name, tmp$ret$0);
2428
+ tmp0_mapTo.a(tmp$ret$1);
2429
+ }
2430
+ tmp$ret$2 = tmp0_mapTo;
2431
+ tmp$ret$3 = tmp$ret$2;
2432
+ return tmp$ret$3;
2433
+ };
2316
2434
  protoOf(TypeScriptEmitter).sj = function (_this__u8e3s4) {
2317
2435
  return this.tj(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda(_this__u8e3s4, this));
2318
2436
  };
@@ -2338,7 +2456,7 @@
2338
2456
  return this.bk(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda_6(_this__u8e3s4));
2339
2457
  };
2340
2458
  protoOf(TypeScriptEmitter).ck = function (_this__u8e3s4) {
2341
- return this.dk(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda_7);
2459
+ return this.dk(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda_7(_this__u8e3s4, this));
2342
2460
  };
2343
2461
  function WirespecEmitter$emit$lambda($this_emit, this$0) {
2344
2462
  return function () {
@@ -2533,6 +2651,35 @@
2533
2651
  tmp$ret$6 = tmp;
2534
2652
  return tmp$ret$6;
2535
2653
  };
2654
+ protoOf(Companion_0).jk = function (_this__u8e3s4) {
2655
+ var tmp$ret$0;
2656
+ $l$block_0: {
2657
+ // Inline function 'kotlin.collections.any' call
2658
+ var tmp;
2659
+ if (isInterface(_this__u8e3s4, Collection)) {
2660
+ tmp = _this__u8e3s4.g();
2661
+ } else {
2662
+ tmp = false;
2663
+ }
2664
+ if (tmp) {
2665
+ tmp$ret$0 = false;
2666
+ break $l$block_0;
2667
+ }
2668
+ var tmp0_iterator = _this__u8e3s4.c();
2669
+ while (tmp0_iterator.d()) {
2670
+ var element = tmp0_iterator.e();
2671
+ var tmp$ret$1;
2672
+ // Inline function 'community.flock.wirespec.compiler.core.emit.common.Companion.hasEndpoints.<anonymous>' call
2673
+ tmp$ret$1 = element instanceof Endpoint;
2674
+ if (tmp$ret$1) {
2675
+ tmp$ret$0 = true;
2676
+ break $l$block_0;
2677
+ }
2678
+ }
2679
+ tmp$ret$0 = false;
2680
+ }
2681
+ return tmp$ret$0;
2682
+ };
2536
2683
  var Companion_instance_0;
2537
2684
  function Companion_getInstance_1() {
2538
2685
  if (Companion_instance_0 == null)
@@ -2617,7 +2764,7 @@
2617
2764
  captureStack(this, NextException);
2618
2765
  }
2619
2766
  function WrongTokenException(expected, actual) {
2620
- ParserException.call(this, actual.uk_1, '' + expected.fc() + ' expected, not: ' + getKClassFromExpression(actual.sk_1).fc() + ' at line ' + actual.uk_1.vk_1 + ' and position ' + (actual.uk_1.wk_1 - actual.tk_1.length | 0));
2767
+ ParserException.call(this, actual.wk_1, '' + expected.fc() + ' expected, not: ' + getKClassFromExpression(actual.uk_1).fc() + ' at line ' + actual.wk_1.xk_1 + ' and position ' + (actual.wk_1.yk_1 - actual.vk_1.length | 0));
2621
2768
  captureStack(this, WrongTokenException);
2622
2769
  }
2623
2770
  function NullTokenException(message, coordinates) {
@@ -2635,7 +2782,7 @@
2635
2782
  function WirespecException(message, coordinates) {
2636
2783
  RuntimeException_init_$Init$(message, this);
2637
2784
  captureStack(this, WirespecException);
2638
- this.yk_1 = coordinates;
2785
+ this.al_1 = coordinates;
2639
2786
  }
2640
2787
  function optimize(_this__u8e3s4) {
2641
2788
  var tmp$ret$2;
@@ -2648,10 +2795,10 @@
2648
2795
  var item = tmp0_iterator.e();
2649
2796
  var tmp$ret$0;
2650
2797
  // Inline function 'community.flock.wirespec.compiler.core.optimize.optimize.<anonymous>' call
2651
- var tmp0_subject = item.sk_1;
2798
+ var tmp0_subject = item.uk_1;
2652
2799
  var tmp;
2653
2800
  if (tmp0_subject instanceof CustomRegex) {
2654
- tmp = item.zk(VOID, '"' + dropLast(drop(item.tk_1, 1), 2) + '"');
2801
+ tmp = item.bl(VOID, '"' + dropLast(drop(item.vk_1, 1), 2) + '"');
2655
2802
  } else {
2656
2803
  tmp = item;
2657
2804
  }
@@ -2701,14 +2848,14 @@
2701
2848
  protoOf(Custom).ik = function () {
2702
2849
  return this.jj_1;
2703
2850
  };
2704
- protoOf(Custom).al = function (value, isIterable, isMap) {
2851
+ protoOf(Custom).cl = function (value, isIterable, isMap) {
2705
2852
  return new Custom(value, isIterable, isMap);
2706
2853
  };
2707
- protoOf(Custom).bl = function (value, isIterable, isMap, $super) {
2854
+ protoOf(Custom).dl = function (value, isIterable, isMap, $super) {
2708
2855
  value = value === VOID ? this.hj_1 : value;
2709
2856
  isIterable = isIterable === VOID ? this.ij_1 : isIterable;
2710
2857
  isMap = isMap === VOID ? this.jj_1 : isMap;
2711
- return $super === VOID ? this.al(value, isIterable, isMap) : $super.al.call(this, value, isIterable, isMap);
2858
+ return $super === VOID ? this.cl(value, isIterable, isMap) : $super.cl.call(this, value, isIterable, isMap);
2712
2859
  };
2713
2860
  protoOf(Custom).toString = function () {
2714
2861
  return 'Custom(value=' + this.hj_1 + ', isIterable=' + this.ij_1 + ', isMap=' + this.jj_1 + ')';
@@ -3242,8 +3389,8 @@
3242
3389
  // Inline function 'arrow.core.raise.either.<anonymous>' call
3243
3390
  var tmp$ret$2;
3244
3391
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>' call
3245
- log(_this__u8e3s4.el_1, $this);
3246
- var tmp0_subject = _this__u8e3s4.el_1.sk_1;
3392
+ log(_this__u8e3s4.gl_1, $this);
3393
+ var tmp0_subject = _this__u8e3s4.gl_1.uk_1;
3247
3394
  var tmp_0;
3248
3395
  if (tmp0_subject instanceof WsTypeDef) {
3249
3396
  tmp_0 = raise.ch(parseTypeDeclaration(_this__u8e3s4, $this));
@@ -3258,10 +3405,10 @@
3258
3405
  // Inline function 'arrow.core.nel' call
3259
3406
  var tmp$ret$0;
3260
3407
  // Inline function 'kotlin.also' call
3261
- var tmp0_also = new WrongTokenException(getKClass(WsTypeDef), _this__u8e3s4.el_1);
3408
+ var tmp0_also = new WrongTokenException(getKClass(WsTypeDef), _this__u8e3s4.gl_1);
3262
3409
  // Inline function 'kotlin.contracts.contract' call
3263
3410
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
3264
- raise.ch(_this__u8e3s4.gl());
3411
+ raise.ch(_this__u8e3s4.il());
3265
3412
  tmp$ret$0 = tmp0_also;
3266
3413
  var tmp1_nel = tmp$ret$0;
3267
3414
  tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
@@ -3320,21 +3467,21 @@
3320
3467
  // Inline function 'arrow.core.raise.either.<anonymous>' call
3321
3468
  var tmp$ret$2;
3322
3469
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDeclaration.<anonymous>' call
3323
- raise.ch(_this__u8e3s4.gl());
3324
- log(_this__u8e3s4.el_1, $this);
3325
- var tmp0_subject = _this__u8e3s4.el_1.sk_1;
3470
+ raise.ch(_this__u8e3s4.il());
3471
+ log(_this__u8e3s4.gl_1, $this);
3472
+ var tmp0_subject = _this__u8e3s4.gl_1.uk_1;
3326
3473
  var tmp_0;
3327
3474
  if (tmp0_subject instanceof CustomType) {
3328
- tmp_0 = raise.ch(parseTypeDefinition(_this__u8e3s4, $this, _this__u8e3s4.el_1.tk_1));
3475
+ tmp_0 = raise.ch(parseTypeDefinition(_this__u8e3s4, $this, _this__u8e3s4.gl_1.vk_1));
3329
3476
  } else {
3330
3477
  var tmp$ret$1;
3331
3478
  // Inline function 'arrow.core.nel' call
3332
3479
  var tmp$ret$0;
3333
3480
  // Inline function 'kotlin.also' call
3334
- var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.el_1);
3481
+ var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.gl_1);
3335
3482
  // Inline function 'kotlin.contracts.contract' call
3336
3483
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDeclaration.<anonymous>.<anonymous>' call
3337
- raise.ch(_this__u8e3s4.gl());
3484
+ raise.ch(_this__u8e3s4.il());
3338
3485
  tmp$ret$0 = tmp0_also;
3339
3486
  var tmp1_nel = tmp$ret$0;
3340
3487
  tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
@@ -3391,11 +3538,11 @@
3391
3538
  // Inline function 'arrow.core.raise.either.<anonymous>' call
3392
3539
  var tmp$ret$5;
3393
3540
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDefinition.<anonymous>' call
3394
- raise.ch(_this__u8e3s4.gl());
3395
- log(_this__u8e3s4.el_1, $this);
3541
+ raise.ch(_this__u8e3s4.il());
3542
+ log(_this__u8e3s4.gl_1, $this);
3396
3543
  var tmp$ret$4;
3397
3544
  // Inline function 'kotlin.also' call
3398
- var tmp0_subject = _this__u8e3s4.el_1.sk_1;
3545
+ var tmp0_subject = _this__u8e3s4.gl_1.uk_1;
3399
3546
  var tmp_0;
3400
3547
  if (tmp0_subject instanceof LeftCurly) {
3401
3548
  tmp_0 = new Type_0(typeName, raise.ch(parseTypeShape(_this__u8e3s4, $this)));
@@ -3404,10 +3551,10 @@
3404
3551
  // Inline function 'arrow.core.nel' call
3405
3552
  var tmp$ret$0;
3406
3553
  // Inline function 'kotlin.also' call
3407
- var tmp0_also = new WrongTokenException(getKClass(LeftCurly), _this__u8e3s4.el_1);
3554
+ var tmp0_also = new WrongTokenException(getKClass(LeftCurly), _this__u8e3s4.gl_1);
3408
3555
  // Inline function 'kotlin.contracts.contract' call
3409
3556
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDefinition.<anonymous>.<anonymous>' call
3410
- raise.ch(_this__u8e3s4.gl());
3557
+ raise.ch(_this__u8e3s4.il());
3411
3558
  tmp$ret$0 = tmp0_also;
3412
3559
  var tmp1_nel = tmp$ret$0;
3413
3560
  tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
@@ -3416,18 +3563,18 @@
3416
3563
  var tmp2_also = tmp_0;
3417
3564
  // Inline function 'kotlin.contracts.contract' call
3418
3565
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDefinition.<anonymous>.<anonymous>' call
3419
- var tmp0_subject_0 = _this__u8e3s4.el_1.sk_1;
3566
+ var tmp0_subject_0 = _this__u8e3s4.gl_1.uk_1;
3420
3567
  if (tmp0_subject_0 instanceof RightCurly)
3421
- raise.ch(_this__u8e3s4.gl());
3568
+ raise.ch(_this__u8e3s4.il());
3422
3569
  else {
3423
3570
  var tmp$ret$3;
3424
3571
  // Inline function 'arrow.core.nel' call
3425
3572
  var tmp$ret$2;
3426
3573
  // Inline function 'kotlin.also' call
3427
- var tmp0_also_0 = new WrongTokenException(getKClass(RightCurly), _this__u8e3s4.el_1);
3574
+ var tmp0_also_0 = new WrongTokenException(getKClass(RightCurly), _this__u8e3s4.gl_1);
3428
3575
  // Inline function 'kotlin.contracts.contract' call
3429
3576
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDefinition.<anonymous>.<anonymous>.<anonymous>' call
3430
- raise.ch(_this__u8e3s4.gl());
3577
+ raise.ch(_this__u8e3s4.il());
3431
3578
  tmp$ret$2 = tmp0_also_0;
3432
3579
  var tmp1_nel_0 = tmp$ret$2;
3433
3580
  tmp$ret$3 = nonEmptyListOf(tmp1_nel_0, []);
@@ -3485,11 +3632,11 @@
3485
3632
  // Inline function 'arrow.core.raise.either.<anonymous>' call
3486
3633
  var tmp$ret$7;
3487
3634
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeShape.<anonymous>' call
3488
- raise.ch(_this__u8e3s4.gl());
3489
- log(_this__u8e3s4.el_1, $this);
3635
+ raise.ch(_this__u8e3s4.il());
3636
+ log(_this__u8e3s4.gl_1, $this);
3490
3637
  var tmp$ret$6;
3491
3638
  // Inline function 'kotlin.let' call
3492
- var tmp0_subject = _this__u8e3s4.el_1.sk_1;
3639
+ var tmp0_subject = _this__u8e3s4.gl_1.uk_1;
3493
3640
  var tmp_0;
3494
3641
  if (tmp0_subject instanceof CustomValue) {
3495
3642
  var tmp$ret$3;
@@ -3500,21 +3647,21 @@
3500
3647
  var tmp0_apply = tmp$ret$0;
3501
3648
  // Inline function 'kotlin.contracts.contract' call
3502
3649
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeShape.<anonymous>.<anonymous>' call
3503
- tmp0_apply.a(raise.ch(parseField(_this__u8e3s4, $this, new Identifier(_this__u8e3s4.el_1.tk_1))));
3504
- while (equals(_this__u8e3s4.el_1.sk_1, Comma_getInstance())) {
3505
- raise.ch(_this__u8e3s4.gl());
3506
- var tmp0_subject_0 = _this__u8e3s4.el_1.sk_1;
3650
+ tmp0_apply.a(raise.ch(parseField(_this__u8e3s4, $this, new Identifier(_this__u8e3s4.gl_1.vk_1))));
3651
+ while (equals(_this__u8e3s4.gl_1.uk_1, Comma_getInstance())) {
3652
+ raise.ch(_this__u8e3s4.il());
3653
+ var tmp0_subject_0 = _this__u8e3s4.gl_1.uk_1;
3507
3654
  if (tmp0_subject_0 instanceof CustomValue) {
3508
- tmp0_apply.a(raise.ch(parseField(_this__u8e3s4, $this, new Identifier(_this__u8e3s4.el_1.tk_1))));
3655
+ tmp0_apply.a(raise.ch(parseField(_this__u8e3s4, $this, new Identifier(_this__u8e3s4.gl_1.vk_1))));
3509
3656
  } else {
3510
3657
  var tmp$ret$2;
3511
3658
  // Inline function 'arrow.core.nel' call
3512
3659
  var tmp$ret$1;
3513
3660
  // Inline function 'kotlin.also' call
3514
- var tmp0_also = new WrongTokenException(getKClass(CustomValue), _this__u8e3s4.el_1);
3661
+ var tmp0_also = new WrongTokenException(getKClass(CustomValue), _this__u8e3s4.gl_1);
3515
3662
  // Inline function 'kotlin.contracts.contract' call
3516
3663
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeShape.<anonymous>.<anonymous>.<anonymous>' call
3517
- raise.ch(_this__u8e3s4.gl());
3664
+ raise.ch(_this__u8e3s4.il());
3518
3665
  tmp$ret$1 = tmp0_also;
3519
3666
  var tmp1_nel = tmp$ret$1;
3520
3667
  tmp$ret$2 = nonEmptyListOf(tmp1_nel, []);
@@ -3528,10 +3675,10 @@
3528
3675
  // Inline function 'arrow.core.nel' call
3529
3676
  var tmp$ret$4;
3530
3677
  // Inline function 'kotlin.also' call
3531
- var tmp1_also = new WrongTokenException(getKClass(CustomValue), _this__u8e3s4.el_1);
3678
+ var tmp1_also = new WrongTokenException(getKClass(CustomValue), _this__u8e3s4.gl_1);
3532
3679
  // Inline function 'kotlin.contracts.contract' call
3533
3680
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeShape.<anonymous>.<anonymous>' call
3534
- raise.ch(_this__u8e3s4.gl());
3681
+ raise.ch(_this__u8e3s4.il());
3535
3682
  tmp$ret$4 = tmp1_also;
3536
3683
  var tmp2_nel = tmp$ret$4;
3537
3684
  tmp$ret$5 = nonEmptyListOf(tmp2_nel, []);
@@ -3591,37 +3738,37 @@
3591
3738
  // Inline function 'arrow.core.raise.either.<anonymous>' call
3592
3739
  var tmp$ret$5;
3593
3740
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseField.<anonymous>' call
3594
- raise.ch(_this__u8e3s4.gl());
3595
- log(_this__u8e3s4.el_1, $this);
3596
- var tmp0_subject = _this__u8e3s4.el_1.sk_1;
3741
+ raise.ch(_this__u8e3s4.il());
3742
+ log(_this__u8e3s4.gl_1, $this);
3743
+ var tmp0_subject = _this__u8e3s4.gl_1.uk_1;
3597
3744
  if (tmp0_subject instanceof Colon)
3598
- raise.ch(_this__u8e3s4.gl());
3745
+ raise.ch(_this__u8e3s4.il());
3599
3746
  else {
3600
3747
  var tmp$ret$1;
3601
3748
  // Inline function 'arrow.core.nel' call
3602
3749
  var tmp$ret$0;
3603
3750
  // Inline function 'kotlin.also' call
3604
- var tmp0_also = new WrongTokenException(getKClass(Colon), _this__u8e3s4.el_1);
3751
+ var tmp0_also = new WrongTokenException(getKClass(Colon), _this__u8e3s4.gl_1);
3605
3752
  // Inline function 'kotlin.contracts.contract' call
3606
3753
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseField.<anonymous>.<anonymous>' call
3607
- raise.ch(_this__u8e3s4.gl());
3754
+ raise.ch(_this__u8e3s4.il());
3608
3755
  tmp$ret$0 = tmp0_also;
3609
3756
  var tmp1_nel = tmp$ret$0;
3610
3757
  tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
3611
3758
  raise.bh(tmp$ret$1);
3612
3759
  }
3613
- var type = _this__u8e3s4.el_1.sk_1;
3760
+ var type = _this__u8e3s4.gl_1.uk_1;
3614
3761
  var tmp_0;
3615
3762
  if (isInterface(type, WsType)) {
3616
- var tmp_1 = raise.ch(parseFieldValue(_this__u8e3s4, $this, type, _this__u8e3s4.el_1.tk_1));
3763
+ var tmp_1 = raise.ch(parseFieldValue(_this__u8e3s4, $this, type, _this__u8e3s4.gl_1.vk_1));
3617
3764
  var tmp$ret$2;
3618
3765
  // Inline function 'kotlin.also' call
3619
- var tmp_2 = _this__u8e3s4.el_1.sk_1;
3766
+ var tmp_2 = _this__u8e3s4.gl_1.uk_1;
3620
3767
  var tmp2_also = tmp_2 instanceof QuestionMark;
3621
3768
  // Inline function 'kotlin.contracts.contract' call
3622
3769
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseField.<anonymous>.<anonymous>' call
3623
3770
  if (tmp2_also)
3624
- raise.ch(_this__u8e3s4.gl());
3771
+ raise.ch(_this__u8e3s4.il());
3625
3772
  tmp$ret$2 = tmp2_also;
3626
3773
  tmp_0 = new Field(identifier, tmp_1, tmp$ret$2);
3627
3774
  } else {
@@ -3629,10 +3776,10 @@
3629
3776
  // Inline function 'arrow.core.nel' call
3630
3777
  var tmp$ret$3;
3631
3778
  // Inline function 'kotlin.also' call
3632
- var tmp3_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.el_1);
3779
+ var tmp3_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.gl_1);
3633
3780
  // Inline function 'kotlin.contracts.contract' call
3634
3781
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseField.<anonymous>.<anonymous>' call
3635
- raise.ch(_this__u8e3s4.gl());
3782
+ raise.ch(_this__u8e3s4.il());
3636
3783
  tmp$ret$3 = tmp3_also;
3637
3784
  var tmp4_nel = tmp$ret$3;
3638
3785
  tmp$ret$4 = nonEmptyListOf(tmp4_nel, []);
@@ -3689,16 +3836,16 @@
3689
3836
  // Inline function 'arrow.core.raise.either.<anonymous>' call
3690
3837
  var tmp$ret$1;
3691
3838
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseFieldValue.<anonymous>' call
3692
- raise.ch(_this__u8e3s4.gl());
3693
- log(_this__u8e3s4.el_1, $this);
3839
+ raise.ch(_this__u8e3s4.il());
3840
+ log(_this__u8e3s4.gl_1, $this);
3694
3841
  var tmp$ret$0;
3695
3842
  // Inline function 'kotlin.also' call
3696
- var tmp_0 = _this__u8e3s4.el_1.sk_1;
3843
+ var tmp_0 = _this__u8e3s4.gl_1.uk_1;
3697
3844
  var tmp0_also = tmp_0 instanceof Brackets;
3698
3845
  // Inline function 'kotlin.contracts.contract' call
3699
3846
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseFieldValue.<anonymous>.<anonymous>' call
3700
3847
  if (tmp0_also)
3701
- raise.ch(_this__u8e3s4.gl());
3848
+ raise.ch(_this__u8e3s4.il());
3702
3849
  tmp$ret$0 = tmp0_also;
3703
3850
  var isIterable = tmp$ret$0;
3704
3851
  var tmp0_subject = wsType;
@@ -3771,21 +3918,21 @@
3771
3918
  // Inline function 'arrow.core.raise.either.<anonymous>' call
3772
3919
  var tmp$ret$2;
3773
3920
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDeclaration.<anonymous>' call
3774
- raise.ch(_this__u8e3s4.gl());
3775
- log(_this__u8e3s4.el_1, $this);
3776
- var tmp0_subject = _this__u8e3s4.el_1.sk_1;
3921
+ raise.ch(_this__u8e3s4.il());
3922
+ log(_this__u8e3s4.gl_1, $this);
3923
+ var tmp0_subject = _this__u8e3s4.gl_1.uk_1;
3777
3924
  var tmp_0;
3778
3925
  if (tmp0_subject instanceof CustomType) {
3779
- tmp_0 = raise.ch(parseEnumTypeDefinition(_this__u8e3s4, $this, _this__u8e3s4.el_1.tk_1));
3926
+ tmp_0 = raise.ch(parseEnumTypeDefinition(_this__u8e3s4, $this, _this__u8e3s4.gl_1.vk_1));
3780
3927
  } else {
3781
3928
  var tmp$ret$1;
3782
3929
  // Inline function 'arrow.core.nel' call
3783
3930
  var tmp$ret$0;
3784
3931
  // Inline function 'kotlin.also' call
3785
- var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.el_1);
3932
+ var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.gl_1);
3786
3933
  // Inline function 'kotlin.contracts.contract' call
3787
3934
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDeclaration.<anonymous>.<anonymous>' call
3788
- raise.ch(_this__u8e3s4.gl());
3935
+ raise.ch(_this__u8e3s4.il());
3789
3936
  tmp$ret$0 = tmp0_also;
3790
3937
  var tmp1_nel = tmp$ret$0;
3791
3938
  tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
@@ -3842,11 +3989,11 @@
3842
3989
  // Inline function 'arrow.core.raise.either.<anonymous>' call
3843
3990
  var tmp$ret$5;
3844
3991
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDefinition.<anonymous>' call
3845
- raise.ch(_this__u8e3s4.gl());
3846
- log(_this__u8e3s4.el_1, $this);
3992
+ raise.ch(_this__u8e3s4.il());
3993
+ log(_this__u8e3s4.gl_1, $this);
3847
3994
  var tmp$ret$4;
3848
3995
  // Inline function 'kotlin.also' call
3849
- var tmp0_subject = _this__u8e3s4.el_1.sk_1;
3996
+ var tmp0_subject = _this__u8e3s4.gl_1.uk_1;
3850
3997
  var tmp_0;
3851
3998
  if (tmp0_subject instanceof LeftCurly) {
3852
3999
  tmp_0 = new Enum_0(typeName, raise.ch(parseEnumTypeEntries(_this__u8e3s4, $this)));
@@ -3855,10 +4002,10 @@
3855
4002
  // Inline function 'arrow.core.nel' call
3856
4003
  var tmp$ret$0;
3857
4004
  // Inline function 'kotlin.also' call
3858
- var tmp0_also = new WrongTokenException(getKClass(LeftCurly), _this__u8e3s4.el_1);
4005
+ var tmp0_also = new WrongTokenException(getKClass(LeftCurly), _this__u8e3s4.gl_1);
3859
4006
  // Inline function 'kotlin.contracts.contract' call
3860
4007
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDefinition.<anonymous>.<anonymous>' call
3861
- raise.ch(_this__u8e3s4.gl());
4008
+ raise.ch(_this__u8e3s4.il());
3862
4009
  tmp$ret$0 = tmp0_also;
3863
4010
  var tmp1_nel = tmp$ret$0;
3864
4011
  tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
@@ -3867,18 +4014,18 @@
3867
4014
  var tmp2_also = tmp_0;
3868
4015
  // Inline function 'kotlin.contracts.contract' call
3869
4016
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDefinition.<anonymous>.<anonymous>' call
3870
- var tmp0_subject_0 = _this__u8e3s4.el_1.sk_1;
4017
+ var tmp0_subject_0 = _this__u8e3s4.gl_1.uk_1;
3871
4018
  if (tmp0_subject_0 instanceof RightCurly)
3872
- raise.ch(_this__u8e3s4.gl());
4019
+ raise.ch(_this__u8e3s4.il());
3873
4020
  else {
3874
4021
  var tmp$ret$3;
3875
4022
  // Inline function 'arrow.core.nel' call
3876
4023
  var tmp$ret$2;
3877
4024
  // Inline function 'kotlin.also' call
3878
- var tmp0_also_0 = new WrongTokenException(getKClass(RightCurly), _this__u8e3s4.el_1);
4025
+ var tmp0_also_0 = new WrongTokenException(getKClass(RightCurly), _this__u8e3s4.gl_1);
3879
4026
  // Inline function 'kotlin.contracts.contract' call
3880
4027
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDefinition.<anonymous>.<anonymous>.<anonymous>' call
3881
- raise.ch(_this__u8e3s4.gl());
4028
+ raise.ch(_this__u8e3s4.il());
3882
4029
  tmp$ret$2 = tmp0_also_0;
3883
4030
  var tmp1_nel_0 = tmp$ret$2;
3884
4031
  tmp$ret$3 = nonEmptyListOf(tmp1_nel_0, []);
@@ -3936,9 +4083,9 @@
3936
4083
  // Inline function 'arrow.core.raise.either.<anonymous>' call
3937
4084
  var tmp$ret$7;
3938
4085
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>' call
3939
- raise.ch(_this__u8e3s4.gl());
3940
- log(_this__u8e3s4.el_1, $this);
3941
- var tmp0_subject = _this__u8e3s4.el_1.sk_1;
4086
+ raise.ch(_this__u8e3s4.il());
4087
+ log(_this__u8e3s4.gl_1, $this);
4088
+ var tmp0_subject = _this__u8e3s4.gl_1.uk_1;
3942
4089
  var tmp_0;
3943
4090
  if (tmp0_subject instanceof CustomType) {
3944
4091
  var tmp$ret$4;
@@ -3949,28 +4096,28 @@
3949
4096
  var tmp0_apply = tmp$ret$0;
3950
4097
  // Inline function 'kotlin.contracts.contract' call
3951
4098
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>.<anonymous>' call
3952
- tmp0_apply.a(_this__u8e3s4.el_1.tk_1);
3953
- raise.ch(_this__u8e3s4.gl());
3954
- while (equals(_this__u8e3s4.el_1.sk_1, Comma_getInstance())) {
3955
- raise.ch(_this__u8e3s4.gl());
3956
- var tmp0_subject_0 = _this__u8e3s4.el_1.sk_1;
4099
+ tmp0_apply.a(_this__u8e3s4.gl_1.vk_1);
4100
+ raise.ch(_this__u8e3s4.il());
4101
+ while (equals(_this__u8e3s4.gl_1.uk_1, Comma_getInstance())) {
4102
+ raise.ch(_this__u8e3s4.il());
4103
+ var tmp0_subject_0 = _this__u8e3s4.gl_1.uk_1;
3957
4104
  if (tmp0_subject_0 instanceof CustomType) {
3958
4105
  var tmp$ret$1;
3959
4106
  // Inline function 'kotlin.also' call
3960
- var tmp0_also = tmp0_apply.a(_this__u8e3s4.el_1.tk_1);
4107
+ var tmp0_also = tmp0_apply.a(_this__u8e3s4.gl_1.vk_1);
3961
4108
  // Inline function 'kotlin.contracts.contract' call
3962
4109
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
3963
- raise.ch(_this__u8e3s4.gl());
4110
+ raise.ch(_this__u8e3s4.il());
3964
4111
  tmp$ret$1 = tmp0_also;
3965
4112
  } else {
3966
4113
  var tmp$ret$3;
3967
4114
  // Inline function 'arrow.core.nel' call
3968
4115
  var tmp$ret$2;
3969
4116
  // Inline function 'kotlin.also' call
3970
- var tmp1_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.el_1);
4117
+ var tmp1_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.gl_1);
3971
4118
  // Inline function 'kotlin.contracts.contract' call
3972
4119
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
3973
- raise.ch(_this__u8e3s4.gl());
4120
+ raise.ch(_this__u8e3s4.il());
3974
4121
  tmp$ret$2 = tmp1_also;
3975
4122
  var tmp2_nel = tmp$ret$2;
3976
4123
  tmp$ret$3 = nonEmptyListOf(tmp2_nel, []);
@@ -3984,10 +4131,10 @@
3984
4131
  // Inline function 'arrow.core.nel' call
3985
4132
  var tmp$ret$5;
3986
4133
  // Inline function 'kotlin.also' call
3987
- var tmp1_also_0 = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.el_1);
4134
+ var tmp1_also_0 = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.gl_1);
3988
4135
  // Inline function 'kotlin.contracts.contract' call
3989
4136
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>.<anonymous>' call
3990
- raise.ch(_this__u8e3s4.gl());
4137
+ raise.ch(_this__u8e3s4.il());
3991
4138
  tmp$ret$5 = tmp1_also_0;
3992
4139
  var tmp2_nel_0 = tmp$ret$5;
3993
4140
  tmp$ret$6 = nonEmptyListOf(tmp2_nel_0, []);
@@ -4044,21 +4191,21 @@
4044
4191
  // Inline function 'arrow.core.raise.either.<anonymous>' call
4045
4192
  var tmp$ret$2;
4046
4193
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseRefinedTypeDeclaration.<anonymous>' call
4047
- raise.ch(_this__u8e3s4.gl());
4048
- log(_this__u8e3s4.el_1, $this);
4049
- var tmp0_subject = _this__u8e3s4.el_1.sk_1;
4194
+ raise.ch(_this__u8e3s4.il());
4195
+ log(_this__u8e3s4.gl_1, $this);
4196
+ var tmp0_subject = _this__u8e3s4.gl_1.uk_1;
4050
4197
  var tmp_0;
4051
4198
  if (tmp0_subject instanceof CustomType) {
4052
- tmp_0 = raise.ch(parseCustomRegex(_this__u8e3s4, $this, _this__u8e3s4.el_1.tk_1));
4199
+ tmp_0 = raise.ch(parseCustomRegex(_this__u8e3s4, $this, _this__u8e3s4.gl_1.vk_1));
4053
4200
  } else {
4054
4201
  var tmp$ret$1;
4055
4202
  // Inline function 'arrow.core.nel' call
4056
4203
  var tmp$ret$0;
4057
4204
  // Inline function 'kotlin.also' call
4058
- var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.el_1);
4205
+ var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.gl_1);
4059
4206
  // Inline function 'kotlin.contracts.contract' call
4060
4207
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseRefinedTypeDeclaration.<anonymous>.<anonymous>' call
4061
- raise.ch(_this__u8e3s4.gl());
4208
+ raise.ch(_this__u8e3s4.il());
4062
4209
  tmp$ret$0 = tmp0_also;
4063
4210
  var tmp1_nel = tmp$ret$0;
4064
4211
  tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
@@ -4115,23 +4262,23 @@
4115
4262
  // Inline function 'arrow.core.raise.either.<anonymous>' call
4116
4263
  var tmp$ret$3;
4117
4264
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseCustomRegex.<anonymous>' call
4118
- raise.ch(_this__u8e3s4.gl());
4119
- log(_this__u8e3s4.el_1, $this);
4265
+ raise.ch(_this__u8e3s4.il());
4266
+ log(_this__u8e3s4.gl_1, $this);
4120
4267
  var tmp$ret$2;
4121
4268
  // Inline function 'kotlin.also' call
4122
- var tmp0_subject = _this__u8e3s4.el_1.sk_1;
4269
+ var tmp0_subject = _this__u8e3s4.gl_1.uk_1;
4123
4270
  var tmp_0;
4124
4271
  if (tmp0_subject instanceof CustomRegex) {
4125
- tmp_0 = new Refined(typeName, new Validator(_this__u8e3s4.el_1.tk_1));
4272
+ tmp_0 = new Refined(typeName, new Validator(_this__u8e3s4.gl_1.vk_1));
4126
4273
  } else {
4127
4274
  var tmp$ret$1;
4128
4275
  // Inline function 'arrow.core.nel' call
4129
4276
  var tmp$ret$0;
4130
4277
  // Inline function 'kotlin.also' call
4131
- var tmp0_also = new WrongTokenException(getKClass(CustomRegex), _this__u8e3s4.el_1);
4278
+ var tmp0_also = new WrongTokenException(getKClass(CustomRegex), _this__u8e3s4.gl_1);
4132
4279
  // Inline function 'kotlin.contracts.contract' call
4133
4280
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseCustomRegex.<anonymous>.<anonymous>' call
4134
- raise.ch(_this__u8e3s4.gl());
4281
+ raise.ch(_this__u8e3s4.il());
4135
4282
  tmp$ret$0 = tmp0_also;
4136
4283
  var tmp1_nel = tmp$ret$0;
4137
4284
  tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
@@ -4140,7 +4287,7 @@
4140
4287
  var tmp2_also = tmp_0;
4141
4288
  // Inline function 'kotlin.contracts.contract' call
4142
4289
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseCustomRegex.<anonymous>.<anonymous>' call
4143
- raise.ch(_this__u8e3s4.gl());
4290
+ raise.ch(_this__u8e3s4.il());
4144
4291
  tmp$ret$2 = tmp2_also;
4145
4292
  tmp$ret$3 = tmp$ret$2;
4146
4293
  tmp$ret$4 = tmp$ret$3;
@@ -4178,7 +4325,7 @@
4178
4325
  return tmp$ret$9;
4179
4326
  }
4180
4327
  function log(_this__u8e3s4, $this) {
4181
- return $this.mh_1.ih('Parsing ' + _this__u8e3s4.sk_1 + ' at line ' + _this__u8e3s4.uk_1.vk_1 + ' position ' + _this__u8e3s4.uk_1.wk_1);
4328
+ return $this.mh_1.ih('Parsing ' + _this__u8e3s4.uk_1 + ' at line ' + _this__u8e3s4.wk_1.xk_1 + ' position ' + _this__u8e3s4.wk_1.yk_1);
4182
4329
  }
4183
4330
  function Parser(logger) {
4184
4331
  this.mh_1 = logger;
@@ -4194,7 +4341,7 @@
4194
4341
  var element = tmp0_iterator.e();
4195
4342
  var tmp$ret$0;
4196
4343
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parse.<anonymous>' call
4197
- var tmp = element.sk_1;
4344
+ var tmp = element.uk_1;
4198
4345
  tmp$ret$0 = isInterface(tmp, WhiteSpace);
4199
4346
  if (!tmp$ret$0) {
4200
4347
  tmp0_filterNotTo.a(element);
@@ -4218,7 +4365,7 @@
4218
4365
  // Inline function 'kotlin.contracts.contract' call
4219
4366
  var tmp$ret$0;
4220
4367
  // Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>.<anonymous>' call
4221
- tmp$ret$0 = "Eating: '" + tmp0_safe_receiver.tk_1 + "', ";
4368
+ tmp$ret$0 = "Eating: '" + tmp0_safe_receiver.vk_1 + "', ";
4222
4369
  tmp$ret$1 = tmp$ret$0;
4223
4370
  tmp = tmp$ret$1;
4224
4371
  }
@@ -4226,14 +4373,14 @@
4226
4373
  var prev = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
4227
4374
  var tmp$ret$3;
4228
4375
  // Inline function 'kotlin.run' call
4229
- var tmp0_run = $this.el_1;
4376
+ var tmp0_run = $this.gl_1;
4230
4377
  // Inline function 'kotlin.contracts.contract' call
4231
4378
  var tmp$ret$2;
4232
4379
  // Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>.<anonymous>' call
4233
- tmp$ret$2 = "Current: '" + tmp0_run.tk_1 + "'";
4380
+ tmp$ret$2 = "Current: '" + tmp0_run.vk_1 + "'";
4234
4381
  tmp$ret$3 = tmp$ret$2;
4235
4382
  var curr = tmp$ret$3;
4236
- var tmp2_safe_receiver = $this.fl_1;
4383
+ var tmp2_safe_receiver = $this.hl_1;
4237
4384
  var tmp_0;
4238
4385
  if (tmp2_safe_receiver == null) {
4239
4386
  tmp_0 = null;
@@ -4243,13 +4390,13 @@
4243
4390
  // Inline function 'kotlin.contracts.contract' call
4244
4391
  var tmp$ret$4;
4245
4392
  // Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>.<anonymous>' call
4246
- tmp$ret$4 = ", Next: '" + tmp2_safe_receiver.tk_1 + "'";
4393
+ tmp$ret$4 = ", Next: '" + tmp2_safe_receiver.vk_1 + "'";
4247
4394
  tmp$ret$5 = tmp$ret$4;
4248
4395
  tmp_0 = tmp$ret$5;
4249
4396
  }
4250
4397
  var tmp3_elvis_lhs = tmp_0;
4251
4398
  var next = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
4252
- $this.cl_1.ih(prev + curr + next);
4399
+ $this.el_1.ih(prev + curr + next);
4253
4400
  tmp$ret$6 = Unit_getInstance();
4254
4401
  return tmp$ret$6;
4255
4402
  }
@@ -4269,7 +4416,7 @@
4269
4416
  var tmp0_success = Companion_getInstance();
4270
4417
  var tmp$ret$0;
4271
4418
  // Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.nextToken.<anonymous>' call
4272
- tmp$ret$0 = $this.dl_1.e();
4419
+ tmp$ret$0 = $this.fl_1.e();
4273
4420
  var tmp1_success = tmp$ret$0;
4274
4421
  tmp$ret$1 = _Result___init__impl__xyqfz8(tmp1_success);
4275
4422
  tmp = tmp$ret$1;
@@ -4300,8 +4447,8 @@
4300
4447
  return tmp$ret$4;
4301
4448
  }
4302
4449
  function TokenProvider(logger, tokenIterator) {
4303
- this.cl_1 = logger;
4304
- this.dl_1 = tokenIterator;
4450
+ this.el_1 = logger;
4451
+ this.fl_1 = tokenIterator;
4305
4452
  var tmp = this;
4306
4453
  var tmp0_elvis_lhs = nextToken(this);
4307
4454
  var tmp_0;
@@ -4310,14 +4457,14 @@
4310
4457
  } else {
4311
4458
  tmp_0 = tmp0_elvis_lhs;
4312
4459
  }
4313
- tmp.el_1 = tmp_0;
4314
- this.fl_1 = nextToken(this);
4460
+ tmp.gl_1 = tmp_0;
4461
+ this.hl_1 = nextToken(this);
4315
4462
  printTokens$default(this);
4316
4463
  }
4317
4464
  protoOf(TokenProvider).d = function () {
4318
- return !(this.fl_1 == null);
4465
+ return !(this.hl_1 == null);
4319
4466
  };
4320
- protoOf(TokenProvider).gl = function () {
4467
+ protoOf(TokenProvider).il = function () {
4321
4468
  var tmp$ret$6;
4322
4469
  // Inline function 'arrow.core.raise.either' call
4323
4470
  var tmp$ret$5;
@@ -4331,21 +4478,21 @@
4331
4478
  try {
4332
4479
  var tmp$ret$1;
4333
4480
  // Inline function 'arrow.core.raise.either.<anonymous>' call
4334
- var previousToken = this.el_1;
4481
+ var previousToken = this.gl_1;
4335
4482
  var tmp_0 = this;
4336
- var tmp0_elvis_lhs = this.fl_1;
4483
+ var tmp0_elvis_lhs = this.hl_1;
4337
4484
  var tmp_1;
4338
4485
  if (tmp0_elvis_lhs == null) {
4339
4486
  var tmp$ret$0;
4340
4487
  // Inline function 'arrow.core.nel' call
4341
- var tmp0_nel = new NextException(previousToken.uk_1);
4488
+ var tmp0_nel = new NextException(previousToken.wk_1);
4342
4489
  tmp$ret$0 = nonEmptyListOf(tmp0_nel, []);
4343
4490
  raise.bh(tmp$ret$0);
4344
4491
  } else {
4345
4492
  tmp_1 = tmp0_elvis_lhs;
4346
4493
  }
4347
- tmp_0.el_1 = tmp_1;
4348
- this.fl_1 = nextToken(this);
4494
+ tmp_0.gl_1 = tmp_1;
4495
+ this.hl_1 = nextToken(this);
4349
4496
  printTokens(this, previousToken);
4350
4497
  tmp$ret$1 = Unit_getInstance();
4351
4498
  var res = tmp$ret$1;
@@ -4387,15 +4534,15 @@
4387
4534
  function IdxAndLength(idx, length) {
4388
4535
  idx = idx === VOID ? 0 : idx;
4389
4536
  length = length === VOID ? 0 : length;
4390
- this.hl_1 = idx;
4391
- this.il_1 = length;
4537
+ this.jl_1 = idx;
4538
+ this.kl_1 = length;
4392
4539
  }
4393
4540
  protoOf(IdxAndLength).toString = function () {
4394
- return 'IdxAndLength(idx=' + this.hl_1 + ', length=' + this.il_1 + ')';
4541
+ return 'IdxAndLength(idx=' + this.jl_1 + ', length=' + this.kl_1 + ')';
4395
4542
  };
4396
4543
  protoOf(IdxAndLength).hashCode = function () {
4397
- var result = this.hl_1;
4398
- result = imul(result, 31) + this.il_1 | 0;
4544
+ var result = this.jl_1;
4545
+ result = imul(result, 31) + this.kl_1 | 0;
4399
4546
  return result;
4400
4547
  };
4401
4548
  protoOf(IdxAndLength).equals = function (other) {
@@ -4404,9 +4551,9 @@
4404
4551
  if (!(other instanceof IdxAndLength))
4405
4552
  return false;
4406
4553
  var tmp0_other_with_cast = other instanceof IdxAndLength ? other : THROW_CCE();
4407
- if (!(this.hl_1 === tmp0_other_with_cast.hl_1))
4554
+ if (!(this.jl_1 === tmp0_other_with_cast.jl_1))
4408
4555
  return false;
4409
- if (!(this.il_1 === tmp0_other_with_cast.il_1))
4556
+ if (!(this.kl_1 === tmp0_other_with_cast.kl_1))
4410
4557
  return false;
4411
4558
  return true;
4412
4559
  };
@@ -4414,26 +4561,26 @@
4414
4561
  line = line === VOID ? 1 : line;
4415
4562
  position = position === VOID ? 1 : position;
4416
4563
  idxAndLength = idxAndLength === VOID ? new IdxAndLength() : idxAndLength;
4417
- this.vk_1 = line;
4418
- this.wk_1 = position;
4419
- this.xk_1 = idxAndLength;
4564
+ this.xk_1 = line;
4565
+ this.yk_1 = position;
4566
+ this.zk_1 = idxAndLength;
4420
4567
  }
4421
- protoOf(Coordinates).jl = function (line, position, idxAndLength) {
4568
+ protoOf(Coordinates).ll = function (line, position, idxAndLength) {
4422
4569
  return new Coordinates(line, position, idxAndLength);
4423
4570
  };
4424
- protoOf(Coordinates).kl = function (line, position, idxAndLength, $super) {
4425
- line = line === VOID ? this.vk_1 : line;
4426
- position = position === VOID ? this.wk_1 : position;
4427
- idxAndLength = idxAndLength === VOID ? this.xk_1 : idxAndLength;
4428
- return $super === VOID ? this.jl(line, position, idxAndLength) : $super.jl.call(this, line, position, idxAndLength);
4571
+ protoOf(Coordinates).ml = function (line, position, idxAndLength, $super) {
4572
+ line = line === VOID ? this.xk_1 : line;
4573
+ position = position === VOID ? this.yk_1 : position;
4574
+ idxAndLength = idxAndLength === VOID ? this.zk_1 : idxAndLength;
4575
+ return $super === VOID ? this.ll(line, position, idxAndLength) : $super.ll.call(this, line, position, idxAndLength);
4429
4576
  };
4430
4577
  protoOf(Coordinates).toString = function () {
4431
- return 'Coordinates(line=' + this.vk_1 + ', position=' + this.wk_1 + ', idxAndLength=' + this.xk_1 + ')';
4578
+ return 'Coordinates(line=' + this.xk_1 + ', position=' + this.yk_1 + ', idxAndLength=' + this.zk_1 + ')';
4432
4579
  };
4433
4580
  protoOf(Coordinates).hashCode = function () {
4434
- var result = this.vk_1;
4435
- result = imul(result, 31) + this.wk_1 | 0;
4436
- result = imul(result, 31) + this.xk_1.hashCode() | 0;
4581
+ var result = this.xk_1;
4582
+ result = imul(result, 31) + this.yk_1 | 0;
4583
+ result = imul(result, 31) + this.zk_1.hashCode() | 0;
4437
4584
  return result;
4438
4585
  };
4439
4586
  protoOf(Coordinates).equals = function (other) {
@@ -4442,35 +4589,35 @@
4442
4589
  if (!(other instanceof Coordinates))
4443
4590
  return false;
4444
4591
  var tmp0_other_with_cast = other instanceof Coordinates ? other : THROW_CCE();
4445
- if (!(this.vk_1 === tmp0_other_with_cast.vk_1))
4592
+ if (!(this.xk_1 === tmp0_other_with_cast.xk_1))
4446
4593
  return false;
4447
- if (!(this.wk_1 === tmp0_other_with_cast.wk_1))
4594
+ if (!(this.yk_1 === tmp0_other_with_cast.yk_1))
4448
4595
  return false;
4449
- if (!this.xk_1.equals(tmp0_other_with_cast.xk_1))
4596
+ if (!this.zk_1.equals(tmp0_other_with_cast.zk_1))
4450
4597
  return false;
4451
4598
  return true;
4452
4599
  };
4453
4600
  function Token(type, value, coordinates) {
4454
- this.sk_1 = type;
4455
- this.tk_1 = value;
4456
- this.uk_1 = coordinates;
4601
+ this.uk_1 = type;
4602
+ this.vk_1 = value;
4603
+ this.wk_1 = coordinates;
4457
4604
  }
4458
- protoOf(Token).ll = function (type, value, coordinates) {
4605
+ protoOf(Token).nl = function (type, value, coordinates) {
4459
4606
  return new Token(type, value, coordinates);
4460
4607
  };
4461
- protoOf(Token).zk = function (type, value, coordinates, $super) {
4462
- type = type === VOID ? this.sk_1 : type;
4463
- value = value === VOID ? this.tk_1 : value;
4464
- coordinates = coordinates === VOID ? this.uk_1 : coordinates;
4465
- return $super === VOID ? this.ll(type, value, coordinates) : $super.ll.call(this, type, value, coordinates);
4608
+ protoOf(Token).bl = function (type, value, coordinates, $super) {
4609
+ type = type === VOID ? this.uk_1 : type;
4610
+ value = value === VOID ? this.vk_1 : value;
4611
+ coordinates = coordinates === VOID ? this.wk_1 : coordinates;
4612
+ return $super === VOID ? this.nl(type, value, coordinates) : $super.nl.call(this, type, value, coordinates);
4466
4613
  };
4467
4614
  protoOf(Token).toString = function () {
4468
- return 'Token(type=' + this.sk_1 + ', value=' + this.tk_1 + ', coordinates=' + this.uk_1 + ')';
4615
+ return 'Token(type=' + this.uk_1 + ', value=' + this.vk_1 + ', coordinates=' + this.wk_1 + ')';
4469
4616
  };
4470
4617
  protoOf(Token).hashCode = function () {
4471
- var result = hashCode(this.sk_1);
4472
- result = imul(result, 31) + getStringHashCode(this.tk_1) | 0;
4473
- result = imul(result, 31) + this.uk_1.hashCode() | 0;
4618
+ var result = hashCode(this.uk_1);
4619
+ result = imul(result, 31) + getStringHashCode(this.vk_1) | 0;
4620
+ result = imul(result, 31) + this.wk_1.hashCode() | 0;
4474
4621
  return result;
4475
4622
  };
4476
4623
  protoOf(Token).equals = function (other) {
@@ -4479,19 +4626,19 @@
4479
4626
  if (!(other instanceof Token))
4480
4627
  return false;
4481
4628
  var tmp0_other_with_cast = other instanceof Token ? other : THROW_CCE();
4482
- if (!equals(this.sk_1, tmp0_other_with_cast.sk_1))
4629
+ if (!equals(this.uk_1, tmp0_other_with_cast.uk_1))
4483
4630
  return false;
4484
- if (!(this.tk_1 === tmp0_other_with_cast.tk_1))
4631
+ if (!(this.vk_1 === tmp0_other_with_cast.vk_1))
4485
4632
  return false;
4486
- if (!this.uk_1.equals(tmp0_other_with_cast.uk_1))
4633
+ if (!this.wk_1.equals(tmp0_other_with_cast.wk_1))
4487
4634
  return false;
4488
4635
  return true;
4489
4636
  };
4490
4637
  function plus_1(_this__u8e3s4, length) {
4491
- return new IdxAndLength(_this__u8e3s4.hl_1 + length | 0, length);
4638
+ return new IdxAndLength(_this__u8e3s4.jl_1 + length | 0, length);
4492
4639
  }
4493
4640
  function plus_2(_this__u8e3s4, length) {
4494
- return _this__u8e3s4.kl(VOID, _this__u8e3s4.wk_1 + length | 0, plus_1(_this__u8e3s4.xk_1, length));
4641
+ return _this__u8e3s4.ml(VOID, _this__u8e3s4.yk_1 + length | 0, plus_1(_this__u8e3s4.zk_1, length));
4495
4642
  }
4496
4643
  function tokenize(_this__u8e3s4, source) {
4497
4644
  var tmp$ret$1;
@@ -4513,7 +4660,7 @@
4513
4660
  var tmp0_subject = type;
4514
4661
  var tmp;
4515
4662
  if (tmp0_subject instanceof NewLine) {
4516
- tmp = new Coordinates(_this__u8e3s4.vk_1 + 1 | 0, VOID, plus_1(_this__u8e3s4.xk_1, value.length));
4663
+ tmp = new Coordinates(_this__u8e3s4.xk_1 + 1 | 0, VOID, plus_1(_this__u8e3s4.zk_1, value.length));
4517
4664
  } else {
4518
4665
  tmp = plus_2(_this__u8e3s4, value.length);
4519
4666
  }
@@ -4521,7 +4668,7 @@
4521
4668
  }
4522
4669
  function lastCoordinates(_this__u8e3s4) {
4523
4670
  var tmp0_safe_receiver = lastOrNull(_this__u8e3s4);
4524
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.uk_1;
4671
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wk_1;
4525
4672
  return tmp1_elvis_lhs == null ? new Coordinates() : tmp1_elvis_lhs;
4526
4673
  }
4527
4674
  function tokenize_0(_this__u8e3s4, source, tokens) {
@@ -4531,7 +4678,7 @@
4531
4678
  $l$1: do {
4532
4679
  $l$0: do {
4533
4680
  var token = findToken($this, lastCoordinates(tokens_0), source_0);
4534
- var newSource = removePrefix(source_0, token.tk_1);
4681
+ var newSource = removePrefix(source_0, token.vk_1);
4535
4682
  var newTokens = plus_0(tokens_0, token);
4536
4683
  var tmp;
4537
4684
  var tmp$ret$0;
@@ -4757,7 +4904,7 @@
4757
4904
  }
4758
4905
  function EndOfProgram() {
4759
4906
  EndOfProgram_instance = this;
4760
- this.nl_1 = 'EOP';
4907
+ this.pl_1 = 'EOP';
4761
4908
  }
4762
4909
  var EndOfProgram_instance;
4763
4910
  function EndOfProgram_getInstance() {
@@ -4790,7 +4937,7 @@
4790
4937
  }
4791
4938
  return tmp;
4792
4939
  };
4793
- protoOf(Logger).rk = function (s, block) {
4940
+ protoOf(Logger).tk = function (s, block) {
4794
4941
  var tmp$ret$1;
4795
4942
  // Inline function 'kotlin.run' call
4796
4943
  // Inline function 'kotlin.contracts.contract' call
@@ -4860,25 +5007,25 @@
4860
5007
  protoOf(WirespecEmitter).ak = withLogging_5;
4861
5008
  protoOf(WirespecEmitter).bk = withLogging_6;
4862
5009
  protoOf(WirespecEmitter).dk = withLogging_7;
4863
- protoOf(WsTypeDef).ml = name;
4864
- protoOf(WsEnumTypeDef).ml = name;
4865
- protoOf(WsRefinedTypeDef).ml = name;
4866
- protoOf(WhiteSpaceExceptNewLine).ml = name;
4867
- protoOf(NewLine).ml = name;
4868
- protoOf(LeftCurly).ml = name;
4869
- protoOf(Colon).ml = name;
4870
- protoOf(Comma).ml = name;
4871
- protoOf(QuestionMark).ml = name;
4872
- protoOf(Brackets).ml = name;
4873
- protoOf(WsString).ml = name;
4874
- protoOf(WsInteger).ml = name;
4875
- protoOf(WsBoolean).ml = name;
4876
- protoOf(RightCurly).ml = name;
4877
- protoOf(CustomValue).ml = name;
4878
- protoOf(CustomType).ml = name;
4879
- protoOf(CustomRegex).ml = name;
4880
- protoOf(Invalid).ml = name;
4881
- protoOf(EndOfProgram).ml = name;
5010
+ protoOf(WsTypeDef).ol = name;
5011
+ protoOf(WsEnumTypeDef).ol = name;
5012
+ protoOf(WsRefinedTypeDef).ol = name;
5013
+ protoOf(WhiteSpaceExceptNewLine).ol = name;
5014
+ protoOf(NewLine).ol = name;
5015
+ protoOf(LeftCurly).ol = name;
5016
+ protoOf(Colon).ol = name;
5017
+ protoOf(Comma).ol = name;
5018
+ protoOf(QuestionMark).ol = name;
5019
+ protoOf(Brackets).ol = name;
5020
+ protoOf(WsString).ol = name;
5021
+ protoOf(WsInteger).ol = name;
5022
+ protoOf(WsBoolean).ol = name;
5023
+ protoOf(RightCurly).ol = name;
5024
+ protoOf(CustomValue).ol = name;
5025
+ protoOf(CustomType).ol = name;
5026
+ protoOf(CustomRegex).ol = name;
5027
+ protoOf(Invalid).ol = name;
5028
+ protoOf(EndOfProgram).ol = name;
4882
5029
  //endregion
4883
5030
  //region block: init
4884
5031
  DEFAULT_PACKAGE_NAME = 'community.flock.wirespec.generated';