@flock/wirespec 0.22.3 → 0.22.5
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-core.mjs +5 -0
- package/arrow-arrow-core.mjs.map +1 -1
- package/clikt-clikt-mordant.mjs +79 -79
- package/clikt-clikt.mjs +1335 -1335
- package/colormath-root-colormath.mjs +433 -433
- package/kotlin-kotlin-stdlib.mjs +119 -55
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10209 -10209
- package/kotlin-rgxgen.mjs +1760 -1760
- package/kotlinx-io-kotlinx-io-core.mjs +404 -404
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1802 -1802
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1503 -1503
- package/mordant-mordant.mjs +1202 -1202
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +2897 -2620
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +106 -106
- package/wirespec-src-compiler-emitters-kotlin.mjs +136 -116
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +84 -84
- package/wirespec-src-compiler-emitters-rust.mjs +209 -209
- package/wirespec-src-compiler-emitters-scala.mjs +85 -85
- package/wirespec-src-compiler-emitters-typescript.mjs +108 -108
- package/wirespec-src-compiler-emitters-wirespec.mjs +81 -81
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +194 -194
- package/wirespec-src-converter-asyncapi.mjs +532 -532
- package/wirespec-src-converter-avro.mjs +566 -510
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-common.mjs +11 -11
- package/wirespec-src-converter-graphql.mjs +936 -936
- package/wirespec-src-converter-openapi.mjs +435 -435
- package/wirespec-src-ide-lsp.mjs +1358 -1358
- package/wirespec-src-plugin-arguments.mjs +413 -214
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +135 -99
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-extensions.mjs +4357 -0
- package/wirespec-src-plugin-extensions.mjs.map +1 -0
- package/wirespec-src-plugin-npm.d.mts +43 -1
- package/wirespec-src-plugin-npm.mjs +230 -54
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +13 -13
|
@@ -169,14 +169,14 @@ initMetadataForCompanion(Companion);
|
|
|
169
169
|
initMetadataForClass(TypeScriptEmitter, 'TypeScriptEmitter', TypeScriptEmitter, VOID, [IrEmitter]);
|
|
170
170
|
//endregion
|
|
171
171
|
function _get_sanitizationConfig__sns434($this) {
|
|
172
|
-
var tmp0 = $this.
|
|
172
|
+
var tmp0 = $this.b37_1;
|
|
173
173
|
var tmp = KProperty1;
|
|
174
174
|
// Inline function 'kotlin.getValue' call
|
|
175
175
|
getPropertyCallableRef('sanitizationConfig', 1, tmp, TypeScriptEmitter$_get_sanitizationConfig_$ref_eg4rmu(), null);
|
|
176
176
|
return tmp0.o1();
|
|
177
177
|
}
|
|
178
178
|
function _get_modelSanitizationConfig__vgg831($this) {
|
|
179
|
-
var tmp0 = $this.
|
|
179
|
+
var tmp0 = $this.c37_1;
|
|
180
180
|
var tmp = KProperty1;
|
|
181
181
|
// Inline function 'kotlin.getValue' call
|
|
182
182
|
getPropertyCallableRef('modelSanitizationConfig', 1, tmp, TypeScriptEmitter$_get_modelSanitizationConfig_$ref_jl2735(), null);
|
|
@@ -204,7 +204,7 @@ function sanitizeSymbol($this, $receiver) {
|
|
|
204
204
|
return destination.toString();
|
|
205
205
|
}
|
|
206
206
|
function sanitizeKeywords($this, $receiver) {
|
|
207
|
-
return Companion_getInstance_0().
|
|
207
|
+
return Companion_getInstance_0().z34().i1($receiver) ? '_' + $receiver : $receiver;
|
|
208
208
|
}
|
|
209
209
|
function firstToLower($this, $receiver) {
|
|
210
210
|
// Inline function 'kotlin.text.replaceFirstChar' call
|
|
@@ -261,26 +261,26 @@ function buildEndpointParams($this, endpoint) {
|
|
|
261
261
|
var _iterator__ex2g4s_0 = destination.t();
|
|
262
262
|
while (_iterator__ex2g4s_0.u()) {
|
|
263
263
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
264
|
-
this_0.x(new EndpointParam(sanitizeParamName($this, element_0.mr_1), emitTypeScriptReference($this, element_0.nr_1.
|
|
264
|
+
this_0.x(new EndpointParam(sanitizeParamName($this, element_0.mr_1), emitTypeScriptReference($this, element_0.nr_1.p1a(false)), element_0.nr_1.ot()));
|
|
265
265
|
}
|
|
266
266
|
// Inline function 'kotlin.collections.forEach' call
|
|
267
267
|
var _iterator__ex2g4s_1 = get_fields(endpoint.ir_1).t();
|
|
268
268
|
while (_iterator__ex2g4s_1.u()) {
|
|
269
269
|
var element_1 = _iterator__ex2g4s_1.v();
|
|
270
|
-
this_0.x(new EndpointParam(sanitizeParamName($this, element_1.op_1), emitTypeScriptReference($this, element_1.pp_1.
|
|
270
|
+
this_0.x(new EndpointParam(sanitizeParamName($this, element_1.op_1), emitTypeScriptReference($this, element_1.pp_1.p1a(false)), element_1.pp_1.ot()));
|
|
271
271
|
}
|
|
272
272
|
// Inline function 'kotlin.collections.forEach' call
|
|
273
273
|
var _iterator__ex2g4s_2 = get_fields(endpoint.jr_1).t();
|
|
274
274
|
while (_iterator__ex2g4s_2.u()) {
|
|
275
275
|
var element_2 = _iterator__ex2g4s_2.v();
|
|
276
|
-
this_0.x(new EndpointParam(sanitizeParamName($this, element_2.op_1), emitTypeScriptReference($this, element_2.pp_1.
|
|
276
|
+
this_0.x(new EndpointParam(sanitizeParamName($this, element_2.op_1), emitTypeScriptReference($this, element_2.pp_1.p1a(false)), element_2.pp_1.ot()));
|
|
277
277
|
}
|
|
278
278
|
var tmp0_safe_receiver = first(endpoint.kr_1).or_1;
|
|
279
279
|
if (tmp0_safe_receiver == null)
|
|
280
280
|
null;
|
|
281
281
|
else {
|
|
282
282
|
// Inline function 'kotlin.let' call
|
|
283
|
-
this_0.x(new EndpointParam('body', emitTypeScriptReference($this, tmp0_safe_receiver.qr_1.
|
|
283
|
+
this_0.x(new EndpointParam('body', emitTypeScriptReference($this, tmp0_safe_receiver.qr_1.p1a(false)), tmp0_safe_receiver.qr_1.ot()));
|
|
284
284
|
}
|
|
285
285
|
return this_0.q5();
|
|
286
286
|
}
|
|
@@ -299,10 +299,10 @@ function emitTypeScriptReference($this, ref) {
|
|
|
299
299
|
tmp = 'any';
|
|
300
300
|
} else {
|
|
301
301
|
if (ref instanceof Custom) {
|
|
302
|
-
tmp = sanitizeSymbol($this, ref.
|
|
302
|
+
tmp = sanitizeSymbol($this, ref.n19_1);
|
|
303
303
|
} else {
|
|
304
304
|
if (ref instanceof Primitive) {
|
|
305
|
-
var tmp1_subject = ref.
|
|
305
|
+
var tmp1_subject = ref.p19_1;
|
|
306
306
|
var tmp_0;
|
|
307
307
|
if (tmp1_subject instanceof String_0) {
|
|
308
308
|
tmp_0 = 'string';
|
|
@@ -338,17 +338,17 @@ function emitTypeScriptReference($this, ref) {
|
|
|
338
338
|
return tmp + (ref.ot() ? ' | undefined' : '');
|
|
339
339
|
}
|
|
340
340
|
function EndpointParam(name, type, nullable) {
|
|
341
|
-
this.
|
|
342
|
-
this.
|
|
343
|
-
this.
|
|
341
|
+
this.f37_1 = name;
|
|
342
|
+
this.g37_1 = type;
|
|
343
|
+
this.h37_1 = nullable;
|
|
344
344
|
}
|
|
345
345
|
protoOf(EndpointParam).toString = function () {
|
|
346
|
-
return 'EndpointParam(name=' + this.
|
|
346
|
+
return 'EndpointParam(name=' + this.f37_1 + ', type=' + this.g37_1 + ', nullable=' + this.h37_1 + ')';
|
|
347
347
|
};
|
|
348
348
|
protoOf(EndpointParam).hashCode = function () {
|
|
349
|
-
var result = getStringHashCode(this.
|
|
350
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
351
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
349
|
+
var result = getStringHashCode(this.f37_1);
|
|
350
|
+
result = imul(result, 31) + getStringHashCode(this.g37_1) | 0;
|
|
351
|
+
result = imul(result, 31) + getBooleanHashCode(this.h37_1) | 0;
|
|
352
352
|
return result;
|
|
353
353
|
};
|
|
354
354
|
protoOf(EndpointParam).equals = function (other) {
|
|
@@ -356,17 +356,17 @@ protoOf(EndpointParam).equals = function (other) {
|
|
|
356
356
|
return true;
|
|
357
357
|
if (!(other instanceof EndpointParam))
|
|
358
358
|
return false;
|
|
359
|
-
if (!(this.
|
|
359
|
+
if (!(this.f37_1 === other.f37_1))
|
|
360
360
|
return false;
|
|
361
|
-
if (!(this.
|
|
361
|
+
if (!(this.g37_1 === other.g37_1))
|
|
362
362
|
return false;
|
|
363
|
-
if (!(this.
|
|
363
|
+
if (!(this.h37_1 === other.h37_1))
|
|
364
364
|
return false;
|
|
365
365
|
return true;
|
|
366
366
|
};
|
|
367
367
|
function Companion() {
|
|
368
368
|
Companion_instance_0 = this;
|
|
369
|
-
this.
|
|
369
|
+
this.d37_1 = TypeScriptGenerator_getInstance();
|
|
370
370
|
var tmp = this;
|
|
371
371
|
// Inline function 'kotlin.collections.associateWith' call
|
|
372
372
|
var this_0 = listOf(['GeneratorFieldString', 'GeneratorFieldInteger64', 'GeneratorFieldInteger32', 'GeneratorFieldNumber64', 'GeneratorFieldNumber32', 'GeneratorFieldBoolean', 'GeneratorFieldBytes', 'GeneratorFieldEnum', 'GeneratorFieldUnion', 'GeneratorFieldArray', 'GeneratorFieldNullable', 'GeneratorFieldShape', 'GeneratorFieldDict']);
|
|
@@ -380,10 +380,10 @@ function Companion() {
|
|
|
380
380
|
var tmp$ret$2 = removePrefix(element, 'GeneratorField').toLowerCase();
|
|
381
381
|
result.v2(element, tmp$ret$2);
|
|
382
382
|
}
|
|
383
|
-
tmp.
|
|
383
|
+
tmp.e37_1 = result;
|
|
384
384
|
}
|
|
385
|
-
protoOf(Companion).
|
|
386
|
-
return this.
|
|
385
|
+
protoOf(Companion).z34 = function () {
|
|
386
|
+
return this.d37_1.u1b_1;
|
|
387
387
|
};
|
|
388
388
|
var Companion_instance_0;
|
|
389
389
|
function Companion_getInstance_0() {
|
|
@@ -431,7 +431,7 @@ function TypeScriptEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
431
431
|
tmp = new VariableReference(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.gv_1));
|
|
432
432
|
} else {
|
|
433
433
|
if (stmt instanceof ConstructorStatement) {
|
|
434
|
-
var tmp_0 = tr.
|
|
434
|
+
var tmp_0 = tr.i18(stmt.dv_1);
|
|
435
435
|
// Inline function 'kotlin.collections.map' call
|
|
436
436
|
var this_0 = stmt.ev_1;
|
|
437
437
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -444,13 +444,13 @@ function TypeScriptEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
444
444
|
var key = item.n1();
|
|
445
445
|
// Inline function 'kotlin.collections.component2' call
|
|
446
446
|
var value = item.o1();
|
|
447
|
-
var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), key), tr.
|
|
447
|
+
var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), key), tr.l18(value));
|
|
448
448
|
destination.x(tmp$ret$3);
|
|
449
449
|
}
|
|
450
450
|
tmp = new ConstructorStatement(tmp_0, toMap(destination));
|
|
451
451
|
} else {
|
|
452
452
|
if (stmt instanceof Assignment) {
|
|
453
|
-
tmp = new Assignment(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.jy_1), tr.
|
|
453
|
+
tmp = new Assignment(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.jy_1), tr.l18(stmt.ky_1), stmt.ly_1);
|
|
454
454
|
} else {
|
|
455
455
|
tmp = transformChildren(stmt, tr);
|
|
456
456
|
}
|
|
@@ -461,7 +461,7 @@ function TypeScriptEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
461
461
|
}
|
|
462
462
|
function TypeScriptEmitter$sanitizationConfig$delegate$lambda(this$0) {
|
|
463
463
|
return function () {
|
|
464
|
-
var tmp0_reservedKeywords = Companion_getInstance_0().
|
|
464
|
+
var tmp0_reservedKeywords = Companion_getInstance_0().z34();
|
|
465
465
|
var tmp = TypeScriptEmitter$sanitizationConfig$delegate$lambda$lambda;
|
|
466
466
|
var tmp_0 = TypeScriptEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
|
|
467
467
|
var tmp_1 = TypeScriptEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
|
|
@@ -484,7 +484,7 @@ function TypeScriptEmitter$modelSanitizationConfig$delegate$lambda(this$0) {
|
|
|
484
484
|
return function () {
|
|
485
485
|
var tmp = _get_sanitizationConfig__sns434(this$0);
|
|
486
486
|
var tmp_0 = TypeScriptEmitter$modelSanitizationConfig$delegate$lambda$lambda;
|
|
487
|
-
return tmp.
|
|
487
|
+
return tmp.g1c(VOID, VOID, tmp_0, VOID, TypeScriptEmitter$modelSanitizationConfig$delegate$lambda$lambda_0);
|
|
488
488
|
};
|
|
489
489
|
}
|
|
490
490
|
function TypeScriptEmitter$_get_modelSanitizationConfig_$ref_jl2735() {
|
|
@@ -591,7 +591,7 @@ function TypeScriptEmitter$emitShared$lambda_0($api) {
|
|
|
591
591
|
function TypeScriptEmitter$emitShared$lambda_1(element, transformer) {
|
|
592
592
|
var tmp;
|
|
593
593
|
if (element instanceof Struct) {
|
|
594
|
-
var tmp0_safe_receiver = Companion_getInstance_0().
|
|
594
|
+
var tmp0_safe_receiver = Companion_getInstance_0().e37_1.s2(element.hx_1.xt());
|
|
595
595
|
var tmp_0;
|
|
596
596
|
if (tmp0_safe_receiver == null) {
|
|
597
597
|
tmp_0 = null;
|
|
@@ -673,7 +673,7 @@ function TypeScriptEmitter$emitGenerator$lambda_1(expr, t) {
|
|
|
673
673
|
tmp_1 = null;
|
|
674
674
|
} else {
|
|
675
675
|
// Inline function 'kotlin.let' call
|
|
676
|
-
tmp_1 = Companion_getInstance_0().
|
|
676
|
+
tmp_1 = Companion_getInstance_0().e37_1.s2(typeName);
|
|
677
677
|
}
|
|
678
678
|
var kind = tmp_1;
|
|
679
679
|
var tmp_2;
|
|
@@ -690,7 +690,7 @@ function TypeScriptEmitter$emitGenerator$lambda_1(expr, t) {
|
|
|
690
690
|
var tmp_4 = element.n1();
|
|
691
691
|
// Inline function 'kotlin.collections.component2' call
|
|
692
692
|
var v = element.o1();
|
|
693
|
-
var tmp$ret$6 = t.
|
|
693
|
+
var tmp$ret$6 = t.l18(v);
|
|
694
694
|
destination.v2(tmp_4, tmp$ret$6);
|
|
695
695
|
}
|
|
696
696
|
tmp_2 = new ConstructorStatement(expr.dv_1, plus_0(tmp_3, destination));
|
|
@@ -792,14 +792,14 @@ function emit$injectApiConst(_this__u8e3s4, $endpoint) {
|
|
|
792
792
|
var tmp = scope;
|
|
793
793
|
// Inline function 'community.flock.wirespec.compiler.core.ir.injectAfter' call
|
|
794
794
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
795
|
-
var this_0 = scope.
|
|
795
|
+
var this_0 = scope.q18_1;
|
|
796
796
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
797
797
|
// Inline function 'kotlin.apply' call
|
|
798
798
|
var this_1 = new TransformerBuilder();
|
|
799
|
-
this_1.
|
|
800
|
-
var tmp$ret$5 = this_1.
|
|
801
|
-
tmp.
|
|
802
|
-
var tmp_0 = scope.
|
|
799
|
+
this_1.k19(TypeScriptEmitter$emit$injectApiConst$lambda($endpoint));
|
|
800
|
+
var tmp$ret$5 = this_1.f19();
|
|
801
|
+
tmp.q18_1 = transform(this_0, tmp$ret$5);
|
|
802
|
+
var tmp_0 = scope.q18_1;
|
|
803
803
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
804
804
|
}
|
|
805
805
|
function emit$applyCallParamsIfNeeded(_this__u8e3s4, hasRequestParams) {
|
|
@@ -813,20 +813,20 @@ function TypeScriptEmitter$emitClient$lambda(this$0) {
|
|
|
813
813
|
}
|
|
814
814
|
function TypeScriptEmitter() {
|
|
815
815
|
Companion_getInstance_0();
|
|
816
|
-
this.
|
|
817
|
-
this.
|
|
816
|
+
this.z36_1 = TypeScriptGenerator_getInstance();
|
|
817
|
+
this.a37_1 = FileExtension_TypeScript_getInstance();
|
|
818
818
|
var tmp = this;
|
|
819
|
-
tmp.
|
|
819
|
+
tmp.b37_1 = lazy(TypeScriptEmitter$sanitizationConfig$delegate$lambda(this));
|
|
820
820
|
var tmp_0 = this;
|
|
821
|
-
tmp_0.
|
|
821
|
+
tmp_0.c37_1 = lazy(TypeScriptEmitter$modelSanitizationConfig$delegate$lambda(this));
|
|
822
822
|
}
|
|
823
|
-
protoOf(TypeScriptEmitter).
|
|
824
|
-
return this.
|
|
823
|
+
protoOf(TypeScriptEmitter).d1b = function () {
|
|
824
|
+
return this.z36_1;
|
|
825
825
|
};
|
|
826
826
|
protoOf(TypeScriptEmitter).wp = function () {
|
|
827
|
-
return this.
|
|
827
|
+
return this.a37_1;
|
|
828
828
|
};
|
|
829
|
-
protoOf(TypeScriptEmitter).
|
|
829
|
+
protoOf(TypeScriptEmitter).y1a = function () {
|
|
830
830
|
var packageName = Companion_instance.at('community.flock.wirespec');
|
|
831
831
|
var api = 'export type Client<REQ extends Request<unknown>, RES extends Response<unknown>> = (serialization: Serialization) => {\n to: (request: REQ) => RawRequest;\n from: (response: RawResponse) => RES\n}\nexport type Server<REQ extends Request<unknown>, RES extends Response<unknown>> = (serialization: Serialization) => {\n from: (request: RawRequest) => REQ;\n to: (response: RES) => RawResponse\n}\nexport type Api<REQ extends Request<unknown>, RES extends Response<unknown>> = {\n name: string;\n method: Method,\n path: string,\n client: Client<REQ, RES>;\n server: Server<REQ, RES>\n}';
|
|
832
832
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
@@ -836,35 +836,35 @@ protoOf(TypeScriptEmitter).c1a = function () {
|
|
|
836
836
|
var tmp = scope;
|
|
837
837
|
// Inline function 'community.flock.wirespec.compiler.core.ir.injectBefore' call
|
|
838
838
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
839
|
-
var this_1 = scope.
|
|
839
|
+
var this_1 = scope.q18_1;
|
|
840
840
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
841
841
|
// Inline function 'kotlin.apply' call
|
|
842
842
|
var this_2 = new TransformerBuilder();
|
|
843
|
-
this_2.
|
|
844
|
-
var tmp$ret$5 = this_2.
|
|
845
|
-
tmp.
|
|
843
|
+
this_2.k19(TypeScriptEmitter$emitShared$lambda);
|
|
844
|
+
var tmp$ret$5 = this_2.f19();
|
|
845
|
+
tmp.q18_1 = transform(this_1, tmp$ret$5);
|
|
846
846
|
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.injectAfter' call
|
|
847
847
|
var tmp_0 = scope;
|
|
848
848
|
// Inline function 'community.flock.wirespec.compiler.core.ir.injectAfter' call
|
|
849
849
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
850
|
-
var this_3 = scope.
|
|
850
|
+
var this_3 = scope.q18_1;
|
|
851
851
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
852
852
|
// Inline function 'kotlin.apply' call
|
|
853
853
|
var this_4 = new TransformerBuilder();
|
|
854
|
-
this_4.
|
|
855
|
-
var tmp$ret$11 = this_4.
|
|
856
|
-
tmp_0.
|
|
854
|
+
this_4.k19(TypeScriptEmitter$emitShared$lambda_0(api));
|
|
855
|
+
var tmp$ret$11 = this_4.f19();
|
|
856
|
+
tmp_0.q18_1 = transform(this_3, tmp$ret$11);
|
|
857
857
|
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
|
|
858
858
|
var tmp_1 = scope;
|
|
859
859
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
860
|
-
var this_5 = scope.
|
|
860
|
+
var this_5 = scope.q18_1;
|
|
861
861
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
862
862
|
// Inline function 'kotlin.apply' call
|
|
863
863
|
var this_6 = new TransformerBuilder();
|
|
864
|
-
this_6.
|
|
865
|
-
var tmp$ret$16 = this_6.
|
|
866
|
-
tmp_1.
|
|
867
|
-
var tmp_2 = scope.
|
|
864
|
+
this_6.k19(TypeScriptEmitter$emitShared$lambda_1);
|
|
865
|
+
var tmp$ret$16 = this_6.f19();
|
|
866
|
+
tmp_1.q18_1 = transform(this_5, tmp$ret$16);
|
|
867
|
+
var tmp_2 = scope.q18_1;
|
|
868
868
|
return isInterface(tmp_2, Element) ? tmp_2 : THROW_CCE();
|
|
869
869
|
};
|
|
870
870
|
protoOf(TypeScriptEmitter).to = function (ast, logger) {
|
|
@@ -935,7 +935,7 @@ protoOf(TypeScriptEmitter).cs = function (definition, module_0, logger) {
|
|
|
935
935
|
var subPackageName = plus_1(Companion_instance.at(''), definition);
|
|
936
936
|
return new File(Companion_getInstance().wt(subPackageName.dt() + sanitizeSymbol(this, file.hv_1.zt())), plus(listOf_0(import_0('../Wirespec', 'Wirespec')), file.iv_1));
|
|
937
937
|
};
|
|
938
|
-
protoOf(TypeScriptEmitter).
|
|
938
|
+
protoOf(TypeScriptEmitter).g1b = function (definition, module_0) {
|
|
939
939
|
var tmp;
|
|
940
940
|
if (definition instanceof Type) {
|
|
941
941
|
tmp = convertToGenerator_2(definition, module_0);
|
|
@@ -944,16 +944,16 @@ protoOf(TypeScriptEmitter).k1a = function (definition, module_0) {
|
|
|
944
944
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
945
945
|
var this_0 = convertToGenerator_1(definition);
|
|
946
946
|
var scope = new TransformScope(this_0);
|
|
947
|
-
scope.
|
|
948
|
-
var tmp_0 = scope.
|
|
947
|
+
scope.h19(TypeScriptEmitter$emitGenerator$lambda(definition));
|
|
948
|
+
var tmp_0 = scope.q18_1;
|
|
949
949
|
tmp = isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
950
950
|
} else {
|
|
951
951
|
if (definition instanceof Refined) {
|
|
952
952
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
953
953
|
var this_1 = convertToGenerator_0(definition);
|
|
954
954
|
var scope_0 = new TransformScope(this_1);
|
|
955
|
-
scope_0.
|
|
956
|
-
var tmp_1 = scope_0.
|
|
955
|
+
scope_0.h19(TypeScriptEmitter$emitGenerator$lambda_0(definition));
|
|
956
|
+
var tmp_1 = scope_0.q18_1;
|
|
957
957
|
tmp = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
|
|
958
958
|
} else {
|
|
959
959
|
if (definition instanceof Union) {
|
|
@@ -967,8 +967,8 @@ protoOf(TypeScriptEmitter).k1a = function (definition, module_0) {
|
|
|
967
967
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
968
968
|
var this_2 = sanitizeNames(tmp, _get_sanitizationConfig__sns434(this));
|
|
969
969
|
var scope_1 = new TransformScope(this_2);
|
|
970
|
-
scope_1.
|
|
971
|
-
var tmp_2 = scope_1.
|
|
970
|
+
scope_1.h19(TypeScriptEmitter$emitGenerator$lambda_1);
|
|
971
|
+
var tmp_2 = scope_1.q18_1;
|
|
972
972
|
var generatorFile = isInterface(tmp_2, Element) ? tmp_2 : THROW_CCE();
|
|
973
973
|
var generatorOwnName = definition.ds().o1() + 'Generator';
|
|
974
974
|
var tmp_3 = asSequence(collectCustomTypeNames(generatorFile));
|
|
@@ -979,8 +979,8 @@ protoOf(TypeScriptEmitter).k1a = function (definition, module_0) {
|
|
|
979
979
|
var generatorRefs = LinkedHashSet_init_$Create$();
|
|
980
980
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
981
981
|
var scope_2 = new TransformScope(generatorFile);
|
|
982
|
-
scope_2.
|
|
983
|
-
var tmp_6 = scope_2.
|
|
982
|
+
scope_2.h19(TypeScriptEmitter$emitGenerator$lambda_5(generatorOwnName, generatorRefs));
|
|
983
|
+
var tmp_6 = scope_2.q18_1;
|
|
984
984
|
isInterface(tmp_6, Element) || THROW_CCE();
|
|
985
985
|
// Inline function 'kotlin.collections.filter' call
|
|
986
986
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -1035,7 +1035,7 @@ protoOf(TypeScriptEmitter).us = function (type, module_0) {
|
|
|
1035
1035
|
var _iterator__ex2g4s = this_0.t();
|
|
1036
1036
|
while (_iterator__ex2g4s.u()) {
|
|
1037
1037
|
var e = _iterator__ex2g4s.v();
|
|
1038
|
-
var key = e.
|
|
1038
|
+
var key = e.n19_1;
|
|
1039
1039
|
if (set.x(key)) {
|
|
1040
1040
|
list.x(e);
|
|
1041
1041
|
}
|
|
@@ -1046,7 +1046,7 @@ protoOf(TypeScriptEmitter).us = function (type, module_0) {
|
|
|
1046
1046
|
var _iterator__ex2g4s_0 = list.t();
|
|
1047
1047
|
while (_iterator__ex2g4s_0.u()) {
|
|
1048
1048
|
var item = _iterator__ex2g4s_0.v();
|
|
1049
|
-
var tmp$ret$4 = import_0('./' + item.
|
|
1049
|
+
var tmp$ret$4 = import_0('./' + item.n19_1, item.n19_1);
|
|
1050
1050
|
destination.x(tmp$ret$4);
|
|
1051
1051
|
}
|
|
1052
1052
|
var typeImports = destination;
|
|
@@ -1056,7 +1056,7 @@ protoOf(TypeScriptEmitter).us = function (type, module_0) {
|
|
|
1056
1056
|
var _iterator__ex2g4s_1 = fieldValidations.t();
|
|
1057
1057
|
while (_iterator__ex2g4s_1.u()) {
|
|
1058
1058
|
var item_0 = _iterator__ex2g4s_1.v();
|
|
1059
|
-
var tmp$ret$7 = item_0.
|
|
1059
|
+
var tmp$ret$7 = item_0.n1a_1;
|
|
1060
1060
|
destination_0.x(tmp$ret$7);
|
|
1061
1061
|
}
|
|
1062
1062
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -1113,7 +1113,7 @@ protoOf(TypeScriptEmitter).is = function (union) {
|
|
|
1113
1113
|
var _iterator__ex2g4s = this_0.t();
|
|
1114
1114
|
while (_iterator__ex2g4s.u()) {
|
|
1115
1115
|
var e = _iterator__ex2g4s.v();
|
|
1116
|
-
var key = e.
|
|
1116
|
+
var key = e.n19_1;
|
|
1117
1117
|
if (set.x(key)) {
|
|
1118
1118
|
list.x(e);
|
|
1119
1119
|
}
|
|
@@ -1124,7 +1124,7 @@ protoOf(TypeScriptEmitter).is = function (union) {
|
|
|
1124
1124
|
var _iterator__ex2g4s_0 = list.t();
|
|
1125
1125
|
while (_iterator__ex2g4s_0.u()) {
|
|
1126
1126
|
var item = _iterator__ex2g4s_0.v();
|
|
1127
|
-
var tmp$ret$4 = import_0('../model', item.
|
|
1127
|
+
var tmp$ret$4 = import_0('../model', item.n19_1, true);
|
|
1128
1128
|
destination.x(tmp$ret$4);
|
|
1129
1129
|
}
|
|
1130
1130
|
var imports = destination;
|
|
@@ -1141,7 +1141,7 @@ protoOf(TypeScriptEmitter).is = function (union) {
|
|
|
1141
1141
|
protoOf(TypeScriptEmitter).ns = function (refined) {
|
|
1142
1142
|
var converted = convert_2(refined);
|
|
1143
1143
|
var constraintExpr = convertConstraint(refined.ms_1, new VariableReference(Companion_getInstance().wt('value')));
|
|
1144
|
-
var validatorStr = TypeScriptGenerator_getInstance().
|
|
1144
|
+
var validatorStr = TypeScriptGenerator_getInstance().x1b(constraintExpr);
|
|
1145
1145
|
return new File(converted.hv_1, listOf([new RawElement('export type ' + converted.hv_1.zt() + ' = ' + emitTypeScriptReference(this, refined.ms_1) + ';'), new RawElement('export const validate' + refined.ls_1.o1() + ' = (value: ' + emitTypeScriptReference(this, refined.ms_1) + ') =>\n ' + validatorStr + ';')]));
|
|
1146
1146
|
};
|
|
1147
1147
|
protoOf(TypeScriptEmitter).ts = function (endpoint) {
|
|
@@ -1152,7 +1152,7 @@ protoOf(TypeScriptEmitter).ts = function (endpoint) {
|
|
|
1152
1152
|
var _iterator__ex2g4s = this_0.t();
|
|
1153
1153
|
while (_iterator__ex2g4s.u()) {
|
|
1154
1154
|
var e = _iterator__ex2g4s.v();
|
|
1155
|
-
var key = e.
|
|
1155
|
+
var key = e.n19_1;
|
|
1156
1156
|
if (set.x(key)) {
|
|
1157
1157
|
list.x(e);
|
|
1158
1158
|
}
|
|
@@ -1163,7 +1163,7 @@ protoOf(TypeScriptEmitter).ts = function (endpoint) {
|
|
|
1163
1163
|
var _iterator__ex2g4s_0 = list.t();
|
|
1164
1164
|
while (_iterator__ex2g4s_0.u()) {
|
|
1165
1165
|
var item = _iterator__ex2g4s_0.v();
|
|
1166
|
-
var tmp$ret$4 = import_0('../model', item.
|
|
1166
|
+
var tmp$ret$4 = import_0('../model', item.n19_1, true);
|
|
1167
1167
|
destination.x(tmp$ret$4);
|
|
1168
1168
|
}
|
|
1169
1169
|
var imports = destination;
|
|
@@ -1172,8 +1172,8 @@ protoOf(TypeScriptEmitter).ts = function (endpoint) {
|
|
|
1172
1172
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
1173
1173
|
var this_1 = stripTrailingSpaceFromErrorMessage(convert_3(endpoint));
|
|
1174
1174
|
var scope = new TransformScope(this_1);
|
|
1175
|
-
scope.
|
|
1176
|
-
var tmp = scope.
|
|
1175
|
+
scope.v18(transformPatternSwitchToValueSwitch());
|
|
1176
|
+
var tmp = scope.q18_1;
|
|
1177
1177
|
var tmp$ret$6 = isInterface(tmp, Element) ? tmp : THROW_CCE();
|
|
1178
1178
|
// Inline function 'kotlin.let' call
|
|
1179
1179
|
var it = sanitizeNames(emit$injectApiConst(emit$applyCallParamsIfNeeded(tmp$ret$6, hasRequestParams), endpoint).lv(Companion_getInstance().wt(sanitize(this, endpoint.fr_1))), _get_sanitizationConfig__sns434(this));
|
|
@@ -1199,7 +1199,7 @@ protoOf(TypeScriptEmitter).gs = function (rpc) {
|
|
|
1199
1199
|
var _iterator__ex2g4s = this_0.t();
|
|
1200
1200
|
while (_iterator__ex2g4s.u()) {
|
|
1201
1201
|
var e = _iterator__ex2g4s.v();
|
|
1202
|
-
var key = e.
|
|
1202
|
+
var key = e.n19_1;
|
|
1203
1203
|
if (set.x(key)) {
|
|
1204
1204
|
list.x(e);
|
|
1205
1205
|
}
|
|
@@ -1210,7 +1210,7 @@ protoOf(TypeScriptEmitter).gs = function (rpc) {
|
|
|
1210
1210
|
var _iterator__ex2g4s_0 = list.t();
|
|
1211
1211
|
while (_iterator__ex2g4s_0.u()) {
|
|
1212
1212
|
var item = _iterator__ex2g4s_0.v();
|
|
1213
|
-
var tmp$ret$6 = import_0('../model', item.
|
|
1213
|
+
var tmp$ret$6 = import_0('../model', item.n19_1, true);
|
|
1214
1214
|
destination.x(tmp$ret$6);
|
|
1215
1215
|
}
|
|
1216
1216
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -1232,7 +1232,7 @@ protoOf(TypeScriptEmitter).gs = function (rpc) {
|
|
|
1232
1232
|
var tmp1_elvis_lhs = tmp_0;
|
|
1233
1233
|
return tmp1_elvis_lhs == null ? file : tmp1_elvis_lhs;
|
|
1234
1234
|
};
|
|
1235
|
-
protoOf(TypeScriptEmitter).
|
|
1235
|
+
protoOf(TypeScriptEmitter).f1b = function (endpoint) {
|
|
1236
1236
|
var endpointName = endpoint.fr_1.o1();
|
|
1237
1237
|
var methodName = firstToLower(this, endpointName);
|
|
1238
1238
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
@@ -1242,7 +1242,7 @@ protoOf(TypeScriptEmitter).j1a = function (endpoint) {
|
|
|
1242
1242
|
var _iterator__ex2g4s = this_0.t();
|
|
1243
1243
|
while (_iterator__ex2g4s.u()) {
|
|
1244
1244
|
var e = _iterator__ex2g4s.v();
|
|
1245
|
-
var key = e.
|
|
1245
|
+
var key = e.n19_1;
|
|
1246
1246
|
if (set.x(key)) {
|
|
1247
1247
|
list.x(e);
|
|
1248
1248
|
}
|
|
@@ -1253,7 +1253,7 @@ protoOf(TypeScriptEmitter).j1a = function (endpoint) {
|
|
|
1253
1253
|
var _iterator__ex2g4s_0 = list.t();
|
|
1254
1254
|
while (_iterator__ex2g4s_0.u()) {
|
|
1255
1255
|
var item = _iterator__ex2g4s_0.v();
|
|
1256
|
-
var tmp$ret$4 = import_0('../model', item.
|
|
1256
|
+
var tmp$ret$4 = import_0('../model', item.n19_1, true);
|
|
1257
1257
|
destination.x(tmp$ret$4);
|
|
1258
1258
|
}
|
|
1259
1259
|
var imports = destination;
|
|
@@ -1287,7 +1287,7 @@ protoOf(TypeScriptEmitter).j1a = function (endpoint) {
|
|
|
1287
1287
|
var tmp$ret$7 = this_1.q5();
|
|
1288
1288
|
return new File(tmp_1, tmp$ret$7);
|
|
1289
1289
|
};
|
|
1290
|
-
protoOf(TypeScriptEmitter).
|
|
1290
|
+
protoOf(TypeScriptEmitter).z1a = function (endpoints, logger) {
|
|
1291
1291
|
logger.as('Emitting main Client for ' + endpoints.b1() + ' endpoints');
|
|
1292
1292
|
// Inline function 'kotlin.collections.map' call
|
|
1293
1293
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -1317,8 +1317,8 @@ function transformPatternSwitchToValueSwitch() {
|
|
|
1317
1317
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
1318
1318
|
// Inline function 'kotlin.apply' call
|
|
1319
1319
|
var this_0 = new TransformerBuilder();
|
|
1320
|
-
this_0.
|
|
1321
|
-
return this_0.
|
|
1320
|
+
this_0.g19(transformPatternSwitchToValueSwitch$lambda);
|
|
1321
|
+
return this_0.f19();
|
|
1322
1322
|
}
|
|
1323
1323
|
function renameValidateAndBindObjReceiver(_this__u8e3s4, typeName, fieldNames) {
|
|
1324
1324
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
@@ -1326,14 +1326,14 @@ function renameValidateAndBindObjReceiver(_this__u8e3s4, typeName, fieldNames) {
|
|
|
1326
1326
|
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
|
|
1327
1327
|
var tmp = scope;
|
|
1328
1328
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
1329
|
-
var this_0 = scope.
|
|
1329
|
+
var this_0 = scope.q18_1;
|
|
1330
1330
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
1331
1331
|
// Inline function 'kotlin.apply' call
|
|
1332
1332
|
var this_1 = new TransformerBuilder();
|
|
1333
|
-
this_1.
|
|
1334
|
-
var tmp$ret$4 = this_1.
|
|
1335
|
-
tmp.
|
|
1336
|
-
var tmp_0 = scope.
|
|
1333
|
+
this_1.k19(renameValidateAndBindObjReceiver$lambda(typeName, fieldNames));
|
|
1334
|
+
var tmp$ret$4 = this_1.f19();
|
|
1335
|
+
tmp.q18_1 = transform(this_0, tmp$ret$4);
|
|
1336
|
+
var tmp_0 = scope.q18_1;
|
|
1337
1337
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
1338
1338
|
}
|
|
1339
1339
|
function buildApiConst(endpoint) {
|
|
@@ -1362,21 +1362,21 @@ function bindCallToRequestParams(_this__u8e3s4) {
|
|
|
1362
1362
|
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
|
|
1363
1363
|
var tmp = scope;
|
|
1364
1364
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
1365
|
-
var this_0 = scope.
|
|
1365
|
+
var this_0 = scope.q18_1;
|
|
1366
1366
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
1367
1367
|
// Inline function 'kotlin.apply' call
|
|
1368
1368
|
var this_1 = new TransformerBuilder();
|
|
1369
|
-
this_1.
|
|
1370
|
-
var tmp$ret$4 = this_1.
|
|
1371
|
-
tmp.
|
|
1372
|
-
var tmp_0 = scope.
|
|
1369
|
+
this_1.k19(bindCallToRequestParams$lambda);
|
|
1370
|
+
var tmp$ret$4 = this_1.f19();
|
|
1371
|
+
tmp.q18_1 = transform(this_0, tmp$ret$4);
|
|
1372
|
+
var tmp_0 = scope.q18_1;
|
|
1373
1373
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
1374
1374
|
}
|
|
1375
1375
|
function stripTrailingSpaceFromErrorMessage(_this__u8e3s4) {
|
|
1376
1376
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
1377
1377
|
var scope = new TransformScope(_this__u8e3s4);
|
|
1378
|
-
scope.
|
|
1379
|
-
var tmp = scope.
|
|
1378
|
+
scope.g19(stripTrailingSpaceFromErrorMessage$lambda);
|
|
1379
|
+
var tmp = scope.q18_1;
|
|
1380
1380
|
return isInterface(tmp, Element) ? tmp : THROW_CCE();
|
|
1381
1381
|
}
|
|
1382
1382
|
function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
|
|
@@ -1439,13 +1439,13 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
|
|
|
1439
1439
|
var _iterator__ex2g4s_1 = this_1.t();
|
|
1440
1440
|
while (_iterator__ex2g4s_1.u()) {
|
|
1441
1441
|
var item_0 = _iterator__ex2g4s_1.v();
|
|
1442
|
-
var tmp$ret$7 = tr.
|
|
1442
|
+
var tmp$ret$7 = tr.k18(item_0);
|
|
1443
1443
|
destination_0.x(tmp$ret$7);
|
|
1444
1444
|
}
|
|
1445
1445
|
tmp$ret$4 = item.ez(VOID, destination_0);
|
|
1446
1446
|
break $l$block_1;
|
|
1447
1447
|
}
|
|
1448
|
-
var exprCode = TypeScriptGenerator_getInstance().
|
|
1448
|
+
var exprCode = TypeScriptGenerator_getInstance().x1b(tr.l18(stmt.uy_1));
|
|
1449
1449
|
var castAssignment = new Assignment(Companion_getInstance().wt(varName), new RawExpression(exprCode + ' as ' + typeName), false);
|
|
1450
1450
|
var tmp_2 = new Literal(statusNum, new Integer_0());
|
|
1451
1451
|
var tmp_3 = listOf_0(castAssignment);
|
|
@@ -1456,7 +1456,7 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
|
|
|
1456
1456
|
var _iterator__ex2g4s_2 = this_2.t();
|
|
1457
1457
|
while (_iterator__ex2g4s_2.u()) {
|
|
1458
1458
|
var item_1 = _iterator__ex2g4s_2.v();
|
|
1459
|
-
var tmp$ret$10 = tr.
|
|
1459
|
+
var tmp$ret$10 = tr.k18(item_1);
|
|
1460
1460
|
destination_1.x(tmp$ret$10);
|
|
1461
1461
|
}
|
|
1462
1462
|
tmp$ret$4 = new Case(tmp_2, plus(tmp_3, destination_1), null);
|
|
@@ -1464,7 +1464,7 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
|
|
|
1464
1464
|
destination.x(tmp$ret$4);
|
|
1465
1465
|
}
|
|
1466
1466
|
var transformedCases = destination;
|
|
1467
|
-
var tmp_4 = new FieldCall(tr.
|
|
1467
|
+
var tmp_4 = new FieldCall(tr.l18(stmt.uy_1), Companion_getInstance().wt('status'));
|
|
1468
1468
|
var tmp2_safe_receiver = stmt.wy_1;
|
|
1469
1469
|
var tmp_5;
|
|
1470
1470
|
if (tmp2_safe_receiver == null) {
|
|
@@ -1476,7 +1476,7 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
|
|
|
1476
1476
|
var _iterator__ex2g4s_3 = tmp2_safe_receiver.t();
|
|
1477
1477
|
while (_iterator__ex2g4s_3.u()) {
|
|
1478
1478
|
var item_2 = _iterator__ex2g4s_3.v();
|
|
1479
|
-
var tmp$ret$13 = tr.
|
|
1479
|
+
var tmp$ret$13 = tr.k18(item_2);
|
|
1480
1480
|
destination_2.x(tmp$ret$13);
|
|
1481
1481
|
}
|
|
1482
1482
|
tmp_5 = destination_2;
|
|
@@ -1505,7 +1505,7 @@ function renameValidateAndBindObjReceiver$lambda$lambda($fieldNames) {
|
|
|
1505
1505
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.qu_1;
|
|
1506
1506
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.zt();
|
|
1507
1507
|
var tn = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
|
|
1508
|
-
tmp = new FunctionCall(VOID, VOID, Companion_getInstance().wt('validate' + tn), mapOf(to(Companion_getInstance().wt('obj'), t.
|
|
1508
|
+
tmp = new FunctionCall(VOID, VOID, Companion_getInstance().wt('validate' + tn), mapOf(to(Companion_getInstance().wt('obj'), t.l18(ensureNotNull(s.cu_1)))));
|
|
1509
1509
|
} else {
|
|
1510
1510
|
var tmp_3;
|
|
1511
1511
|
if (s instanceof FieldCall) {
|
|
@@ -1535,8 +1535,8 @@ function renameValidateAndBindObjReceiver$lambda($typeName, $fieldNames) {
|
|
|
1535
1535
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
1536
1536
|
var this_0 = element.fy(Companion_getInstance().wt('validate' + $typeName), VOID, listOf_0(new Parameter(Companion_getInstance().wt('obj'), Custom_init_$Create$($typeName))));
|
|
1537
1537
|
var scope = new TransformScope(this_0);
|
|
1538
|
-
scope.
|
|
1539
|
-
var tmp_0 = scope.
|
|
1538
|
+
scope.i19(renameValidateAndBindObjReceiver$lambda$lambda($fieldNames));
|
|
1539
|
+
var tmp_0 = scope.q18_1;
|
|
1540
1540
|
tmp$ret$0 = isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
1541
1541
|
}
|
|
1542
1542
|
tmp = tmp$ret$0;
|
|
@@ -1550,7 +1550,7 @@ function renameValidateAndBindObjReceiver$lambda($typeName, $fieldNames) {
|
|
|
1550
1550
|
function buildApiConst$lambda(it) {
|
|
1551
1551
|
var tmp;
|
|
1552
1552
|
if (it instanceof Literal_0) {
|
|
1553
|
-
tmp = it.
|
|
1553
|
+
tmp = it.w1a_1;
|
|
1554
1554
|
} else {
|
|
1555
1555
|
if (it instanceof Param) {
|
|
1556
1556
|
tmp = '{' + it.mr_1.o1() + '}';
|
|
@@ -1648,9 +1648,9 @@ function stripTrailingSpaceFromErrorMessage$lambda(stmt, transformer) {
|
|
|
1648
1648
|
return tmp;
|
|
1649
1649
|
}
|
|
1650
1650
|
//region block: post-declaration
|
|
1651
|
-
protoOf(TypeScriptEmitter).
|
|
1652
|
-
protoOf(TypeScriptEmitter).
|
|
1653
|
-
protoOf(TypeScriptEmitter).
|
|
1651
|
+
protoOf(TypeScriptEmitter).a1b = get_extensions;
|
|
1652
|
+
protoOf(TypeScriptEmitter).x1a = emit_1;
|
|
1653
|
+
protoOf(TypeScriptEmitter).c1b = beforeGenerate;
|
|
1654
1654
|
protoOf(TypeScriptEmitter).vp = get_supportsDefaults;
|
|
1655
1655
|
//endregion
|
|
1656
1656
|
//region block: exports
|