@flock/wirespec 0.21.1 → 0.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arrow-arrow-atomic.mjs +14 -14
- package/arrow-arrow-atomic.mjs.map +1 -1
- package/arrow-arrow-core.mjs +187 -182
- package/arrow-arrow-core.mjs.map +1 -1
- package/clikt-clikt-mordant.mjs +89 -89
- package/clikt-clikt-mordant.mjs.map +1 -1
- package/clikt-clikt.mjs +1704 -1706
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +465 -465
- package/colormath-root-colormath.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +2644 -2481
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10373 -10346
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1851 -1855
- package/kotlin-rgxgen.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +469 -469
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2038 -2046
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1859 -1813
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant.mjs +1452 -1447
- package/mordant-mordant.mjs.map +1 -1
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +25964 -3598
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +373 -469
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +327 -382
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +355 -354
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +756 -754
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +361 -361
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +484 -472
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +434 -153
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +978 -441
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-asyncapi.mjs +5382 -0
- package/wirespec-src-converter-asyncapi.mjs.map +1 -0
- package/wirespec-src-converter-avro.mjs +1297 -725
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-common.mjs +267 -0
- package/wirespec-src-converter-common.mjs.map +1 -1
- package/wirespec-src-converter-graphql.mjs +5691 -0
- package/wirespec-src-converter-graphql.mjs.map +1 -0
- package/wirespec-src-converter-openapi.mjs +1304 -1225
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-ide-lsp.mjs +1728 -1642
- package/wirespec-src-ide-lsp.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +301 -240
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +161 -133
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-npm.d.mts +216 -29
- package/wirespec-src-plugin-npm.mjs +188 -95
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +61 -53
- package/wirespec-src-tools-generator.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +0 -18912
- package/wirespec-src-compiler-ir.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
Default_getInstance2tudkf86ziur0 as Default_getInstance,
|
|
3
3
|
VOID3gxj6tk5isa35 as VOID,
|
|
4
4
|
removeSuffix3d61x5lsuvuho as removeSuffix,
|
|
5
5
|
endsWith3cq61xxngobwh as endsWith,
|
|
@@ -7,16 +7,16 @@ import {
|
|
|
7
7
|
NotImplementedErrorfzlkpv14xxr8 as NotImplementedError,
|
|
8
8
|
numberRangeToNumber25vse2rgp6rs8 as numberRangeToNumber,
|
|
9
9
|
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
10
|
-
ArrayList_init_$Create$
|
|
11
|
-
|
|
12
|
-
ArrayList_init_$Create$
|
|
10
|
+
ArrayList_init_$Create$2byt5m5yn22yy as ArrayList_init_$Create$,
|
|
11
|
+
Unit_instancev9v8hjid95df as Unit_instance,
|
|
12
|
+
ArrayList_init_$Create$37gc04va6yfo2 as ArrayList_init_$Create$_0,
|
|
13
13
|
addAll1k27qatfgp3k5 as addAll,
|
|
14
14
|
toString1pkumu07cwy4m as toString,
|
|
15
|
-
IllegalStateException_init_$Create$
|
|
15
|
+
IllegalStateException_init_$Create$1h4bcfod21ri0 as IllegalStateException_init_$Create$,
|
|
16
16
|
emptyMapr06gerzljqtm as emptyMap,
|
|
17
17
|
charSequenceLength3278n89t01tmv as charSequenceLength,
|
|
18
18
|
charSequenceGet1vxk1y5n17t1z as charSequenceGet,
|
|
19
|
-
|
|
19
|
+
Char__toInt_impl_vasixdnyockrdnmht5 as Char__toInt_impl_vasixd,
|
|
20
20
|
Random2w0u2xak2xaqi as Random,
|
|
21
21
|
to2cs3ny02qtbcb as to,
|
|
22
22
|
plus2lr02ok6jhhxu as plus,
|
|
@@ -36,6 +36,7 @@ import {
|
|
|
36
36
|
Integer39lqx4uc63u28 as Integer,
|
|
37
37
|
Primitive1i8my14jkp3nk as Primitive,
|
|
38
38
|
Dict3g7w5wia7rncj as Dict,
|
|
39
|
+
Part2m6fm5anwg79b as Part,
|
|
39
40
|
Rpc1w89psy5tk702 as Rpc,
|
|
40
41
|
Channel2fhxi4a4pwb64 as Channel,
|
|
41
42
|
Endpoint1jsq06yr3xdhp as Endpoint,
|
|
@@ -43,14 +44,15 @@ import {
|
|
|
43
44
|
Enum3l2iuc342kle6 as Enum,
|
|
44
45
|
Refined1lkzc0dg6wey7 as Refined,
|
|
45
46
|
Type12n1gx16iqtcu as Type,
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
get_fields1vhfmr41isbcc as get_fields,
|
|
48
|
+
Bytes_instance1cqd1xiwjq94x as Bytes_instance,
|
|
49
|
+
Boolean_instance15wa4iqeayn6f as Boolean_instance,
|
|
48
50
|
RegExpiyof7szm5zfu as RegExp_0,
|
|
49
|
-
|
|
51
|
+
_RegExp___get_value__impl__7o7618olm3t8d4plkj as _RegExp___get_value__impl__7o7618,
|
|
50
52
|
String1czvr8pxnm6on as String_0,
|
|
51
53
|
} from './wirespec-src-compiler-core.mjs';
|
|
52
54
|
import {
|
|
53
|
-
|
|
55
|
+
JsonNull_getInstancehlive1cpt4pr as JsonNull_getInstance,
|
|
54
56
|
JsonPrimitive1xkjzc5d7ihuv as JsonPrimitive,
|
|
55
57
|
JsonPrimitive2fp8648nd60dn as JsonPrimitive_0,
|
|
56
58
|
JsonArray2urf8ey7u44sd as JsonArray,
|
|
@@ -58,12 +60,12 @@ import {
|
|
|
58
60
|
JsonObjectee06ihoeeiqj as JsonObject,
|
|
59
61
|
} from './kotlinx-serialization-kotlinx-serialization-json.mjs';
|
|
60
62
|
import {
|
|
61
|
-
|
|
63
|
+
_NonEmptyList___get_all__impl__pmf5092xnz0i2teaa6d as _NonEmptyList___get_all__impl__pmf509,
|
|
62
64
|
NonEmptyList3ak25ihy2gcvs as NonEmptyList,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
+
_NonEmptyList___init__impl__fxd0xprpnd63likgzm as _NonEmptyList___init__impl__fxd0xp,
|
|
66
|
+
NonEmptyList__toList_impl_t5xcy266xhxpenbpfx as NonEmptyList__toList_impl_t5xcy2,
|
|
65
67
|
} from './arrow-arrow-core.mjs';
|
|
66
|
-
import {
|
|
68
|
+
import { Companion_instance2f5ltm1rqf0xx as Companion_instance } from './kotlin-rgxgen.mjs';
|
|
67
69
|
//region block: imports
|
|
68
70
|
//endregion
|
|
69
71
|
//region block: pre-declaration
|
|
@@ -83,27 +85,28 @@ function generate_0(_this__u8e3s4, type, random) {
|
|
|
83
85
|
function generateReference(_this__u8e3s4, ref, random) {
|
|
84
86
|
var tmp;
|
|
85
87
|
if (ref instanceof Dict) {
|
|
88
|
+
// Inline function 'kotlin.TODO' call
|
|
86
89
|
throw new NotImplementedError();
|
|
87
90
|
} else {
|
|
88
91
|
if (ref instanceof Iterable) {
|
|
89
|
-
tmp = generateIterator(_this__u8e3s4, resolveReference(_this__u8e3s4, ref.
|
|
92
|
+
tmp = generateIterator(_this__u8e3s4, resolveReference(_this__u8e3s4, ref.xp_1), random);
|
|
90
93
|
} else {
|
|
91
94
|
if (ref instanceof Primitive) {
|
|
92
|
-
var tmp1_subject = ref.
|
|
95
|
+
var tmp1_subject = ref.s18_1;
|
|
93
96
|
var tmp_0;
|
|
94
97
|
if (tmp1_subject instanceof Integer) {
|
|
95
98
|
// Inline function 'kotlin.let' call
|
|
96
|
-
var p0 = random.
|
|
99
|
+
var p0 = random.jf();
|
|
97
100
|
tmp_0 = JsonPrimitive_0(p0);
|
|
98
101
|
} else {
|
|
99
102
|
if (tmp1_subject instanceof Number_0) {
|
|
100
103
|
// Inline function 'kotlin.let' call
|
|
101
|
-
var p0_0 = random.
|
|
104
|
+
var p0_0 = random.ci();
|
|
102
105
|
tmp_0 = JsonPrimitive_0(p0_0);
|
|
103
106
|
} else {
|
|
104
107
|
if (tmp1_subject instanceof Boolean_0) {
|
|
105
108
|
// Inline function 'kotlin.let' call
|
|
106
|
-
var p0_1 = random.
|
|
109
|
+
var p0_1 = random.bi();
|
|
107
110
|
tmp_0 = JsonPrimitive(p0_1);
|
|
108
111
|
} else {
|
|
109
112
|
tmp_0 = defaultGenerator(random);
|
|
@@ -132,17 +135,17 @@ function generateReference(_this__u8e3s4, ref, random) {
|
|
|
132
135
|
}
|
|
133
136
|
function generateIterator(_this__u8e3s4, def, random) {
|
|
134
137
|
// Inline function 'kotlin.collections.map' call
|
|
135
|
-
var this_0 = numberRangeToNumber(0, random.
|
|
138
|
+
var this_0 = numberRangeToNumber(0, random.zh(10));
|
|
136
139
|
// Inline function 'kotlin.collections.mapTo' call
|
|
137
140
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
138
|
-
var inductionVariable = this_0.
|
|
139
|
-
var last = this_0.
|
|
141
|
+
var inductionVariable = this_0.q1_1;
|
|
142
|
+
var last = this_0.r1_1;
|
|
140
143
|
if (inductionVariable <= last)
|
|
141
144
|
do {
|
|
142
145
|
var item = inductionVariable;
|
|
143
146
|
inductionVariable = inductionVariable + 1 | 0;
|
|
144
|
-
var tmp$ret$
|
|
145
|
-
destination.x(tmp$ret$
|
|
147
|
+
var tmp$ret$2 = generateObject(_this__u8e3s4, def, random);
|
|
148
|
+
destination.x(tmp$ret$2);
|
|
146
149
|
}
|
|
147
150
|
while (!(item === last));
|
|
148
151
|
// Inline function 'kotlin.let' call
|
|
@@ -150,7 +153,7 @@ function generateIterator(_this__u8e3s4, def, random) {
|
|
|
150
153
|
}
|
|
151
154
|
function resolveReference(_this__u8e3s4, type) {
|
|
152
155
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
153
|
-
var this_0 = _this__u8e3s4.
|
|
156
|
+
var this_0 = _this__u8e3s4.ep_1;
|
|
154
157
|
// Inline function 'kotlin.collections.flatMap' call
|
|
155
158
|
var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
156
159
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -158,19 +161,19 @@ function resolveReference(_this__u8e3s4, type) {
|
|
|
158
161
|
var _iterator__ex2g4s = tmp0.t();
|
|
159
162
|
while (_iterator__ex2g4s.u()) {
|
|
160
163
|
var element = _iterator__ex2g4s.v();
|
|
161
|
-
var list = new NonEmptyList(element.
|
|
164
|
+
var list = new NonEmptyList(element.gp_1);
|
|
162
165
|
addAll(destination, list);
|
|
163
166
|
}
|
|
164
|
-
var tmp$ret$
|
|
167
|
+
var tmp$ret$0 = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
165
168
|
// Inline function 'kotlin.collections.find' call
|
|
166
|
-
var tmp0_0 = NonEmptyList__toList_impl_t5xcy2(tmp$ret$
|
|
169
|
+
var tmp0_0 = NonEmptyList__toList_impl_t5xcy2(tmp$ret$0);
|
|
167
170
|
var tmp$ret$5;
|
|
168
171
|
$l$block: {
|
|
169
172
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
170
173
|
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
171
174
|
while (_iterator__ex2g4s_0.u()) {
|
|
172
175
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
173
|
-
if (element_0.
|
|
176
|
+
if (element_0.cs().o1() === type.o1()) {
|
|
174
177
|
tmp$ret$5 = element_0;
|
|
175
178
|
break $l$block;
|
|
176
179
|
}
|
|
@@ -180,6 +183,7 @@ function resolveReference(_this__u8e3s4, type) {
|
|
|
180
183
|
var tmp0_elvis_lhs = tmp$ret$5;
|
|
181
184
|
var tmp;
|
|
182
185
|
if (tmp0_elvis_lhs == null) {
|
|
186
|
+
// Inline function 'kotlin.error' call
|
|
183
187
|
var message = 'Definition not found in AST: ' + toString(type);
|
|
184
188
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
185
189
|
} else {
|
|
@@ -189,7 +193,7 @@ function resolveReference(_this__u8e3s4, type) {
|
|
|
189
193
|
}
|
|
190
194
|
function defaultGenerator(random) {
|
|
191
195
|
// Inline function 'kotlin.let' call
|
|
192
|
-
var p0 = Companion_instance.
|
|
196
|
+
var p0 = Companion_instance.v5j('\\w{1,50}').e5k(random);
|
|
193
197
|
return JsonPrimitive_1(p0);
|
|
194
198
|
}
|
|
195
199
|
function generateObject(_this__u8e3s4, def, random) {
|
|
@@ -215,7 +219,11 @@ function generateObject(_this__u8e3s4, def, random) {
|
|
|
215
219
|
if (def instanceof Rpc) {
|
|
216
220
|
throw new NotImplementedError('Rpc cannot be generated');
|
|
217
221
|
} else {
|
|
218
|
-
|
|
222
|
+
if (def instanceof Part) {
|
|
223
|
+
throw new NotImplementedError('Part cannot be generated');
|
|
224
|
+
} else {
|
|
225
|
+
noWhenBranchMatchedException();
|
|
226
|
+
}
|
|
219
227
|
}
|
|
220
228
|
}
|
|
221
229
|
}
|
|
@@ -227,8 +235,8 @@ function generateObject(_this__u8e3s4, def, random) {
|
|
|
227
235
|
}
|
|
228
236
|
function generateType(_this__u8e3s4, def, random) {
|
|
229
237
|
// Inline function 'kotlin.let' call
|
|
230
|
-
var typeSeed = random.
|
|
231
|
-
var tmp0 = def.
|
|
238
|
+
var typeSeed = random.jf();
|
|
239
|
+
var tmp0 = get_fields(def.kp_1);
|
|
232
240
|
// Inline function 'kotlin.collections.fold' call
|
|
233
241
|
var accumulator = emptyMap();
|
|
234
242
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -236,7 +244,7 @@ function generateType(_this__u8e3s4, def, random) {
|
|
|
236
244
|
var element = _iterator__ex2g4s.v();
|
|
237
245
|
var acc = accumulator;
|
|
238
246
|
// Inline function 'kotlin.let' call
|
|
239
|
-
var value = element.
|
|
247
|
+
var value = element.np_1.o1();
|
|
240
248
|
// Inline function 'kotlin.text.sumOf' call
|
|
241
249
|
var sum = 0;
|
|
242
250
|
var inductionVariable = 0;
|
|
@@ -249,17 +257,17 @@ function generateType(_this__u8e3s4, def, random) {
|
|
|
249
257
|
}
|
|
250
258
|
var fieldSeed = typeSeed + sum | 0;
|
|
251
259
|
var fieldRandom = Random(fieldSeed);
|
|
252
|
-
accumulator = plus(acc, to(value, generateReference(_this__u8e3s4, element.
|
|
260
|
+
accumulator = plus(acc, to(value, generateReference(_this__u8e3s4, element.op_1, fieldRandom)));
|
|
253
261
|
}
|
|
254
262
|
// Inline function 'kotlin.let' call
|
|
255
263
|
var p0 = accumulator;
|
|
256
264
|
return new JsonObject(p0);
|
|
257
265
|
}
|
|
258
266
|
function generateRefined(def, random) {
|
|
259
|
-
var type = def.
|
|
267
|
+
var type = def.ls_1.s18_1;
|
|
260
268
|
var tmp;
|
|
261
269
|
if (type instanceof String_0) {
|
|
262
|
-
var pattern = type.
|
|
270
|
+
var pattern = type.d19_1;
|
|
263
271
|
var tmp_0;
|
|
264
272
|
var tmp_1 = pattern;
|
|
265
273
|
if ((tmp_1 == null ? null : new RegExp_0(tmp_1))instanceof RegExp_0) {
|
|
@@ -278,34 +286,34 @@ function generateRefined(def, random) {
|
|
|
278
286
|
} else {
|
|
279
287
|
if (equals(type, Boolean_instance)) {
|
|
280
288
|
// Inline function 'kotlin.let' call
|
|
281
|
-
var p0_0 = random.
|
|
289
|
+
var p0_0 = random.bi();
|
|
282
290
|
tmp = JsonPrimitive(p0_0);
|
|
283
291
|
} else {
|
|
284
292
|
if (equals(type, Bytes_instance)) {
|
|
285
293
|
tmp = defaultGenerator(random);
|
|
286
294
|
} else {
|
|
287
295
|
if (type instanceof Integer) {
|
|
288
|
-
var tmp0_safe_receiver = type.
|
|
289
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
296
|
+
var tmp0_safe_receiver = type.b19_1;
|
|
297
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y18_1;
|
|
290
298
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : toInt(tmp1_safe_receiver);
|
|
291
299
|
var tmp_3 = tmp2_elvis_lhs == null ? 0 : tmp2_elvis_lhs;
|
|
292
|
-
var tmp3_safe_receiver = type.
|
|
293
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
300
|
+
var tmp3_safe_receiver = type.b19_1;
|
|
301
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.z18_1;
|
|
294
302
|
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : toInt(tmp4_safe_receiver);
|
|
295
303
|
// Inline function 'kotlin.let' call
|
|
296
|
-
var p0_1 = random.
|
|
304
|
+
var p0_1 = random.ai(tmp_3, tmp5_elvis_lhs == null ? 0 : tmp5_elvis_lhs);
|
|
297
305
|
tmp = JsonPrimitive_0(p0_1);
|
|
298
306
|
} else {
|
|
299
307
|
if (type instanceof Number_0) {
|
|
300
|
-
var tmp6_safe_receiver = type.
|
|
301
|
-
var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.
|
|
308
|
+
var tmp6_safe_receiver = type.w18_1;
|
|
309
|
+
var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.y18_1;
|
|
302
310
|
var tmp8_elvis_lhs = tmp7_safe_receiver == null ? null : toDouble(tmp7_safe_receiver);
|
|
303
311
|
var tmp_4 = tmp8_elvis_lhs == null ? 0.0 : tmp8_elvis_lhs;
|
|
304
|
-
var tmp9_safe_receiver = type.
|
|
305
|
-
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.
|
|
312
|
+
var tmp9_safe_receiver = type.w18_1;
|
|
313
|
+
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.z18_1;
|
|
306
314
|
var tmp11_elvis_lhs = tmp10_safe_receiver == null ? null : toDouble(tmp10_safe_receiver);
|
|
307
315
|
// Inline function 'kotlin.let' call
|
|
308
|
-
var p0_2 = random.
|
|
316
|
+
var p0_2 = random.di(tmp_4, tmp11_elvis_lhs == null ? 0.0 : tmp11_elvis_lhs);
|
|
309
317
|
tmp = JsonPrimitive_0(p0_2);
|
|
310
318
|
} else {
|
|
311
319
|
noWhenBranchMatchedException();
|
|
@@ -317,21 +325,21 @@ function generateRefined(def, random) {
|
|
|
317
325
|
return tmp;
|
|
318
326
|
}
|
|
319
327
|
function generateEnum(def, random) {
|
|
320
|
-
var tmp0 = random.
|
|
328
|
+
var tmp0 = random.zh(def.qs_1.b1());
|
|
321
329
|
// Inline function 'kotlin.let' call
|
|
322
330
|
// Inline function 'kotlin.let' call
|
|
323
|
-
var p0 = toList(def.
|
|
331
|
+
var p0 = toList(def.qs_1).c1(tmp0);
|
|
324
332
|
return JsonPrimitive_1(p0);
|
|
325
333
|
}
|
|
326
334
|
function generateUnion(_this__u8e3s4, def, random) {
|
|
327
|
-
var tmp0 = random.
|
|
335
|
+
var tmp0 = random.zh(def.br_1.b1());
|
|
328
336
|
// Inline function 'kotlin.let' call
|
|
329
337
|
// Inline function 'kotlin.let' call
|
|
330
|
-
var it = toList(def.
|
|
338
|
+
var it = toList(def.br_1).c1(tmp0);
|
|
331
339
|
return generate_0(_this__u8e3s4, it, random);
|
|
332
340
|
}
|
|
333
341
|
function randomRegex(regex, random) {
|
|
334
|
-
return Companion_instance.
|
|
342
|
+
return Companion_instance.v5j(substring(regex, 1, regex.length - 2 | 0)).e5k(random);
|
|
335
343
|
}
|
|
336
344
|
//region block: exports
|
|
337
345
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/tools/generator/src/commonMain/kotlin/community/flock/wirespec/generator/Generator.kt","../../../../../src/plugin/npm/build/compileSync/js/main/productionLibrary/kotlin/common/src/generated/_Collections.kt","../../../../../../../arrow/arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/NonEmptyList.kt","../../../../../src/plugin/npm/build/compileSync/js/main/productionLibrary/kotlin/common/src/generated/_Strings.kt","../../../../../src/plugin/npm/build/compileSync/js/main/productionLibrary/kotlin/src/kotlin/CharCode.kt"],"sourcesContent":[null,null,null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["generate","<this>","type","random","generateReference","ref","generateIterator","def","item","resolveReference","element","list","defaultGenerator","generateObject","generateType","accumulator","sum","fieldSeed","fieldRandom","generateRefined","pattern","generateEnum","generateUnion","randomRegex","regex"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../../../src/tools/generator/src/commonMain/kotlin/community/flock/wirespec/generator/Generator.kt","../../../../../src/plugin/npm/build/compileSync/js/main/productionLibrary/kotlin/src/kotlin/util/Standard.kt","../../../../../src/plugin/npm/build/compileSync/js/main/productionLibrary/kotlin/common/src/generated/_Collections.kt","../../../../../../../arrow/arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/NonEmptyList.kt","../../../../../src/plugin/npm/build/compileSync/js/main/productionLibrary/kotlin/src/kotlin/util/Preconditions.kt","../../../../../src/plugin/npm/build/compileSync/js/main/productionLibrary/kotlin/common/src/generated/_Strings.kt","../../../../../src/plugin/npm/build/compileSync/js/main/productionLibrary/kotlin/src/kotlin/CharCode.kt"],"sourcesContent":[null,null,null,null,null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["generate","<this>","type","random","generateReference","ref","generateIterator","def","item","resolveReference","element","list","defaultGenerator","generateObject","generateType","accumulator","sum","fieldSeed","fieldRandom","generateRefined","pattern","generateEnum","generateUnion","randomRegex","regex"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwBOA,CAAIC,a,EAAaC,I,EAAcC,MAA/BH,EAA+E;A;;WAAU,WAC/E,aAAL,IAAK,EAAa,IAAb,CAD+E,EAE/E,KAF+E,C;;aAI5E,SAAL,IAAK,EAAS,IAAT,CAAT,GAAmC,aAAqB,EAArB,EAAsC,KAAtC,CAAnC,GAAqF,E;EAC/D,OAAtB,0BAAS,IAAT,EAAa,MAAb,C;AAAqB,C;mBAEzBA,CAAIC,a,EAAaC,I,EAAiBC,MAAlCH,EAAkF;A;EAA+B,OAA/B,iCAAkB,IAAlB,EAAwB,MAAxB,C;AAA8B,C;0BAU/GI,CAAIH,a,EAAsBI,G,EAAgBF,MAA1CC,EAA4D;A;EAChE,IADsE,GACtE,iB;;ICrBgC,MAAM,yB;;IDsBtC,IAFsE,GAEtE,qB;YAAyB,gCAAiB,gCAAiB,GAAjB,CAAqB,IAArB,CAAj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