@flock/wirespec 0.18.6 → 0.18.13
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 +11 -11
- package/arrow-arrow-core.mjs +141 -141
- package/clikt-clikt-mordant.mjs +80 -80
- package/clikt-clikt.mjs +1395 -1395
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +442 -442
- package/kotlin-kotlin-stdlib.mjs +1051 -943
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +20812 -6818
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1797 -1797
- package/kotlinx-io-kotlinx-io-core.mjs +405 -405
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1960 -1763
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1882 -1407
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant.mjs +1269 -1269
- package/package.json +3 -2
- package/wirespec-lsp.mjs +7 -0
- package/wirespec-src-compiler-core.mjs +1708 -1644
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +444 -409
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +325 -290
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +340 -342
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +370 -372
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +155 -157
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +372 -372
- package/wirespec-src-compiler-emitters-wirespec.mjs +83 -83
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +3211 -3312
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +399 -399
- package/wirespec-src-converter-avro.mjs +507 -507
- package/wirespec-src-converter-openapi.mjs +1487 -1413
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-ide-lsp.mjs +4928 -0
- package/wirespec-src-ide-lsp.mjs.map +1 -0
- package/wirespec-src-plugin-arguments.mjs +175 -175
- package/wirespec-src-plugin-cli.mjs +102 -102
- package/wirespec-src-plugin-npm.d.mts +2 -0
- package/wirespec-src-plugin-npm.mjs +42 -37
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +32 -32
|
@@ -63,11 +63,11 @@ function emit(identifier) {
|
|
|
63
63
|
var tmp;
|
|
64
64
|
if (identifier instanceof DefinitionIdentifier) {
|
|
65
65
|
// Inline function 'kotlin.run' call
|
|
66
|
-
tmp = Companion_getInstance().
|
|
66
|
+
tmp = Companion_getInstance().t1z_1.u1(identifier.l1()) ? addBackticks(identifier.l1()) : identifier.l1();
|
|
67
67
|
} else {
|
|
68
68
|
if (identifier instanceof FieldIdentifier) {
|
|
69
69
|
// Inline function 'kotlin.run' call
|
|
70
|
-
tmp = Companion_getInstance().
|
|
70
|
+
tmp = Companion_getInstance().t1z_1.u1(identifier.l1()) || isUpperCase(first(identifier.l1())) ? addBackticks(identifier.l1()) : identifier.l1();
|
|
71
71
|
} else {
|
|
72
72
|
noWhenBranchMatchedException();
|
|
73
73
|
}
|
|
@@ -76,21 +76,21 @@ function emit(identifier) {
|
|
|
76
76
|
}
|
|
77
77
|
initMetadataForInterface(WirespecIdentifierEmitter, 'WirespecIdentifierEmitter');
|
|
78
78
|
function emit_0(type, module_0) {
|
|
79
|
-
return trimMargin('\n |type ' + this.
|
|
79
|
+
return trimMargin('\n |type ' + this.br(type.zo_1) + ' {\n |' + this.zp(type.ap_1) + '\n |}\n |');
|
|
80
80
|
}
|
|
81
81
|
function emit_1(_this__u8e3s4) {
|
|
82
|
-
return joinToString(_this__u8e3s4.
|
|
82
|
+
return joinToString(_this__u8e3s4.wo_1, ',\n', VOID, VOID, VOID, VOID, WirespecTypeDefinitionEmitter$emit$lambda(this));
|
|
83
83
|
}
|
|
84
84
|
function emit_2(_this__u8e3s4) {
|
|
85
|
-
return this.
|
|
85
|
+
return this.br(_this__u8e3s4.ep_1) + ': ' + this.bq(_this__u8e3s4.fp_1);
|
|
86
86
|
}
|
|
87
87
|
function emit_3(_this__u8e3s4) {
|
|
88
88
|
var tmp;
|
|
89
89
|
if (_this__u8e3s4 instanceof Dict) {
|
|
90
|
-
tmp = '{ ' + this.
|
|
90
|
+
tmp = '{ ' + this.bq(_this__u8e3s4.go_1) + ' }';
|
|
91
91
|
} else {
|
|
92
92
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
93
|
-
tmp = this.
|
|
93
|
+
tmp = this.bq(_this__u8e3s4.do_1) + '[]';
|
|
94
94
|
} else {
|
|
95
95
|
if (_this__u8e3s4 instanceof Unit) {
|
|
96
96
|
tmp = 'Unit';
|
|
@@ -99,10 +99,10 @@ function emit_3(_this__u8e3s4) {
|
|
|
99
99
|
tmp = 'Any';
|
|
100
100
|
} else {
|
|
101
101
|
if (_this__u8e3s4 instanceof Custom) {
|
|
102
|
-
tmp = _this__u8e3s4.
|
|
102
|
+
tmp = _this__u8e3s4.pu_1;
|
|
103
103
|
} else {
|
|
104
104
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
105
|
-
var t = _this__u8e3s4.
|
|
105
|
+
var t = _this__u8e3s4.tu_1;
|
|
106
106
|
var tmp_0;
|
|
107
107
|
if (t instanceof String_0) {
|
|
108
108
|
tmp_0 = 'String';
|
|
@@ -115,7 +115,7 @@ function emit_3(_this__u8e3s4) {
|
|
|
115
115
|
} else {
|
|
116
116
|
if (t instanceof Integer) {
|
|
117
117
|
var tmp_1;
|
|
118
|
-
switch (t.
|
|
118
|
+
switch (t.xt_1.b3_1) {
|
|
119
119
|
case 0:
|
|
120
120
|
tmp_1 = 'Integer32';
|
|
121
121
|
break;
|
|
@@ -130,7 +130,7 @@ function emit_3(_this__u8e3s4) {
|
|
|
130
130
|
} else {
|
|
131
131
|
if (t instanceof Number_0) {
|
|
132
132
|
var tmp_2;
|
|
133
|
-
switch (t.
|
|
133
|
+
switch (t.au_1.b3_1) {
|
|
134
134
|
case 0:
|
|
135
135
|
tmp_2 = 'Number32';
|
|
136
136
|
break;
|
|
@@ -160,48 +160,42 @@ function emit_3(_this__u8e3s4) {
|
|
|
160
160
|
}
|
|
161
161
|
// Inline function 'kotlin.let' call
|
|
162
162
|
var it = tmp;
|
|
163
|
-
return _this__u8e3s4.
|
|
163
|
+
return _this__u8e3s4.hu() ? it + '?' : it;
|
|
164
164
|
}
|
|
165
165
|
initMetadataForInterface(WirespecTypeDefinitionEmitter, 'WirespecTypeDefinitionEmitter', VOID, VOID, [TypeDefinitionEmitter, WirespecIdentifierEmitter]);
|
|
166
166
|
function emit_4(channel) {
|
|
167
|
-
return 'channel ' + this.
|
|
167
|
+
return 'channel ' + this.br(channel.qo_1) + ' -> ' + this.bq(channel.ro_1);
|
|
168
168
|
}
|
|
169
169
|
initMetadataForInterface(WirespecChannelDefinitionEmitter, 'WirespecChannelDefinitionEmitter', VOID, VOID, [WirespecTypeDefinitionEmitter]);
|
|
170
|
-
function emit_5(
|
|
171
|
-
var tmp = this.
|
|
172
|
-
|
|
173
|
-
return 'enum ' + tmp + ' {\n' + tmp_0 + joinToString(enum_0.hr_1, ', ', VOID, VOID, VOID, VOID, WirespecEnumDefinitionEmitter$emit$lambda(this)) + '\n}\n';
|
|
174
|
-
}
|
|
175
|
-
initMetadataForInterface(WirespecEnumDefinitionEmitter, 'WirespecEnumDefinitionEmitter', VOID, VOID, [WirespecIdentifierEmitter]);
|
|
176
|
-
function emit_6(union) {
|
|
177
|
-
var tmp = this.wq(union.qo_1);
|
|
178
|
-
return 'type ' + tmp + ' = ' + joinToString(union.ro_1, ' | ', VOID, VOID, VOID, VOID, WirespecUnionDefinitionEmitter$emit$lambda(this)) + '\n';
|
|
170
|
+
function emit_5(union) {
|
|
171
|
+
var tmp = this.br(union.uo_1);
|
|
172
|
+
return 'type ' + tmp + ' = ' + joinToString(union.vo_1, ' | ', VOID, VOID, VOID, VOID, WirespecUnionDefinitionEmitter$emit$lambda(this)) + '\n';
|
|
179
173
|
}
|
|
180
174
|
initMetadataForInterface(WirespecUnionDefinitionEmitter, 'WirespecUnionDefinitionEmitter', VOID, VOID, [WirespecTypeDefinitionEmitter]);
|
|
181
|
-
function
|
|
182
|
-
return 'type ' + this.
|
|
175
|
+
function emit_6(refined) {
|
|
176
|
+
return 'type ' + this.br(refined.gr_1) + ' = ' + this.bq(refined.hr_1) + this.pr(refined) + '\n';
|
|
183
177
|
}
|
|
184
178
|
function emitValidator(_this__u8e3s4) {
|
|
185
|
-
var type = _this__u8e3s4.
|
|
179
|
+
var type = _this__u8e3s4.hr_1.tu_1;
|
|
186
180
|
var tmp;
|
|
187
181
|
if (type instanceof Integer) {
|
|
188
|
-
var tmp0_safe_receiver = type.
|
|
189
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.
|
|
182
|
+
var tmp0_safe_receiver = type.yt_1;
|
|
183
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.cq(tmp0_safe_receiver);
|
|
190
184
|
tmp = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
|
|
191
185
|
} else {
|
|
192
186
|
if (type instanceof Number_0) {
|
|
193
|
-
var tmp2_safe_receiver = type.
|
|
194
|
-
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.
|
|
187
|
+
var tmp2_safe_receiver = type.bu_1;
|
|
188
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.cq(tmp2_safe_receiver);
|
|
195
189
|
tmp = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
|
|
196
190
|
} else {
|
|
197
191
|
if (type instanceof String_0) {
|
|
198
|
-
var tmp4_safe_receiver = type.
|
|
192
|
+
var tmp4_safe_receiver = type.vt_1;
|
|
199
193
|
var tmp_0;
|
|
200
194
|
var tmp_1 = tmp4_safe_receiver;
|
|
201
195
|
if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
|
|
202
196
|
tmp_0 = null;
|
|
203
197
|
} else {
|
|
204
|
-
tmp_0 = this.
|
|
198
|
+
tmp_0 = this.cq(new RegExp_0(tmp4_safe_receiver));
|
|
205
199
|
}
|
|
206
200
|
var tmp5_elvis_lhs = tmp_0;
|
|
207
201
|
tmp = tmp5_elvis_lhs == null ? '' : tmp5_elvis_lhs;
|
|
@@ -221,37 +215,43 @@ function emitValidator(_this__u8e3s4) {
|
|
|
221
215
|
return tmp;
|
|
222
216
|
}
|
|
223
217
|
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.
|
|
218
|
+
function emit_7(endpoint) {
|
|
219
|
+
var tmp = this.br(endpoint.ip_1);
|
|
220
|
+
var tmp_0 = endpoint.jp_1.toString();
|
|
221
|
+
var tmp_1 = emitRequest(this, endpoint.np_1);
|
|
222
|
+
var tmp_2 = emitPath(this, endpoint.kp_1);
|
|
223
|
+
var tmp_3 = emitQuery(this, endpoint.lp_1);
|
|
224
|
+
var tmp_4 = emitHeader(this, endpoint.mp_1);
|
|
225
|
+
return trimMargin('\n |endpoint ' + tmp + ' ' + tmp_0 + tmp_1 + ' ' + tmp_2 + tmp_3 + tmp_4 + ' -> {\n |' + joinToString(endpoint.op_1, '\n', VOID, VOID, VOID, VOID, WirespecEndpointDefinitionEmitter$emit$lambda(this)) + '\n |}\n |\n ');
|
|
232
226
|
}
|
|
233
227
|
initMetadataForInterface(WirespecEndpointDefinitionEmitter, 'WirespecEndpointDefinitionEmitter', VOID, VOID, [WirespecTypeDefinitionEmitter]);
|
|
234
|
-
|
|
228
|
+
function emit_8(enum_0, module_0) {
|
|
229
|
+
var tmp = this.br(enum_0.lr_1);
|
|
230
|
+
var tmp_0 = Spacer_instance.toString();
|
|
231
|
+
return 'enum ' + tmp + ' {\n' + tmp_0 + joinToString(enum_0.mr_1, ', ', VOID, VOID, VOID, VOID, WirespecEnumDefinitionEmitter$emit$lambda(this)) + '\n}\n';
|
|
232
|
+
}
|
|
233
|
+
initMetadataForInterface(WirespecEnumDefinitionEmitter, 'WirespecEnumDefinitionEmitter', VOID, VOID, [WirespecIdentifierEmitter]);
|
|
234
|
+
initMetadataForClass(WirespecEmitter, 'WirespecEmitter', WirespecEmitter, LanguageEmitter, [LanguageEmitter, WirespecIdentifierEmitter, WirespecUnionDefinitionEmitter, WirespecRefinedTypeDefinitionEmitter, WirespecTypeDefinitionEmitter, WirespecEndpointDefinitionEmitter, WirespecChannelDefinitionEmitter, WirespecEnumDefinitionEmitter]);
|
|
235
235
|
initMetadataForCompanion(Companion);
|
|
236
236
|
//endregion
|
|
237
237
|
function WirespecChannelDefinitionEmitter() {
|
|
238
238
|
}
|
|
239
239
|
function WirespecEmitter() {
|
|
240
240
|
LanguageEmitter.call(this);
|
|
241
|
-
this.
|
|
242
|
-
this.
|
|
243
|
-
this.
|
|
241
|
+
this.q1z_1 = FileExtension_Wirespec_getInstance();
|
|
242
|
+
this.r1z_1 = null;
|
|
243
|
+
this.s1z_1 = '\n';
|
|
244
244
|
}
|
|
245
|
-
protoOf(WirespecEmitter).
|
|
246
|
-
return this.
|
|
245
|
+
protoOf(WirespecEmitter).iq = function () {
|
|
246
|
+
return this.q1z_1;
|
|
247
247
|
};
|
|
248
|
-
protoOf(WirespecEmitter).
|
|
249
|
-
return this.
|
|
248
|
+
protoOf(WirespecEmitter).jq = function () {
|
|
249
|
+
return this.s1z_1;
|
|
250
250
|
};
|
|
251
|
-
protoOf(WirespecEmitter).
|
|
251
|
+
protoOf(WirespecEmitter).sn = function (ast, logger) {
|
|
252
252
|
// Inline function 'kotlin.let' call
|
|
253
|
-
var e = protoOf(LanguageEmitter).
|
|
254
|
-
var tmp = 'wirespec.' + this.
|
|
253
|
+
var e = protoOf(LanguageEmitter).sn.call(this, ast, logger);
|
|
254
|
+
var tmp = 'wirespec.' + this.iq().rq_1;
|
|
255
255
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
256
256
|
// Inline function 'kotlin.collections.map' call
|
|
257
257
|
var this_0 = _NonEmptyList___get_all__impl__pmf509(e);
|
|
@@ -260,7 +260,7 @@ protoOf(WirespecEmitter).on = function (ast, logger) {
|
|
|
260
260
|
var _iterator__ex2g4s = this_0.t();
|
|
261
261
|
while (_iterator__ex2g4s.u()) {
|
|
262
262
|
var item = _iterator__ex2g4s.v();
|
|
263
|
-
var tmp$ret$0 = item.
|
|
263
|
+
var tmp$ret$0 = item.no_1;
|
|
264
264
|
destination.x(tmp$ret$0);
|
|
265
265
|
}
|
|
266
266
|
var tmp$ret$3 = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
@@ -268,13 +268,13 @@ protoOf(WirespecEmitter).on = function (ast, logger) {
|
|
|
268
268
|
var this_1 = new Emitted(tmp, joinToString(new NonEmptyList(tmp$ret$3), '\n'));
|
|
269
269
|
return _NonEmptyList___init__impl__fxd0xp(listOf(this_1));
|
|
270
270
|
};
|
|
271
|
-
protoOf(WirespecEmitter).
|
|
271
|
+
protoOf(WirespecEmitter).cq = function (_this__u8e3s4) {
|
|
272
272
|
var tmp;
|
|
273
273
|
if (_this__u8e3s4 instanceof RegExp_0) {
|
|
274
|
-
tmp = '(' + _RegExp___get_value__impl__7o7618(_this__u8e3s4.
|
|
274
|
+
tmp = '(' + _RegExp___get_value__impl__7o7618(_this__u8e3s4.dt_1) + ')';
|
|
275
275
|
} else {
|
|
276
276
|
if (_this__u8e3s4 instanceof Bound) {
|
|
277
|
-
tmp = '(' + _this__u8e3s4.
|
|
277
|
+
tmp = '(' + _this__u8e3s4.tt_1 + ', ' + _this__u8e3s4.ut_1 + ')';
|
|
278
278
|
} else {
|
|
279
279
|
noWhenBranchMatchedException();
|
|
280
280
|
}
|
|
@@ -286,9 +286,9 @@ function emitPath($this, _this__u8e3s4) {
|
|
|
286
286
|
}
|
|
287
287
|
function emitRequest($this, _this__u8e3s4) {
|
|
288
288
|
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.
|
|
289
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.rp_1;
|
|
290
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.tp_1;
|
|
291
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : $this.bq(tmp2_safe_receiver);
|
|
292
292
|
var tmp;
|
|
293
293
|
if (tmp3_safe_receiver == null) {
|
|
294
294
|
tmp = null;
|
|
@@ -359,30 +359,30 @@ function emitHeader($this, _this__u8e3s4) {
|
|
|
359
359
|
function WirespecEndpointDefinitionEmitter$emit$lambda(this$0) {
|
|
360
360
|
return function (it) {
|
|
361
361
|
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.
|
|
362
|
+
var tmp_0 = fixStatus(it.up_1);
|
|
363
|
+
var tmp0_safe_receiver = it.wp_1;
|
|
364
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tp_1;
|
|
365
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : this$0.bq(tmp1_safe_receiver);
|
|
366
366
|
var tmp_1 = tmp2_elvis_lhs == null ? 'Unit' : tmp2_elvis_lhs;
|
|
367
367
|
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.
|
|
368
|
+
var tmp3_safe_receiver = it.wp_1;
|
|
369
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.tp_1;
|
|
370
|
+
if ((tmp4_safe_receiver == null ? null : tmp4_safe_receiver.hu()) === true) {
|
|
371
371
|
tmp_2 = '?';
|
|
372
372
|
} else {
|
|
373
373
|
tmp_2 = '';
|
|
374
374
|
}
|
|
375
|
-
return tmp + tmp_0 + ' -> ' + tmp_1 + tmp_2 + emitHeader(this$0, it.
|
|
375
|
+
return tmp + tmp_0 + ' -> ' + tmp_1 + tmp_2 + emitHeader(this$0, it.vp_1);
|
|
376
376
|
};
|
|
377
377
|
}
|
|
378
378
|
function WirespecEndpointDefinitionEmitter$emitPath$lambda(this$0) {
|
|
379
379
|
return function (it) {
|
|
380
380
|
var tmp;
|
|
381
381
|
if (it instanceof Param) {
|
|
382
|
-
tmp = '{' + it.
|
|
382
|
+
tmp = '{' + it.pp_1.l1() + ': ' + this$0.bq(it.qp_1) + '}';
|
|
383
383
|
} else {
|
|
384
384
|
if (it instanceof Literal) {
|
|
385
|
-
tmp = it.
|
|
385
|
+
tmp = it.lq_1;
|
|
386
386
|
} else {
|
|
387
387
|
noWhenBranchMatchedException();
|
|
388
388
|
}
|
|
@@ -392,12 +392,12 @@ function WirespecEndpointDefinitionEmitter$emitPath$lambda(this$0) {
|
|
|
392
392
|
}
|
|
393
393
|
function WirespecEndpointDefinitionEmitter$emitQuery$lambda(this$0) {
|
|
394
394
|
return function (it) {
|
|
395
|
-
return this$0.
|
|
395
|
+
return this$0.aq(it);
|
|
396
396
|
};
|
|
397
397
|
}
|
|
398
398
|
function WirespecEndpointDefinitionEmitter$emitHeader$lambda(this$0) {
|
|
399
399
|
return function (it) {
|
|
400
|
-
return this$0.
|
|
400
|
+
return this$0.aq(it);
|
|
401
401
|
};
|
|
402
402
|
}
|
|
403
403
|
function WirespecEndpointDefinitionEmitter() {
|
|
@@ -427,7 +427,7 @@ function WirespecEnumDefinitionEmitter() {
|
|
|
427
427
|
}
|
|
428
428
|
function Companion() {
|
|
429
429
|
Companion_instance = this;
|
|
430
|
-
this.
|
|
430
|
+
this.t1z_1 = setOf(['type', 'enum', 'endpoint']);
|
|
431
431
|
}
|
|
432
432
|
var Companion_instance;
|
|
433
433
|
function Companion_getInstance() {
|
|
@@ -441,30 +441,30 @@ function WirespecRefinedTypeDefinitionEmitter() {
|
|
|
441
441
|
}
|
|
442
442
|
function WirespecTypeDefinitionEmitter$emit$lambda(this$0) {
|
|
443
443
|
return function (it) {
|
|
444
|
-
return Spacer_instance.toString() + this$0.
|
|
444
|
+
return Spacer_instance.toString() + this$0.aq(it);
|
|
445
445
|
};
|
|
446
446
|
}
|
|
447
447
|
function WirespecTypeDefinitionEmitter() {
|
|
448
448
|
}
|
|
449
449
|
function WirespecUnionDefinitionEmitter$emit$lambda(this$0) {
|
|
450
450
|
return function (it) {
|
|
451
|
-
return this$0.
|
|
451
|
+
return this$0.bq(it);
|
|
452
452
|
};
|
|
453
453
|
}
|
|
454
454
|
function WirespecUnionDefinitionEmitter() {
|
|
455
455
|
}
|
|
456
456
|
//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).
|
|
457
|
+
protoOf(WirespecEmitter).yp = emit_0;
|
|
458
|
+
protoOf(WirespecEmitter).zp = emit_1;
|
|
459
|
+
protoOf(WirespecEmitter).aq = emit_2;
|
|
460
|
+
protoOf(WirespecEmitter).bq = emit_3;
|
|
461
|
+
protoOf(WirespecEmitter).nr = emit_8;
|
|
462
|
+
protoOf(WirespecEmitter).ir = emit_6;
|
|
463
|
+
protoOf(WirespecEmitter).or = emit_7;
|
|
464
|
+
protoOf(WirespecEmitter).dr = emit_5;
|
|
465
|
+
protoOf(WirespecEmitter).br = emit;
|
|
466
|
+
protoOf(WirespecEmitter).cr = emit_4;
|
|
467
|
+
protoOf(WirespecEmitter).pr = emitValidator;
|
|
468
468
|
//endregion
|
|
469
469
|
//region block: exports
|
|
470
470
|
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/WirespecUnionDefinitionEmitter.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/WirespecEnumDefinitionEmitter.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","union","refined","emitValidator","endpoint","enum","<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","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,0BAA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