@flock/wirespec 0.7.2 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js +294 -294
- package/kotlin/kotlin-openapi-bindings.js +3290 -3290
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1239 -1239
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +981 -981
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/kotlin/wirespec-cli.js +80 -80
- package/kotlin/wirespec-core.js +510 -493
- package/kotlin/wirespec-core.js.map +1 -1
- package/kotlin/wirespec-lib.js +38 -38
- package/kotlin/wirespec-openapi.js +361 -357
- package/kotlin/wirespec-openapi.js.map +1 -1
- package/package.json +1 -1
- package/sync-hashes/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js.hash +1 -1
- package/sync-hashes/kotlin-openapi-bindings.js.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map.hash +1 -1
- package/sync-hashes/wirespec-cli.js.hash +1 -1
- package/sync-hashes/wirespec-core.js.hash +1 -1
- package/sync-hashes/wirespec-core.js.map.hash +1 -1
- package/sync-hashes/wirespec-lib.js.hash +1 -1
- package/sync-hashes/wirespec-openapi.js.hash +1 -1
- package/sync-hashes/wirespec-openapi.js.map.hash +1 -1
package/kotlin/wirespec-cli.js
CHANGED
|
@@ -165,20 +165,20 @@
|
|
|
165
165
|
}
|
|
166
166
|
function cli(args) {
|
|
167
167
|
var parser = new ArgParser('wirespec');
|
|
168
|
-
var debug$delegate = default_0(parser.
|
|
168
|
+
var debug$delegate = default_0(parser.b1w(Boolean_getInstance(), VOID, 'd', 'Debug mode'), false).e1z(null, getLocalDelegateReference('debug', KProperty0, false, function () {
|
|
169
169
|
return THROW_ISE();
|
|
170
170
|
}));
|
|
171
|
-
var input$delegate = parser.
|
|
171
|
+
var input$delegate = parser.d1w(String_getInstance(), VOID, 'Input file').e1z(null, getLocalDelegateReference('input', KProperty0, false, function () {
|
|
172
172
|
return THROW_ISE();
|
|
173
173
|
}));
|
|
174
|
-
var output$delegate = parser.
|
|
174
|
+
var output$delegate = parser.b1w(String_getInstance(), VOID, 'o', 'Output directory').e1z(null, getLocalDelegateReference('output', KProperty0, false, function () {
|
|
175
175
|
return THROW_ISE();
|
|
176
176
|
}));
|
|
177
177
|
var tmp$ret$5;
|
|
178
178
|
// Inline function 'kotlin.collections.map' call
|
|
179
179
|
var tmp$ret$2;
|
|
180
180
|
// Inline function 'kotlin.collections.map' call
|
|
181
|
-
var tmp1_map = Companion_getInstance_3().
|
|
181
|
+
var tmp1_map = Companion_getInstance_3().k1z();
|
|
182
182
|
var tmp$ret$1;
|
|
183
183
|
// Inline function 'kotlin.collections.mapTo' call
|
|
184
184
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
var item_0 = tmp0_iterator_0.e();
|
|
202
202
|
var tmp$ret$3;
|
|
203
203
|
// Inline function 'community.flock.wirespec.compiler.cli.cli.<anonymous>' call
|
|
204
|
-
var tmp0_elvis_lhs = Companion_getInstance_3().
|
|
204
|
+
var tmp0_elvis_lhs = Companion_getInstance_3().l1z(item_0);
|
|
205
205
|
var tmp;
|
|
206
206
|
if (tmp0_elvis_lhs == null) {
|
|
207
207
|
throw IllegalStateException_init_$Create$('Language not found');
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
tmp$ret$4 = tmp2_mapTo;
|
|
215
215
|
tmp$ret$5 = tmp$ret$4;
|
|
216
216
|
var tmp_0 = tmp$ret$5;
|
|
217
|
-
var language$delegate = multiple(default_0(parser.
|
|
217
|
+
var language$delegate = multiple(default_0(parser.b1w(new Choice(tmp_0, cli$lambda_5), VOID, 'l', 'Language type'), Jvm_Kotlin_getInstance())).e1z(null, getLocalDelegateReference('language', KProperty0, false, function () {
|
|
218
218
|
return THROW_ISE();
|
|
219
219
|
}));
|
|
220
220
|
var tmp$ret$7;
|
|
@@ -233,13 +233,13 @@
|
|
|
233
233
|
tmp_2 = tmp0_elvis_lhs_0;
|
|
234
234
|
}
|
|
235
235
|
tmp$ret$7 = new Choice(tmp_1, tmp_2, tmp5_Choice);
|
|
236
|
-
var openapi$delegate = parser.
|
|
236
|
+
var openapi$delegate = parser.b1w(tmp$ret$7, VOID, 'a', 'Use openapi as input').e1z(null, getLocalDelegateReference('openapi', KProperty0, false, function () {
|
|
237
237
|
return THROW_ISE();
|
|
238
238
|
}));
|
|
239
|
-
var packageName$delegate = default_0(parser.
|
|
239
|
+
var packageName$delegate = default_0(parser.b1w(String_getInstance(), VOID, 'p', 'Package name'), get_DEFAULT_PACKAGE_NAME()).e1z(null, getLocalDelegateReference('packageName', KProperty0, false, function () {
|
|
240
240
|
return THROW_ISE();
|
|
241
241
|
}));
|
|
242
|
-
parser.
|
|
242
|
+
parser.f1w(args);
|
|
243
243
|
var logger = new cli$logger$1(debug$delegate);
|
|
244
244
|
compile_0(toSet(cli$lambda_2(language$delegate)), cli$lambda_0(input$delegate), cli$lambda_1(output$delegate), cli$lambda_4(packageName$delegate), cli$lambda_3(openapi$delegate), logger);
|
|
245
245
|
}
|
|
@@ -280,13 +280,13 @@
|
|
|
280
280
|
function Companion() {
|
|
281
281
|
Companion_instance = this;
|
|
282
282
|
}
|
|
283
|
-
protoOf(Companion).
|
|
283
|
+
protoOf(Companion).k1z = function () {
|
|
284
284
|
return plus(toList(values()), toList(values_0()));
|
|
285
285
|
};
|
|
286
|
-
protoOf(Companion).
|
|
286
|
+
protoOf(Companion).l1z = function (s) {
|
|
287
287
|
var tmp$ret$2;
|
|
288
288
|
// Inline function 'kotlin.collections.find' call
|
|
289
|
-
var tmp0_find = this.
|
|
289
|
+
var tmp0_find = this.k1z();
|
|
290
290
|
var tmp$ret$1;
|
|
291
291
|
$l$block: {
|
|
292
292
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -353,17 +353,17 @@
|
|
|
353
353
|
}
|
|
354
354
|
function compile_0(languages, input, output, packageName, openapi, logger) {
|
|
355
355
|
if (!(openapi == null)) {
|
|
356
|
-
var fullPath = Companion_getInstance_4().
|
|
356
|
+
var fullPath = Companion_getInstance_4().j1t(input);
|
|
357
357
|
var file = new JsonFile(fullPath);
|
|
358
358
|
var tmp0_subject = openapi;
|
|
359
359
|
var tmp0 = tmp0_subject.q4_1;
|
|
360
360
|
var tmp;
|
|
361
361
|
switch (tmp0) {
|
|
362
362
|
case 0:
|
|
363
|
-
tmp = Companion_getInstance_0().
|
|
363
|
+
tmp = Companion_getInstance_0().j1t(file.p15());
|
|
364
364
|
break;
|
|
365
365
|
case 1:
|
|
366
|
-
tmp = Companion_getInstance_1().
|
|
366
|
+
tmp = Companion_getInstance_1().j1t(file.p15());
|
|
367
367
|
break;
|
|
368
368
|
default:
|
|
369
369
|
noWhenBranchMatchedException();
|
|
@@ -391,7 +391,7 @@
|
|
|
391
391
|
if (!emitter.rh_1) {
|
|
392
392
|
var tmp$ret$6;
|
|
393
393
|
// Inline function 'kotlin.text.replaceFirstChar' call
|
|
394
|
-
var tmp0_replaceFirstChar = fullPath.
|
|
394
|
+
var tmp0_replaceFirstChar = fullPath.q1z_1;
|
|
395
395
|
var tmp_1;
|
|
396
396
|
var tmp$ret$0;
|
|
397
397
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
@@ -446,19 +446,19 @@
|
|
|
446
446
|
tmp$ret$11 = tmp$ret$10;
|
|
447
447
|
} else {
|
|
448
448
|
// Inline function 'kotlin.collections.forEach' call
|
|
449
|
-
var tmp4_forEach = (new Directory(input)).
|
|
449
|
+
var tmp4_forEach = (new Directory(input)).n1z();
|
|
450
450
|
var tmp0_iterator_1 = tmp4_forEach.c();
|
|
451
451
|
while (tmp0_iterator_1.d()) {
|
|
452
452
|
var element = tmp0_iterator_1.e();
|
|
453
453
|
// Inline function 'community.flock.wirespec.compiler.cli.compile.<anonymous>' call
|
|
454
|
-
var path_0 = out(element.
|
|
454
|
+
var path_0 = out(element.o1z_1, packageName, output);
|
|
455
455
|
var tmp$ret$30;
|
|
456
456
|
// Inline function 'kotlin.collections.map' call
|
|
457
457
|
var tmp$ret$28;
|
|
458
458
|
// Inline function 'kotlin.let' call
|
|
459
459
|
var tmp$ret$12;
|
|
460
460
|
// Inline function 'kotlin.let' call
|
|
461
|
-
var tmp0_let = element.
|
|
461
|
+
var tmp0_let = element.p15();
|
|
462
462
|
var tmp1_let = Wirespec_getInstance();
|
|
463
463
|
// Inline function 'kotlin.contracts.contract' call
|
|
464
464
|
tmp$ret$12 = compile(tmp1_let, tmp0_let);
|
|
@@ -498,7 +498,7 @@
|
|
|
498
498
|
// Inline function 'community.flock.wirespec.compiler.cli.compile.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
499
499
|
var tmp$ret$19;
|
|
500
500
|
// Inline function 'kotlin.text.replaceFirstChar' call
|
|
501
|
-
var tmp0_replaceFirstChar_0 = element.
|
|
501
|
+
var tmp0_replaceFirstChar_0 = element.o1z_1.q1z_1;
|
|
502
502
|
var tmp_5;
|
|
503
503
|
var tmp$ret$13;
|
|
504
504
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
@@ -587,7 +587,7 @@
|
|
|
587
587
|
// Inline function 'community.flock.wirespec.compiler.cli.write.<anonymous>' call
|
|
588
588
|
var name = element.i3();
|
|
589
589
|
var result = element.j3();
|
|
590
|
-
file.
|
|
590
|
+
file.s1z(name).t1z(result);
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
593
|
function emit(languages, packageName, path, logger) {
|
|
@@ -624,37 +624,37 @@
|
|
|
624
624
|
return tmp$ret$2;
|
|
625
625
|
}
|
|
626
626
|
function cli$lambda($debug$delegate) {
|
|
627
|
-
return $debug$delegate.
|
|
627
|
+
return $debug$delegate.r1x(null, getLocalDelegateReference('debug', KProperty0, false, function () {
|
|
628
628
|
return THROW_ISE();
|
|
629
629
|
}));
|
|
630
630
|
}
|
|
631
631
|
function cli$lambda_0($input$delegate) {
|
|
632
|
-
return $input$delegate.
|
|
632
|
+
return $input$delegate.r1x(null, getLocalDelegateReference('input', KProperty0, false, function () {
|
|
633
633
|
return THROW_ISE();
|
|
634
634
|
}));
|
|
635
635
|
}
|
|
636
636
|
function cli$lambda_1($output$delegate) {
|
|
637
|
-
return $output$delegate.
|
|
637
|
+
return $output$delegate.r1x(null, getLocalDelegateReference('output', KProperty0, false, function () {
|
|
638
638
|
return THROW_ISE();
|
|
639
639
|
}));
|
|
640
640
|
}
|
|
641
641
|
function cli$lambda_2($language$delegate) {
|
|
642
|
-
return $language$delegate.
|
|
642
|
+
return $language$delegate.r1x(null, getLocalDelegateReference('language', KProperty0, false, function () {
|
|
643
643
|
return THROW_ISE();
|
|
644
644
|
}));
|
|
645
645
|
}
|
|
646
646
|
function cli$lambda_3($openapi$delegate) {
|
|
647
|
-
return $openapi$delegate.
|
|
647
|
+
return $openapi$delegate.r1x(null, getLocalDelegateReference('openapi', KProperty0, false, function () {
|
|
648
648
|
return THROW_ISE();
|
|
649
649
|
}));
|
|
650
650
|
}
|
|
651
651
|
function cli$lambda_4($packageName$delegate) {
|
|
652
|
-
return $packageName$delegate.
|
|
652
|
+
return $packageName$delegate.r1x(null, getLocalDelegateReference('packageName', KProperty0, false, function () {
|
|
653
653
|
return THROW_ISE();
|
|
654
654
|
}));
|
|
655
655
|
}
|
|
656
656
|
function cli$lambda_5(it) {
|
|
657
|
-
var tmp0_elvis_lhs = Companion_getInstance_3().
|
|
657
|
+
var tmp0_elvis_lhs = Companion_getInstance_3().l1z(it);
|
|
658
658
|
var tmp;
|
|
659
659
|
if (tmp0_elvis_lhs == null) {
|
|
660
660
|
throw IllegalStateException_init_$Create$('Language not found');
|
|
@@ -726,12 +726,12 @@
|
|
|
726
726
|
// Inline function 'kotlin.js.asDynamic' call
|
|
727
727
|
tmp$ret$0 = tmp0_lowercase;
|
|
728
728
|
tmp$ret$1 = tmp$ret$0.toLowerCase();
|
|
729
|
-
tmp = $this_out.
|
|
729
|
+
tmp = $this_out.p1z_1 + '/out/' + tmp$ret$1;
|
|
730
730
|
} else {
|
|
731
731
|
tmp = tmp0_elvis_lhs;
|
|
732
732
|
}
|
|
733
733
|
var dir = tmp;
|
|
734
|
-
return $this_out.
|
|
734
|
+
return $this_out.u1z(dir + '/' + joinToString(split($packageName, charArrayOf([_Char___init__impl__6a9atx(46)])), '/'), VOID, extension);
|
|
735
735
|
};
|
|
736
736
|
}
|
|
737
737
|
function OpenapiVersion_V2_getInstance() {
|
|
@@ -765,7 +765,7 @@
|
|
|
765
765
|
}
|
|
766
766
|
function Extension(name, ordinal, ext) {
|
|
767
767
|
Enum.call(this, name, ordinal);
|
|
768
|
-
this.
|
|
768
|
+
this.x1z_1 = ext;
|
|
769
769
|
}
|
|
770
770
|
function Extension_Java_getInstance() {
|
|
771
771
|
Extension_initEntries();
|
|
@@ -794,7 +794,7 @@
|
|
|
794
794
|
function Companion_0() {
|
|
795
795
|
Companion_instance_0 = this;
|
|
796
796
|
}
|
|
797
|
-
protoOf(Companion_0).
|
|
797
|
+
protoOf(Companion_0).j1t = function (input) {
|
|
798
798
|
var list = split_0(input, ['/', '.']);
|
|
799
799
|
var tmp$ret$6;
|
|
800
800
|
// Inline function 'kotlin.let' call
|
|
@@ -823,7 +823,7 @@
|
|
|
823
823
|
inductionVariable = inductionVariable + 1 | 0;
|
|
824
824
|
var tmp$ret$2;
|
|
825
825
|
// Inline function 'community.flock.wirespec.compiler.cli.io.Companion.parse.<anonymous>.<anonymous>' call
|
|
826
|
-
tmp$ret$2 = element.
|
|
826
|
+
tmp$ret$2 = element.x1z_1 === tmp1_let;
|
|
827
827
|
if (tmp$ret$2) {
|
|
828
828
|
tmp$ret$3 = element;
|
|
829
829
|
break $l$block;
|
|
@@ -855,26 +855,26 @@
|
|
|
855
855
|
function FullFilePath(directory, fileName, extension) {
|
|
856
856
|
Companion_getInstance_4();
|
|
857
857
|
extension = extension === VOID ? Extension_Wirespec_getInstance() : extension;
|
|
858
|
-
this.
|
|
859
|
-
this.
|
|
860
|
-
this.
|
|
858
|
+
this.p1z_1 = directory;
|
|
859
|
+
this.q1z_1 = fileName;
|
|
860
|
+
this.r1z_1 = extension;
|
|
861
861
|
}
|
|
862
862
|
protoOf(FullFilePath).toString = function () {
|
|
863
|
-
return this.
|
|
863
|
+
return this.p1z_1 + '/' + this.q1z_1 + '.' + this.r1z_1.x1z_1;
|
|
864
864
|
};
|
|
865
|
-
protoOf(FullFilePath).
|
|
865
|
+
protoOf(FullFilePath).y1z = function (directory, fileName, extension) {
|
|
866
866
|
return new FullFilePath(directory, fileName, extension);
|
|
867
867
|
};
|
|
868
|
-
protoOf(FullFilePath).
|
|
869
|
-
directory = directory === VOID ? this.
|
|
870
|
-
fileName = fileName === VOID ? this.
|
|
871
|
-
extension = extension === VOID ? this.
|
|
872
|
-
return $super === VOID ? this.
|
|
868
|
+
protoOf(FullFilePath).u1z = function (directory, fileName, extension, $super) {
|
|
869
|
+
directory = directory === VOID ? this.p1z_1 : directory;
|
|
870
|
+
fileName = fileName === VOID ? this.q1z_1 : fileName;
|
|
871
|
+
extension = extension === VOID ? this.r1z_1 : extension;
|
|
872
|
+
return $super === VOID ? this.y1z(directory, fileName, extension) : $super.y1z.call(this, directory, fileName, extension);
|
|
873
873
|
};
|
|
874
874
|
protoOf(FullFilePath).hashCode = function () {
|
|
875
|
-
var result = getStringHashCode(this.
|
|
876
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
877
|
-
result = imul(result, 31) + this.
|
|
875
|
+
var result = getStringHashCode(this.p1z_1);
|
|
876
|
+
result = imul(result, 31) + getStringHashCode(this.q1z_1) | 0;
|
|
877
|
+
result = imul(result, 31) + this.r1z_1.hashCode() | 0;
|
|
878
878
|
return result;
|
|
879
879
|
};
|
|
880
880
|
protoOf(FullFilePath).equals = function (other) {
|
|
@@ -883,49 +883,49 @@
|
|
|
883
883
|
if (!(other instanceof FullFilePath))
|
|
884
884
|
return false;
|
|
885
885
|
var tmp0_other_with_cast = other instanceof FullFilePath ? other : THROW_CCE();
|
|
886
|
-
if (!(this.
|
|
886
|
+
if (!(this.p1z_1 === tmp0_other_with_cast.p1z_1))
|
|
887
887
|
return false;
|
|
888
|
-
if (!(this.
|
|
888
|
+
if (!(this.q1z_1 === tmp0_other_with_cast.q1z_1))
|
|
889
889
|
return false;
|
|
890
|
-
if (!this.
|
|
890
|
+
if (!this.r1z_1.equals(tmp0_other_with_cast.r1z_1))
|
|
891
891
|
return false;
|
|
892
892
|
return true;
|
|
893
893
|
};
|
|
894
894
|
function JavaFile(path) {
|
|
895
|
-
File.call(this, path.
|
|
895
|
+
File.call(this, path.u1z(VOID, VOID, Extension_Java_getInstance()));
|
|
896
896
|
}
|
|
897
|
-
protoOf(JavaFile).
|
|
898
|
-
return new JavaFile(this.
|
|
897
|
+
protoOf(JavaFile).s1z = function (fileName) {
|
|
898
|
+
return new JavaFile(this.o1z_1.u1z(VOID, fileName));
|
|
899
899
|
};
|
|
900
900
|
function JsonFile(path) {
|
|
901
|
-
File.call(this, path.
|
|
901
|
+
File.call(this, path.u1z(VOID, VOID, Extension_Json_getInstance()));
|
|
902
902
|
}
|
|
903
|
-
protoOf(JsonFile).
|
|
904
|
-
return new JsonFile(this.
|
|
903
|
+
protoOf(JsonFile).s1z = function (fileName) {
|
|
904
|
+
return new JsonFile(this.o1z_1.u1z(VOID, fileName));
|
|
905
905
|
};
|
|
906
906
|
function KotlinFile(path) {
|
|
907
|
-
File.call(this, path.
|
|
907
|
+
File.call(this, path.u1z(VOID, VOID, Extension_Kotlin_getInstance()));
|
|
908
908
|
}
|
|
909
|
-
protoOf(KotlinFile).
|
|
910
|
-
return new KotlinFile(this.
|
|
909
|
+
protoOf(KotlinFile).s1z = function (fileName) {
|
|
910
|
+
return new KotlinFile(this.o1z_1.u1z(VOID, fileName));
|
|
911
911
|
};
|
|
912
912
|
function ScalaFile(path) {
|
|
913
|
-
File.call(this, path.
|
|
913
|
+
File.call(this, path.u1z(VOID, VOID, Extension_Scala_getInstance()));
|
|
914
914
|
}
|
|
915
|
-
protoOf(ScalaFile).
|
|
916
|
-
return new ScalaFile(this.
|
|
915
|
+
protoOf(ScalaFile).s1z = function (fileName) {
|
|
916
|
+
return new ScalaFile(this.o1z_1.u1z(VOID, fileName));
|
|
917
917
|
};
|
|
918
918
|
function TypeScriptFile(path) {
|
|
919
|
-
File.call(this, path.
|
|
919
|
+
File.call(this, path.u1z(VOID, VOID, Extension_TypeScript_getInstance()));
|
|
920
920
|
}
|
|
921
|
-
protoOf(TypeScriptFile).
|
|
922
|
-
return new TypeScriptFile(this.
|
|
921
|
+
protoOf(TypeScriptFile).s1z = function (fileName) {
|
|
922
|
+
return new TypeScriptFile(this.o1z_1.u1z(VOID, fileName));
|
|
923
923
|
};
|
|
924
924
|
function WirespecFile(path) {
|
|
925
|
-
File.call(this, path.
|
|
925
|
+
File.call(this, path.u1z(VOID, VOID, Extension_Wirespec_getInstance()));
|
|
926
926
|
}
|
|
927
|
-
protoOf(WirespecFile).
|
|
928
|
-
return new WirespecFile(this.
|
|
927
|
+
protoOf(WirespecFile).s1z = function (fileName) {
|
|
928
|
+
return new WirespecFile(this.o1z_1.u1z(VOID, fileName));
|
|
929
929
|
};
|
|
930
930
|
function Directory$wirespecFiles$lambda(it) {
|
|
931
931
|
var tmp$ret$0;
|
|
@@ -934,14 +934,14 @@
|
|
|
934
934
|
return tmp$ret$0;
|
|
935
935
|
}
|
|
936
936
|
function Directory$wirespecFiles$lambda_0(it) {
|
|
937
|
-
return endsWith(it, Extension_Wirespec_getInstance().
|
|
937
|
+
return endsWith(it, Extension_Wirespec_getInstance().x1z_1);
|
|
938
938
|
}
|
|
939
939
|
function Directory$wirespecFiles$lambda_1(it) {
|
|
940
|
-
return dropLast(it, Extension_Wirespec_getInstance().
|
|
940
|
+
return dropLast(it, Extension_Wirespec_getInstance().x1z_1.length + 1 | 0);
|
|
941
941
|
}
|
|
942
942
|
function Directory$wirespecFiles$lambda_2(this$0) {
|
|
943
943
|
return function (it) {
|
|
944
|
-
return new FullFilePath(this$0.
|
|
944
|
+
return new FullFilePath(this$0.m1z_1, it);
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
947
|
function WirespecFile$_init_$ref_cj1n5j() {
|
|
@@ -952,10 +952,10 @@
|
|
|
952
952
|
return l;
|
|
953
953
|
}
|
|
954
954
|
function Directory(path) {
|
|
955
|
-
this.
|
|
955
|
+
this.m1z_1 = path;
|
|
956
956
|
}
|
|
957
|
-
protoOf(Directory).
|
|
958
|
-
var tmp = asSequence(iterator(get_fs().readdirSync(this.
|
|
957
|
+
protoOf(Directory).n1z = function () {
|
|
958
|
+
var tmp = asSequence(iterator(get_fs().readdirSync(this.m1z_1, 'utf-8')));
|
|
959
959
|
var tmp_0 = map(tmp, Directory$wirespecFiles$lambda);
|
|
960
960
|
var tmp_1 = filter(tmp_0, Directory$wirespecFiles$lambda_0);
|
|
961
961
|
var tmp_2 = map(tmp_1, Directory$wirespecFiles$lambda_1);
|
|
@@ -963,28 +963,28 @@
|
|
|
963
963
|
return toSet_0(map(tmp_3, WirespecFile$_init_$ref_cj1n5j()));
|
|
964
964
|
};
|
|
965
965
|
function File(path) {
|
|
966
|
-
this.
|
|
966
|
+
this.o1z_1 = path;
|
|
967
967
|
}
|
|
968
|
-
protoOf(File).
|
|
968
|
+
protoOf(File).p15 = function () {
|
|
969
969
|
var tmp$ret$0;
|
|
970
970
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
971
|
-
var tmp0_unsafeCast = get_fs().readFileSync(this.
|
|
971
|
+
var tmp0_unsafeCast = get_fs().readFileSync(this.o1z_1.toString(), 'utf-8');
|
|
972
972
|
tmp$ret$0 = tmp0_unsafeCast;
|
|
973
973
|
return tmp$ret$0;
|
|
974
974
|
};
|
|
975
|
-
protoOf(File).
|
|
975
|
+
protoOf(File).t1z = function (text) {
|
|
976
976
|
var tmp$ret$2;
|
|
977
977
|
// Inline function 'kotlin.run' call
|
|
978
|
-
var tmp0_run = this.
|
|
978
|
+
var tmp0_run = this.o1z_1.u1z(joinToString(split_0(this.o1z_1.p1z_1, ['out']), 'out/node'));
|
|
979
979
|
// Inline function 'kotlin.contracts.contract' call
|
|
980
980
|
var tmp$ret$1;
|
|
981
981
|
// Inline function 'community.flock.wirespec.compiler.cli.io.File.write.<anonymous>' call
|
|
982
982
|
var tmp$ret$0;
|
|
983
983
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
984
|
-
var tmp0_unsafeCast = get_fs().existsSync(tmp0_run.
|
|
984
|
+
var tmp0_unsafeCast = get_fs().existsSync(tmp0_run.p1z_1);
|
|
985
985
|
tmp$ret$0 = tmp0_unsafeCast;
|
|
986
986
|
if (!tmp$ret$0) {
|
|
987
|
-
get_fs().mkdirSync(tmp0_run.
|
|
987
|
+
get_fs().mkdirSync(tmp0_run.p1z_1, {recursive: true});
|
|
988
988
|
}
|
|
989
989
|
tmp$ret$1 = get_fs().writeFileSync(tmp0_run.toString(), text);
|
|
990
990
|
tmp$ret$2 = tmp$ret$1;
|