@flock/wirespec 0.21.1 → 0.22.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 (66) hide show
  1. package/arrow-arrow-atomic.mjs +14 -14
  2. package/arrow-arrow-atomic.mjs.map +1 -1
  3. package/arrow-arrow-core.mjs +187 -182
  4. package/arrow-arrow-core.mjs.map +1 -1
  5. package/clikt-clikt-mordant.mjs +89 -89
  6. package/clikt-clikt-mordant.mjs.map +1 -1
  7. package/clikt-clikt.mjs +1704 -1706
  8. package/clikt-clikt.mjs.map +1 -1
  9. package/colormath-root-colormath.mjs +465 -465
  10. package/colormath-root-colormath.mjs.map +1 -1
  11. package/kotlin-kotlin-stdlib.mjs +2644 -2481
  12. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  13. package/kotlin-openapi-bindings.mjs +10373 -10346
  14. package/kotlin-openapi-bindings.mjs.map +1 -1
  15. package/kotlin-rgxgen.mjs +1851 -1855
  16. package/kotlin-rgxgen.mjs.map +1 -1
  17. package/kotlinx-io-kotlinx-io-core.mjs +469 -469
  18. package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
  19. package/kotlinx-serialization-kotlinx-serialization-core.mjs +2038 -2046
  20. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
  21. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1859 -1813
  22. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  23. package/mordant-mordant.mjs +1452 -1447
  24. package/mordant-mordant.mjs.map +1 -1
  25. package/package.json +1 -1
  26. package/wirespec-src-compiler-core.mjs +25964 -3598
  27. package/wirespec-src-compiler-core.mjs.map +1 -1
  28. package/wirespec-src-compiler-emitters-java.mjs +373 -469
  29. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  30. package/wirespec-src-compiler-emitters-kotlin.mjs +327 -382
  31. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  32. package/wirespec-src-compiler-emitters-python.mjs +355 -354
  33. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  34. package/wirespec-src-compiler-emitters-rust.mjs +756 -754
  35. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  36. package/wirespec-src-compiler-emitters-scala.mjs +361 -361
  37. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  38. package/wirespec-src-compiler-emitters-typescript.mjs +484 -472
  39. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  40. package/wirespec-src-compiler-emitters-wirespec.mjs +434 -153
  41. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  42. package/wirespec-src-compiler-lib.mjs +978 -441
  43. package/wirespec-src-compiler-lib.mjs.map +1 -1
  44. package/wirespec-src-converter-asyncapi.mjs +5382 -0
  45. package/wirespec-src-converter-asyncapi.mjs.map +1 -0
  46. package/wirespec-src-converter-avro.mjs +1297 -725
  47. package/wirespec-src-converter-avro.mjs.map +1 -1
  48. package/wirespec-src-converter-common.mjs +267 -0
  49. package/wirespec-src-converter-common.mjs.map +1 -1
  50. package/wirespec-src-converter-graphql.mjs +5691 -0
  51. package/wirespec-src-converter-graphql.mjs.map +1 -0
  52. package/wirespec-src-converter-openapi.mjs +1304 -1225
  53. package/wirespec-src-converter-openapi.mjs.map +1 -1
  54. package/wirespec-src-ide-lsp.mjs +1728 -1642
  55. package/wirespec-src-ide-lsp.mjs.map +1 -1
  56. package/wirespec-src-plugin-arguments.mjs +301 -240
  57. package/wirespec-src-plugin-arguments.mjs.map +1 -1
  58. package/wirespec-src-plugin-cli.mjs +161 -133
  59. package/wirespec-src-plugin-cli.mjs.map +1 -1
  60. package/wirespec-src-plugin-npm.d.mts +216 -29
  61. package/wirespec-src-plugin-npm.mjs +188 -95
  62. package/wirespec-src-plugin-npm.mjs.map +1 -1
  63. package/wirespec-src-tools-generator.mjs +61 -53
  64. package/wirespec-src-tools-generator.mjs.map +1 -1
  65. package/wirespec-src-compiler-ir.mjs +0 -18912
  66. package/wirespec-src-compiler-ir.mjs.map +0 -1
@@ -21,36 +21,36 @@ import {
21
21
  getPropertyCallableRef3hckxc0xueiaj as getPropertyCallableRef,
22
22
  listOfvhqybd2zx248 as listOf,
23
23
  noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
24
- Unit_instance28fytmsmm6r23 as Unit_instance,
24
+ Unit_instancev9v8hjid95df as Unit_instance,
25
25
  mapCapacity1h45rc3eh9p2l as mapCapacity,
26
26
  coerceAtLeast2bkz8m9ik7hep as coerceAtLeast,
27
- LinkedHashMap_init_$Create$1s75e1k23v4xj as LinkedHashMap_init_$Create$,
27
+ LinkedHashMap_init_$Create$1gzy1x4a46gd4 as LinkedHashMap_init_$Create$,
28
28
  THROW_CCE2g6jy02ryeudk as THROW_CCE,
29
29
  isCharSequence1ju9jr1w86plq as isCharSequence,
30
30
  trim11nh7r46at6sx as trim,
31
31
  toString1pkumu07cwy4m as toString,
32
32
  Enum3alwj03lh1n41 as Enum,
33
33
  collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
34
- ArrayList_init_$Create$3ivpeip4ouddx as ArrayList_init_$Create$,
34
+ ArrayList_init_$Create$2byt5m5yn22yy as ArrayList_init_$Create$,
35
35
  until1jbpn0z3f8lbg as until,
36
- ArrayList_init_$Create$1jemgvhi5v0js as ArrayList_init_$Create$_0,
36
+ ArrayList_init_$Create$37gc04va6yfo2 as ArrayList_init_$Create$_0,
37
37
  joinToString1cxrrlmo0chqs as joinToString,
38
- IllegalStateException_init_$Create$2429fvs1h56dm as IllegalStateException_init_$Create$,
38
+ IllegalStateException_init_$Create$1h4bcfod21ri0 as IllegalStateException_init_$Create$,
39
39
  addAll1k27qatfgp3k5 as addAll,
40
40
  copyToArray2j022khrow2yi as copyToArray,
41
41
  isArray1hxjqtqy632bc as isArray,
42
42
  } from './kotlin-kotlin-stdlib.mjs';
43
43
  import {
44
- FileExtension_Wirespec_getInstance29avtvqk6h59d as FileExtension_Wirespec_getInstance,
45
- FileExtension_JSON_getInstance34944ido213py as FileExtension_JSON_getInstance,
46
- Companion_instancewxnc9ytfyvo4 as Companion_instance,
44
+ FileExtension_Wirespec_getInstance3awesett59616 as FileExtension_Wirespec_getInstance,
45
+ FileExtension_JSON_getInstancel2q389n0axuc as FileExtension_JSON_getInstance,
46
+ Companion_instance20rky2ffsqbmt as Companion_instance,
47
47
  Logger1cwdyrq5itr5l as Logger,
48
- Companion_instance1a2xqc448tlhh as Companion_instance_0,
48
+ Companion_instance21vwhhqsaytqt as Companion_instance_0,
49
49
  EmitSharedetokabwo9q4q as EmitShared,
50
- Level_INFO_getInstancek4nh3v7qm1zh as Level_INFO_getInstance,
51
- Level_DEBUG_getInstance3em7wvdn7y09d as Level_DEBUG_getInstance,
52
- Level_WARN_getInstance20ovnux1aumbt as Level_WARN_getInstance,
53
- Level_ERROR_getInstanceevw63gxlm1ou as Level_ERROR_getInstance,
50
+ Level_INFO_getInstance1jwffmh2os99t as Level_INFO_getInstance,
51
+ Level_DEBUG_getInstance3osr5ne4jmdcj as Level_DEBUG_getInstance,
52
+ Level_WARN_getInstanceq4euntxdpan3 as Level_WARN_getInstance,
53
+ Level_ERROR_getInstance23ddtl147gk4n as Level_ERROR_getInstance,
54
54
  FileUri2xjkmf4jmvpab as FileUri,
55
55
  ModuleContent750xezzquzy9 as ModuleContent,
56
56
  parse24q0pxmbph48t as parse,
@@ -64,8 +64,8 @@ import {
64
64
  CliktCommand1a5aj7xujka26 as CliktCommand,
65
65
  } from './clikt-clikt-mordant.mjs';
66
66
  import {
67
- Companion_instance1z5eikg0ignsi as Companion_instance_1,
68
- Language_Kotlin_getInstance86uxb9qtensx as Language_Kotlin_getInstance,
67
+ Companion_instanceostrm0i8dq1p as Companion_instance_1,
68
+ Language_Kotlin_getInstancel9flkgp6e3q4 as Language_Kotlin_getInstance,
69
69
  getFullPath4g3ciksg8rpm as getFullPath,
70
70
  read1bpb5m43oodfb as read,
71
71
  Source2leyaqfqfs5k3 as Source,
@@ -75,13 +75,13 @@ import {
75
75
  or33xhl4wx85q9x as or,
76
76
  DirectoryPath39bbfr0ixndbr as DirectoryPath,
77
77
  ClassPath7upbvx9mwagz as ClassPath,
78
- _Name___init__impl__o4q07e2eria0k23tn4 as _Name___init__impl__o4q07e,
78
+ _Name___init__impl__o4q07e3vb5gulc0hok1 as _Name___init__impl__o4q07e,
79
79
  getOutPutPathqmn3xkxu6se6 as getOutPutPath,
80
80
  CompilerArguments27p1etc1665zg as CompilerArguments,
81
81
  values39f22etrsivck as values,
82
82
  ConverterArgumentsa8xc45eyvf51 as ConverterArguments,
83
- Companion_instance2lab4vlj8rrht as Companion_instance_2,
84
- _DirectoryPath___get_value__impl__hdy2e33f4bkvzwyu6et as _DirectoryPath___get_value__impl__hdy2e3,
83
+ Companion_instance3u189ncjgxp6 as Companion_instance_2,
84
+ _DirectoryPath___get_value__impl__hdy2e31of6jj3zjtzs5 as _DirectoryPath___get_value__impl__hdy2e3,
85
85
  write1u316o1mmac8j as write,
86
86
  toEmitter3vk7m5bivtqhk as toEmitter,
87
87
  compile3ocumkpx3p9ko as compile,
@@ -95,10 +95,10 @@ import {
95
95
  toNonEmptySetOrNull1tjnd9jrkd4bs as toNonEmptySetOrNull,
96
96
  nonEmptyListOf17xawqyzwrlrt as nonEmptyListOf,
97
97
  NonEmptyList3ak25ihy2gcvs as NonEmptyList,
98
- _NonEmptyList___get_all__impl__pmf5092svcdxelgy1aa as _NonEmptyList___get_all__impl__pmf509,
99
- _NonEmptyList___init__impl__fxd0xp3qwfhfa83yk9f as _NonEmptyList___init__impl__fxd0xp,
100
- NonEmptyList__toList_impl_t5xcy2362qtlja6arn8 as NonEmptyList__toList_impl_t5xcy2,
101
- Companion_instance139l85s51p6ol as Companion_instance_3,
98
+ _NonEmptyList___get_all__impl__pmf5092xnz0i2teaa6d as _NonEmptyList___get_all__impl__pmf509,
99
+ _NonEmptyList___init__impl__fxd0xprpnd63likgzm as _NonEmptyList___init__impl__fxd0xp,
100
+ NonEmptyList__toList_impl_t5xcy266xhxpenbpfx as NonEmptyList__toList_impl_t5xcy2,
101
+ Companion_instancexcyhq1gimo3o as Companion_instance_3,
102
102
  } from './arrow-arrow-core.mjs';
103
103
  import { WirespecEmitter2ad9je4ecrvjk as WirespecEmitter } from './wirespec-src-compiler-emitters-wirespec.mjs';
104
104
  import { produce6pbudlitvnns as produce } from './wirespec-src-compiler-lib.mjs';
@@ -146,12 +146,12 @@ function ChooseALogLevel() {
146
146
  captureStack(this, ChooseALogLevel);
147
147
  }
148
148
  function SpecificFile(extension) {
149
- CliktError.call(this, 'No ' + extension.b3_1 + ' file found');
149
+ CliktError.call(this, 'No ' + extension.d3_1 + ' file found');
150
150
  captureStack(this, SpecificFile);
151
151
  }
152
152
  function Companion() {
153
153
  }
154
- protoOf(Companion).c4w = function (compile, convert) {
154
+ protoOf(Companion).h5a = function (compile, convert) {
155
155
  return subcommands(new WirespecCli(), [new Compile(compile), new Convert(convert)]);
156
156
  };
157
157
  var Companion_instance_4;
@@ -163,11 +163,11 @@ function WirespecCli() {
163
163
  }
164
164
  function _get_stdin__b8xnlj($this) {
165
165
  var tmp = KProperty1;
166
- return $this.z4w_1.h1c($this, getPropertyCallableRef('stdin', 1, tmp, Compile$_get_stdin_$ref_5ywd7d_0(), null));
166
+ return $this.f5b_1.s1u($this, getPropertyCallableRef('stdin', 1, tmp, Compile$_get_stdin_$ref_5ywd7d_0(), null));
167
167
  }
168
168
  function _get_languages__ojonze($this) {
169
169
  var tmp = KProperty1;
170
- return $this.a4x_1.h1c($this, getPropertyCallableRef('languages', 1, tmp, Compile$_get_languages_$ref_nluohg_0(), null));
170
+ return $this.g5b_1.s1u($this, getPropertyCallableRef('languages', 1, tmp, Compile$_get_languages_$ref_nluohg_0(), null));
171
171
  }
172
172
  function Compile$_get_stdin_$ref_5ywd7d() {
173
173
  return function (p0) {
@@ -210,27 +210,27 @@ function handleError$ref_1() {
210
210
  }
211
211
  function Compile(compiler) {
212
212
  CommonOptions.call(this);
213
- this.y4w_1 = compiler;
213
+ this.e5b_1 = compiler;
214
214
  var tmp = this;
215
215
  var tmp_0 = optional(argument(this, VOID, 'stdin'));
216
216
  var tmp_1 = KProperty1;
217
- tmp.z4w_1 = tmp_0.n1b(this, getPropertyCallableRef('stdin', 1, tmp_1, Compile$_get_stdin_$ref_5ywd7d(), null));
217
+ tmp.f5b_1 = tmp_0.y1t(this, getPropertyCallableRef('stdin', 1, tmp_1, Compile$_get_stdin_$ref_5ywd7d(), null));
218
218
  var tmp_2 = this;
219
- var tmp_3 = multiple(choice(option(this, Options_Language_getInstance().d4x_1.slice(), 'Language'), Companion_instance_1.x4b(), VOID, true), listOf(Language_Kotlin_getInstance()));
219
+ var tmp_3 = multiple(choice(option(this, Options_Language_getInstance().j5b_1.slice(), 'Language'), Companion_instance_1.z4p(), VOID, true), listOf(Language_Kotlin_getInstance()));
220
220
  var tmp_4 = KProperty1;
221
- tmp_2.a4x_1 = tmp_3.r1c(this, getPropertyCallableRef('languages', 1, tmp_4, Compile$_get_languages_$ref_nluohg(), null));
221
+ tmp_2.g5b_1 = tmp_3.c1v(this, getPropertyCallableRef('languages', 1, tmp_4, Compile$_get_languages_$ref_nluohg(), null));
222
222
  }
223
- protoOf(Compile).g13 = function () {
224
- var logger = new Logger(this.a4y(this.z4x()));
223
+ protoOf(Compile).r1l = function () {
224
+ var logger = new Logger(this.h5c(this.g5c()));
225
225
  // Inline function 'arrow.core.getOrElse' call
226
- var this_0 = getFullPath(this.b4y());
226
+ var this_0 = getFullPath(this.i5c());
227
227
  var tmp;
228
228
  if (this_0 instanceof Left) {
229
- var it = this_0.mm_1;
230
- throw new CliktError(it.b4d_1);
229
+ var it = this_0.sm_1;
230
+ throw new CliktError(it.f4r_1);
231
231
  } else {
232
232
  if (this_0 instanceof Right) {
233
- tmp = this_0.om_1;
233
+ tmp = this_0.um_1;
234
234
  } else {
235
235
  noWhenBranchMatchedException();
236
236
  }
@@ -260,17 +260,17 @@ protoOf(Compile).g13 = function () {
260
260
  throw new NoClasspathPossible();
261
261
  } else {
262
262
  if (inputPath instanceof DirectoryPath) {
263
- var tmp_4 = wirespecSources(new Directory(inputPath.v4c_1), logger);
264
- tmp_0 = or(tmp_4, handleError$ref()).cn_1;
263
+ var tmp_4 = wirespecSources(new Directory(inputPath.z4q_1), logger);
264
+ tmp_0 = or(tmp_4, handleError$ref()).in_1;
265
265
  } else {
266
266
  if (inputPath instanceof FilePath) {
267
267
  var tmp_5;
268
- if (inputPath.a4d_1.c3_1 === 6) {
268
+ if (inputPath.e4r_1.e3_1 === 6) {
269
269
  // Inline function 'kotlin.also' call
270
- var this_1 = new NonEmptySet(nonEmptySetOf(new Source(inputPath.z4c_1, read(inputPath)), []));
271
- this_1.cn_1;
272
- logger.ir('Found 1 wirespec file to process: ' + inputPath.toString());
273
- tmp_5 = this_1.cn_1;
270
+ var this_1 = new NonEmptySet(nonEmptySetOf(new Source(inputPath.d4r_1, read(inputPath)), []));
271
+ this_1.in_1;
272
+ logger.zr('Found 1 wirespec file to process: ' + inputPath.toString());
273
+ tmp_5 = this_1.in_1;
274
274
  } else {
275
275
  throw new WirespecFileError();
276
276
  }
@@ -282,32 +282,32 @@ protoOf(Compile).g13 = function () {
282
282
  }
283
283
  }
284
284
  var sources = tmp_0;
285
- var emitters = toEmitters(_get_languages__ojonze(this), Companion_instance_0.is(this.c1y()), new EmitShared(this.p4a()));
285
+ var emitters = toEmitters(_get_languages__ojonze(this), Companion_instance_0.zs(this.y1z()), new EmitShared(this.r4o()));
286
286
  var tmp_6;
287
287
  if (inputPath == null) {
288
288
  tmp_6 = null;
289
289
  } else {
290
290
  // Inline function 'kotlin.let' call
291
- var tmp_7 = getOutPutPath(inputPath, this.c4y());
292
- tmp_6 = new Directory(or(tmp_7, handleError$ref_0()).v4c_1);
291
+ var tmp_7 = getOutPutPath(inputPath, this.j5c());
292
+ tmp_6 = new Directory(or(tmp_7, handleError$ref_0()).z4q_1);
293
293
  }
294
294
  var outputDir = tmp_6;
295
- var tmp_8 = this.d4y(outputDir);
296
- var tmp0 = new CompilerArguments(sources, emitters, tmp_8, handleError$ref_1(), Companion_instance_0.is(this.c1y()), logger, this.p4a(), this.e4y());
295
+ var tmp_8 = this.k5c(outputDir);
296
+ var tmp0 = new CompilerArguments(sources, emitters, tmp_8, handleError$ref_1(), Companion_instance_0.zs(this.y1z()), logger, this.r4o(), this.l5c(), this.m5c());
297
297
  // Inline function 'kotlin.let' call
298
- this.y4w_1(tmp0);
298
+ this.e5b_1(tmp0);
299
299
  };
300
300
  function _get_format__qlarck($this) {
301
301
  var tmp = KProperty1;
302
- return $this.b4z_1.h1c($this, getPropertyCallableRef('format', 1, tmp, Convert$_get_format_$ref_ve190_0(), null));
302
+ return $this.k5d_1.s1u($this, getPropertyCallableRef('format', 1, tmp, Convert$_get_format_$ref_ve190_0(), null));
303
303
  }
304
304
  function _get_stdin__b8xnlj_0($this) {
305
305
  var tmp = KProperty1;
306
- return $this.c4z_1.h1c($this, getPropertyCallableRef('stdin', 1, tmp, Convert$_get_stdin_$ref_yiqct5_0(), null));
306
+ return $this.l5d_1.s1u($this, getPropertyCallableRef('stdin', 1, tmp, Convert$_get_stdin_$ref_yiqct5_0(), null));
307
307
  }
308
308
  function _get_languages__ojonze_0($this) {
309
309
  var tmp = KProperty1;
310
- return $this.d4z_1.h1c($this, getPropertyCallableRef('languages', 1, tmp, Convert$_get_languages_$ref_ykvilw_0(), null));
310
+ return $this.m5d_1.s1u($this, getPropertyCallableRef('languages', 1, tmp, Convert$_get_languages_$ref_ykvilw_0(), null));
311
311
  }
312
312
  function Convert$_get_format_$ref_ve190() {
313
313
  return function (p0) {
@@ -360,7 +360,7 @@ function handleError$ref_4() {
360
360
  }
361
361
  function Convert(converter) {
362
362
  CommonOptions.call(this);
363
- this.a4z_1 = converter;
363
+ this.j5d_1 = converter;
364
364
  var tmp = this;
365
365
  // Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
366
366
  var this_0 = argument(this, VOID, 'Input format');
@@ -375,24 +375,24 @@ function Convert(converter) {
375
375
  while (inductionVariable < last) {
376
376
  var element = this_1[inductionVariable];
377
377
  inductionVariable = inductionVariable + 1 | 0;
378
- var tmp$ret$2 = element.b3_1;
379
- destination.t2(tmp$ret$2, element);
378
+ var tmp$ret$4 = element.d3_1;
379
+ destination.v2(tmp$ret$4, element);
380
380
  }
381
381
  var tmp_0 = choice_0(this_0, destination, true);
382
382
  var tmp_1 = KProperty1;
383
- tmp.b4z_1 = tmp_0.n1b(this, getPropertyCallableRef('format', 1, tmp_1, Convert$_get_format_$ref_ve190(), null));
383
+ tmp.k5d_1 = tmp_0.y1t(this, getPropertyCallableRef('format', 1, tmp_1, Convert$_get_format_$ref_ve190(), null));
384
384
  var tmp_2 = this;
385
385
  var tmp_3 = optional(argument(this, VOID, 'stdin'));
386
386
  var tmp_4 = KProperty1;
387
- tmp_2.c4z_1 = tmp_3.n1b(this, getPropertyCallableRef('stdin', 1, tmp_4, Convert$_get_stdin_$ref_yiqct5(), null));
387
+ tmp_2.l5d_1 = tmp_3.y1t(this, getPropertyCallableRef('stdin', 1, tmp_4, Convert$_get_stdin_$ref_yiqct5(), null));
388
388
  var tmp_5 = this;
389
- var tmp_6 = multiple(choice(option(this, Options_Language_getInstance().d4x_1.slice(), 'Language'), Companion_instance_1.x4b(), VOID, true));
389
+ var tmp_6 = multiple(choice(option(this, Options_Language_getInstance().j5b_1.slice(), 'Language'), Companion_instance_1.z4p(), VOID, true));
390
390
  var tmp_7 = KProperty1;
391
- tmp_5.d4z_1 = tmp_6.r1c(this, getPropertyCallableRef('languages', 1, tmp_7, Convert$_get_languages_$ref_ykvilw(), null));
391
+ tmp_5.m5d_1 = tmp_6.c1v(this, getPropertyCallableRef('languages', 1, tmp_7, Convert$_get_languages_$ref_ykvilw(), null));
392
392
  }
393
- protoOf(Convert).g13 = function () {
394
- var logger = new Logger(this.a4y(this.z4x()));
395
- var tmp = getFullPath(this.b4y());
393
+ protoOf(Convert).r1l = function () {
394
+ var logger = new Logger(this.h5c(this.g5c()));
395
+ var tmp = getFullPath(this.i5c());
396
396
  var inputPath = or(tmp, handleError$ref_2());
397
397
  var tmp_0;
398
398
  if (inputPath == null) {
@@ -421,14 +421,17 @@ protoOf(Convert).g13 = function () {
421
421
  } else {
422
422
  if (inputPath instanceof FilePath) {
423
423
  var tmp_3;
424
- if (inputPath.a4d_1.c3_1 === 7) {
425
- tmp_3 = new Source(inputPath.z4c_1, read(inputPath));
426
- } else {
427
- throw new JSONFileError();
424
+ switch (inputPath.e4r_1.e3_1) {
425
+ case 7:
426
+ case 11:
427
+ tmp_3 = new Source(inputPath.d4r_1, read(inputPath));
428
+ break;
429
+ default:
430
+ throw new JSONFileError();
428
431
  }
429
432
  // Inline function 'kotlin.also' call
430
433
  var this_0 = tmp_3;
431
- logger.ir('Found 1 file to process: ' + inputPath.toString());
434
+ logger.zr('Found 1 file to process: ' + inputPath.toString());
432
435
  tmp_0 = this_0;
433
436
  } else {
434
437
  noWhenBranchMatchedException();
@@ -437,81 +440,91 @@ protoOf(Convert).g13 = function () {
437
440
  }
438
441
  }
439
442
  var source = tmp_0;
440
- var emitters = toEmitters(_get_languages__ojonze_0(this), Companion_instance_0.is(this.c1y()), new EmitShared(this.p4a()));
443
+ var emitters = toEmitters(_get_languages__ojonze_0(this), Companion_instance_0.zs(this.y1z()), new EmitShared(this.r4o()));
441
444
  var tmp_4;
442
445
  if (inputPath == null) {
443
446
  tmp_4 = null;
444
447
  } else {
445
448
  // Inline function 'kotlin.let' call
446
- var tmp_5 = getOutPutPath(inputPath, this.c4y());
447
- tmp_4 = new Directory(or(tmp_5, handleError$ref_3()).v4c_1);
449
+ var tmp_5 = getOutPutPath(inputPath, this.j5c());
450
+ tmp_4 = new Directory(or(tmp_5, handleError$ref_3()).z4q_1);
448
451
  }
449
452
  var directory = tmp_4;
450
453
  var tmp_6 = _get_format__qlarck(this);
451
454
  var tmp_7 = nonEmptySetOf(source, []);
452
- var tmp_8 = this.d4y(directory);
453
- var tmp0 = new ConverterArguments(tmp_6, tmp_7, emitters, tmp_8, handleError$ref_4(), Companion_instance_0.is(this.c1y()), logger, this.p4a(), this.e4y());
455
+ var tmp_8 = this.k5c(directory);
456
+ var tmp0 = new ConverterArguments(tmp_6, tmp_7, emitters, tmp_8, handleError$ref_4(), Companion_instance_0.zs(this.y1z()), logger, this.r4o(), this.l5c(), this.m5c());
454
457
  // Inline function 'kotlin.let' call
455
- this.a4z_1(tmp0);
458
+ this.j5d_1(tmp0);
456
459
  };
457
460
  function CommonOptions$_get_input_$ref_6c1nvp() {
458
461
  return function (p0) {
459
- return p0.b4y();
462
+ return p0.i5c();
460
463
  };
461
464
  }
462
465
  function CommonOptions$_get_input_$ref_6c1nvp_0() {
463
466
  return function (p0) {
464
- return p0.b4y();
467
+ return p0.i5c();
465
468
  };
466
469
  }
467
470
  function CommonOptions$_get_output_$ref_eo6xdi() {
468
471
  return function (p0) {
469
- return p0.c4y();
472
+ return p0.j5c();
470
473
  };
471
474
  }
472
475
  function CommonOptions$_get_output_$ref_eo6xdi_0() {
473
476
  return function (p0) {
474
- return p0.c4y();
477
+ return p0.j5c();
475
478
  };
476
479
  }
477
480
  function CommonOptions$_get_packageName_$ref_k5vxsu() {
478
481
  return function (p0) {
479
- return p0.c1y();
482
+ return p0.y1z();
480
483
  };
481
484
  }
482
485
  function CommonOptions$_get_packageName_$ref_k5vxsu_0() {
483
486
  return function (p0) {
484
- return p0.c1y();
487
+ return p0.y1z();
485
488
  };
486
489
  }
487
490
  function CommonOptions$_get_logLevel_$ref_mp4bhx() {
488
491
  return function (p0) {
489
- return p0.z4x();
492
+ return p0.g5c();
490
493
  };
491
494
  }
492
495
  function CommonOptions$_get_logLevel_$ref_mp4bhx_0() {
493
496
  return function (p0) {
494
- return p0.z4x();
497
+ return p0.g5c();
495
498
  };
496
499
  }
497
500
  function CommonOptions$_get_shared_$ref_7r7o2u() {
498
501
  return function (p0) {
499
- return p0.p4a();
502
+ return p0.r4o();
500
503
  };
501
504
  }
502
505
  function CommonOptions$_get_shared_$ref_7r7o2u_0() {
503
506
  return function (p0) {
504
- return p0.p4a();
507
+ return p0.r4o();
505
508
  };
506
509
  }
507
510
  function CommonOptions$_get_strict_$ref_vrzh6q() {
508
511
  return function (p0) {
509
- return p0.e4y();
512
+ return p0.l5c();
510
513
  };
511
514
  }
512
515
  function CommonOptions$_get_strict_$ref_vrzh6q_0() {
513
516
  return function (p0) {
514
- return p0.e4y();
517
+ return p0.l5c();
518
+ };
519
+ }
520
+ function CommonOptions$_get_ignoreDefaults_$ref_doa1uh() {
521
+ return function (p0) {
522
+ return p0.m5c();
523
+ };
524
+ }
525
+ function CommonOptions$_get_ignoreDefaults_$ref_doa1uh_0() {
526
+ return function (p0) {
527
+ return p0.m5c();
515
528
  };
516
529
  }
517
530
  function CommonOptions$writer$lambda($directory, this$0) {
@@ -526,11 +539,11 @@ function CommonOptions$writer$lambda($directory, this$0) {
526
539
  tmp = null;
527
540
  } else {
528
541
  // Inline function 'kotlin.let' call
529
- write(Companion_instance_2.x4c(_DirectoryPath___get_value__impl__hdy2e3(tmp0_safe_receiver.w4c_1) + '/' + element.hp_1), element.ip_1);
542
+ write(Companion_instance_2.b4r(_DirectoryPath___get_value__impl__hdy2e3(tmp0_safe_receiver.a4r_1) + '/' + element.gq_1), element.hq_1);
530
543
  tmp = Unit_instance;
531
544
  }
532
545
  if (tmp == null) {
533
- this$0.v11(element.ip_1);
546
+ this$0.g1k(element.hq_1);
534
547
  }
535
548
  }
536
549
  return Unit_instance;
@@ -539,55 +552,63 @@ function CommonOptions$writer$lambda($directory, this$0) {
539
552
  function CommonOptions() {
540
553
  CliktCommand.call(this);
541
554
  var tmp = this;
542
- var tmp_0 = option(this, Options_Input_getInstance().d4x_1.slice(), 'Input');
555
+ var tmp_0 = option(this, Options_Input_getInstance().j5b_1.slice(), 'Input');
543
556
  var tmp_1 = KProperty1;
544
- tmp.t4x_1 = tmp_0.r1c(this, getPropertyCallableRef('input', 1, tmp_1, CommonOptions$_get_input_$ref_6c1nvp(), null));
557
+ tmp.z5b_1 = tmp_0.c1v(this, getPropertyCallableRef('input', 1, tmp_1, CommonOptions$_get_input_$ref_6c1nvp(), null));
545
558
  var tmp_2 = this;
546
- var tmp_3 = option(this, Options_Output_getInstance().d4x_1.slice(), 'Output');
559
+ var tmp_3 = option(this, Options_Output_getInstance().j5b_1.slice(), 'Output');
547
560
  var tmp_4 = KProperty1;
548
- tmp_2.u4x_1 = tmp_3.r1c(this, getPropertyCallableRef('output', 1, tmp_4, CommonOptions$_get_output_$ref_eo6xdi(), null));
561
+ tmp_2.a5c_1 = tmp_3.c1v(this, getPropertyCallableRef('output', 1, tmp_4, CommonOptions$_get_output_$ref_eo6xdi(), null));
549
562
  var tmp_5 = this;
550
- var tmp_6 = default_0(option(this, Options_PackageName_getInstance().d4x_1.slice(), 'Package name'), 'community.flock.wirespec.generated');
563
+ var tmp_6 = default_0(option(this, Options_PackageName_getInstance().j5b_1.slice(), 'Package name'), 'community.flock.wirespec.generated');
551
564
  var tmp_7 = KProperty1;
552
- tmp_5.v4x_1 = tmp_6.r1c(this, getPropertyCallableRef('packageName', 1, tmp_7, CommonOptions$_get_packageName_$ref_k5vxsu(), null));
565
+ tmp_5.b5c_1 = tmp_6.c1v(this, getPropertyCallableRef('packageName', 1, tmp_7, CommonOptions$_get_packageName_$ref_k5vxsu(), null));
553
566
  var tmp_8 = this;
554
- var tmp_9 = default_0(option(this, Options_LogLevel_getInstance().d4x_1.slice(), 'Log level: ' + Companion_instance.toString()), Level_INFO_getInstance().toString());
567
+ var tmp_9 = default_0(option(this, Options_LogLevel_getInstance().j5b_1.slice(), 'Log level: ' + Companion_instance.toString()), Level_INFO_getInstance().toString());
555
568
  var tmp_10 = KProperty1;
556
- tmp_8.w4x_1 = tmp_9.r1c(this, getPropertyCallableRef('logLevel', 1, tmp_10, CommonOptions$_get_logLevel_$ref_mp4bhx(), null));
569
+ tmp_8.c5c_1 = tmp_9.c1v(this, getPropertyCallableRef('logLevel', 1, tmp_10, CommonOptions$_get_logLevel_$ref_mp4bhx(), null));
557
570
  var tmp_11 = this;
558
- var tmp_12 = flag(option(this, Options_Shared_getInstance().d4x_1.slice(), 'Generate shared wirespec code'), [], false);
571
+ var tmp_12 = flag(option(this, Options_Shared_getInstance().j5b_1.slice(), 'Generate shared wirespec code'), [], false);
559
572
  var tmp_13 = KProperty1;
560
- tmp_11.x4x_1 = tmp_12.r1c(this, getPropertyCallableRef('shared', 1, tmp_13, CommonOptions$_get_shared_$ref_7r7o2u(), null));
573
+ tmp_11.d5c_1 = tmp_12.c1v(this, getPropertyCallableRef('shared', 1, tmp_13, CommonOptions$_get_shared_$ref_7r7o2u(), null));
561
574
  var tmp_14 = this;
562
- var tmp_15 = flag(option(this, Options_Strict_getInstance().d4x_1.slice(), 'Strict mode'), []);
575
+ var tmp_15 = flag(option(this, Options_Strict_getInstance().j5b_1.slice(), 'Strict mode'), []);
563
576
  var tmp_16 = KProperty1;
564
- tmp_14.y4x_1 = tmp_15.r1c(this, getPropertyCallableRef('strict', 1, tmp_16, CommonOptions$_get_strict_$ref_vrzh6q(), null));
577
+ tmp_14.e5c_1 = tmp_15.c1v(this, getPropertyCallableRef('strict', 1, tmp_16, CommonOptions$_get_strict_$ref_vrzh6q(), null));
578
+ var tmp_17 = this;
579
+ var tmp_18 = flag(option(this, Options_IgnoreDefaults_getInstance().j5b_1.slice(), 'Leave field default values out of the emitted code'), []);
580
+ var tmp_19 = KProperty1;
581
+ tmp_17.f5c_1 = tmp_18.c1v(this, getPropertyCallableRef('ignoreDefaults', 1, tmp_19, CommonOptions$_get_ignoreDefaults_$ref_doa1uh(), null));
565
582
  }
566
- protoOf(CommonOptions).b4y = function () {
583
+ protoOf(CommonOptions).i5c = function () {
584
+ var tmp = KProperty1;
585
+ return this.z5b_1.s1u(this, getPropertyCallableRef('input', 1, tmp, CommonOptions$_get_input_$ref_6c1nvp_0(), null));
586
+ };
587
+ protoOf(CommonOptions).j5c = function () {
567
588
  var tmp = KProperty1;
568
- return this.t4x_1.h1c(this, getPropertyCallableRef('input', 1, tmp, CommonOptions$_get_input_$ref_6c1nvp_0(), null));
589
+ return this.a5c_1.s1u(this, getPropertyCallableRef('output', 1, tmp, CommonOptions$_get_output_$ref_eo6xdi_0(), null));
569
590
  };
570
- protoOf(CommonOptions).c4y = function () {
591
+ protoOf(CommonOptions).y1z = function () {
571
592
  var tmp = KProperty1;
572
- return this.u4x_1.h1c(this, getPropertyCallableRef('output', 1, tmp, CommonOptions$_get_output_$ref_eo6xdi_0(), null));
593
+ return this.b5c_1.s1u(this, getPropertyCallableRef('packageName', 1, tmp, CommonOptions$_get_packageName_$ref_k5vxsu_0(), null));
573
594
  };
574
- protoOf(CommonOptions).c1y = function () {
595
+ protoOf(CommonOptions).g5c = function () {
575
596
  var tmp = KProperty1;
576
- return this.v4x_1.h1c(this, getPropertyCallableRef('packageName', 1, tmp, CommonOptions$_get_packageName_$ref_k5vxsu_0(), null));
597
+ return this.c5c_1.s1u(this, getPropertyCallableRef('logLevel', 1, tmp, CommonOptions$_get_logLevel_$ref_mp4bhx_0(), null));
577
598
  };
578
- protoOf(CommonOptions).z4x = function () {
599
+ protoOf(CommonOptions).r4o = function () {
579
600
  var tmp = KProperty1;
580
- return this.w4x_1.h1c(this, getPropertyCallableRef('logLevel', 1, tmp, CommonOptions$_get_logLevel_$ref_mp4bhx_0(), null));
601
+ return this.d5c_1.s1u(this, getPropertyCallableRef('shared', 1, tmp, CommonOptions$_get_shared_$ref_7r7o2u_0(), null));
581
602
  };
582
- protoOf(CommonOptions).p4a = function () {
603
+ protoOf(CommonOptions).l5c = function () {
583
604
  var tmp = KProperty1;
584
- return this.x4x_1.h1c(this, getPropertyCallableRef('shared', 1, tmp, CommonOptions$_get_shared_$ref_7r7o2u_0(), null));
605
+ return this.e5c_1.s1u(this, getPropertyCallableRef('strict', 1, tmp, CommonOptions$_get_strict_$ref_vrzh6q_0(), null));
585
606
  };
586
- protoOf(CommonOptions).e4y = function () {
607
+ protoOf(CommonOptions).m5c = function () {
587
608
  var tmp = KProperty1;
588
- return this.y4x_1.h1c(this, getPropertyCallableRef('strict', 1, tmp, CommonOptions$_get_strict_$ref_vrzh6q_0(), null));
609
+ return this.f5c_1.s1u(this, getPropertyCallableRef('ignoreDefaults', 1, tmp, CommonOptions$_get_ignoreDefaults_$ref_doa1uh_0(), null));
589
610
  };
590
- protoOf(CommonOptions).a4y = function (_this__u8e3s4) {
611
+ protoOf(CommonOptions).h5c = function (_this__u8e3s4) {
591
612
  // Inline function 'kotlin.text.trim' call
592
613
  // Inline function 'kotlin.text.uppercase' call
593
614
  // Inline function 'kotlin.js.asDynamic' call
@@ -610,7 +631,7 @@ protoOf(CommonOptions).a4y = function (_this__u8e3s4) {
610
631
  }
611
632
  return tmp;
612
633
  };
613
- protoOf(CommonOptions).d4y = function (directory) {
634
+ protoOf(CommonOptions).k5c = function (directory) {
614
635
  return CommonOptions$writer$lambda(directory, this);
615
636
  };
616
637
  var Options_Input_instance;
@@ -620,6 +641,7 @@ var Options_PackageName_instance;
620
641
  var Options_LogLevel_instance;
621
642
  var Options_Shared_instance;
622
643
  var Options_Strict_instance;
644
+ var Options_IgnoreDefaults_instance;
623
645
  var Options_entriesInitialized;
624
646
  function Options_initEntries() {
625
647
  if (Options_entriesInitialized)
@@ -632,10 +654,11 @@ function Options_initEntries() {
632
654
  Options_LogLevel_instance = new Options('LogLevel', 4, ['--log-level']);
633
655
  Options_Shared_instance = new Options('Shared', 5, ['--shared']);
634
656
  Options_Strict_instance = new Options('Strict', 6, ['--strict']);
657
+ Options_IgnoreDefaults_instance = new Options('IgnoreDefaults', 7, ['--ignore-defaults']);
635
658
  }
636
659
  function Options(name, ordinal, flags) {
637
660
  Enum.call(this, name, ordinal);
638
- this.d4x_1 = flags;
661
+ this.j5b_1 = flags;
639
662
  }
640
663
  function handleError(string) {
641
664
  throw new CliktError(string);
@@ -647,8 +670,8 @@ function toEmitters(_this__u8e3s4, packageName, emitShared) {
647
670
  var _iterator__ex2g4s = _this__u8e3s4.t();
648
671
  while (_iterator__ex2g4s.u()) {
649
672
  var item = _iterator__ex2g4s.v();
650
- var tmp$ret$0 = toEmitter(item, packageName, emitShared);
651
- destination.x(tmp$ret$0);
673
+ var tmp$ret$2 = toEmitter(item, packageName, emitShared);
674
+ destination.x(tmp$ret$2);
652
675
  }
653
676
  var tmp0_elvis_lhs = toNonEmptySetOrNull(destination);
654
677
  var tmp;
@@ -688,14 +711,18 @@ function Options_Strict_getInstance() {
688
711
  Options_initEntries();
689
712
  return Options_Strict_instance;
690
713
  }
714
+ function Options_IgnoreDefaults_getInstance() {
715
+ Options_initEntries();
716
+ return Options_IgnoreDefaults_instance;
717
+ }
691
718
  function main_0(args) {
692
719
  // Inline function 'kotlin.collections.mapNotNull' call
693
720
  var tmp0 = until(0, 20);
694
721
  // Inline function 'kotlin.collections.mapNotNullTo' call
695
722
  var destination = ArrayList_init_$Create$_0();
696
723
  // Inline function 'kotlin.collections.forEach' call
697
- var inductionVariable = tmp0.o1_1;
698
- var last = tmp0.p1_1;
724
+ var inductionVariable = tmp0.q1_1;
725
+ var last = tmp0.r1_1;
699
726
  if (inductionVariable <= last)
700
727
  do {
701
728
  var element = inductionVariable;
@@ -713,7 +740,7 @@ function main_0(args) {
713
740
  // Inline function 'kotlin.let' call
714
741
  var tmp = Companion_instance_4;
715
742
  var tmp_0 = compile$ref();
716
- main(tmp.c4w(tmp_0, convert$ref()), destination);
743
+ main(tmp.h5a(tmp_0, convert$ref()), destination);
717
744
  }
718
745
  function compile$ref() {
719
746
  var l = function (p0) {
@@ -739,18 +766,19 @@ function parser(source) {
739
766
  var this_0 = parse(new parser$1(), nonEmptyListOf(new ModuleContent(new FileUri(''), source), []));
740
767
  var tmp;
741
768
  if (this_0 instanceof Left) {
742
- var it = this_0.mm_1.xm_1;
769
+ var it = this_0.sm_1.dn_1;
770
+ // Inline function 'kotlin.error' call
743
771
  var message = 'Cannot parse source: ' + joinToString(new NonEmptyList(it), VOID, VOID, VOID, VOID, VOID, parser$lambda);
744
772
  throw IllegalStateException_init_$Create$(toString(message));
745
773
  } else {
746
774
  if (this_0 instanceof Right) {
747
- tmp = this_0.om_1;
775
+ tmp = this_0.um_1;
748
776
  } else {
749
777
  noWhenBranchMatchedException();
750
778
  }
751
779
  }
752
780
  // Inline function 'arrow.core.NonEmptyList.flatMap' call
753
- var this_1 = tmp.hr_1;
781
+ var this_1 = tmp.ep_1;
754
782
  // Inline function 'kotlin.collections.flatMap' call
755
783
  var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_1);
756
784
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -758,19 +786,19 @@ function parser(source) {
758
786
  var _iterator__ex2g4s = tmp0.t();
759
787
  while (_iterator__ex2g4s.u()) {
760
788
  var element = _iterator__ex2g4s.v();
761
- var list = new NonEmptyList(element.gr_1);
789
+ var list = new NonEmptyList(element.gp_1);
762
790
  addAll(destination, list);
763
791
  }
764
- var tmp$ret$4 = _NonEmptyList___init__impl__fxd0xp(destination);
792
+ var tmp$ret$3 = _NonEmptyList___init__impl__fxd0xp(destination);
765
793
  // Inline function 'kotlin.collections.map' call
766
- var this_2 = NonEmptyList__toList_impl_t5xcy2(tmp$ret$4);
794
+ var this_2 = NonEmptyList__toList_impl_t5xcy2(tmp$ret$3);
767
795
  // Inline function 'kotlin.collections.mapTo' call
768
796
  var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_2, 10));
769
797
  var _iterator__ex2g4s_0 = this_2.t();
770
798
  while (_iterator__ex2g4s_0.u()) {
771
799
  var item = _iterator__ex2g4s_0.v();
772
- var tmp$ret$5 = produce(item);
773
- destination_0.x(tmp$ret$5);
800
+ var tmp$ret$9 = produce(item);
801
+ destination_0.x(tmp$ret$9);
774
802
  }
775
803
  // Inline function 'kotlin.collections.toTypedArray' call
776
804
  return copyToArray(destination_0);
@@ -788,7 +816,7 @@ var nodeArgs;
788
816
  function orNull(_this__u8e3s4, idx) {
789
817
  _init_properties_CommandLineArguments_kt__b5v7hl();
790
818
  // Inline function 'arrow.core.Companion.catch' call
791
- var tmp$ret$3;
819
+ var tmp$ret$1;
792
820
  $l$block: {
793
821
  // Inline function 'arrow.core.raise.catch' call
794
822
  // Inline function 'arrow.core.raise.catch' call
@@ -800,16 +828,16 @@ function orNull(_this__u8e3s4, idx) {
800
828
  if ($p instanceof Error) {
801
829
  var t = $p;
802
830
  var p0 = nonFatalOrThrow(t);
803
- tmp$ret$3 = new Left(p0);
831
+ tmp$ret$1 = new Left(p0);
804
832
  break $l$block;
805
833
  } else {
806
834
  throw $p;
807
835
  }
808
836
  }
809
837
  var value = tmp;
810
- tmp$ret$3 = new Right(value);
838
+ tmp$ret$1 = new Right(value);
811
839
  }
812
- return tmp$ret$3.nm();
840
+ return tmp$ret$1.tm();
813
841
  }
814
842
  var properties_initialized_CommandLineArguments_kt_ekn5uh;
815
843
  function _init_properties_CommandLineArguments_kt__b5v7hl() {
@@ -820,8 +848,8 @@ function _init_properties_CommandLineArguments_kt__b5v7hl() {
820
848
  }
821
849
  }
822
850
  //region block: post-declaration
823
- protoOf(parser$1).fo = get_spec;
824
- protoOf(parser$1).go = get_logger;
851
+ protoOf(parser$1).lo = get_spec;
852
+ protoOf(parser$1).mo = get_logger;
825
853
  //endregion
826
854
  //region block: init
827
855
  Companion_instance_4 = new Companion();