@flock/wirespec 0.12.9 → 0.13.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.
@@ -12,12 +12,12 @@ import {
12
12
  coerceAtLeast2bkz8m9ik7hep as coerceAtLeast,
13
13
  LinkedHashMap_init_$Create$snys8oz8txtu as LinkedHashMap_init_$Create$,
14
14
  ArrayList_init_$Create$2rimpp4x9tjd3 as ArrayList_init_$Create$,
15
- to2cs3ny02qtbcb as to,
16
15
  noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
17
16
  ArrayList_init_$Create$3m1kyiqequwm5 as ArrayList_init_$Create$_0,
18
17
  addAll1k27qatfgp3k5 as addAll,
19
18
  ensureNotNull1e947j3ixpazm as ensureNotNull,
20
19
  println2shhhgwwt4c61 as println,
20
+ to2cs3ny02qtbcb as to,
21
21
  first58ocm7j58k3q as first,
22
22
  toString1pkumu07cwy4m as toString,
23
23
  hashCodeq5arwsb9dgti as hashCode,
@@ -33,9 +33,12 @@ import {
33
33
  _Char___init__impl__6a9atx367vrx0avsvbg as _Char___init__impl__6a9atx,
34
34
  charArrayOf27f4r3dozbrk1 as charArrayOf,
35
35
  split3d3yeauc4rm2n as split_0,
36
+ substringAfter35b3qhto7hchb as substringAfter,
37
+ startsWith26w8qjqapeeq6 as startsWith,
38
+ throwKotlinNothingValueException2lxmvl03dor6f as throwKotlinNothingValueException,
39
+ substringAfterLast3r0t0my8cpqhk as substringAfterLast,
36
40
  } from './kotlin-kotlin-stdlib.mjs';
37
41
  import {
38
- NonEmptySet1rtvr2guloo52 as NonEmptySet,
39
42
  _NonEmptySet___get_elements__impl__g09gj93rk9dtepr20b0 as _NonEmptySet___get_elements__impl__g09gj9,
40
43
  nonEmptyListOf17xawqyzwrlrt as nonEmptyListOf,
41
44
  Left2oemzq1tpcg4i as Left,
@@ -46,13 +49,15 @@ import {
46
49
  nonFatalOrThrow35agffkx4bbtz as nonFatalOrThrow,
47
50
  raisedOrRethrow397oyvsdde7oq as raisedOrRethrow,
48
51
  RaiseCancellationException3n5raogfhbd1l as RaiseCancellationException,
52
+ NonEmptySet1rtvr2guloo52 as NonEmptySet,
49
53
  right2w60qw9uivnyr as right,
50
54
  NonEmptySet__toString_impl_yfcj6n17aozveblinij as NonEmptySet__toString_impl_yfcj6n,
51
55
  NonEmptySet__hashCode_impl_co6mds3g7qt287zdejc as NonEmptySet__hashCode_impl_co6mds,
56
+ toNonEmptySetOrNull1tjnd9jrkd4bs as toNonEmptySetOrNull,
52
57
  } from './arrow-arrow-core.mjs';
53
58
  import {
54
- Companion_instance102bxzj2ej5fu as Companion_instance,
55
59
  compileit3hbmteplcy as compile,
60
+ Companion_instance102bxzj2ej5fu as Companion_instance,
56
61
  get_spec3cnzsbb1ufwje as get_spec,
57
62
  HasLanguageSpec1fo5x3q6dcifj as HasLanguageSpec,
58
63
  Companion_getInstance3exl5179osn9k as Companion_getInstance,
@@ -65,6 +70,14 @@ import {
65
70
  OpenAPIV3Parser_instance292ngistbqurv as OpenAPIV3Parser_instance,
66
71
  } from './wirespec-src-converter-openapi.mjs';
67
72
  import { AvroParser_instance25ibqzb3yimhc as AvroParser_instance } from './wirespec-src-converter-avro.mjs';
73
+ import {
74
+ Path21qufdfgaayly as Path,
75
+ get_SystemFileSystemcqw7gp4jhbc7 as get_SystemFileSystem,
76
+ buffered3kq86cdmguv3h as buffered,
77
+ readString2nvggcfaijfhd as readString,
78
+ buffered1hqdy4i9j28ez as buffered_0,
79
+ writeString33ca4btrgctw7 as writeString,
80
+ } from './kotlinx-io-kotlinx-io-core.mjs';
68
81
  //region block: imports
69
82
  var imul = Math.imul;
70
83
  //endregion
@@ -84,6 +97,12 @@ initMetadataForClass(Directory, 'Directory');
84
97
  initMetadataForCompanion(Companion_1);
85
98
  initMetadataForClass(FilePath, 'FilePath');
86
99
  initMetadataForClass(Name, 'Name');
100
+ initMetadataForClass(IOError, 'IOError');
101
+ initMetadataForClass(SpecificFile, 'SpecificFile', VOID, IOError);
102
+ initMetadataForClass(WirespecFileError, 'WirespecFileError', WirespecFileError, SpecificFile);
103
+ initMetadataForClass(CannotAccessFileOrDirectory, 'CannotAccessFileOrDirectory', VOID, IOError);
104
+ initMetadataForClass(IsNotAFileOrDirectory, 'IsNotAFileOrDirectory', VOID, IOError);
105
+ initMetadataForClass(OutputShouldBeADirectory, 'OutputShouldBeADirectory', OutputShouldBeADirectory, IOError);
87
106
  //endregion
88
107
  var Format_OpenAPIV2_instance;
89
108
  var Format_OpenAPIV3_instance;
@@ -134,12 +153,13 @@ var Language_Java_instance;
134
153
  var Language_Kotlin_instance;
135
154
  var Language_Scala_instance;
136
155
  var Language_TypeScript_instance;
156
+ var Language_Python_instance;
137
157
  var Language_Wirespec_instance;
138
158
  var Language_OpenAPIV2_instance;
139
159
  var Language_OpenAPIV3_instance;
140
160
  function Companion_0() {
141
161
  }
142
- protoOf(Companion_0).s2f = function () {
162
+ protoOf(Companion_0).i2j = function () {
143
163
  // Inline function 'kotlin.collections.associateBy' call
144
164
  var this_0 = get_entries_1();
145
165
  var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
@@ -149,8 +169,8 @@ protoOf(Companion_0).s2f = function () {
149
169
  while (_iterator__ex2g4s.h()) {
150
170
  var element = _iterator__ex2g4s.i();
151
171
  // Inline function 'community.flock.wirespec.plugin.Companion.toMap.<anonymous>' call
152
- var tmp$ret$0 = element.o2_1;
153
- destination.l2(tmp$ret$0, element);
172
+ var tmp$ret$0 = element.q2_1;
173
+ destination.n2(tmp$ret$0, element);
154
174
  }
155
175
  return destination;
156
176
  };
@@ -162,7 +182,7 @@ function Companion_getInstance_1() {
162
182
  return Companion_instance_1;
163
183
  }
164
184
  function values_0() {
165
- return [Language_Java_getInstance(), Language_Kotlin_getInstance(), Language_Scala_getInstance(), Language_TypeScript_getInstance(), Language_Wirespec_getInstance(), Language_OpenAPIV2_getInstance(), Language_OpenAPIV3_getInstance()];
185
+ return [Language_Java_getInstance(), Language_Kotlin_getInstance(), Language_Scala_getInstance(), Language_TypeScript_getInstance(), Language_Python_getInstance(), Language_Wirespec_getInstance(), Language_OpenAPIV2_getInstance(), Language_OpenAPIV3_getInstance()];
166
186
  }
167
187
  function get_entries_1() {
168
188
  if ($ENTRIES_0 == null)
@@ -178,9 +198,10 @@ function Language_initEntries() {
178
198
  Language_Kotlin_instance = new Language('Kotlin', 1);
179
199
  Language_Scala_instance = new Language('Scala', 2);
180
200
  Language_TypeScript_instance = new Language('TypeScript', 3);
181
- Language_Wirespec_instance = new Language('Wirespec', 4);
182
- Language_OpenAPIV2_instance = new Language('OpenAPIV2', 5);
183
- Language_OpenAPIV3_instance = new Language('OpenAPIV3', 6);
201
+ Language_Python_instance = new Language('Python', 4);
202
+ Language_Wirespec_instance = new Language('Wirespec', 5);
203
+ Language_OpenAPIV2_instance = new Language('OpenAPIV2', 6);
204
+ Language_OpenAPIV3_instance = new Language('OpenAPIV3', 7);
184
205
  }
185
206
  var $ENTRIES_0;
186
207
  function Language(name, ordinal) {
@@ -202,6 +223,10 @@ function Language_TypeScript_getInstance() {
202
223
  Language_initEntries();
203
224
  return Language_TypeScript_instance;
204
225
  }
226
+ function Language_Python_getInstance() {
227
+ Language_initEntries();
228
+ return Language_Python_instance;
229
+ }
205
230
  function Language_Wirespec_getInstance() {
206
231
  Language_initEntries();
207
232
  return Language_Wirespec_instance;
@@ -214,83 +239,10 @@ function Language_OpenAPIV3_getInstance() {
214
239
  Language_initEntries();
215
240
  return Language_OpenAPIV3_instance;
216
241
  }
217
- function mapShared(_this__u8e3s4) {
218
- // Inline function 'kotlin.collections.mapNotNull' call
219
- var tmp0 = new NonEmptySet(_this__u8e3s4.t2f());
220
- // Inline function 'kotlin.collections.mapNotNullTo' call
221
- var destination = ArrayList_init_$Create$();
222
- // Inline function 'kotlin.collections.forEach' call
223
- var _iterator__ex2g4s = tmp0.g();
224
- while (_iterator__ex2g4s.h()) {
225
- var element = _iterator__ex2g4s.i();
226
- // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
227
- // Inline function 'community.flock.wirespec.plugin.mapShared.<anonymous>' call
228
- var tmp0_safe_receiver = mapShared_0(element, new FilePath(_this__u8e3s4.v2f().u2f_1, _Name___init__impl__o4q07e('Wirespec'), element.d26()), _this__u8e3s4.e26());
229
- if (tmp0_safe_receiver == null)
230
- null;
231
- else {
232
- // Inline function 'kotlin.let' call
233
- // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>.<anonymous>' call
234
- destination.e(tmp0_safe_receiver);
235
- }
236
- }
237
- return destination;
238
- }
239
- function mapShared_0(_this__u8e3s4, filePath, shared) {
240
- // Inline function 'kotlin.takeIf' call
241
- var tmp;
242
- // Inline function 'community.flock.wirespec.plugin.mapShared.<anonymous>' call
243
- if (shared) {
244
- tmp = _this__u8e3s4;
245
- } else {
246
- tmp = null;
247
- }
248
- var tmp0_safe_receiver = tmp;
249
- var tmp_0;
250
- if (tmp0_safe_receiver == null) {
251
- tmp_0 = null;
252
- } else {
253
- // Inline function 'kotlin.let' call
254
- // Inline function 'community.flock.wirespec.plugin.mapShared.<anonymous>' call
255
- var tmp0_safe_receiver_0 = tmp0_safe_receiver.e26();
256
- var tmp_1;
257
- if (tmp0_safe_receiver_0 == null) {
258
- tmp_1 = null;
259
- } else {
260
- // Inline function 'kotlin.run' call
261
- // Inline function 'community.flock.wirespec.plugin.mapShared.<anonymous>.<anonymous>' call
262
- tmp_1 = to(filePath.z2f(VOID, VOID, tmp0_safe_receiver.d26()), tmp0_safe_receiver_0);
263
- }
264
- tmp_0 = tmp_1;
265
- }
266
- var tmp1_safe_receiver = tmp_0;
267
- var tmp_2;
268
- if (tmp1_safe_receiver == null) {
269
- tmp_2 = null;
270
- } else {
271
- // Inline function 'kotlin.let' call
272
- // Inline function 'community.flock.wirespec.plugin.mapShared.<anonymous>' call
273
- var file = tmp1_safe_receiver.yd();
274
- var shared_0 = tmp1_safe_receiver.zd();
275
- tmp_2 = to(file.z2f(plus_1(file.w2f_1, Companion_instance.c26(shared_0.k29()))), shared_0);
276
- }
277
- var tmp2_safe_receiver = tmp_2;
278
- var tmp_3;
279
- if (tmp2_safe_receiver == null) {
280
- tmp_3 = null;
281
- } else {
282
- // Inline function 'kotlin.let' call
283
- // Inline function 'community.flock.wirespec.plugin.mapShared.<anonymous>' call
284
- var file_0 = tmp2_safe_receiver.yd();
285
- var shared_1 = tmp2_safe_receiver.zd();
286
- tmp_3 = to(file_0, shared_1.f1g());
287
- }
288
- return tmp_3;
289
- }
290
242
  function compile_0(arguments_0) {
291
243
  var ctx = compile$lambda(arguments_0);
292
244
  // Inline function 'arrow.core.NonEmptySet.flatMap' call
293
- var this_0 = arguments_0.a2g_1;
245
+ var this_0 = arguments_0.j2j_1;
294
246
  // Inline function 'kotlin.collections.flatMap' call
295
247
  var tmp0 = _NonEmptySet___get_elements__impl__g09gj9(this_0);
296
248
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -300,12 +252,12 @@ function compile_0(arguments_0) {
300
252
  var element = _iterator__ex2g4s.i();
301
253
  // Inline function 'community.flock.wirespec.plugin.compile.<anonymous>' call
302
254
  // Inline function 'arrow.core.NonEmptyList.map' call
303
- var this_1 = pairWithEmitters(toFilePath(plus_0(arguments_0.b2g_1, arguments_0.f2g_1), element.j2g_1), arguments_0.c2g_1);
255
+ var this_1 = pairWithEmitters(toFilePath(plus_0(arguments_0.k2j_1, arguments_0.o2j_1), element.s2j_1), arguments_0.l2j_1);
304
256
  // Inline function 'community.flock.wirespec.plugin.compile.<anonymous>.<anonymous>' call
305
257
  var destruct = this_1.uk_1;
306
258
  var outputFile = destruct.yd();
307
259
  var emitter = destruct.zd();
308
- var tmp0_0 = compile(ctx(emitter), nonEmptyListOf(element.k2g_1, []));
260
+ var tmp0_0 = compile(ctx(emitter), nonEmptyListOf(element.t2j_1, []));
309
261
  // Inline function 'arrow.core.Either.map' call
310
262
  var f = keepSplitOrCombine(emitter.j23_1, outputFile);
311
263
  // Inline function 'kotlin.contracts.contract' call
@@ -334,7 +286,7 @@ function compile_0(arguments_0) {
334
286
  // Inline function 'community.flock.wirespec.plugin.compile.<anonymous>.<anonymous>' call
335
287
  var outputFile_0 = item.yd();
336
288
  var emitter_0 = item.zd();
337
- var tmp0_1 = compile(ctx(emitter_0), nonEmptyListOf(element.k2g_1, []));
289
+ var tmp0_1 = compile(ctx(emitter_0), nonEmptyListOf(element.t2j_1, []));
338
290
  // Inline function 'arrow.core.Either.map' call
339
291
  var f_0 = keepSplitOrCombine(emitter_0.j23_1, outputFile_0);
340
292
  // Inline function 'kotlin.contracts.contract' call
@@ -448,7 +400,7 @@ function compile_0(arguments_0) {
448
400
  // Inline function 'arrow.core.NonEmptyList.map' call
449
401
  var this_6 = this_5.jk_1;
450
402
  // Inline function 'community.flock.wirespec.plugin.compile.<anonymous>.stub_for_inlining' call
451
- var tmp_7 = this_6.uk_1.g9();
403
+ var tmp_7 = this_6.uk_1.r1();
452
404
  // Inline function 'kotlin.collections.map' call
453
405
  var this_7 = this_6.vk_1;
454
406
  // Inline function 'kotlin.collections.mapTo' call
@@ -457,7 +409,7 @@ function compile_0(arguments_0) {
457
409
  while (_iterator__ex2g4s_1.h()) {
458
410
  var item_0 = _iterator__ex2g4s_1.i();
459
411
  // Inline function 'community.flock.wirespec.plugin.compile.<anonymous>.stub_for_inlining' call
460
- var tmp$ret$34 = item_0.g9();
412
+ var tmp$ret$34 = item_0.r1();
461
413
  destination_1.e(tmp$ret$34);
462
414
  }
463
415
  var tmp$ret$38 = new NonEmptyList(tmp_7, destination_1);
@@ -478,14 +430,14 @@ function compile_0(arguments_0) {
478
430
  // Inline function 'community.flock.wirespec.plugin.compile.<anonymous>.<anonymous>' call
479
431
  var file = element_0.yd();
480
432
  var result = element_0.zd();
481
- println('Writing ' + _Name___get_value__impl__3tbxxy(file.x2f_1) + ' to ' + DirectoryPath__toString_impl_ym9pdb(file.w2f_1));
482
- arguments_0.d2g_1(file, result);
433
+ println('Writing ' + _Name___get_value__impl__3tbxxy(file.v2j_1) + ' to ' + DirectoryPath__toString_impl_ym9pdb(file.u2j_1));
434
+ arguments_0.m2j_1(file, result);
483
435
  }
484
436
  } else {
485
437
  if (this_8 instanceof Left) {
486
438
  // Inline function 'community.flock.wirespec.plugin.compile.<anonymous>' call
487
439
  var it_5 = this_8.jk_1;
488
- arguments_0.e2g_1(joinToString(it_5));
440
+ arguments_0.n2j_1(joinToString(it_5));
489
441
  } else {
490
442
  noWhenBranchMatchedException();
491
443
  }
@@ -495,7 +447,7 @@ function compile_0(arguments_0) {
495
447
  function convert(arguments_0) {
496
448
  var ctx = convert$lambda(arguments_0);
497
449
  // Inline function 'arrow.core.NonEmptySet.flatMap' call
498
- var this_0 = arguments_0.m2g_1;
450
+ var this_0 = arguments_0.y2j_1;
499
451
  // Inline function 'kotlin.collections.flatMap' call
500
452
  var tmp0 = _NonEmptySet___get_elements__impl__g09gj9(this_0);
501
453
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -505,12 +457,12 @@ function convert(arguments_0) {
505
457
  var element = _iterator__ex2g4s.i();
506
458
  // Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
507
459
  // Inline function 'arrow.core.NonEmptyList.map' call
508
- var this_1 = pairWithEmitters(toFilePath(plus_0(arguments_0.n2g_1, arguments_0.r2g_1), element.j2g_1), arguments_0.o2g_1);
460
+ var this_1 = pairWithEmitters(toFilePath(plus_0(arguments_0.z2j_1, arguments_0.d2k_1), element.s2j_1), arguments_0.a2k_1);
509
461
  // Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
510
462
  var destruct = this_1.uk_1;
511
463
  var outputFile = destruct.yd();
512
464
  var emitter = destruct.zd();
513
- var tmp0_0 = ctx(emitter).y2g(element.k2g_1);
465
+ var tmp0_0 = ctx(emitter).k2k(element.t2j_1);
514
466
  // Inline function 'arrow.core.Either.map' call
515
467
  var f = keepSplitOrCombine(emitter.j23_1, outputFile);
516
468
  // Inline function 'kotlin.contracts.contract' call
@@ -539,7 +491,7 @@ function convert(arguments_0) {
539
491
  // Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
540
492
  var outputFile_0 = item.yd();
541
493
  var emitter_0 = item.zd();
542
- var tmp0_1 = ctx(emitter_0).y2g(element.k2g_1);
494
+ var tmp0_1 = ctx(emitter_0).k2k(element.t2j_1);
543
495
  // Inline function 'arrow.core.Either.map' call
544
496
  var f_0 = keepSplitOrCombine(emitter_0.j23_1, outputFile_0);
545
497
  // Inline function 'kotlin.contracts.contract' call
@@ -648,7 +600,7 @@ function convert(arguments_0) {
648
600
  // Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
649
601
  var file = element_0.yd();
650
602
  var result = element_0.zd();
651
- arguments_0.p2g_1(file, result);
603
+ arguments_0.b2k_1(file, result);
652
604
  }
653
605
  } else {
654
606
  if (this_5 instanceof Left) {
@@ -660,6 +612,28 @@ function convert(arguments_0) {
660
612
  }
661
613
  return Unit_instance;
662
614
  }
615
+ function mapShared(_this__u8e3s4) {
616
+ // Inline function 'kotlin.collections.mapNotNull' call
617
+ var tmp0 = new NonEmptySet(_this__u8e3s4.l2k());
618
+ // Inline function 'kotlin.collections.mapNotNullTo' call
619
+ var destination = ArrayList_init_$Create$();
620
+ // Inline function 'kotlin.collections.forEach' call
621
+ var _iterator__ex2g4s = tmp0.g();
622
+ while (_iterator__ex2g4s.h()) {
623
+ var element = _iterator__ex2g4s.i();
624
+ // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
625
+ // Inline function 'community.flock.wirespec.plugin.mapShared.<anonymous>' call
626
+ var tmp0_safe_receiver = mapShared_0(element, new FilePath(_this__u8e3s4.n2k().m2k_1, _Name___init__impl__o4q07e('Wirespec'), element.d26()), _this__u8e3s4.e26());
627
+ if (tmp0_safe_receiver == null)
628
+ null;
629
+ else {
630
+ // Inline function 'kotlin.let' call
631
+ // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>.<anonymous>' call
632
+ destination.e(tmp0_safe_receiver);
633
+ }
634
+ }
635
+ return destination;
636
+ }
663
637
  function flatten(_this__u8e3s4) {
664
638
  // Inline function 'arrow.core.NonEmptyList.flatMap' call
665
639
  // Inline function 'community.flock.wirespec.plugin.flatten.<anonymous>' call
@@ -671,7 +645,7 @@ function flatten(_this__u8e3s4) {
671
645
  var destruct_0 = results.uk_1;
672
646
  var name = destruct_0.yd();
673
647
  var result = destruct_0.zd();
674
- var tmp = to(file.z2f(VOID, _Name___init__impl__o4q07e(name)), result);
648
+ var tmp = to(file.o2k(VOID, _Name___init__impl__o4q07e(name)), result);
675
649
  // Inline function 'kotlin.collections.map' call
676
650
  var this_0 = results.vk_1;
677
651
  // Inline function 'kotlin.collections.mapTo' call
@@ -682,7 +656,7 @@ function flatten(_this__u8e3s4) {
682
656
  // Inline function 'community.flock.wirespec.plugin.flatten.<anonymous>.<anonymous>' call
683
657
  var name_0 = item.yd();
684
658
  var result_0 = item.zd();
685
- var tmp$ret$1 = to(file.z2f(VOID, _Name___init__impl__o4q07e(name_0)), result_0);
659
+ var tmp$ret$1 = to(file.o2k(VOID, _Name___init__impl__o4q07e(name_0)), result_0);
686
660
  destination.e(tmp$ret$1);
687
661
  }
688
662
  var tmp_0 = (new NonEmptyList(tmp, destination)).sk();
@@ -701,7 +675,7 @@ function flatten(_this__u8e3s4) {
701
675
  var destruct_1 = results_0.uk_1;
702
676
  var name_1 = destruct_1.yd();
703
677
  var result_1 = destruct_1.zd();
704
- var tmp_1 = to(file_0.z2f(VOID, _Name___init__impl__o4q07e(name_1)), result_1);
678
+ var tmp_1 = to(file_0.o2k(VOID, _Name___init__impl__o4q07e(name_1)), result_1);
705
679
  // Inline function 'kotlin.collections.map' call
706
680
  var this_1 = results_0.vk_1;
707
681
  // Inline function 'kotlin.collections.mapTo' call
@@ -712,7 +686,7 @@ function flatten(_this__u8e3s4) {
712
686
  // Inline function 'community.flock.wirespec.plugin.flatten.<anonymous>.<anonymous>' call
713
687
  var name_2 = item_0.yd();
714
688
  var result_2 = item_0.zd();
715
- var tmp$ret$7 = to(file_0.z2f(VOID, _Name___init__impl__o4q07e(name_2)), result_2);
689
+ var tmp$ret$7 = to(file_0.o2k(VOID, _Name___init__impl__o4q07e(name_2)), result_2);
716
690
  destination_1.e(tmp$ret$7);
717
691
  }
718
692
  var list = new NonEmptyList(tmp_1, destination_1);
@@ -733,20 +707,71 @@ function pairWithEmitters(_this__u8e3s4, emitters) {
733
707
  while (_iterator__ex2g4s.h()) {
734
708
  var item = _iterator__ex2g4s.i();
735
709
  // Inline function 'community.flock.wirespec.plugin.pairWithEmitters.<anonymous>' call
736
- var tmp$ret$0 = to(_this__u8e3s4.z2f(VOID, VOID, item.d26()), item);
710
+ var tmp$ret$0 = to(_this__u8e3s4.o2k(VOID, VOID, item.d26()), item);
737
711
  destination.e(tmp$ret$0);
738
712
  }
739
713
  return ensureNotNull(toNonEmptyListOrNull(destination));
740
714
  }
715
+ function mapShared_0(_this__u8e3s4, filePath, shared) {
716
+ // Inline function 'kotlin.takeIf' call
717
+ var tmp;
718
+ // Inline function 'community.flock.wirespec.plugin.mapShared.<anonymous>' call
719
+ if (shared) {
720
+ tmp = _this__u8e3s4;
721
+ } else {
722
+ tmp = null;
723
+ }
724
+ var tmp0_safe_receiver = tmp;
725
+ var tmp_0;
726
+ if (tmp0_safe_receiver == null) {
727
+ tmp_0 = null;
728
+ } else {
729
+ // Inline function 'kotlin.let' call
730
+ // Inline function 'community.flock.wirespec.plugin.mapShared.<anonymous>' call
731
+ var tmp0_safe_receiver_0 = tmp0_safe_receiver.e26();
732
+ var tmp_1;
733
+ if (tmp0_safe_receiver_0 == null) {
734
+ tmp_1 = null;
735
+ } else {
736
+ // Inline function 'kotlin.run' call
737
+ // Inline function 'community.flock.wirespec.plugin.mapShared.<anonymous>.<anonymous>' call
738
+ tmp_1 = to(filePath.o2k(VOID, VOID, tmp0_safe_receiver.d26()), tmp0_safe_receiver_0);
739
+ }
740
+ tmp_0 = tmp_1;
741
+ }
742
+ var tmp1_safe_receiver = tmp_0;
743
+ var tmp_2;
744
+ if (tmp1_safe_receiver == null) {
745
+ tmp_2 = null;
746
+ } else {
747
+ // Inline function 'kotlin.let' call
748
+ // Inline function 'community.flock.wirespec.plugin.mapShared.<anonymous>' call
749
+ var file = tmp1_safe_receiver.yd();
750
+ var shared_0 = tmp1_safe_receiver.zd();
751
+ tmp_2 = to(file.o2k(plus_1(file.u2j_1, Companion_instance.c26(shared_0.w29()))), shared_0);
752
+ }
753
+ var tmp2_safe_receiver = tmp_2;
754
+ var tmp_3;
755
+ if (tmp2_safe_receiver == null) {
756
+ tmp_3 = null;
757
+ } else {
758
+ // Inline function 'kotlin.let' call
759
+ // Inline function 'community.flock.wirespec.plugin.mapShared.<anonymous>' call
760
+ var file_0 = tmp2_safe_receiver.yd();
761
+ var shared_1 = tmp2_safe_receiver.zd();
762
+ tmp_3 = to(file_0, shared_1.f1g());
763
+ }
764
+ return tmp_3;
765
+ }
741
766
  function compile$ctx$1$1($arguments, $emitter) {
742
- this.z2g_1 = $arguments.g2g_1;
743
- this.a2h_1 = $emitter;
767
+ this.p2k_1 = $arguments.p2j_1;
768
+ this.q2k_1 = $emitter;
744
769
  }
745
770
  protoOf(compile$ctx$1$1).y22 = function () {
746
- return this.z2g_1;
771
+ return this.p2k_1;
747
772
  };
748
773
  protoOf(compile$ctx$1$1).i23 = function () {
749
- return this.a2h_1;
774
+ return this.q2k_1;
750
775
  };
751
776
  function compile$lambda($arguments) {
752
777
  return function (emitter) {
@@ -755,31 +780,31 @@ function compile$lambda($arguments) {
755
780
  }
756
781
  function OpenAPIV2Parser$parse$ref($boundThis) {
757
782
  var l = function (p0, p1) {
758
- return $boundThis.b2e(p0, p1);
783
+ return $boundThis.q2e(p0, p1);
759
784
  };
760
785
  l.callableName = 'parse';
761
786
  return l;
762
787
  }
763
788
  function OpenAPIV3Parser$parse$ref($boundThis) {
764
789
  var l = function (p0, p1) {
765
- return $boundThis.b2e(p0, p1);
790
+ return $boundThis.q2e(p0, p1);
766
791
  };
767
792
  l.callableName = 'parse';
768
793
  return l;
769
794
  }
770
795
  function AvroParser$parse$ref($boundThis) {
771
796
  var l = function (p0, p1) {
772
- return $boundThis.b2e(p0, p1);
797
+ return $boundThis.q2e(p0, p1);
773
798
  };
774
799
  l.callableName = 'parse';
775
800
  return l;
776
801
  }
777
802
  function convert$ctx$1$1($arguments, $emitter) {
778
- this.w2g_1 = $arguments;
779
- this.x2g_1 = $emitter;
803
+ this.i2k_1 = $arguments;
804
+ this.j2k_1 = $emitter;
780
805
  var tmp = this;
781
806
  var tmp_0;
782
- switch ($arguments.l2g_1.p2_1) {
807
+ switch ($arguments.x2j_1.r2_1) {
783
808
  case 0:
784
809
  tmp_0 = OpenAPIV2Parser$parse$ref(OpenAPIV2Parser_instance);
785
810
  break;
@@ -793,10 +818,10 @@ function convert$ctx$1$1($arguments, $emitter) {
793
818
  noWhenBranchMatchedException();
794
819
  break;
795
820
  }
796
- tmp.v2g_1 = tmp_0;
821
+ tmp.h2k_1 = tmp_0;
797
822
  }
798
- protoOf(convert$ctx$1$1).y2g = function (source) {
799
- return right(this.x2g_1.k23(this.v2g_1(source, this.w2g_1.u2g_1), this.w2g_1.s2g_1));
823
+ protoOf(convert$ctx$1$1).k2k = function (source) {
824
+ return right(this.j2k_1.k23(this.h2k_1(source, this.i2k_1.g2k_1), this.i2k_1.e2k_1));
800
825
  };
801
826
  function convert$lambda($arguments) {
802
827
  return function (emitter) {
@@ -811,7 +836,7 @@ function keepSplitOrCombine$lambda($split, $outputFile) {
811
836
  tmp = to($outputFile, emitted);
812
837
  break;
813
838
  case false:
814
- tmp = to($outputFile, nonEmptyListOf(new Emitted(Companion_getInstance().l25(_Name___get_value__impl__3tbxxy($outputFile.x2f_1)), first(emitted).z26_1), []));
839
+ tmp = to($outputFile, nonEmptyListOf(new Emitted(Companion_getInstance().l25(_Name___get_value__impl__3tbxxy($outputFile.v2j_1)), first(emitted).z26_1), []));
815
840
  break;
816
841
  default:
817
842
  noWhenBranchMatchedException();
@@ -821,38 +846,38 @@ function keepSplitOrCombine$lambda($split, $outputFile) {
821
846
  };
822
847
  }
823
848
  function CompilerArguments(input, output, emitters, writer, error, packageName, logger, shared, strict) {
824
- this.a2g_1 = input;
825
- this.b2g_1 = output;
826
- this.c2g_1 = emitters;
827
- this.d2g_1 = writer;
828
- this.e2g_1 = error;
829
- this.f2g_1 = packageName;
830
- this.g2g_1 = logger;
831
- this.h2g_1 = shared;
832
- this.i2g_1 = strict;
833
- }
834
- protoOf(CompilerArguments).v2f = function () {
835
- return this.b2g_1;
849
+ this.j2j_1 = input;
850
+ this.k2j_1 = output;
851
+ this.l2j_1 = emitters;
852
+ this.m2j_1 = writer;
853
+ this.n2j_1 = error;
854
+ this.o2j_1 = packageName;
855
+ this.p2j_1 = logger;
856
+ this.q2j_1 = shared;
857
+ this.r2j_1 = strict;
858
+ }
859
+ protoOf(CompilerArguments).n2k = function () {
860
+ return this.k2j_1;
836
861
  };
837
- protoOf(CompilerArguments).t2f = function () {
838
- return this.c2g_1;
862
+ protoOf(CompilerArguments).l2k = function () {
863
+ return this.l2j_1;
839
864
  };
840
865
  protoOf(CompilerArguments).e26 = function () {
841
- return this.h2g_1;
866
+ return this.q2j_1;
842
867
  };
843
868
  protoOf(CompilerArguments).toString = function () {
844
- return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.a2g_1) + ', output=' + toString(this.b2g_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.c2g_1) + ', writer=' + toString(this.d2g_1) + ', error=' + toString(this.e2g_1) + ', packageName=' + this.f2g_1.toString() + ', logger=' + toString(this.g2g_1) + ', shared=' + this.h2g_1 + ', strict=' + this.i2g_1 + ')';
869
+ return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.j2j_1) + ', output=' + toString(this.k2j_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.l2j_1) + ', writer=' + toString(this.m2j_1) + ', error=' + toString(this.n2j_1) + ', packageName=' + this.o2j_1.toString() + ', logger=' + toString(this.p2j_1) + ', shared=' + this.q2j_1 + ', strict=' + this.r2j_1 + ')';
845
870
  };
846
871
  protoOf(CompilerArguments).hashCode = function () {
847
- var result = NonEmptySet__hashCode_impl_co6mds(this.a2g_1);
848
- result = imul(result, 31) + hashCode(this.b2g_1) | 0;
849
- result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.c2g_1) | 0;
850
- result = imul(result, 31) + hashCode(this.d2g_1) | 0;
851
- result = imul(result, 31) + hashCode(this.e2g_1) | 0;
852
- result = imul(result, 31) + hashCode(this.f2g_1) | 0;
853
- result = imul(result, 31) + hashCode(this.g2g_1) | 0;
854
- result = imul(result, 31) + getBooleanHashCode(this.h2g_1) | 0;
855
- result = imul(result, 31) + getBooleanHashCode(this.i2g_1) | 0;
872
+ var result = NonEmptySet__hashCode_impl_co6mds(this.j2j_1);
873
+ result = imul(result, 31) + hashCode(this.k2j_1) | 0;
874
+ result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.l2j_1) | 0;
875
+ result = imul(result, 31) + hashCode(this.m2j_1) | 0;
876
+ result = imul(result, 31) + hashCode(this.n2j_1) | 0;
877
+ result = imul(result, 31) + hashCode(this.o2j_1) | 0;
878
+ result = imul(result, 31) + hashCode(this.p2j_1) | 0;
879
+ result = imul(result, 31) + getBooleanHashCode(this.q2j_1) | 0;
880
+ result = imul(result, 31) + getBooleanHashCode(this.r2j_1) | 0;
856
881
  return result;
857
882
  };
858
883
  protoOf(CompilerArguments).equals = function (other) {
@@ -861,61 +886,61 @@ protoOf(CompilerArguments).equals = function (other) {
861
886
  if (!(other instanceof CompilerArguments))
862
887
  return false;
863
888
  var tmp0_other_with_cast = other instanceof CompilerArguments ? other : THROW_CCE();
864
- if (!equals(new NonEmptySet(this.a2g_1), new NonEmptySet(tmp0_other_with_cast.a2g_1)))
889
+ if (!equals(new NonEmptySet(this.j2j_1), new NonEmptySet(tmp0_other_with_cast.j2j_1)))
865
890
  return false;
866
- if (!equals(this.b2g_1, tmp0_other_with_cast.b2g_1))
891
+ if (!equals(this.k2j_1, tmp0_other_with_cast.k2j_1))
867
892
  return false;
868
- if (!equals(new NonEmptySet(this.c2g_1), new NonEmptySet(tmp0_other_with_cast.c2g_1)))
893
+ if (!equals(new NonEmptySet(this.l2j_1), new NonEmptySet(tmp0_other_with_cast.l2j_1)))
869
894
  return false;
870
- if (!equals(this.d2g_1, tmp0_other_with_cast.d2g_1))
895
+ if (!equals(this.m2j_1, tmp0_other_with_cast.m2j_1))
871
896
  return false;
872
- if (!equals(this.e2g_1, tmp0_other_with_cast.e2g_1))
897
+ if (!equals(this.n2j_1, tmp0_other_with_cast.n2j_1))
873
898
  return false;
874
- if (!equals(this.f2g_1, tmp0_other_with_cast.f2g_1))
899
+ if (!equals(this.o2j_1, tmp0_other_with_cast.o2j_1))
875
900
  return false;
876
- if (!equals(this.g2g_1, tmp0_other_with_cast.g2g_1))
901
+ if (!equals(this.p2j_1, tmp0_other_with_cast.p2j_1))
877
902
  return false;
878
- if (!(this.h2g_1 === tmp0_other_with_cast.h2g_1))
903
+ if (!(this.q2j_1 === tmp0_other_with_cast.q2j_1))
879
904
  return false;
880
- if (!(this.i2g_1 === tmp0_other_with_cast.i2g_1))
905
+ if (!(this.r2j_1 === tmp0_other_with_cast.r2j_1))
881
906
  return false;
882
907
  return true;
883
908
  };
884
909
  function ConverterArguments(format, input, output, emitters, writer, error, packageName, logger, shared, strict) {
885
- this.l2g_1 = format;
886
- this.m2g_1 = input;
887
- this.n2g_1 = output;
888
- this.o2g_1 = emitters;
889
- this.p2g_1 = writer;
890
- this.q2g_1 = error;
891
- this.r2g_1 = packageName;
892
- this.s2g_1 = logger;
893
- this.t2g_1 = shared;
894
- this.u2g_1 = strict;
895
- }
896
- protoOf(ConverterArguments).v2f = function () {
897
- return this.n2g_1;
910
+ this.x2j_1 = format;
911
+ this.y2j_1 = input;
912
+ this.z2j_1 = output;
913
+ this.a2k_1 = emitters;
914
+ this.b2k_1 = writer;
915
+ this.c2k_1 = error;
916
+ this.d2k_1 = packageName;
917
+ this.e2k_1 = logger;
918
+ this.f2k_1 = shared;
919
+ this.g2k_1 = strict;
920
+ }
921
+ protoOf(ConverterArguments).n2k = function () {
922
+ return this.z2j_1;
898
923
  };
899
- protoOf(ConverterArguments).t2f = function () {
900
- return this.o2g_1;
924
+ protoOf(ConverterArguments).l2k = function () {
925
+ return this.a2k_1;
901
926
  };
902
927
  protoOf(ConverterArguments).e26 = function () {
903
- return this.t2g_1;
928
+ return this.f2k_1;
904
929
  };
905
930
  protoOf(ConverterArguments).toString = function () {
906
- return 'ConverterArguments(format=' + this.l2g_1.toString() + ', input=' + NonEmptySet__toString_impl_yfcj6n(this.m2g_1) + ', output=' + toString(this.n2g_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.o2g_1) + ', writer=' + toString(this.p2g_1) + ', error=' + toString(this.q2g_1) + ', packageName=' + this.r2g_1.toString() + ', logger=' + toString(this.s2g_1) + ', shared=' + this.t2g_1 + ', strict=' + this.u2g_1 + ')';
931
+ return 'ConverterArguments(format=' + this.x2j_1.toString() + ', input=' + NonEmptySet__toString_impl_yfcj6n(this.y2j_1) + ', output=' + toString(this.z2j_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.a2k_1) + ', writer=' + toString(this.b2k_1) + ', error=' + toString(this.c2k_1) + ', packageName=' + this.d2k_1.toString() + ', logger=' + toString(this.e2k_1) + ', shared=' + this.f2k_1 + ', strict=' + this.g2k_1 + ')';
907
932
  };
908
933
  protoOf(ConverterArguments).hashCode = function () {
909
- var result = this.l2g_1.hashCode();
910
- result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.m2g_1) | 0;
911
- result = imul(result, 31) + hashCode(this.n2g_1) | 0;
912
- result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.o2g_1) | 0;
913
- result = imul(result, 31) + hashCode(this.p2g_1) | 0;
914
- result = imul(result, 31) + hashCode(this.q2g_1) | 0;
915
- result = imul(result, 31) + hashCode(this.r2g_1) | 0;
916
- result = imul(result, 31) + hashCode(this.s2g_1) | 0;
917
- result = imul(result, 31) + getBooleanHashCode(this.t2g_1) | 0;
918
- result = imul(result, 31) + getBooleanHashCode(this.u2g_1) | 0;
934
+ var result = this.x2j_1.hashCode();
935
+ result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.y2j_1) | 0;
936
+ result = imul(result, 31) + hashCode(this.z2j_1) | 0;
937
+ result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.a2k_1) | 0;
938
+ result = imul(result, 31) + hashCode(this.b2k_1) | 0;
939
+ result = imul(result, 31) + hashCode(this.c2k_1) | 0;
940
+ result = imul(result, 31) + hashCode(this.d2k_1) | 0;
941
+ result = imul(result, 31) + hashCode(this.e2k_1) | 0;
942
+ result = imul(result, 31) + getBooleanHashCode(this.f2k_1) | 0;
943
+ result = imul(result, 31) + getBooleanHashCode(this.g2k_1) | 0;
919
944
  return result;
920
945
  };
921
946
  protoOf(ConverterArguments).equals = function (other) {
@@ -924,38 +949,38 @@ protoOf(ConverterArguments).equals = function (other) {
924
949
  if (!(other instanceof ConverterArguments))
925
950
  return false;
926
951
  var tmp0_other_with_cast = other instanceof ConverterArguments ? other : THROW_CCE();
927
- if (!this.l2g_1.equals(tmp0_other_with_cast.l2g_1))
952
+ if (!this.x2j_1.equals(tmp0_other_with_cast.x2j_1))
928
953
  return false;
929
- if (!equals(new NonEmptySet(this.m2g_1), new NonEmptySet(tmp0_other_with_cast.m2g_1)))
954
+ if (!equals(new NonEmptySet(this.y2j_1), new NonEmptySet(tmp0_other_with_cast.y2j_1)))
930
955
  return false;
931
- if (!equals(this.n2g_1, tmp0_other_with_cast.n2g_1))
956
+ if (!equals(this.z2j_1, tmp0_other_with_cast.z2j_1))
932
957
  return false;
933
- if (!equals(new NonEmptySet(this.o2g_1), new NonEmptySet(tmp0_other_with_cast.o2g_1)))
958
+ if (!equals(new NonEmptySet(this.a2k_1), new NonEmptySet(tmp0_other_with_cast.a2k_1)))
934
959
  return false;
935
- if (!equals(this.p2g_1, tmp0_other_with_cast.p2g_1))
960
+ if (!equals(this.b2k_1, tmp0_other_with_cast.b2k_1))
936
961
  return false;
937
- if (!equals(this.q2g_1, tmp0_other_with_cast.q2g_1))
962
+ if (!equals(this.c2k_1, tmp0_other_with_cast.c2k_1))
938
963
  return false;
939
- if (!equals(this.r2g_1, tmp0_other_with_cast.r2g_1))
964
+ if (!equals(this.d2k_1, tmp0_other_with_cast.d2k_1))
940
965
  return false;
941
- if (!equals(this.s2g_1, tmp0_other_with_cast.s2g_1))
966
+ if (!equals(this.e2k_1, tmp0_other_with_cast.e2k_1))
942
967
  return false;
943
- if (!(this.t2g_1 === tmp0_other_with_cast.t2g_1))
968
+ if (!(this.f2k_1 === tmp0_other_with_cast.f2k_1))
944
969
  return false;
945
- if (!(this.u2g_1 === tmp0_other_with_cast.u2g_1))
970
+ if (!(this.g2k_1 === tmp0_other_with_cast.g2k_1))
946
971
  return false;
947
972
  return true;
948
973
  };
949
974
  function Source(name, content) {
950
- this.j2g_1 = name;
951
- this.k2g_1 = content;
975
+ this.s2j_1 = name;
976
+ this.t2j_1 = content;
952
977
  }
953
978
  protoOf(Source).toString = function () {
954
- return 'Source(name=' + Name__toString_impl_61tomu(this.j2g_1) + ', content=' + this.k2g_1 + ')';
979
+ return 'Source(name=' + Name__toString_impl_61tomu(this.s2j_1) + ', content=' + this.t2j_1 + ')';
955
980
  };
956
981
  protoOf(Source).hashCode = function () {
957
- var result = Name__hashCode_impl_fpc861(this.j2g_1);
958
- result = imul(result, 31) + getStringHashCode(this.k2g_1) | 0;
982
+ var result = Name__hashCode_impl_fpc861(this.s2j_1);
983
+ result = imul(result, 31) + getStringHashCode(this.t2j_1) | 0;
959
984
  return result;
960
985
  };
961
986
  protoOf(Source).equals = function (other) {
@@ -964,9 +989,9 @@ protoOf(Source).equals = function (other) {
964
989
  if (!(other instanceof Source))
965
990
  return false;
966
991
  var tmp0_other_with_cast = other instanceof Source ? other : THROW_CCE();
967
- if (!(this.j2g_1 === tmp0_other_with_cast.j2g_1))
992
+ if (!(this.s2j_1 === tmp0_other_with_cast.s2j_1))
968
993
  return false;
969
- if (!(this.k2g_1 === tmp0_other_with_cast.k2g_1))
994
+ if (!(this.t2j_1 === tmp0_other_with_cast.t2j_1))
970
995
  return false;
971
996
  return true;
972
997
  };
@@ -985,21 +1010,21 @@ function SourcePath__hashCode_impl_up72k2($this) {
985
1010
  function SourcePath__equals_impl_mf6vea($this, other) {
986
1011
  if (!(other instanceof SourcePath))
987
1012
  return false;
988
- if (!($this === (other instanceof SourcePath ? other.b2h_1 : THROW_CCE())))
1013
+ if (!($this === (other instanceof SourcePath ? other.r2k_1 : THROW_CCE())))
989
1014
  return false;
990
1015
  return true;
991
1016
  }
992
1017
  function SourcePath(value) {
993
- this.b2h_1 = value;
1018
+ this.r2k_1 = value;
994
1019
  }
995
1020
  protoOf(SourcePath).toString = function () {
996
- return SourcePath__toString_impl_ikr2m7(this.b2h_1);
1021
+ return SourcePath__toString_impl_ikr2m7(this.r2k_1);
997
1022
  };
998
1023
  protoOf(SourcePath).hashCode = function () {
999
- return SourcePath__hashCode_impl_up72k2(this.b2h_1);
1024
+ return SourcePath__hashCode_impl_up72k2(this.r2k_1);
1000
1025
  };
1001
1026
  protoOf(SourcePath).equals = function (other) {
1002
- return SourcePath__equals_impl_mf6vea(this.b2h_1, other);
1027
+ return SourcePath__equals_impl_mf6vea(this.r2k_1, other);
1003
1028
  };
1004
1029
  function _DirectoryPath___init__impl__5bzkjd(value) {
1005
1030
  return value;
@@ -1016,36 +1041,36 @@ function DirectoryPath__hashCode_impl_cv3skg($this) {
1016
1041
  function DirectoryPath__equals_impl_c2rwsc($this, other) {
1017
1042
  if (!(other instanceof DirectoryPath))
1018
1043
  return false;
1019
- if (!($this === (other instanceof DirectoryPath ? other.c2h_1 : THROW_CCE())))
1044
+ if (!($this === (other instanceof DirectoryPath ? other.s2k_1 : THROW_CCE())))
1020
1045
  return false;
1021
1046
  return true;
1022
1047
  }
1023
1048
  function DirectoryPath(value) {
1024
- this.c2h_1 = value;
1049
+ this.s2k_1 = value;
1025
1050
  }
1026
1051
  protoOf(DirectoryPath).toString = function () {
1027
- return DirectoryPath__toString_impl_ym9pdb(this.c2h_1);
1052
+ return DirectoryPath__toString_impl_ym9pdb(this.s2k_1);
1028
1053
  };
1029
1054
  protoOf(DirectoryPath).hashCode = function () {
1030
- return DirectoryPath__hashCode_impl_cv3skg(this.c2h_1);
1055
+ return DirectoryPath__hashCode_impl_cv3skg(this.s2k_1);
1031
1056
  };
1032
1057
  protoOf(DirectoryPath).equals = function (other) {
1033
- return DirectoryPath__equals_impl_c2rwsc(this.c2h_1, other);
1058
+ return DirectoryPath__equals_impl_c2rwsc(this.s2k_1, other);
1034
1059
  };
1035
1060
  function Directory(path) {
1036
- this.u2f_1 = path;
1061
+ this.m2k_1 = path;
1037
1062
  }
1038
1063
  function Companion_1() {
1039
1064
  }
1040
- protoOf(Companion_1).d2h = function (input) {
1065
+ protoOf(Companion_1).t2k = function (input) {
1041
1066
  // Inline function 'kotlin.let' call
1042
- // Inline function 'community.flock.wirespec.plugin.files.Companion.invoke.<anonymous>' call
1067
+ // Inline function 'community.flock.wirespec.plugin.io.Companion.invoke.<anonymous>' call
1043
1068
  var it = split(input, ['/']);
1044
1069
  var list = plus(dropLast(it, 1), split(last(it), ['.']));
1045
1070
  // Inline function 'kotlin.text.lowercase' call
1046
1071
  // Inline function 'kotlin.js.asDynamic' call
1047
1072
  // Inline function 'kotlin.let' call
1048
- // Inline function 'community.flock.wirespec.plugin.files.Companion.invoke.<anonymous>' call
1073
+ // Inline function 'community.flock.wirespec.plugin.io.Companion.invoke.<anonymous>' call
1049
1074
  var ext = last(list).toLowerCase();
1050
1075
  // Inline function 'kotlin.collections.find' call
1051
1076
  var tmp0 = get_entries();
@@ -1055,8 +1080,8 @@ protoOf(Companion_1).d2h = function (input) {
1055
1080
  var _iterator__ex2g4s = tmp0.g();
1056
1081
  while (_iterator__ex2g4s.h()) {
1057
1082
  var element = _iterator__ex2g4s.i();
1058
- // Inline function 'community.flock.wirespec.plugin.files.Companion.invoke.<anonymous>.<anonymous>' call
1059
- if (element.f29_1 === ext) {
1083
+ // Inline function 'community.flock.wirespec.plugin.io.Companion.invoke.<anonymous>.<anonymous>' call
1084
+ if (element.r29_1 === ext) {
1060
1085
  tmp$ret$5 = element;
1061
1086
  break $l$block;
1062
1087
  }
@@ -1082,26 +1107,26 @@ function Companion_getInstance_2() {
1082
1107
  return Companion_instance_2;
1083
1108
  }
1084
1109
  function FilePath(directory, name, extension) {
1085
- this.w2f_1 = directory;
1086
- this.x2f_1 = name;
1087
- this.y2f_1 = extension;
1110
+ this.u2j_1 = directory;
1111
+ this.v2j_1 = name;
1112
+ this.w2j_1 = extension;
1088
1113
  }
1089
1114
  protoOf(FilePath).toString = function () {
1090
- return DirectoryPath__toString_impl_ym9pdb(this.w2f_1) + '/' + _Name___get_value__impl__3tbxxy(this.x2f_1) + '.' + this.y2f_1.f29_1;
1115
+ return DirectoryPath__toString_impl_ym9pdb(this.u2j_1) + '/' + _Name___get_value__impl__3tbxxy(this.v2j_1) + '.' + this.w2j_1.r29_1;
1091
1116
  };
1092
- protoOf(FilePath).e2h = function (directory, name, extension) {
1117
+ protoOf(FilePath).u2k = function (directory, name, extension) {
1093
1118
  return new FilePath(directory, name, extension);
1094
1119
  };
1095
- protoOf(FilePath).z2f = function (directory, name, extension, $super) {
1096
- directory = directory === VOID ? this.w2f_1 : directory;
1097
- name = name === VOID ? this.x2f_1 : name;
1098
- extension = extension === VOID ? this.y2f_1 : extension;
1099
- return $super === VOID ? this.e2h(directory, name, extension) : $super.e2h.call(this, new DirectoryPath(directory), new Name(name), extension);
1120
+ protoOf(FilePath).o2k = function (directory, name, extension, $super) {
1121
+ directory = directory === VOID ? this.u2j_1 : directory;
1122
+ name = name === VOID ? this.v2j_1 : name;
1123
+ extension = extension === VOID ? this.w2j_1 : extension;
1124
+ return $super === VOID ? this.u2k(directory, name, extension) : $super.u2k.call(this, new DirectoryPath(directory), new Name(name), extension);
1100
1125
  };
1101
1126
  protoOf(FilePath).hashCode = function () {
1102
- var result = DirectoryPath__hashCode_impl_cv3skg(this.w2f_1);
1103
- result = imul(result, 31) + Name__hashCode_impl_fpc861(this.x2f_1) | 0;
1104
- result = imul(result, 31) + this.y2f_1.hashCode() | 0;
1127
+ var result = DirectoryPath__hashCode_impl_cv3skg(this.u2j_1);
1128
+ result = imul(result, 31) + Name__hashCode_impl_fpc861(this.v2j_1) | 0;
1129
+ result = imul(result, 31) + this.w2j_1.hashCode() | 0;
1105
1130
  return result;
1106
1131
  };
1107
1132
  protoOf(FilePath).equals = function (other) {
@@ -1110,11 +1135,11 @@ protoOf(FilePath).equals = function (other) {
1110
1135
  if (!(other instanceof FilePath))
1111
1136
  return false;
1112
1137
  var tmp0_other_with_cast = other instanceof FilePath ? other : THROW_CCE();
1113
- if (!(this.w2f_1 === tmp0_other_with_cast.w2f_1))
1138
+ if (!(this.u2j_1 === tmp0_other_with_cast.u2j_1))
1114
1139
  return false;
1115
- if (!(this.x2f_1 === tmp0_other_with_cast.x2f_1))
1140
+ if (!(this.v2j_1 === tmp0_other_with_cast.v2j_1))
1116
1141
  return false;
1117
- if (!this.y2f_1.equals(tmp0_other_with_cast.y2f_1))
1142
+ if (!this.w2j_1.equals(tmp0_other_with_cast.w2j_1))
1118
1143
  return false;
1119
1144
  return true;
1120
1145
  };
@@ -1133,50 +1158,33 @@ function Name__hashCode_impl_fpc861($this) {
1133
1158
  function Name__equals_impl_uazebh($this, other) {
1134
1159
  if (!(other instanceof Name))
1135
1160
  return false;
1136
- if (!($this === (other instanceof Name ? other.f2h_1 : THROW_CCE())))
1161
+ if (!($this === (other instanceof Name ? other.v2k_1 : THROW_CCE())))
1137
1162
  return false;
1138
1163
  return true;
1139
1164
  }
1140
1165
  function Name(value) {
1141
- this.f2h_1 = value;
1166
+ this.v2k_1 = value;
1142
1167
  }
1143
1168
  protoOf(Name).toString = function () {
1144
- return Name__toString_impl_61tomu(this.f2h_1);
1169
+ return Name__toString_impl_61tomu(this.v2k_1);
1145
1170
  };
1146
1171
  protoOf(Name).hashCode = function () {
1147
- return Name__hashCode_impl_fpc861(this.f2h_1);
1172
+ return Name__hashCode_impl_fpc861(this.v2k_1);
1148
1173
  };
1149
1174
  protoOf(Name).equals = function (other) {
1150
- return Name__equals_impl_uazebh(this.f2h_1, other);
1175
+ return Name__equals_impl_uazebh(this.v2k_1, other);
1151
1176
  };
1152
- function path(_this__u8e3s4) {
1153
- var tmp;
1154
- if (_this__u8e3s4 instanceof SourcePath) {
1155
- tmp = _SourcePath___get_value__impl__3qmxh1(_this__u8e3s4.b2h_1);
1156
- } else {
1157
- if (_this__u8e3s4 instanceof DirectoryPath) {
1158
- tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.c2h_1);
1159
- } else {
1160
- if (_this__u8e3s4 instanceof FilePath) {
1161
- tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.w2f_1);
1162
- } else {
1163
- noWhenBranchMatchedException();
1164
- }
1165
- }
1166
- }
1167
- return tmp;
1168
- }
1169
1177
  function toFilePath(_this__u8e3s4, name) {
1170
- return new FilePath(_this__u8e3s4.u2f_1, name, FileExtension_Wirespec_getInstance());
1178
+ return new FilePath(_this__u8e3s4.m2k_1, name, FileExtension_Wirespec_getInstance());
1171
1179
  }
1172
1180
  function plus_0(_this__u8e3s4, packageName) {
1173
- return new Directory(plus_1(_this__u8e3s4.u2f_1, packageName));
1181
+ return new Directory(plus_1(_this__u8e3s4.m2k_1, packageName));
1174
1182
  }
1175
1183
  function plus_1(_this__u8e3s4, packageName) {
1176
1184
  var tmp;
1177
- switch (packageName.h29_1) {
1185
+ switch (packageName.t29_1) {
1178
1186
  case true:
1179
- tmp = '/' + joinToString(split_0(packageName.g29_1, charArrayOf([_Char___init__impl__6a9atx(46)])), '/');
1187
+ tmp = '/' + joinToString(split_0(packageName.s29_1, charArrayOf([_Char___init__impl__6a9atx(46)])), '/');
1180
1188
  break;
1181
1189
  case false:
1182
1190
  tmp = '';
@@ -1186,13 +1194,323 @@ function plus_1(_this__u8e3s4, packageName) {
1186
1194
  break;
1187
1195
  }
1188
1196
  // Inline function 'kotlin.let' call
1189
- // Inline function 'community.flock.wirespec.plugin.files.plus.<anonymous>' call
1197
+ // Inline function 'community.flock.wirespec.plugin.io.plus.<anonymous>' call
1190
1198
  var it = tmp;
1191
1199
  return plus_2(_this__u8e3s4, it);
1192
1200
  }
1193
1201
  function plus_2(_this__u8e3s4, string) {
1194
1202
  return _DirectoryPath___init__impl__5bzkjd(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4) + string);
1195
1203
  }
1204
+ function path(_this__u8e3s4) {
1205
+ var tmp;
1206
+ if (_this__u8e3s4 instanceof SourcePath) {
1207
+ tmp = _SourcePath___get_value__impl__3qmxh1(_this__u8e3s4.r2k_1);
1208
+ } else {
1209
+ if (_this__u8e3s4 instanceof DirectoryPath) {
1210
+ tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.s2k_1);
1211
+ } else {
1212
+ if (_this__u8e3s4 instanceof FilePath) {
1213
+ tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.u2j_1);
1214
+ } else {
1215
+ noWhenBranchMatchedException();
1216
+ }
1217
+ }
1218
+ }
1219
+ return tmp;
1220
+ }
1221
+ function IOError(message) {
1222
+ this.w2k_1 = message;
1223
+ }
1224
+ function WirespecFileError() {
1225
+ SpecificFile.call(this, FileExtension_Wirespec_getInstance());
1226
+ }
1227
+ function SpecificFile(extension) {
1228
+ IOError.call(this, 'No ' + extension.q2_1 + ' file found');
1229
+ }
1230
+ function CannotAccessFileOrDirectory(input) {
1231
+ IOError.call(this, 'Cannot access file or directory: ' + input + '.');
1232
+ }
1233
+ function IsNotAFileOrDirectory(input) {
1234
+ IOError.call(this, 'Input is not a file or directory: ' + input + '.');
1235
+ }
1236
+ function OutputShouldBeADirectory() {
1237
+ IOError.call(this, 'Output should be a directory.');
1238
+ }
1239
+ function getFullPath(input, createIfNotExists_0) {
1240
+ createIfNotExists_0 = createIfNotExists_0 === VOID ? false : createIfNotExists_0;
1241
+ // Inline function 'arrow.core.raise.either' call
1242
+ // Inline function 'arrow.core.raise.fold' call
1243
+ // Inline function 'kotlin.contracts.contract' call
1244
+ // Inline function 'arrow.core.raise.fold' call
1245
+ // Inline function 'kotlin.contracts.contract' call
1246
+ var raise = new DefaultRaise(false);
1247
+ var tmp;
1248
+ try {
1249
+ // Inline function 'arrow.core.raise.either.<anonymous>' call
1250
+ // Inline function 'community.flock.wirespec.plugin.io.getFullPath.<anonymous>' call
1251
+ var tmp_0;
1252
+ if (input == null) {
1253
+ tmp_0 = null;
1254
+ } else if (startsWith(input, 'classpath:')) {
1255
+ tmp_0 = new SourcePath(_SourcePath___init__impl__vbnish(substringAfter(input, 'classpath:')));
1256
+ } else {
1257
+ var path = createIfNotExists(Path(input), createIfNotExists_0);
1258
+ var tmp0_elvis_lhs = get_SystemFileSystem().u2i(path);
1259
+ var tmp_1;
1260
+ if (tmp0_elvis_lhs == null) {
1261
+ raise.kl(new CannotAccessFileOrDirectory(input));
1262
+ } else {
1263
+ tmp_1 = tmp0_elvis_lhs;
1264
+ }
1265
+ var meta = tmp_1;
1266
+ var pathString = path.toString();
1267
+ var tmp_2;
1268
+ if (meta.x2i_1) {
1269
+ tmp_2 = new DirectoryPath(_DirectoryPath___init__impl__5bzkjd(pathString));
1270
+ } else if (meta.w2i_1) {
1271
+ tmp_2 = Companion_instance_2.t2k(pathString);
1272
+ } else {
1273
+ raise.kl(new IsNotAFileOrDirectory(pathString));
1274
+ }
1275
+ tmp_0 = tmp_2;
1276
+ }
1277
+ var res = tmp_0;
1278
+ raise.il();
1279
+ // Inline function 'arrow.core.raise.either.<anonymous>' call
1280
+ tmp = new Right(res);
1281
+ } catch ($p) {
1282
+ var tmp_3;
1283
+ if ($p instanceof RaiseCancellationException) {
1284
+ var e = $p;
1285
+ raise.il();
1286
+ // Inline function 'arrow.core.raise.either.<anonymous>' call
1287
+ var it = raisedOrRethrow(e, raise);
1288
+ tmp_3 = new Left(it);
1289
+ } else {
1290
+ if ($p instanceof Error) {
1291
+ var e_0 = $p;
1292
+ raise.il();
1293
+ throw nonFatalOrThrow(e_0);
1294
+ } else {
1295
+ throw $p;
1296
+ }
1297
+ }
1298
+ tmp = tmp_3;
1299
+ }
1300
+ return tmp;
1301
+ }
1302
+ function or(_this__u8e3s4, errorFn) {
1303
+ // Inline function 'arrow.core.getOrElse' call
1304
+ // Inline function 'kotlin.contracts.contract' call
1305
+ // Inline function 'arrow.core.Either.fold' call
1306
+ // Inline function 'kotlin.contracts.contract' call
1307
+ var tmp;
1308
+ if (_this__u8e3s4 instanceof Right) {
1309
+ // Inline function 'arrow.core.getOrElse.stub_for_inlining' call
1310
+ // Inline function 'arrow.core.identity' call
1311
+ tmp = _this__u8e3s4.pk_1;
1312
+ } else {
1313
+ if (_this__u8e3s4 instanceof Left) {
1314
+ errorFn(_this__u8e3s4.jk_1.w2k_1);
1315
+ tmp = throwKotlinNothingValueException();
1316
+ } else {
1317
+ noWhenBranchMatchedException();
1318
+ }
1319
+ }
1320
+ return tmp;
1321
+ }
1322
+ function wirespecSources(_this__u8e3s4) {
1323
+ // Inline function 'arrow.core.raise.either' call
1324
+ // Inline function 'arrow.core.raise.fold' call
1325
+ // Inline function 'kotlin.contracts.contract' call
1326
+ // Inline function 'arrow.core.raise.fold' call
1327
+ // Inline function 'kotlin.contracts.contract' call
1328
+ var raise = new DefaultRaise(false);
1329
+ var tmp;
1330
+ try {
1331
+ // Inline function 'arrow.core.raise.either.<anonymous>' call
1332
+ // Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>' call
1333
+ var tmp0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.m2k_1));
1334
+ // Inline function 'kotlin.let' call
1335
+ // Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>.stub_for_inlining' call
1336
+ // Inline function 'kotlin.collections.filter' call
1337
+ var tmp0_0 = get_SystemFileSystem().v2i(tmp0);
1338
+ // Inline function 'kotlin.collections.filterTo' call
1339
+ var destination = ArrayList_init_$Create$();
1340
+ var _iterator__ex2g4s = tmp0_0.g();
1341
+ while (_iterator__ex2g4s.h()) {
1342
+ var element = _iterator__ex2g4s.i();
1343
+ // Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>.stub_for_inlining' call
1344
+ if (isRegularFile(element)) {
1345
+ destination.e(element);
1346
+ }
1347
+ }
1348
+ // Inline function 'kotlin.collections.filter' call
1349
+ // Inline function 'kotlin.collections.filterTo' call
1350
+ var destination_0 = ArrayList_init_$Create$();
1351
+ var _iterator__ex2g4s_0 = destination.g();
1352
+ while (_iterator__ex2g4s_0.h()) {
1353
+ var element_0 = _iterator__ex2g4s_0.i();
1354
+ // Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>.stub_for_inlining' call
1355
+ if (isWirespecFile(element_0)) {
1356
+ destination_0.e(element_0);
1357
+ }
1358
+ }
1359
+ // Inline function 'kotlin.collections.map' call
1360
+ // Inline function 'kotlin.collections.mapTo' call
1361
+ var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination_0, 10));
1362
+ var _iterator__ex2g4s_1 = destination_0.g();
1363
+ while (_iterator__ex2g4s_1.h()) {
1364
+ var item = _iterator__ex2g4s_1.i();
1365
+ // Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>.<anonymous>' call
1366
+ var tmp$ret$8 = to(Companion_instance_2.t2k(item.toString()), readString(buffered(get_SystemFileSystem().r2i(item))));
1367
+ destination_1.e(tmp$ret$8);
1368
+ }
1369
+ // Inline function 'kotlin.collections.map' call
1370
+ // Inline function 'kotlin.collections.mapTo' call
1371
+ var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination_1, 10));
1372
+ var _iterator__ex2g4s_2 = destination_1.g();
1373
+ while (_iterator__ex2g4s_2.h()) {
1374
+ var item_0 = _iterator__ex2g4s_2.i();
1375
+ // Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>.<anonymous>' call
1376
+ var path = item_0.yd();
1377
+ var source = item_0.zd();
1378
+ var tmp$ret$11 = new Source(path.v2j_1, source);
1379
+ destination_2.e(tmp$ret$11);
1380
+ }
1381
+ var tmp0_elvis_lhs = toNonEmptySetOrNull(destination_2);
1382
+ var tmp_0;
1383
+ var tmp_1 = tmp0_elvis_lhs;
1384
+ if ((tmp_1 == null ? null : new NonEmptySet(tmp_1)) == null) {
1385
+ raise.kl(new WirespecFileError());
1386
+ } else {
1387
+ tmp_0 = tmp0_elvis_lhs;
1388
+ }
1389
+ var res = new NonEmptySet(tmp_0);
1390
+ raise.il();
1391
+ // Inline function 'arrow.core.raise.either.<anonymous>' call
1392
+ tmp = new Right(res);
1393
+ } catch ($p) {
1394
+ var tmp_2;
1395
+ if ($p instanceof RaiseCancellationException) {
1396
+ var e = $p;
1397
+ raise.il();
1398
+ // Inline function 'arrow.core.raise.either.<anonymous>' call
1399
+ var it = raisedOrRethrow(e, raise);
1400
+ tmp_2 = new Left(it);
1401
+ } else {
1402
+ if ($p instanceof Error) {
1403
+ var e_0 = $p;
1404
+ raise.il();
1405
+ throw nonFatalOrThrow(e_0);
1406
+ } else {
1407
+ throw $p;
1408
+ }
1409
+ }
1410
+ tmp = tmp_2;
1411
+ }
1412
+ return tmp;
1413
+ }
1414
+ function read(_this__u8e3s4) {
1415
+ // Inline function 'kotlin.let' call
1416
+ // Inline function 'community.flock.wirespec.plugin.io.read.<anonymous>' call
1417
+ var it = Path(_this__u8e3s4.toString());
1418
+ return readString(buffered(get_SystemFileSystem().r2i(it)));
1419
+ }
1420
+ function getOutPutPath(inputPath, output) {
1421
+ // Inline function 'arrow.core.raise.either' call
1422
+ // Inline function 'arrow.core.raise.fold' call
1423
+ // Inline function 'kotlin.contracts.contract' call
1424
+ // Inline function 'arrow.core.raise.fold' call
1425
+ // Inline function 'kotlin.contracts.contract' call
1426
+ var raise = new DefaultRaise(false);
1427
+ var tmp;
1428
+ try {
1429
+ // Inline function 'arrow.core.raise.either.<anonymous>' call
1430
+ // Inline function 'community.flock.wirespec.plugin.io.getOutPutPath.<anonymous>' call
1431
+ var it = raise.ll(getFullPath(output, true));
1432
+ var tmp_0;
1433
+ if (it == null) {
1434
+ tmp_0 = _DirectoryPath___init__impl__5bzkjd(path(inputPath) + '/out');
1435
+ } else {
1436
+ if (it instanceof DirectoryPath) {
1437
+ tmp_0 = it.s2k_1;
1438
+ } else {
1439
+ var tmp_1;
1440
+ if (it instanceof FilePath) {
1441
+ tmp_1 = true;
1442
+ } else {
1443
+ tmp_1 = it instanceof SourcePath;
1444
+ }
1445
+ if (tmp_1) {
1446
+ raise.kl(new OutputShouldBeADirectory());
1447
+ } else {
1448
+ noWhenBranchMatchedException();
1449
+ }
1450
+ }
1451
+ }
1452
+ var res = new DirectoryPath(tmp_0);
1453
+ raise.il();
1454
+ // Inline function 'arrow.core.raise.either.<anonymous>' call
1455
+ tmp = new Right(res);
1456
+ } catch ($p) {
1457
+ var tmp_2;
1458
+ if ($p instanceof RaiseCancellationException) {
1459
+ var e = $p;
1460
+ raise.il();
1461
+ // Inline function 'arrow.core.raise.either.<anonymous>' call
1462
+ var it_0 = raisedOrRethrow(e, raise);
1463
+ tmp_2 = new Left(it_0);
1464
+ } else {
1465
+ if ($p instanceof Error) {
1466
+ var e_0 = $p;
1467
+ raise.il();
1468
+ throw nonFatalOrThrow(e_0);
1469
+ } else {
1470
+ throw $p;
1471
+ }
1472
+ }
1473
+ tmp = tmp_2;
1474
+ }
1475
+ return tmp;
1476
+ }
1477
+ function write(_this__u8e3s4, string) {
1478
+ // Inline function 'kotlin.also' call
1479
+ var this_0 = Path(_this__u8e3s4.toString());
1480
+ // Inline function 'community.flock.wirespec.plugin.io.write.<anonymous>' call
1481
+ var tmp0_safe_receiver = this_0.a2j();
1482
+ if (tmp0_safe_receiver == null)
1483
+ null;
1484
+ else
1485
+ createIfNotExists(tmp0_safe_receiver);
1486
+ // Inline function 'kotlin.let' call
1487
+ // Inline function 'community.flock.wirespec.plugin.io.write.<anonymous>' call
1488
+ // Inline function 'kotlin.apply' call
1489
+ var this_1 = buffered_0(get_SystemFileSystem().t2i(this_0));
1490
+ // Inline function 'community.flock.wirespec.plugin.io.write.<anonymous>.<anonymous>' call
1491
+ writeString(this_1, string);
1492
+ this_1.r8();
1493
+ return Unit_instance;
1494
+ }
1495
+ function createIfNotExists(_this__u8e3s4, create) {
1496
+ create = create === VOID ? true : create;
1497
+ // Inline function 'kotlin.also' call
1498
+ // Inline function 'community.flock.wirespec.plugin.io.createIfNotExists.<anonymous>' call
1499
+ if (create && !get_SystemFileSystem().p2i(_this__u8e3s4)) {
1500
+ get_SystemFileSystem().q2i(_this__u8e3s4, true);
1501
+ }
1502
+ return _this__u8e3s4;
1503
+ }
1504
+ function isWirespecFile(path) {
1505
+ return get_extension(path) === FileExtension_Wirespec_getInstance().r29_1;
1506
+ }
1507
+ function isRegularFile(path) {
1508
+ var tmp0_safe_receiver = get_SystemFileSystem().u2i(path);
1509
+ return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w2i_1) === true;
1510
+ }
1511
+ function get_extension(_this__u8e3s4) {
1512
+ return substringAfterLast(_this__u8e3s4.s2(), _Char___init__impl__6a9atx(46), '');
1513
+ }
1196
1514
  //region block: post-declaration
1197
1515
  protoOf(compile$ctx$1$1).h23 = get_spec;
1198
1516
  //endregion
@@ -1203,21 +1521,22 @@ Companion_instance_2 = new Companion_1();
1203
1521
  //endregion
1204
1522
  //region block: exports
1205
1523
  export {
1206
- DirectoryPath as DirectoryPath1v7ae6itu451q,
1207
- Directory as Directory32gwsfanzqyry,
1208
- FilePath as FilePath1s8f7qc8qb6ia,
1209
- SourcePath as SourcePath1jk5f7tn3bc1s,
1210
- Source as Source1opabw92penj5,
1211
- path as path1zyjte8ev11m9,
1524
+ DirectoryPath as DirectoryPath39bbfr0ixndbr,
1525
+ Directory as Directory1msbu5hqetml1,
1526
+ FilePath as FilePath16n0cgvs38g6y,
1527
+ SourcePath as SourcePath3m57qddtnytut,
1528
+ Source as Source2leyaqfqfs5k3,
1529
+ getFullPath as getFullPath4g3ciksg8rpm,
1530
+ getOutPutPath as getOutPutPathqmn3xkxu6se6,
1531
+ or as or33xhl4wx85q9x,
1532
+ read as read1bpb5m43oodfb,
1533
+ wirespecSources as wirespecSources3k3ry4x3ljoa3,
1534
+ write as write1u316o1mmac8j,
1212
1535
  CompilerArguments as CompilerArguments27p1etc1665zg,
1213
1536
  ConverterArguments as ConverterArgumentsa8xc45eyvf51,
1214
1537
  values as values39f22etrsivck,
1215
1538
  compile_0 as compile3ocumkpx3p9ko,
1216
1539
  convert as convert3g5kyi4d6y9kc,
1217
- _DirectoryPath___init__impl__5bzkjd as _DirectoryPath___init__impl__5bzkjd2lelmyoqn5cc4,
1218
- _DirectoryPath___get_value__impl__hdy2e3 as _DirectoryPath___get_value__impl__hdy2e32f9du2juifznr,
1219
- _SourcePath___init__impl__vbnish as _SourcePath___init__impl__vbnish5d8fdg1tbub5,
1220
- Companion_instance_2 as Companion_instance2488692qc8bjd,
1221
1540
  Companion_instance_1 as Companion_instance16jo4jh8p2erh,
1222
1541
  };
1223
1542
  //endregion