@flock/wirespec 0.19.6 → 0.19.7
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-mordant.mjs +79 -79
- package/clikt-clikt.mjs +1265 -1265
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +406 -406
- package/kotlin-kotlin-stdlib.mjs +6 -6
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +9383 -9383
- package/kotlin-rgxgen.mjs +1757 -1757
- package/kotlinx-io-kotlinx-io-core.mjs +397 -397
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1708 -1708
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1449 -1449
- package/mordant-mordant.mjs +1097 -1097
- package/package.json +2 -2
- package/wirespec-src-compiler-core.mjs +973 -968
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +416 -416
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +295 -295
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +381 -381
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +377 -377
- package/wirespec-src-compiler-emitters-scala.mjs +153 -153
- package/wirespec-src-compiler-emitters-typescript.mjs +400 -400
- package/wirespec-src-compiler-emitters-wirespec.mjs +89 -79
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +3425 -3425
- package/wirespec-src-compiler-lib.mjs +343 -343
- package/wirespec-src-converter-avro.mjs +499 -499
- package/wirespec-src-converter-openapi.mjs +555 -555
- package/wirespec-src-ide-lsp.mjs +1350 -1350
- package/wirespec-src-plugin-arguments.mjs +121 -121
- package/wirespec-src-plugin-cli.mjs +91 -91
- package/wirespec-src-plugin-npm.mjs +26 -26
- package/wirespec-src-tools-generator.mjs +23 -23
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
21
21
|
first3kg261hmihapu as first,
|
|
22
22
|
isUpperCase16ivdixranflt as isUpperCase,
|
|
23
|
+
contains3ue2qo8xhmpf1 as contains,
|
|
23
24
|
equals2au1ep9vhcato as equals,
|
|
24
25
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
25
26
|
import {
|
|
@@ -63,11 +64,11 @@ function emit(identifier) {
|
|
|
63
64
|
var tmp;
|
|
64
65
|
if (identifier instanceof DefinitionIdentifier) {
|
|
65
66
|
// Inline function 'kotlin.run' call
|
|
66
|
-
tmp = Companion_getInstance().
|
|
67
|
+
tmp = Companion_getInstance().m21_1.u1(identifier.l1()) ? addBackticks(identifier.l1()) : identifier.l1();
|
|
67
68
|
} else {
|
|
68
69
|
if (identifier instanceof FieldIdentifier) {
|
|
69
70
|
// Inline function 'kotlin.run' call
|
|
70
|
-
tmp = Companion_getInstance().
|
|
71
|
+
tmp = Companion_getInstance().m21_1.u1(identifier.l1()) || isUpperCase(first(identifier.l1())) ? addBackticks(identifier.l1()) : identifier.l1();
|
|
71
72
|
} else {
|
|
72
73
|
noWhenBranchMatchedException();
|
|
73
74
|
}
|
|
@@ -76,21 +77,21 @@ function emit(identifier) {
|
|
|
76
77
|
}
|
|
77
78
|
initMetadataForInterface(WirespecIdentifierEmitter, 'WirespecIdentifierEmitter');
|
|
78
79
|
function emit_0(type, module_0) {
|
|
79
|
-
return trimMargin('\n |type ' + this.
|
|
80
|
+
return trimMargin('\n |type ' + this.or(type.mp_1) + ' {\n |' + this.mq(type.np_1) + '\n |}\n |');
|
|
80
81
|
}
|
|
81
82
|
function emit_1(_this__u8e3s4) {
|
|
82
|
-
return joinToString(_this__u8e3s4.
|
|
83
|
+
return joinToString(_this__u8e3s4.jp_1, ',\n', VOID, VOID, VOID, VOID, WirespecTypeDefinitionEmitter$emit$lambda(this));
|
|
83
84
|
}
|
|
84
85
|
function emit_2(_this__u8e3s4) {
|
|
85
|
-
return this.
|
|
86
|
+
return this.or(_this__u8e3s4.rp_1) + ': ' + this.oq(_this__u8e3s4.sp_1);
|
|
86
87
|
}
|
|
87
88
|
function emit_3(_this__u8e3s4) {
|
|
88
89
|
var tmp;
|
|
89
90
|
if (_this__u8e3s4 instanceof Dict) {
|
|
90
|
-
tmp = '{ ' + this.
|
|
91
|
+
tmp = '{ ' + this.oq(_this__u8e3s4.so_1) + ' }';
|
|
91
92
|
} else {
|
|
92
93
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
93
|
-
tmp = this.
|
|
94
|
+
tmp = this.oq(_this__u8e3s4.po_1) + '[]';
|
|
94
95
|
} else {
|
|
95
96
|
if (_this__u8e3s4 instanceof Unit) {
|
|
96
97
|
tmp = 'Unit';
|
|
@@ -99,10 +100,10 @@ function emit_3(_this__u8e3s4) {
|
|
|
99
100
|
tmp = 'Any';
|
|
100
101
|
} else {
|
|
101
102
|
if (_this__u8e3s4 instanceof Custom) {
|
|
102
|
-
tmp = _this__u8e3s4.
|
|
103
|
+
tmp = _this__u8e3s4.cv_1;
|
|
103
104
|
} else {
|
|
104
105
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
105
|
-
var t = _this__u8e3s4.
|
|
106
|
+
var t = _this__u8e3s4.gv_1;
|
|
106
107
|
var tmp_0;
|
|
107
108
|
if (t instanceof String_0) {
|
|
108
109
|
tmp_0 = 'String';
|
|
@@ -115,7 +116,7 @@ function emit_3(_this__u8e3s4) {
|
|
|
115
116
|
} else {
|
|
116
117
|
if (t instanceof Integer) {
|
|
117
118
|
var tmp_1;
|
|
118
|
-
switch (t.
|
|
119
|
+
switch (t.ku_1.b3_1) {
|
|
119
120
|
case 0:
|
|
120
121
|
tmp_1 = 'Integer32';
|
|
121
122
|
break;
|
|
@@ -130,7 +131,7 @@ function emit_3(_this__u8e3s4) {
|
|
|
130
131
|
} else {
|
|
131
132
|
if (t instanceof Number_0) {
|
|
132
133
|
var tmp_2;
|
|
133
|
-
switch (t.
|
|
134
|
+
switch (t.nu_1.b3_1) {
|
|
134
135
|
case 0:
|
|
135
136
|
tmp_2 = 'Number32';
|
|
136
137
|
break;
|
|
@@ -160,48 +161,43 @@ function emit_3(_this__u8e3s4) {
|
|
|
160
161
|
}
|
|
161
162
|
// Inline function 'kotlin.let' call
|
|
162
163
|
var it = tmp;
|
|
163
|
-
return _this__u8e3s4.
|
|
164
|
+
return _this__u8e3s4.uu() ? it + '?' : it;
|
|
164
165
|
}
|
|
165
166
|
initMetadataForInterface(WirespecTypeDefinitionEmitter, 'WirespecTypeDefinitionEmitter', VOID, VOID, [TypeDefinitionEmitter, WirespecIdentifierEmitter]);
|
|
166
167
|
function emit_4(channel) {
|
|
167
|
-
return 'channel ' + this.
|
|
168
|
+
return 'channel ' + this.or(channel.dp_1) + ' -> ' + this.oq(channel.ep_1);
|
|
168
169
|
}
|
|
169
170
|
initMetadataForInterface(WirespecChannelDefinitionEmitter, 'WirespecChannelDefinitionEmitter', VOID, VOID, [WirespecTypeDefinitionEmitter]);
|
|
170
|
-
function emit_5(
|
|
171
|
-
var tmp = this.
|
|
172
|
-
return 'type ' + tmp + ' = ' + joinToString(union.hp_1, ' | ', VOID, VOID, VOID, VOID, WirespecUnionDefinitionEmitter$emit$lambda(this)) + '\n';
|
|
173
|
-
}
|
|
174
|
-
initMetadataForInterface(WirespecUnionDefinitionEmitter, 'WirespecUnionDefinitionEmitter', VOID, VOID, [WirespecTypeDefinitionEmitter]);
|
|
175
|
-
function emit_6(enum_0, module_0) {
|
|
176
|
-
var tmp = this.nr(enum_0.xr_1);
|
|
171
|
+
function emit_5(enum_0, module_0) {
|
|
172
|
+
var tmp = this.or(enum_0.yr_1);
|
|
177
173
|
var tmp_0 = Spacer_instance.toString();
|
|
178
|
-
return 'enum ' + tmp + ' {\n' + tmp_0 + joinToString(enum_0.
|
|
174
|
+
return 'enum ' + tmp + ' {\n' + tmp_0 + joinToString(enum_0.zr_1, ', ', VOID, VOID, VOID, VOID, WirespecEnumDefinitionEmitter$emit$lambda(this)) + '\n}\n';
|
|
179
175
|
}
|
|
180
176
|
initMetadataForInterface(WirespecEnumDefinitionEmitter, 'WirespecEnumDefinitionEmitter', VOID, VOID, [WirespecIdentifierEmitter]);
|
|
181
|
-
function
|
|
182
|
-
return 'type ' + this.
|
|
177
|
+
function emit_6(refined) {
|
|
178
|
+
return 'type ' + this.or(refined.tr_1) + ' = ' + this.oq(refined.ur_1.kv(VOID, false)) + this.cs(refined) + (refined.ur_1.hv_1 ? '?' : '') + '\n';
|
|
183
179
|
}
|
|
184
180
|
function emitValidator(_this__u8e3s4) {
|
|
185
|
-
var type = _this__u8e3s4.
|
|
181
|
+
var type = _this__u8e3s4.ur_1.gv_1;
|
|
186
182
|
var tmp;
|
|
187
183
|
if (type instanceof Integer) {
|
|
188
|
-
var tmp0_safe_receiver = type.
|
|
189
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.
|
|
184
|
+
var tmp0_safe_receiver = type.lu_1;
|
|
185
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.pq(tmp0_safe_receiver);
|
|
190
186
|
tmp = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
|
|
191
187
|
} else {
|
|
192
188
|
if (type instanceof Number_0) {
|
|
193
|
-
var tmp2_safe_receiver = type.
|
|
194
|
-
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this
|
|
189
|
+
var tmp2_safe_receiver = type.ou_1;
|
|
190
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : emitDecimal(this, tmp2_safe_receiver);
|
|
195
191
|
tmp = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
|
|
196
192
|
} else {
|
|
197
193
|
if (type instanceof String_0) {
|
|
198
|
-
var tmp4_safe_receiver = type.
|
|
194
|
+
var tmp4_safe_receiver = type.iu_1;
|
|
199
195
|
var tmp_0;
|
|
200
196
|
var tmp_1 = tmp4_safe_receiver;
|
|
201
197
|
if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
|
|
202
198
|
tmp_0 = null;
|
|
203
199
|
} else {
|
|
204
|
-
tmp_0 = this.
|
|
200
|
+
tmp_0 = this.pq(new RegExp_0(tmp4_safe_receiver));
|
|
205
201
|
}
|
|
206
202
|
var tmp5_elvis_lhs = tmp_0;
|
|
207
203
|
tmp = tmp5_elvis_lhs == null ? '' : tmp5_elvis_lhs;
|
|
@@ -221,37 +217,42 @@ function emitValidator(_this__u8e3s4) {
|
|
|
221
217
|
return tmp;
|
|
222
218
|
}
|
|
223
219
|
initMetadataForInterface(WirespecRefinedTypeDefinitionEmitter, 'WirespecRefinedTypeDefinitionEmitter', VOID, VOID, [WirespecTypeDefinitionEmitter]);
|
|
224
|
-
function
|
|
225
|
-
var tmp = this.
|
|
226
|
-
var tmp_0 = endpoint.
|
|
227
|
-
var tmp_1 = emitRequest(this, endpoint.
|
|
228
|
-
var tmp_2 = emitPath(this, endpoint.
|
|
229
|
-
var tmp_3 = emitQuery(this, endpoint.
|
|
230
|
-
var tmp_4 = emitHeader(this, endpoint.
|
|
231
|
-
return trimMargin('\n |endpoint ' + tmp + ' ' + tmp_0 + tmp_1 + ' ' + tmp_2 + tmp_3 + tmp_4 + ' -> {\n |' + joinToString(endpoint.
|
|
220
|
+
function emit_7(endpoint) {
|
|
221
|
+
var tmp = this.or(endpoint.vp_1);
|
|
222
|
+
var tmp_0 = endpoint.wp_1.toString();
|
|
223
|
+
var tmp_1 = emitRequest(this, endpoint.aq_1);
|
|
224
|
+
var tmp_2 = emitPath(this, endpoint.xp_1);
|
|
225
|
+
var tmp_3 = emitQuery(this, endpoint.yp_1);
|
|
226
|
+
var tmp_4 = emitHeader(this, endpoint.zp_1);
|
|
227
|
+
return trimMargin('\n |endpoint ' + tmp + ' ' + tmp_0 + tmp_1 + ' ' + tmp_2 + tmp_3 + tmp_4 + ' -> {\n |' + joinToString(endpoint.bq_1, '\n', VOID, VOID, VOID, VOID, WirespecEndpointDefinitionEmitter$emit$lambda(this)) + '\n |}\n |\n ');
|
|
232
228
|
}
|
|
233
229
|
initMetadataForInterface(WirespecEndpointDefinitionEmitter, 'WirespecEndpointDefinitionEmitter', VOID, VOID, [WirespecTypeDefinitionEmitter]);
|
|
234
|
-
|
|
230
|
+
function emit_8(union) {
|
|
231
|
+
var tmp = this.or(union.hp_1);
|
|
232
|
+
return 'type ' + tmp + ' = ' + joinToString(union.ip_1, ' | ', VOID, VOID, VOID, VOID, WirespecUnionDefinitionEmitter$emit$lambda(this)) + '\n';
|
|
233
|
+
}
|
|
234
|
+
initMetadataForInterface(WirespecUnionDefinitionEmitter, 'WirespecUnionDefinitionEmitter', VOID, VOID, [WirespecTypeDefinitionEmitter]);
|
|
235
|
+
initMetadataForClass(WirespecEmitter, 'WirespecEmitter', WirespecEmitter, LanguageEmitter, [LanguageEmitter, WirespecTypeDefinitionEmitter, WirespecEnumDefinitionEmitter, WirespecRefinedTypeDefinitionEmitter, WirespecChannelDefinitionEmitter, WirespecEndpointDefinitionEmitter, WirespecIdentifierEmitter, WirespecUnionDefinitionEmitter]);
|
|
235
236
|
initMetadataForCompanion(Companion);
|
|
236
237
|
//endregion
|
|
237
238
|
function WirespecChannelDefinitionEmitter() {
|
|
238
239
|
}
|
|
239
240
|
function WirespecEmitter() {
|
|
240
241
|
LanguageEmitter.call(this);
|
|
241
|
-
this.
|
|
242
|
-
this.
|
|
243
|
-
this.
|
|
242
|
+
this.j21_1 = FileExtension_Wirespec_getInstance();
|
|
243
|
+
this.k21_1 = null;
|
|
244
|
+
this.l21_1 = '\n';
|
|
244
245
|
}
|
|
245
|
-
protoOf(WirespecEmitter).uq = function () {
|
|
246
|
-
return this.i21_1;
|
|
247
|
-
};
|
|
248
246
|
protoOf(WirespecEmitter).vq = function () {
|
|
249
|
-
return this.
|
|
247
|
+
return this.j21_1;
|
|
248
|
+
};
|
|
249
|
+
protoOf(WirespecEmitter).wq = function () {
|
|
250
|
+
return this.l21_1;
|
|
250
251
|
};
|
|
251
252
|
protoOf(WirespecEmitter).eo = function (ast, logger) {
|
|
252
253
|
// Inline function 'kotlin.let' call
|
|
253
254
|
var e = protoOf(LanguageEmitter).eo.call(this, ast, logger);
|
|
254
|
-
var tmp = 'wirespec.' + this.
|
|
255
|
+
var tmp = 'wirespec.' + this.vq().er_1;
|
|
255
256
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
256
257
|
// Inline function 'kotlin.collections.map' call
|
|
257
258
|
var this_0 = _NonEmptyList___get_all__impl__pmf509(e);
|
|
@@ -268,13 +269,16 @@ protoOf(WirespecEmitter).eo = function (ast, logger) {
|
|
|
268
269
|
var this_1 = new Emitted(tmp, joinToString(new NonEmptyList(tmp$ret$3), '\n'));
|
|
269
270
|
return _NonEmptyList___init__impl__fxd0xp(listOf(this_1));
|
|
270
271
|
};
|
|
271
|
-
protoOf(WirespecEmitter).
|
|
272
|
+
protoOf(WirespecEmitter).pq = function (_this__u8e3s4) {
|
|
272
273
|
var tmp;
|
|
273
274
|
if (_this__u8e3s4 instanceof RegExp_0) {
|
|
274
|
-
tmp = '(' + _RegExp___get_value__impl__7o7618(_this__u8e3s4.
|
|
275
|
+
tmp = '(' + _RegExp___get_value__impl__7o7618(_this__u8e3s4.qt_1) + ')';
|
|
275
276
|
} else {
|
|
276
277
|
if (_this__u8e3s4 instanceof Bound) {
|
|
277
|
-
|
|
278
|
+
var tmp1_elvis_lhs = _this__u8e3s4.gu_1;
|
|
279
|
+
var tmp_0 = tmp1_elvis_lhs == null ? '_' : tmp1_elvis_lhs;
|
|
280
|
+
var tmp2_elvis_lhs = _this__u8e3s4.hu_1;
|
|
281
|
+
tmp = '(' + tmp_0 + ', ' + (tmp2_elvis_lhs == null ? '_' : tmp2_elvis_lhs) + ')';
|
|
278
282
|
} else {
|
|
279
283
|
noWhenBranchMatchedException();
|
|
280
284
|
}
|
|
@@ -286,9 +290,9 @@ function emitPath($this, _this__u8e3s4) {
|
|
|
286
290
|
}
|
|
287
291
|
function emitRequest($this, _this__u8e3s4) {
|
|
288
292
|
var tmp0_safe_receiver = firstOrNull(_this__u8e3s4);
|
|
289
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
290
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
291
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : $this.
|
|
293
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.eq_1;
|
|
294
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.gq_1;
|
|
295
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : $this.oq(tmp2_safe_receiver);
|
|
292
296
|
var tmp;
|
|
293
297
|
if (tmp3_safe_receiver == null) {
|
|
294
298
|
tmp = null;
|
|
@@ -359,30 +363,30 @@ function emitHeader($this, _this__u8e3s4) {
|
|
|
359
363
|
function WirespecEndpointDefinitionEmitter$emit$lambda(this$0) {
|
|
360
364
|
return function (it) {
|
|
361
365
|
var tmp = Spacer_instance.toString();
|
|
362
|
-
var tmp_0 = fixStatus(it.
|
|
363
|
-
var tmp0_safe_receiver = it.
|
|
364
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
365
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : this$0.
|
|
366
|
+
var tmp_0 = fixStatus(it.hq_1);
|
|
367
|
+
var tmp0_safe_receiver = it.jq_1;
|
|
368
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gq_1;
|
|
369
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : this$0.oq(tmp1_safe_receiver);
|
|
366
370
|
var tmp_1 = tmp2_elvis_lhs == null ? 'Unit' : tmp2_elvis_lhs;
|
|
367
371
|
var tmp_2;
|
|
368
|
-
var tmp3_safe_receiver = it.
|
|
369
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
370
|
-
if ((tmp4_safe_receiver == null ? null : tmp4_safe_receiver.
|
|
372
|
+
var tmp3_safe_receiver = it.jq_1;
|
|
373
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.gq_1;
|
|
374
|
+
if ((tmp4_safe_receiver == null ? null : tmp4_safe_receiver.uu()) === true) {
|
|
371
375
|
tmp_2 = '?';
|
|
372
376
|
} else {
|
|
373
377
|
tmp_2 = '';
|
|
374
378
|
}
|
|
375
|
-
return tmp + tmp_0 + ' -> ' + tmp_1 + tmp_2 + emitHeader(this$0, it.
|
|
379
|
+
return tmp + tmp_0 + ' -> ' + tmp_1 + tmp_2 + emitHeader(this$0, it.iq_1);
|
|
376
380
|
};
|
|
377
381
|
}
|
|
378
382
|
function WirespecEndpointDefinitionEmitter$emitPath$lambda(this$0) {
|
|
379
383
|
return function (it) {
|
|
380
384
|
var tmp;
|
|
381
385
|
if (it instanceof Param) {
|
|
382
|
-
tmp = '{' + it.
|
|
386
|
+
tmp = '{' + it.cq_1.l1() + ': ' + this$0.oq(it.dq_1) + '}';
|
|
383
387
|
} else {
|
|
384
388
|
if (it instanceof Literal) {
|
|
385
|
-
tmp = it.
|
|
389
|
+
tmp = it.yq_1;
|
|
386
390
|
} else {
|
|
387
391
|
noWhenBranchMatchedException();
|
|
388
392
|
}
|
|
@@ -392,12 +396,12 @@ function WirespecEndpointDefinitionEmitter$emitPath$lambda(this$0) {
|
|
|
392
396
|
}
|
|
393
397
|
function WirespecEndpointDefinitionEmitter$emitQuery$lambda(this$0) {
|
|
394
398
|
return function (it) {
|
|
395
|
-
return this$0.
|
|
399
|
+
return this$0.nq(it);
|
|
396
400
|
};
|
|
397
401
|
}
|
|
398
402
|
function WirespecEndpointDefinitionEmitter$emitHeader$lambda(this$0) {
|
|
399
403
|
return function (it) {
|
|
400
|
-
return this$0.
|
|
404
|
+
return this$0.nq(it);
|
|
401
405
|
};
|
|
402
406
|
}
|
|
403
407
|
function WirespecEndpointDefinitionEmitter() {
|
|
@@ -427,7 +431,7 @@ function WirespecEnumDefinitionEmitter() {
|
|
|
427
431
|
}
|
|
428
432
|
function Companion() {
|
|
429
433
|
Companion_instance = this;
|
|
430
|
-
this.
|
|
434
|
+
this.m21_1 = setOf(['type', 'enum', 'endpoint']);
|
|
431
435
|
}
|
|
432
436
|
var Companion_instance;
|
|
433
437
|
function Companion_getInstance() {
|
|
@@ -437,34 +441,40 @@ function Companion_getInstance() {
|
|
|
437
441
|
}
|
|
438
442
|
function WirespecIdentifierEmitter() {
|
|
439
443
|
}
|
|
444
|
+
function emitDecimal($this, _this__u8e3s4) {
|
|
445
|
+
return '(' + toBoundDecimal($this, _this__u8e3s4.gu_1) + ', ' + toBoundDecimal($this, _this__u8e3s4.hu_1) + ')';
|
|
446
|
+
}
|
|
447
|
+
function toBoundDecimal($this, _this__u8e3s4) {
|
|
448
|
+
return _this__u8e3s4 == null ? '_' : contains(_this__u8e3s4, '.') ? _this__u8e3s4 : _this__u8e3s4 + '.0';
|
|
449
|
+
}
|
|
440
450
|
function WirespecRefinedTypeDefinitionEmitter() {
|
|
441
451
|
}
|
|
442
452
|
function WirespecTypeDefinitionEmitter$emit$lambda(this$0) {
|
|
443
453
|
return function (it) {
|
|
444
|
-
return Spacer_instance.toString() + this$0.
|
|
454
|
+
return Spacer_instance.toString() + this$0.nq(it);
|
|
445
455
|
};
|
|
446
456
|
}
|
|
447
457
|
function WirespecTypeDefinitionEmitter() {
|
|
448
458
|
}
|
|
449
459
|
function WirespecUnionDefinitionEmitter$emit$lambda(this$0) {
|
|
450
460
|
return function (it) {
|
|
451
|
-
return this$0.
|
|
461
|
+
return this$0.oq(it);
|
|
452
462
|
};
|
|
453
463
|
}
|
|
454
464
|
function WirespecUnionDefinitionEmitter() {
|
|
455
465
|
}
|
|
456
466
|
//region block: post-declaration
|
|
457
|
-
protoOf(WirespecEmitter).
|
|
458
|
-
protoOf(WirespecEmitter).
|
|
459
|
-
protoOf(WirespecEmitter).
|
|
460
|
-
protoOf(WirespecEmitter).
|
|
461
|
-
protoOf(WirespecEmitter).
|
|
462
|
-
protoOf(WirespecEmitter).
|
|
463
|
-
protoOf(WirespecEmitter).
|
|
464
|
-
protoOf(WirespecEmitter).
|
|
465
|
-
protoOf(WirespecEmitter).
|
|
466
|
-
protoOf(WirespecEmitter).
|
|
467
|
-
protoOf(WirespecEmitter).
|
|
467
|
+
protoOf(WirespecEmitter).lq = emit_0;
|
|
468
|
+
protoOf(WirespecEmitter).mq = emit_1;
|
|
469
|
+
protoOf(WirespecEmitter).nq = emit_2;
|
|
470
|
+
protoOf(WirespecEmitter).oq = emit_3;
|
|
471
|
+
protoOf(WirespecEmitter).as = emit_5;
|
|
472
|
+
protoOf(WirespecEmitter).vr = emit_6;
|
|
473
|
+
protoOf(WirespecEmitter).bs = emit_7;
|
|
474
|
+
protoOf(WirespecEmitter).qr = emit_8;
|
|
475
|
+
protoOf(WirespecEmitter).or = emit;
|
|
476
|
+
protoOf(WirespecEmitter).pr = emit_4;
|
|
477
|
+
protoOf(WirespecEmitter).cs = emitValidator;
|
|
468
478
|
//endregion
|
|
469
479
|
//region block: exports
|
|
470
480
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/compiler/emitters/wirespec/src/commonMain/kotlin/community/flock/wirespec/emitters/wirespec/WirespecIdentifierEmitter.kt","../../../../../src/compiler/emitters/wirespec/src/commonMain/kotlin/community/flock/wirespec/emitters/wirespec/WirespecTypeDefinitionEmitter.kt","../../../../../src/compiler/emitters/wirespec/src/commonMain/kotlin/community/flock/wirespec/emitters/wirespec/WirespecChannelDefinitionEmitter.kt","../../../../../src/compiler/emitters/wirespec/src/commonMain/kotlin/community/flock/wirespec/emitters/wirespec/
|
|
1
|
+
{"version":3,"sources":["../../../../../src/compiler/emitters/wirespec/src/commonMain/kotlin/community/flock/wirespec/emitters/wirespec/WirespecIdentifierEmitter.kt","../../../../../src/compiler/emitters/wirespec/src/commonMain/kotlin/community/flock/wirespec/emitters/wirespec/WirespecTypeDefinitionEmitter.kt","../../../../../src/compiler/emitters/wirespec/src/commonMain/kotlin/community/flock/wirespec/emitters/wirespec/WirespecChannelDefinitionEmitter.kt","../../../../../src/compiler/emitters/wirespec/src/commonMain/kotlin/community/flock/wirespec/emitters/wirespec/WirespecEnumDefinitionEmitter.kt","../../../../../src/compiler/emitters/wirespec/src/commonMain/kotlin/community/flock/wirespec/emitters/wirespec/WirespecRefinedTypeDefinitionEmitter.kt","../../../../../src/compiler/emitters/wirespec/src/commonMain/kotlin/community/flock/wirespec/emitters/wirespec/WirespecEndpointDefinitionEmitter.kt","../../../../../src/compiler/emitters/wirespec/src/commonMain/kotlin/community/flock/wirespec/emitters/wirespec/WirespecUnionDefinitionEmitter.kt","../../../../../src/compiler/emitters/wirespec/src/commonMain/kotlin/community/flock/wirespec/emitters/wirespec/WirespecEmitter.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/_Collections.kt","../../../../../src/plugin/npm/build/compileSync/js/main/productionLibrary/kotlin/src/kotlin/text/Strings.kt","../../../../../src/plugin/npm/build/compileSync/js/main/productionLibrary/kotlin/src/kotlin/util/Standard.kt","../../../../../src/plugin/npm/build/compileSync/js/main/productionLibrary/kotlin/src/kotlin/collections/Collections.kt","../../../../../src/plugin/npm/build/compileSync/js/main/productionLibrary/kotlin/js/src/kotlin/text/charJs.kt"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["emit","identifier","type","module","<this>","t","channel","enum","refined","emitValidator","endpoint","union","<init>","<get-extension>","<get-singleLineComment>","ast","logger","item","emitPath","emitRequest","emitQuery","emitHeader","WirespecEndpointDefinitionEmitter$emit$lambda","WirespecEndpointDefinitionEmitter$emit$lambda$lambda","WirespecEndpointDefinitionEmitter$emitPath$lambda","WirespecEndpointDefinitionEmitter$emitPath$lambda$lambda","WirespecEndpointDefinitionEmitter$emitQuery$lambda","WirespecEndpointDefinitionEmitter$emitQuery$lambda$lambda","WirespecEndpointDefinitionEmitter$emitHeader$lambda","WirespecEndpointDefinitionEmitter$emitHeader$lambda$lambda","capitalize","WirespecEnumDefinitionEmitter$emit$lambda","WirespecEnumDefinitionEmitter$emit$lambda$lambda","emitDecimal","toBoundDecimal","WirespecTypeDefinitionEmitter$emit$lambda","WirespecTypeDefinitionEmitter$emit$lambda$lambda","WirespecUnionDefinitionEmitter$emit$lambda","WirespecUnionDefinitionEmitter$emit$lambda$lambda"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAWaA,CAASC,UAATD,EAAmC;A;EACxC,IAD8C,UAC9C,iC;;UAAgD,wBAAS,KAAT,IAArB,UAAqB,MAAJ,GAAqC,aAAtD,UAAgD,KAAM,CAArC,GAAjB,UAA0E,K;;IACrG,IAF8C,UAE9C,4B;;YACQ,wBAAS,KAAT,IADc,UACd,MAAJ,IAA+C,YAAR,MADrB,UACe,KAAM,CAAQ,CAA/C,GAAoE,aADlD,UAC4C,KAAM,CAApE,GADkB,UACsE,K;;MAHpD,8B;;;EAK3C,U;AAAD,C;;eCLSA,CAASE,I,EAAYC,QAArBH,EAAuC;A,EAI3B,OAAZ,WAJ0C,kBAI1C,GAHG,QAAK,IAAL,CAAU,IAAV,CAGH,GAHyB,eAGzB,GAFF,IAAW,IAAX,IAAW,CAAN,IAAM,CAET,GAFgB,yBAEhB,C;AAAW,C;eAEXA,CAAII,aAAJJ,EAAwB;A,EAAmD,OAA7C,aAAN,aAAM,CAAN,IAAM,EAAa,KAAb,0BAAoB,+CAApB,C;AAA4C,C;eAE1EA,CAAII,aAAJJ,E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