@flock/wirespec 0.9.2 → 0.9.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/clikt-clikt.js +1126 -1126
- package/colormath-root-colormath.js +335 -335
- package/kotlin-kotlin-stdlib.js +8 -8
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-rgxgen.js +1760 -1760
- package/markdown.js +1792 -1792
- package/mordant-mordant.js +1498 -1498
- package/package.json +1 -1
- package/wirespec-src-compiler-core.js +1125 -1107
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +231 -231
- package/wirespec-src-converter-openapi.js +223 -231
- package/wirespec-src-converter-openapi.js.map +1 -1
- package/wirespec-src-generator.js +18 -18
- package/wirespec-src-plugin-arguments.js +72 -72
- package/wirespec-src-plugin-cli.js +105 -105
- package/wirespec-src-plugin-npm.js +1 -1
|
@@ -58,36 +58,36 @@
|
|
|
58
58
|
setMetadataFor(Output, 'Output', classMeta);
|
|
59
59
|
//endregion
|
|
60
60
|
function CompilerArguments(operation, input, output, languages, packageName, shared, strict, debug) {
|
|
61
|
-
this.
|
|
62
|
-
this.
|
|
63
|
-
this.
|
|
64
|
-
this.
|
|
65
|
-
this.
|
|
66
|
-
this.
|
|
67
|
-
this.
|
|
68
|
-
this.
|
|
61
|
+
this.t21_1 = operation;
|
|
62
|
+
this.u21_1 = input;
|
|
63
|
+
this.v21_1 = output;
|
|
64
|
+
this.w21_1 = languages;
|
|
65
|
+
this.x21_1 = packageName;
|
|
66
|
+
this.y21_1 = shared;
|
|
67
|
+
this.z21_1 = strict;
|
|
68
|
+
this.a22_1 = debug;
|
|
69
69
|
}
|
|
70
70
|
protoOf(CompilerArguments).toString = function () {
|
|
71
|
-
var tmp = this.
|
|
72
|
-
return 'CompilerArguments(operation=' + this.
|
|
71
|
+
var tmp = this.v21_1;
|
|
72
|
+
return 'CompilerArguments(operation=' + this.t21_1 + ', input=' + this.u21_1 + ', output=' + (tmp == null ? null : new Output(tmp)) + ', languages=' + this.w21_1 + ', packageName=' + new PackageName(this.x21_1) + ', shared=' + this.y21_1 + ', strict=' + this.z21_1 + ', debug=' + this.a22_1 + ')';
|
|
73
73
|
};
|
|
74
74
|
protoOf(CompilerArguments).hashCode = function () {
|
|
75
|
-
var result = hashCode(this.
|
|
76
|
-
result = imul(result, 31) + hashCode(this.
|
|
75
|
+
var result = hashCode(this.t21_1);
|
|
76
|
+
result = imul(result, 31) + hashCode(this.u21_1) | 0;
|
|
77
77
|
var tmp = imul(result, 31);
|
|
78
78
|
var tmp_0;
|
|
79
|
-
var tmp_1 = this.
|
|
79
|
+
var tmp_1 = this.v21_1;
|
|
80
80
|
if ((tmp_1 == null ? null : new Output(tmp_1)) == null) {
|
|
81
81
|
tmp_0 = 0;
|
|
82
82
|
} else {
|
|
83
|
-
tmp_0 = Output__hashCode_impl_m9q6pd(this.
|
|
83
|
+
tmp_0 = Output__hashCode_impl_m9q6pd(this.v21_1);
|
|
84
84
|
}
|
|
85
85
|
result = tmp + tmp_0 | 0;
|
|
86
|
-
result = imul(result, 31) + hashCode(this.
|
|
87
|
-
result = imul(result, 31) + PackageName__hashCode_impl_nv5z9d(this.
|
|
88
|
-
result = imul(result, 31) + (this.x21_1 | 0) | 0;
|
|
86
|
+
result = imul(result, 31) + hashCode(this.w21_1) | 0;
|
|
87
|
+
result = imul(result, 31) + PackageName__hashCode_impl_nv5z9d(this.x21_1) | 0;
|
|
89
88
|
result = imul(result, 31) + (this.y21_1 | 0) | 0;
|
|
90
89
|
result = imul(result, 31) + (this.z21_1 | 0) | 0;
|
|
90
|
+
result = imul(result, 31) + (this.a22_1 | 0) | 0;
|
|
91
91
|
return result;
|
|
92
92
|
};
|
|
93
93
|
protoOf(CompilerArguments).equals = function (other) {
|
|
@@ -96,18 +96,16 @@
|
|
|
96
96
|
if (!(other instanceof CompilerArguments))
|
|
97
97
|
return false;
|
|
98
98
|
var tmp0_other_with_cast = other instanceof CompilerArguments ? other : THROW_CCE();
|
|
99
|
-
if (!equals(this.s21_1, tmp0_other_with_cast.s21_1))
|
|
100
|
-
return false;
|
|
101
99
|
if (!equals(this.t21_1, tmp0_other_with_cast.t21_1))
|
|
102
100
|
return false;
|
|
103
|
-
|
|
101
|
+
if (!equals(this.u21_1, tmp0_other_with_cast.u21_1))
|
|
102
|
+
return false;
|
|
103
|
+
var tmp = this.v21_1;
|
|
104
104
|
var tmp_0 = tmp == null ? null : new Output(tmp);
|
|
105
|
-
var tmp_1 = tmp0_other_with_cast.
|
|
105
|
+
var tmp_1 = tmp0_other_with_cast.v21_1;
|
|
106
106
|
if (!equals(tmp_0, tmp_1 == null ? null : new Output(tmp_1)))
|
|
107
107
|
return false;
|
|
108
|
-
if (!equals(this.
|
|
109
|
-
return false;
|
|
110
|
-
if (!(this.w21_1 === tmp0_other_with_cast.w21_1))
|
|
108
|
+
if (!equals(this.w21_1, tmp0_other_with_cast.w21_1))
|
|
111
109
|
return false;
|
|
112
110
|
if (!(this.x21_1 === tmp0_other_with_cast.x21_1))
|
|
113
111
|
return false;
|
|
@@ -115,6 +113,8 @@
|
|
|
115
113
|
return false;
|
|
116
114
|
if (!(this.z21_1 === tmp0_other_with_cast.z21_1))
|
|
117
115
|
return false;
|
|
116
|
+
if (!(this.a22_1 === tmp0_other_with_cast.a22_1))
|
|
117
|
+
return false;
|
|
118
118
|
return true;
|
|
119
119
|
};
|
|
120
120
|
function _PackageName___init__impl__s13tbs(value) {
|
|
@@ -132,24 +132,24 @@
|
|
|
132
132
|
function PackageName__equals_impl_eo1xnn($this, other) {
|
|
133
133
|
if (!(other instanceof PackageName))
|
|
134
134
|
return false;
|
|
135
|
-
if (!($this === (other instanceof PackageName ? other.
|
|
135
|
+
if (!($this === (other instanceof PackageName ? other.b22_1 : THROW_CCE())))
|
|
136
136
|
return false;
|
|
137
137
|
return true;
|
|
138
138
|
}
|
|
139
139
|
function PackageName(value) {
|
|
140
|
-
this.
|
|
140
|
+
this.b22_1 = value;
|
|
141
141
|
}
|
|
142
142
|
protoOf(PackageName).p2 = function () {
|
|
143
|
-
return _PackageName___get_value__impl__2zr98c(this.
|
|
143
|
+
return _PackageName___get_value__impl__2zr98c(this.b22_1);
|
|
144
144
|
};
|
|
145
145
|
protoOf(PackageName).toString = function () {
|
|
146
|
-
return PackageName__toString_impl_pes5ww(this.
|
|
146
|
+
return PackageName__toString_impl_pes5ww(this.b22_1);
|
|
147
147
|
};
|
|
148
148
|
protoOf(PackageName).hashCode = function () {
|
|
149
|
-
return PackageName__hashCode_impl_nv5z9d(this.
|
|
149
|
+
return PackageName__hashCode_impl_nv5z9d(this.b22_1);
|
|
150
150
|
};
|
|
151
151
|
protoOf(PackageName).equals = function (other) {
|
|
152
|
-
return PackageName__equals_impl_eo1xnn(this.
|
|
152
|
+
return PackageName__equals_impl_eo1xnn(this.b22_1, other);
|
|
153
153
|
};
|
|
154
154
|
function Compile() {
|
|
155
155
|
Compile_instance = this;
|
|
@@ -175,13 +175,13 @@
|
|
|
175
175
|
return Compile_instance;
|
|
176
176
|
}
|
|
177
177
|
function Convert(format) {
|
|
178
|
-
this.
|
|
178
|
+
this.c22_1 = format;
|
|
179
179
|
}
|
|
180
180
|
protoOf(Convert).toString = function () {
|
|
181
|
-
return 'Convert(format=' + this.
|
|
181
|
+
return 'Convert(format=' + this.c22_1 + ')';
|
|
182
182
|
};
|
|
183
183
|
protoOf(Convert).hashCode = function () {
|
|
184
|
-
return this.
|
|
184
|
+
return this.c22_1.hashCode();
|
|
185
185
|
};
|
|
186
186
|
protoOf(Convert).equals = function (other) {
|
|
187
187
|
if (this === other)
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
if (!(other instanceof Convert))
|
|
190
190
|
return false;
|
|
191
191
|
var tmp0_other_with_cast = other instanceof Convert ? other : THROW_CCE();
|
|
192
|
-
if (!this.
|
|
192
|
+
if (!this.c22_1.equals(tmp0_other_with_cast.c22_1))
|
|
193
193
|
return false;
|
|
194
194
|
return true;
|
|
195
195
|
};
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
function Companion_0() {
|
|
241
241
|
Companion_instance_0 = this;
|
|
242
242
|
}
|
|
243
|
-
protoOf(Companion_0).
|
|
243
|
+
protoOf(Companion_0).d22 = function (input) {
|
|
244
244
|
// Inline function 'kotlin.let' call
|
|
245
245
|
var tmp0_let = split(input, ['/']);
|
|
246
246
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -261,7 +261,7 @@
|
|
|
261
261
|
while (tmp0_iterator.w()) {
|
|
262
262
|
var element = tmp0_iterator.y();
|
|
263
263
|
// Inline function 'community.flock.wirespec.plugin.Companion.parse.<anonymous>.<anonymous>' call
|
|
264
|
-
if (element.
|
|
264
|
+
if (element.g22_1 === tmp2_let) {
|
|
265
265
|
tmp$ret$5 = element;
|
|
266
266
|
break $l$block;
|
|
267
267
|
}
|
|
@@ -289,26 +289,26 @@
|
|
|
289
289
|
function FullFilePath(directory, fileName, extension) {
|
|
290
290
|
Companion_getInstance_0();
|
|
291
291
|
extension = extension === VOID ? FileExtension_Wirespec_getInstance() : extension;
|
|
292
|
-
this.
|
|
293
|
-
this.
|
|
294
|
-
this.
|
|
292
|
+
this.h22_1 = directory;
|
|
293
|
+
this.i22_1 = fileName;
|
|
294
|
+
this.j22_1 = extension;
|
|
295
295
|
}
|
|
296
296
|
protoOf(FullFilePath).toString = function () {
|
|
297
|
-
return this.
|
|
297
|
+
return this.h22_1 + '/' + _FileName___get_value__impl__3u4cz6(this.i22_1) + '.' + this.j22_1.g22_1;
|
|
298
298
|
};
|
|
299
|
-
protoOf(FullFilePath).
|
|
299
|
+
protoOf(FullFilePath).k22 = function (directory, fileName, extension) {
|
|
300
300
|
return new FullFilePath(directory, fileName, extension);
|
|
301
301
|
};
|
|
302
|
-
protoOf(FullFilePath).
|
|
303
|
-
directory = directory === VOID ? this.
|
|
304
|
-
fileName = fileName === VOID ? this.
|
|
305
|
-
extension = extension === VOID ? this.
|
|
306
|
-
return $super === VOID ? this.
|
|
302
|
+
protoOf(FullFilePath).l22 = function (directory, fileName, extension, $super) {
|
|
303
|
+
directory = directory === VOID ? this.h22_1 : directory;
|
|
304
|
+
fileName = fileName === VOID ? this.i22_1 : fileName;
|
|
305
|
+
extension = extension === VOID ? this.j22_1 : extension;
|
|
306
|
+
return $super === VOID ? this.k22(directory, fileName, extension) : $super.k22.call(this, directory, new FileName(fileName), extension);
|
|
307
307
|
};
|
|
308
308
|
protoOf(FullFilePath).hashCode = function () {
|
|
309
|
-
var result = getStringHashCode(this.
|
|
310
|
-
result = imul(result, 31) + FileName__hashCode_impl_43wak5(this.
|
|
311
|
-
result = imul(result, 31) + this.
|
|
309
|
+
var result = getStringHashCode(this.h22_1);
|
|
310
|
+
result = imul(result, 31) + FileName__hashCode_impl_43wak5(this.i22_1) | 0;
|
|
311
|
+
result = imul(result, 31) + this.j22_1.hashCode() | 0;
|
|
312
312
|
return result;
|
|
313
313
|
};
|
|
314
314
|
protoOf(FullFilePath).equals = function (other) {
|
|
@@ -317,11 +317,11 @@
|
|
|
317
317
|
if (!(other instanceof FullFilePath))
|
|
318
318
|
return false;
|
|
319
319
|
var tmp0_other_with_cast = other instanceof FullFilePath ? other : THROW_CCE();
|
|
320
|
-
if (!(this.g22_1 === tmp0_other_with_cast.g22_1))
|
|
321
|
-
return false;
|
|
322
320
|
if (!(this.h22_1 === tmp0_other_with_cast.h22_1))
|
|
323
321
|
return false;
|
|
324
|
-
if (!this.i22_1
|
|
322
|
+
if (!(this.i22_1 === tmp0_other_with_cast.i22_1))
|
|
323
|
+
return false;
|
|
324
|
+
if (!this.j22_1.equals(tmp0_other_with_cast.j22_1))
|
|
325
325
|
return false;
|
|
326
326
|
return true;
|
|
327
327
|
};
|
|
@@ -340,24 +340,24 @@
|
|
|
340
340
|
function FileName__equals_impl_o96ox3($this, other) {
|
|
341
341
|
if (!(other instanceof FileName))
|
|
342
342
|
return false;
|
|
343
|
-
if (!($this === (other instanceof FileName ? other.
|
|
343
|
+
if (!($this === (other instanceof FileName ? other.m22_1 : THROW_CCE())))
|
|
344
344
|
return false;
|
|
345
345
|
return true;
|
|
346
346
|
}
|
|
347
347
|
function FileName(value) {
|
|
348
|
-
this.
|
|
348
|
+
this.m22_1 = value;
|
|
349
349
|
}
|
|
350
350
|
protoOf(FileName).p2 = function () {
|
|
351
|
-
return _FileName___get_value__impl__3u4cz6(this.
|
|
351
|
+
return _FileName___get_value__impl__3u4cz6(this.m22_1);
|
|
352
352
|
};
|
|
353
353
|
protoOf(FileName).toString = function () {
|
|
354
|
-
return FileName__toString_impl_hn9m8q(this.
|
|
354
|
+
return FileName__toString_impl_hn9m8q(this.m22_1);
|
|
355
355
|
};
|
|
356
356
|
protoOf(FileName).hashCode = function () {
|
|
357
|
-
return FileName__hashCode_impl_43wak5(this.
|
|
357
|
+
return FileName__hashCode_impl_43wak5(this.m22_1);
|
|
358
358
|
};
|
|
359
359
|
protoOf(FileName).equals = function (other) {
|
|
360
|
-
return FileName__equals_impl_o96ox3(this.
|
|
360
|
+
return FileName__equals_impl_o96ox3(this.m22_1, other);
|
|
361
361
|
};
|
|
362
362
|
function Console$read$lambda() {
|
|
363
363
|
return readlnOrNull();
|
|
@@ -389,13 +389,13 @@
|
|
|
389
389
|
return Console_instance;
|
|
390
390
|
}
|
|
391
391
|
function FullDirPath(path) {
|
|
392
|
-
this.
|
|
392
|
+
this.n22_1 = path;
|
|
393
393
|
}
|
|
394
394
|
protoOf(FullDirPath).toString = function () {
|
|
395
|
-
return 'FullDirPath(path=' + this.
|
|
395
|
+
return 'FullDirPath(path=' + this.n22_1 + ')';
|
|
396
396
|
};
|
|
397
397
|
protoOf(FullDirPath).hashCode = function () {
|
|
398
|
-
return getStringHashCode(this.
|
|
398
|
+
return getStringHashCode(this.n22_1);
|
|
399
399
|
};
|
|
400
400
|
protoOf(FullDirPath).equals = function (other) {
|
|
401
401
|
if (this === other)
|
|
@@ -403,7 +403,7 @@
|
|
|
403
403
|
if (!(other instanceof FullDirPath))
|
|
404
404
|
return false;
|
|
405
405
|
var tmp0_other_with_cast = other instanceof FullDirPath ? other : THROW_CCE();
|
|
406
|
-
if (!(this.
|
|
406
|
+
if (!(this.n22_1 === tmp0_other_with_cast.n22_1))
|
|
407
407
|
return false;
|
|
408
408
|
return true;
|
|
409
409
|
};
|
|
@@ -415,7 +415,7 @@
|
|
|
415
415
|
function Companion_1() {
|
|
416
416
|
Companion_instance_1 = this;
|
|
417
417
|
}
|
|
418
|
-
protoOf(Companion_1).
|
|
418
|
+
protoOf(Companion_1).o22 = function () {
|
|
419
419
|
// Inline function 'kotlin.collections.associateBy' call
|
|
420
420
|
var tmp0_associateBy = get_entries_0();
|
|
421
421
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(tmp0_associateBy, 10)), 16);
|
|
@@ -494,10 +494,10 @@
|
|
|
494
494
|
var $ENTRIES_1;
|
|
495
495
|
function FileExtension(name, ordinal, value) {
|
|
496
496
|
Enum.call(this, name, ordinal);
|
|
497
|
-
this.
|
|
497
|
+
this.g22_1 = value;
|
|
498
498
|
}
|
|
499
499
|
protoOf(FileExtension).p2 = function () {
|
|
500
|
-
return this.
|
|
500
|
+
return this.g22_1;
|
|
501
501
|
};
|
|
502
502
|
function Language_Java_getInstance() {
|
|
503
503
|
Language_initEntries();
|
|
@@ -555,7 +555,7 @@
|
|
|
555
555
|
function Companion_2() {
|
|
556
556
|
Companion_instance_2 = this;
|
|
557
557
|
}
|
|
558
|
-
protoOf(Companion_2).
|
|
558
|
+
protoOf(Companion_2).p22 = function (s) {
|
|
559
559
|
var tmp;
|
|
560
560
|
if (s == null) {
|
|
561
561
|
tmp = null;
|
|
@@ -578,25 +578,25 @@
|
|
|
578
578
|
function Output__equals_impl_7y48wd($this, other) {
|
|
579
579
|
if (!(other instanceof Output))
|
|
580
580
|
return false;
|
|
581
|
-
if (!($this === (other instanceof Output ? other.
|
|
581
|
+
if (!($this === (other instanceof Output ? other.q22_1 : THROW_CCE())))
|
|
582
582
|
return false;
|
|
583
583
|
return true;
|
|
584
584
|
}
|
|
585
585
|
function Output(value) {
|
|
586
586
|
Companion_getInstance_2();
|
|
587
|
-
this.
|
|
587
|
+
this.q22_1 = value;
|
|
588
588
|
}
|
|
589
589
|
protoOf(Output).p2 = function () {
|
|
590
|
-
return _Output___get_value__impl__a8kw1g(this.
|
|
590
|
+
return _Output___get_value__impl__a8kw1g(this.q22_1);
|
|
591
591
|
};
|
|
592
592
|
protoOf(Output).toString = function () {
|
|
593
|
-
return Output__toString_impl_r07ygw(this.
|
|
593
|
+
return Output__toString_impl_r07ygw(this.q22_1);
|
|
594
594
|
};
|
|
595
595
|
protoOf(Output).hashCode = function () {
|
|
596
|
-
return Output__hashCode_impl_m9q6pd(this.
|
|
596
|
+
return Output__hashCode_impl_m9q6pd(this.q22_1);
|
|
597
597
|
};
|
|
598
598
|
protoOf(Output).equals = function (other) {
|
|
599
|
-
return Output__equals_impl_7y48wd(this.
|
|
599
|
+
return Output__equals_impl_7y48wd(this.q22_1, other);
|
|
600
600
|
};
|
|
601
601
|
//region block: exports
|
|
602
602
|
_.$_$ = _.$_$ || {};
|