@powerlines/deepkit 0.7.7 → 0.8.0
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/dist/{packages/deepkit/schemas/reflection.cjs → capnp-CkbeQ2uR.cjs} +1189 -4
- package/dist/{packages/deepkit/schemas/reflection.mjs → capnp-D0NNeu5y.mjs} +1175 -259
- package/dist/capnp.cjs +46 -955
- package/dist/capnp.d.cts +3 -1
- package/dist/capnp.d.mts +3 -1
- package/dist/capnp.mjs +2 -911
- package/dist/{_virtual/_rolldown/runtime.cjs → chunk-BmvPcxpV.cjs} +12 -2
- package/dist/config-ClUYu_c-.d.mts +40 -0
- package/dist/config-u7zg69VP.d.cts +40 -0
- package/dist/esbuild-plugin.cjs +1 -1
- package/dist/esbuild-plugin.d.cts +7 -8
- package/dist/esbuild-plugin.d.mts +7 -8
- package/dist/index.cjs +3 -2
- package/dist/index.mjs +3 -2
- package/dist/reflect-type.cjs +3 -3
- package/dist/reflect-type.mjs +1 -1
- package/dist/{packages/deepkit/schemas/reflection.d.mts → reflection-8fgblw1P.d.cts} +4 -2
- package/dist/{packages/deepkit/schemas/reflection.d.cts → reflection-l3nKKCgX.d.mts} +4 -2
- package/dist/resolve-reflections.cjs +1 -1
- package/dist/rolldown-plugin.cjs +1 -1
- package/dist/transformer-BseLGhId.mjs +1360 -0
- package/dist/transformer-Ct9lYNRY.cjs +1367 -0
- package/dist/transformer.cjs +3 -52
- package/dist/transformer.d.cts +1 -1
- package/dist/transformer.d.mts +1 -1
- package/dist/transformer.mjs +2 -50
- package/dist/transpile.cjs +4 -4
- package/dist/transpile.d.cts +1 -1
- package/dist/transpile.d.mts +1 -1
- package/dist/transpile.mjs +2 -2
- package/dist/types.d.cts +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/utilities.cjs +1 -1
- package/dist/vendor/{compiler-CqkzeoNX.mjs → compiler-Ba99lbTF.mjs} +11 -12
- package/dist/vendor/{compiler-Dz2b4nOM.d.cts → compiler-CZ0k-pTB.d.cts} +6 -6
- package/dist/vendor/{compiler-BYhFaVxE.d.mts → compiler-DIcnaeXC.d.mts} +6 -6
- package/dist/vendor/{compiler-Ci5aO9pY.cjs → compiler-DYfCGCv5.cjs} +10 -11
- package/dist/vendor/{config-eSNKiBGB.mjs → config-BFH3ETeQ.mjs} +16 -15
- package/dist/vendor/{config-BTErH18l.d.mts → config-BQtfsjwX.d.mts} +32 -18
- package/dist/vendor/{config-BbFVGRVh.cjs → config-Cadu6Rkt.cjs} +18 -17
- package/dist/vendor/{config-Cc2qE8fH.d.cts → config-D0jKbRFV.d.cts} +32 -18
- package/dist/vendor/core.cjs +97 -120
- package/dist/vendor/core.mjs +1 -24
- package/dist/vendor/type-compiler/compiler.cjs +1 -1
- package/dist/vendor/type-compiler/compiler.d.cts +1 -1
- package/dist/vendor/type-compiler/compiler.d.mts +1 -1
- package/dist/vendor/type-compiler/compiler.mjs +1 -1
- package/dist/vendor/type-compiler/config.cjs +2 -2
- package/dist/vendor/type-compiler/config.d.cts +2 -2
- package/dist/vendor/type-compiler/config.d.mts +2 -2
- package/dist/vendor/type-compiler/config.mjs +2 -2
- package/dist/vendor/type-compiler/index.cjs +5 -5
- package/dist/vendor/type-compiler/index.d.cts +4 -4
- package/dist/vendor/type-compiler/index.d.mts +4 -4
- package/dist/vendor/type-compiler/index.mjs +5 -5
- package/dist/vendor/type.cjs +11015 -4928
- package/dist/vendor/type.d.cts +220 -24
- package/dist/vendor/type.d.mts +220 -24
- package/dist/vendor/type.mjs +11521 -5630
- package/dist/vendor/{string-DoT35ViA.mjs → types--t65boB8.mjs} +25 -2
- package/dist/vendor/{string-LTCnMzW_.cjs → types-BzOSMMf1.cjs} +41 -0
- package/package.json +4 -4
- package/schemas/reflection.capnp +3 -2
- package/schemas/reflection.cjs +6 -0
- package/schemas/reflection.d.cts +2 -0
- package/schemas/reflection.d.mts +2 -0
- package/schemas/reflection.mjs +6 -0
- package/dist/_virtual/_rolldown/runtime.mjs +0 -8
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
import { ReflectionKind, ReflectionVisibility } from "@powerlines/deepkit/vendor/type";
|
|
2
|
+
import { isInteger, isSetObject, isUndefined } from "@stryke/type-checks";
|
|
1
3
|
import * as $ from "@stryke/capnp";
|
|
2
4
|
|
|
3
5
|
//#region schemas/reflection.ts
|
|
4
|
-
const ReflectionVisibility = {
|
|
6
|
+
const ReflectionVisibility$1 = {
|
|
5
7
|
PUBLIC: 0,
|
|
6
8
|
PROTECTED: 1,
|
|
7
9
|
PRIVATE: 2
|
|
8
10
|
};
|
|
9
|
-
var TagsReflection = class extends $.Struct {
|
|
11
|
+
var TagsReflection$1 = class extends $.Struct {
|
|
10
12
|
static _capnp = {
|
|
11
13
|
displayName: "TagsReflection",
|
|
12
14
|
id: "ab7e31d6b834bbf8",
|
|
@@ -60,6 +62,12 @@ var TagsReflection = class extends $.Struct {
|
|
|
60
62
|
set internal(value) {
|
|
61
63
|
$.utils.setBit(3, value, this);
|
|
62
64
|
}
|
|
65
|
+
get runtime() {
|
|
66
|
+
return $.utils.getBit(4, this);
|
|
67
|
+
}
|
|
68
|
+
set runtime(value) {
|
|
69
|
+
$.utils.setBit(4, value, this);
|
|
70
|
+
}
|
|
63
71
|
_adoptPermission(value) {
|
|
64
72
|
$.utils.adopt(value, $.utils.getPointer(2, this));
|
|
65
73
|
}
|
|
@@ -179,7 +187,7 @@ var DefaultValueReflection = class extends $.Struct {
|
|
|
179
187
|
return "DefaultValueReflection_" + super.toString();
|
|
180
188
|
}
|
|
181
189
|
};
|
|
182
|
-
var SerializedTypeReference = class extends $.Struct {
|
|
190
|
+
var SerializedTypeReference$1 = class extends $.Struct {
|
|
183
191
|
static _capnp = {
|
|
184
192
|
displayName: "SerializedTypeReference",
|
|
185
193
|
id: "a83d8a28b5e80f3a",
|
|
@@ -208,13 +216,13 @@ var IndexAccessOrigin = class extends $.Struct {
|
|
|
208
216
|
return $.utils.disown(this.container);
|
|
209
217
|
}
|
|
210
218
|
get container() {
|
|
211
|
-
return $.utils.getStruct(0, SerializedTypeReference, this);
|
|
219
|
+
return $.utils.getStruct(0, SerializedTypeReference$1, this);
|
|
212
220
|
}
|
|
213
221
|
_hasContainer() {
|
|
214
222
|
return !$.utils.isNull($.utils.getPointer(0, this));
|
|
215
223
|
}
|
|
216
224
|
_initContainer() {
|
|
217
|
-
return $.utils.initStructAt(0, SerializedTypeReference, this);
|
|
225
|
+
return $.utils.initStructAt(0, SerializedTypeReference$1, this);
|
|
218
226
|
}
|
|
219
227
|
set container(value) {
|
|
220
228
|
$.utils.copyFrom(value, $.utils.getPointer(0, this));
|
|
@@ -226,13 +234,13 @@ var IndexAccessOrigin = class extends $.Struct {
|
|
|
226
234
|
return $.utils.disown(this.index);
|
|
227
235
|
}
|
|
228
236
|
get index() {
|
|
229
|
-
return $.utils.getStruct(1, SerializedTypeReference, this);
|
|
237
|
+
return $.utils.getStruct(1, SerializedTypeReference$1, this);
|
|
230
238
|
}
|
|
231
239
|
_hasIndex() {
|
|
232
240
|
return !$.utils.isNull($.utils.getPointer(1, this));
|
|
233
241
|
}
|
|
234
242
|
_initIndex() {
|
|
235
|
-
return $.utils.initStructAt(1, SerializedTypeReference, this);
|
|
243
|
+
return $.utils.initStructAt(1, SerializedTypeReference$1, this);
|
|
236
244
|
}
|
|
237
245
|
set index(value) {
|
|
238
246
|
$.utils.copyFrom(value, $.utils.getPointer(1, this));
|
|
@@ -339,7 +347,7 @@ var EntityOptions = class EntityOptions extends $.Struct {
|
|
|
339
347
|
return "EntityOptions_" + super.toString();
|
|
340
348
|
}
|
|
341
349
|
};
|
|
342
|
-
var SerializedTypeObjectLiteral = class SerializedTypeObjectLiteral extends $.Struct {
|
|
350
|
+
var SerializedTypeObjectLiteral$1 = class SerializedTypeObjectLiteral$1 extends $.Struct {
|
|
343
351
|
static _capnp = {
|
|
344
352
|
displayName: "SerializedTypeObjectLiteral",
|
|
345
353
|
id: "8b56235ad9bcb2b1",
|
|
@@ -361,13 +369,13 @@ var SerializedTypeObjectLiteral = class SerializedTypeObjectLiteral extends $.St
|
|
|
361
369
|
return $.utils.disown(this.typeArguments);
|
|
362
370
|
}
|
|
363
371
|
get typeArguments() {
|
|
364
|
-
return $.utils.getList(1, SerializedTypeObjectLiteral._TypeArguments, this);
|
|
372
|
+
return $.utils.getList(1, SerializedTypeObjectLiteral$1._TypeArguments, this);
|
|
365
373
|
}
|
|
366
374
|
_hasTypeArguments() {
|
|
367
375
|
return !$.utils.isNull($.utils.getPointer(1, this));
|
|
368
376
|
}
|
|
369
377
|
_initTypeArguments(length) {
|
|
370
|
-
return $.utils.initList(1, SerializedTypeObjectLiteral._TypeArguments, length, this);
|
|
378
|
+
return $.utils.initList(1, SerializedTypeObjectLiteral$1._TypeArguments, length, this);
|
|
371
379
|
}
|
|
372
380
|
set typeArguments(value) {
|
|
373
381
|
$.utils.copyFrom(value, $.utils.getPointer(1, this));
|
|
@@ -397,13 +405,13 @@ var SerializedTypeObjectLiteral = class SerializedTypeObjectLiteral extends $.St
|
|
|
397
405
|
return $.utils.disown(this.decorators);
|
|
398
406
|
}
|
|
399
407
|
get decorators() {
|
|
400
|
-
return $.utils.getList(3, SerializedTypeObjectLiteral._Decorators, this);
|
|
408
|
+
return $.utils.getList(3, SerializedTypeObjectLiteral$1._Decorators, this);
|
|
401
409
|
}
|
|
402
410
|
_hasDecorators() {
|
|
403
411
|
return !$.utils.isNull($.utils.getPointer(3, this));
|
|
404
412
|
}
|
|
405
413
|
_initDecorators(length) {
|
|
406
|
-
return $.utils.initList(3, SerializedTypeObjectLiteral._Decorators, length, this);
|
|
414
|
+
return $.utils.initList(3, SerializedTypeObjectLiteral$1._Decorators, length, this);
|
|
407
415
|
}
|
|
408
416
|
set decorators(value) {
|
|
409
417
|
$.utils.copyFrom(value, $.utils.getPointer(3, this));
|
|
@@ -421,13 +429,13 @@ var SerializedTypeObjectLiteral = class SerializedTypeObjectLiteral extends $.St
|
|
|
421
429
|
return $.utils.disown(this.types);
|
|
422
430
|
}
|
|
423
431
|
get types() {
|
|
424
|
-
return $.utils.getList(4, SerializedTypeObjectLiteral._Types, this);
|
|
432
|
+
return $.utils.getList(4, SerializedTypeObjectLiteral$1._Types, this);
|
|
425
433
|
}
|
|
426
434
|
_hasTypes() {
|
|
427
435
|
return !$.utils.isNull($.utils.getPointer(4, this));
|
|
428
436
|
}
|
|
429
437
|
_initTypes(length) {
|
|
430
|
-
return $.utils.initList(4, SerializedTypeObjectLiteral._Types, length, this);
|
|
438
|
+
return $.utils.initList(4, SerializedTypeObjectLiteral$1._Types, length, this);
|
|
431
439
|
}
|
|
432
440
|
set types(value) {
|
|
433
441
|
$.utils.copyFrom(value, $.utils.getPointer(4, this));
|
|
@@ -439,13 +447,13 @@ var SerializedTypeObjectLiteral = class SerializedTypeObjectLiteral extends $.St
|
|
|
439
447
|
return $.utils.disown(this.tags);
|
|
440
448
|
}
|
|
441
449
|
get tags() {
|
|
442
|
-
return $.utils.getStruct(5, TagsReflection, this);
|
|
450
|
+
return $.utils.getStruct(5, TagsReflection$1, this);
|
|
443
451
|
}
|
|
444
452
|
_hasTags() {
|
|
445
453
|
return !$.utils.isNull($.utils.getPointer(5, this));
|
|
446
454
|
}
|
|
447
455
|
_initTags() {
|
|
448
|
-
return $.utils.initStructAt(5, TagsReflection, this);
|
|
456
|
+
return $.utils.initStructAt(5, TagsReflection$1, this);
|
|
449
457
|
}
|
|
450
458
|
set tags(value) {
|
|
451
459
|
$.utils.copyFrom(value, $.utils.getPointer(5, this));
|
|
@@ -454,7 +462,7 @@ var SerializedTypeObjectLiteral = class SerializedTypeObjectLiteral extends $.St
|
|
|
454
462
|
return "SerializedTypeObjectLiteral_" + super.toString();
|
|
455
463
|
}
|
|
456
464
|
};
|
|
457
|
-
var SerializedTypeClassType = class SerializedTypeClassType extends $.Struct {
|
|
465
|
+
var SerializedTypeClassType$1 = class SerializedTypeClassType$1 extends $.Struct {
|
|
458
466
|
static _capnp = {
|
|
459
467
|
displayName: "SerializedTypeClassType",
|
|
460
468
|
id: "9855392bf9c48b25",
|
|
@@ -478,13 +486,13 @@ var SerializedTypeClassType = class SerializedTypeClassType extends $.Struct {
|
|
|
478
486
|
return $.utils.disown(this.typeArguments);
|
|
479
487
|
}
|
|
480
488
|
get typeArguments() {
|
|
481
|
-
return $.utils.getList(1, SerializedTypeClassType._TypeArguments, this);
|
|
489
|
+
return $.utils.getList(1, SerializedTypeClassType$1._TypeArguments, this);
|
|
482
490
|
}
|
|
483
491
|
_hasTypeArguments() {
|
|
484
492
|
return !$.utils.isNull($.utils.getPointer(1, this));
|
|
485
493
|
}
|
|
486
494
|
_initTypeArguments(length) {
|
|
487
|
-
return $.utils.initList(1, SerializedTypeClassType._TypeArguments, length, this);
|
|
495
|
+
return $.utils.initList(1, SerializedTypeClassType$1._TypeArguments, length, this);
|
|
488
496
|
}
|
|
489
497
|
set typeArguments(value) {
|
|
490
498
|
$.utils.copyFrom(value, $.utils.getPointer(1, this));
|
|
@@ -514,13 +522,13 @@ var SerializedTypeClassType = class SerializedTypeClassType extends $.Struct {
|
|
|
514
522
|
return $.utils.disown(this.decorators);
|
|
515
523
|
}
|
|
516
524
|
get decorators() {
|
|
517
|
-
return $.utils.getList(3, SerializedTypeClassType._Decorators, this);
|
|
525
|
+
return $.utils.getList(3, SerializedTypeClassType$1._Decorators, this);
|
|
518
526
|
}
|
|
519
527
|
_hasDecorators() {
|
|
520
528
|
return !$.utils.isNull($.utils.getPointer(3, this));
|
|
521
529
|
}
|
|
522
530
|
_initDecorators(length) {
|
|
523
|
-
return $.utils.initList(3, SerializedTypeClassType._Decorators, length, this);
|
|
531
|
+
return $.utils.initList(3, SerializedTypeClassType$1._Decorators, length, this);
|
|
524
532
|
}
|
|
525
533
|
set decorators(value) {
|
|
526
534
|
$.utils.copyFrom(value, $.utils.getPointer(3, this));
|
|
@@ -556,13 +564,13 @@ var SerializedTypeClassType = class SerializedTypeClassType extends $.Struct {
|
|
|
556
564
|
return $.utils.disown(this.extendsArguments);
|
|
557
565
|
}
|
|
558
566
|
get extendsArguments() {
|
|
559
|
-
return $.utils.getList(6, SerializedTypeClassType._ExtendsArguments, this);
|
|
567
|
+
return $.utils.getList(6, SerializedTypeClassType$1._ExtendsArguments, this);
|
|
560
568
|
}
|
|
561
569
|
_hasExtendsArguments() {
|
|
562
570
|
return !$.utils.isNull($.utils.getPointer(6, this));
|
|
563
571
|
}
|
|
564
572
|
_initExtendsArguments(length) {
|
|
565
|
-
return $.utils.initList(6, SerializedTypeClassType._ExtendsArguments, length, this);
|
|
573
|
+
return $.utils.initList(6, SerializedTypeClassType$1._ExtendsArguments, length, this);
|
|
566
574
|
}
|
|
567
575
|
set extendsArguments(value) {
|
|
568
576
|
$.utils.copyFrom(value, $.utils.getPointer(6, this));
|
|
@@ -574,13 +582,13 @@ var SerializedTypeClassType = class SerializedTypeClassType extends $.Struct {
|
|
|
574
582
|
return $.utils.disown(this.arguments);
|
|
575
583
|
}
|
|
576
584
|
get arguments() {
|
|
577
|
-
return $.utils.getList(7, SerializedTypeClassType._Arguments, this);
|
|
585
|
+
return $.utils.getList(7, SerializedTypeClassType$1._Arguments, this);
|
|
578
586
|
}
|
|
579
587
|
_hasArguments() {
|
|
580
588
|
return !$.utils.isNull($.utils.getPointer(7, this));
|
|
581
589
|
}
|
|
582
590
|
_initArguments(length) {
|
|
583
|
-
return $.utils.initList(7, SerializedTypeClassType._Arguments, length, this);
|
|
591
|
+
return $.utils.initList(7, SerializedTypeClassType$1._Arguments, length, this);
|
|
584
592
|
}
|
|
585
593
|
set arguments(value) {
|
|
586
594
|
$.utils.copyFrom(value, $.utils.getPointer(7, this));
|
|
@@ -592,13 +600,13 @@ var SerializedTypeClassType = class SerializedTypeClassType extends $.Struct {
|
|
|
592
600
|
return $.utils.disown(this.superClass);
|
|
593
601
|
}
|
|
594
602
|
get superClass() {
|
|
595
|
-
return $.utils.getStruct(8, SerializedTypeReference, this);
|
|
603
|
+
return $.utils.getStruct(8, SerializedTypeReference$1, this);
|
|
596
604
|
}
|
|
597
605
|
_hasSuperClass() {
|
|
598
606
|
return !$.utils.isNull($.utils.getPointer(8, this));
|
|
599
607
|
}
|
|
600
608
|
_initSuperClass() {
|
|
601
|
-
return $.utils.initStructAt(8, SerializedTypeReference, this);
|
|
609
|
+
return $.utils.initStructAt(8, SerializedTypeReference$1, this);
|
|
602
610
|
}
|
|
603
611
|
set superClass(value) {
|
|
604
612
|
$.utils.copyFrom(value, $.utils.getPointer(8, this));
|
|
@@ -610,13 +618,13 @@ var SerializedTypeClassType = class SerializedTypeClassType extends $.Struct {
|
|
|
610
618
|
return $.utils.disown(this.types);
|
|
611
619
|
}
|
|
612
620
|
get types() {
|
|
613
|
-
return $.utils.getList(9, SerializedTypeClassType._Types, this);
|
|
621
|
+
return $.utils.getList(9, SerializedTypeClassType$1._Types, this);
|
|
614
622
|
}
|
|
615
623
|
_hasTypes() {
|
|
616
624
|
return !$.utils.isNull($.utils.getPointer(9, this));
|
|
617
625
|
}
|
|
618
626
|
_initTypes(length) {
|
|
619
|
-
return $.utils.initList(9, SerializedTypeClassType._Types, length, this);
|
|
627
|
+
return $.utils.initList(9, SerializedTypeClassType$1._Types, length, this);
|
|
620
628
|
}
|
|
621
629
|
set types(value) {
|
|
622
630
|
$.utils.copyFrom(value, $.utils.getPointer(9, this));
|
|
@@ -628,13 +636,13 @@ var SerializedTypeClassType = class SerializedTypeClassType extends $.Struct {
|
|
|
628
636
|
return $.utils.disown(this.tags);
|
|
629
637
|
}
|
|
630
638
|
get tags() {
|
|
631
|
-
return $.utils.getStruct(10, TagsReflection, this);
|
|
639
|
+
return $.utils.getStruct(10, TagsReflection$1, this);
|
|
632
640
|
}
|
|
633
641
|
_hasTags() {
|
|
634
642
|
return !$.utils.isNull($.utils.getPointer(10, this));
|
|
635
643
|
}
|
|
636
644
|
_initTags() {
|
|
637
|
-
return $.utils.initStructAt(10, TagsReflection, this);
|
|
645
|
+
return $.utils.initStructAt(10, TagsReflection$1, this);
|
|
638
646
|
}
|
|
639
647
|
set tags(value) {
|
|
640
648
|
$.utils.copyFrom(value, $.utils.getPointer(10, this));
|
|
@@ -643,7 +651,7 @@ var SerializedTypeClassType = class SerializedTypeClassType extends $.Struct {
|
|
|
643
651
|
return "SerializedTypeClassType_" + super.toString();
|
|
644
652
|
}
|
|
645
653
|
};
|
|
646
|
-
var SerializedTypeParameter = class SerializedTypeParameter extends $.Struct {
|
|
654
|
+
var SerializedTypeParameter$1 = class SerializedTypeParameter$1 extends $.Struct {
|
|
647
655
|
static _capnp = {
|
|
648
656
|
displayName: "SerializedTypeParameter",
|
|
649
657
|
id: "fcbaa08bb97b8b1a",
|
|
@@ -664,13 +672,13 @@ var SerializedTypeParameter = class SerializedTypeParameter extends $.Struct {
|
|
|
664
672
|
return $.utils.disown(this.typeArguments);
|
|
665
673
|
}
|
|
666
674
|
get typeArguments() {
|
|
667
|
-
return $.utils.getList(1, SerializedTypeParameter._TypeArguments, this);
|
|
675
|
+
return $.utils.getList(1, SerializedTypeParameter$1._TypeArguments, this);
|
|
668
676
|
}
|
|
669
677
|
_hasTypeArguments() {
|
|
670
678
|
return !$.utils.isNull($.utils.getPointer(1, this));
|
|
671
679
|
}
|
|
672
680
|
_initTypeArguments(length) {
|
|
673
|
-
return $.utils.initList(1, SerializedTypeParameter._TypeArguments, length, this);
|
|
681
|
+
return $.utils.initList(1, SerializedTypeParameter$1._TypeArguments, length, this);
|
|
674
682
|
}
|
|
675
683
|
set typeArguments(value) {
|
|
676
684
|
$.utils.copyFrom(value, $.utils.getPointer(1, this));
|
|
@@ -700,13 +708,13 @@ var SerializedTypeParameter = class SerializedTypeParameter extends $.Struct {
|
|
|
700
708
|
return $.utils.disown(this.decorators);
|
|
701
709
|
}
|
|
702
710
|
get decorators() {
|
|
703
|
-
return $.utils.getList(3, SerializedTypeParameter._Decorators, this);
|
|
711
|
+
return $.utils.getList(3, SerializedTypeParameter$1._Decorators, this);
|
|
704
712
|
}
|
|
705
713
|
_hasDecorators() {
|
|
706
714
|
return !$.utils.isNull($.utils.getPointer(3, this));
|
|
707
715
|
}
|
|
708
716
|
_initDecorators(length) {
|
|
709
|
-
return $.utils.initList(3, SerializedTypeParameter._Decorators, length, this);
|
|
717
|
+
return $.utils.initList(3, SerializedTypeParameter$1._Decorators, length, this);
|
|
710
718
|
}
|
|
711
719
|
set decorators(value) {
|
|
712
720
|
$.utils.copyFrom(value, $.utils.getPointer(3, this));
|
|
@@ -730,13 +738,13 @@ var SerializedTypeParameter = class SerializedTypeParameter extends $.Struct {
|
|
|
730
738
|
return $.utils.disown(this.type);
|
|
731
739
|
}
|
|
732
740
|
get type() {
|
|
733
|
-
return $.utils.getStruct(5, SerializedTypeReference, this);
|
|
741
|
+
return $.utils.getStruct(5, SerializedTypeReference$1, this);
|
|
734
742
|
}
|
|
735
743
|
_hasType() {
|
|
736
744
|
return !$.utils.isNull($.utils.getPointer(5, this));
|
|
737
745
|
}
|
|
738
746
|
_initType() {
|
|
739
|
-
return $.utils.initStructAt(5, SerializedTypeReference, this);
|
|
747
|
+
return $.utils.initStructAt(5, SerializedTypeReference$1, this);
|
|
740
748
|
}
|
|
741
749
|
set type(value) {
|
|
742
750
|
$.utils.copyFrom(value, $.utils.getPointer(5, this));
|
|
@@ -784,13 +792,13 @@ var SerializedTypeParameter = class SerializedTypeParameter extends $.Struct {
|
|
|
784
792
|
return $.utils.disown(this.tags);
|
|
785
793
|
}
|
|
786
794
|
get tags() {
|
|
787
|
-
return $.utils.getStruct(7, TagsReflection, this);
|
|
795
|
+
return $.utils.getStruct(7, TagsReflection$1, this);
|
|
788
796
|
}
|
|
789
797
|
_hasTags() {
|
|
790
798
|
return !$.utils.isNull($.utils.getPointer(7, this));
|
|
791
799
|
}
|
|
792
800
|
_initTags() {
|
|
793
|
-
return $.utils.initStructAt(7, TagsReflection, this);
|
|
801
|
+
return $.utils.initStructAt(7, TagsReflection$1, this);
|
|
794
802
|
}
|
|
795
803
|
set tags(value) {
|
|
796
804
|
$.utils.copyFrom(value, $.utils.getPointer(7, this));
|
|
@@ -799,7 +807,7 @@ var SerializedTypeParameter = class SerializedTypeParameter extends $.Struct {
|
|
|
799
807
|
return "SerializedTypeParameter_" + super.toString();
|
|
800
808
|
}
|
|
801
809
|
};
|
|
802
|
-
var SerializedTypeMethod = class SerializedTypeMethod extends $.Struct {
|
|
810
|
+
var SerializedTypeMethod$1 = class SerializedTypeMethod$1 extends $.Struct {
|
|
803
811
|
static _capnp = {
|
|
804
812
|
displayName: "SerializedTypeMethod",
|
|
805
813
|
id: "8b5eff6d9ec2fb06",
|
|
@@ -821,13 +829,13 @@ var SerializedTypeMethod = class SerializedTypeMethod extends $.Struct {
|
|
|
821
829
|
return $.utils.disown(this.typeArguments);
|
|
822
830
|
}
|
|
823
831
|
get typeArguments() {
|
|
824
|
-
return $.utils.getList(1, SerializedTypeMethod._TypeArguments, this);
|
|
832
|
+
return $.utils.getList(1, SerializedTypeMethod$1._TypeArguments, this);
|
|
825
833
|
}
|
|
826
834
|
_hasTypeArguments() {
|
|
827
835
|
return !$.utils.isNull($.utils.getPointer(1, this));
|
|
828
836
|
}
|
|
829
837
|
_initTypeArguments(length) {
|
|
830
|
-
return $.utils.initList(1, SerializedTypeMethod._TypeArguments, length, this);
|
|
838
|
+
return $.utils.initList(1, SerializedTypeMethod$1._TypeArguments, length, this);
|
|
831
839
|
}
|
|
832
840
|
set typeArguments(value) {
|
|
833
841
|
$.utils.copyFrom(value, $.utils.getPointer(1, this));
|
|
@@ -857,13 +865,13 @@ var SerializedTypeMethod = class SerializedTypeMethod extends $.Struct {
|
|
|
857
865
|
return $.utils.disown(this.decorators);
|
|
858
866
|
}
|
|
859
867
|
get decorators() {
|
|
860
|
-
return $.utils.getList(3, SerializedTypeMethod._Decorators, this);
|
|
868
|
+
return $.utils.getList(3, SerializedTypeMethod$1._Decorators, this);
|
|
861
869
|
}
|
|
862
870
|
_hasDecorators() {
|
|
863
871
|
return !$.utils.isNull($.utils.getPointer(3, this));
|
|
864
872
|
}
|
|
865
873
|
_initDecorators(length) {
|
|
866
|
-
return $.utils.initList(3, SerializedTypeMethod._Decorators, length, this);
|
|
874
|
+
return $.utils.initList(3, SerializedTypeMethod$1._Decorators, length, this);
|
|
867
875
|
}
|
|
868
876
|
set decorators(value) {
|
|
869
877
|
$.utils.copyFrom(value, $.utils.getPointer(3, this));
|
|
@@ -899,13 +907,13 @@ var SerializedTypeMethod = class SerializedTypeMethod extends $.Struct {
|
|
|
899
907
|
return $.utils.disown(this.tags);
|
|
900
908
|
}
|
|
901
909
|
get tags() {
|
|
902
|
-
return $.utils.getStruct(4, TagsReflection, this);
|
|
910
|
+
return $.utils.getStruct(4, TagsReflection$1, this);
|
|
903
911
|
}
|
|
904
912
|
_hasTags() {
|
|
905
913
|
return !$.utils.isNull($.utils.getPointer(4, this));
|
|
906
914
|
}
|
|
907
915
|
_initTags() {
|
|
908
|
-
return $.utils.initStructAt(4, TagsReflection, this);
|
|
916
|
+
return $.utils.initStructAt(4, TagsReflection$1, this);
|
|
909
917
|
}
|
|
910
918
|
set tags(value) {
|
|
911
919
|
$.utils.copyFrom(value, $.utils.getPointer(4, this));
|
|
@@ -929,13 +937,13 @@ var SerializedTypeMethod = class SerializedTypeMethod extends $.Struct {
|
|
|
929
937
|
return $.utils.disown(this.parameters);
|
|
930
938
|
}
|
|
931
939
|
get parameters() {
|
|
932
|
-
return $.utils.getList(6, SerializedTypeMethod._Parameters, this);
|
|
940
|
+
return $.utils.getList(6, SerializedTypeMethod$1._Parameters, this);
|
|
933
941
|
}
|
|
934
942
|
_hasParameters() {
|
|
935
943
|
return !$.utils.isNull($.utils.getPointer(6, this));
|
|
936
944
|
}
|
|
937
945
|
_initParameters(length) {
|
|
938
|
-
return $.utils.initList(6, SerializedTypeMethod._Parameters, length, this);
|
|
946
|
+
return $.utils.initList(6, SerializedTypeMethod$1._Parameters, length, this);
|
|
939
947
|
}
|
|
940
948
|
set parameters(value) {
|
|
941
949
|
$.utils.copyFrom(value, $.utils.getPointer(6, this));
|
|
@@ -947,13 +955,13 @@ var SerializedTypeMethod = class SerializedTypeMethod extends $.Struct {
|
|
|
947
955
|
return $.utils.disown(this.return);
|
|
948
956
|
}
|
|
949
957
|
get return() {
|
|
950
|
-
return $.utils.getStruct(7, SerializedTypeReference, this);
|
|
958
|
+
return $.utils.getStruct(7, SerializedTypeReference$1, this);
|
|
951
959
|
}
|
|
952
960
|
_hasReturn() {
|
|
953
961
|
return !$.utils.isNull($.utils.getPointer(7, this));
|
|
954
962
|
}
|
|
955
963
|
_initReturn() {
|
|
956
|
-
return $.utils.initStructAt(7, SerializedTypeReference, this);
|
|
964
|
+
return $.utils.initStructAt(7, SerializedTypeReference$1, this);
|
|
957
965
|
}
|
|
958
966
|
set return(value) {
|
|
959
967
|
$.utils.copyFrom(value, $.utils.getPointer(7, this));
|
|
@@ -962,7 +970,7 @@ var SerializedTypeMethod = class SerializedTypeMethod extends $.Struct {
|
|
|
962
970
|
return "SerializedTypeMethod_" + super.toString();
|
|
963
971
|
}
|
|
964
972
|
};
|
|
965
|
-
var SerializedTypeProperty = class SerializedTypeProperty extends $.Struct {
|
|
973
|
+
var SerializedTypeProperty$1 = class SerializedTypeProperty$1 extends $.Struct {
|
|
966
974
|
static _capnp = {
|
|
967
975
|
displayName: "SerializedTypeProperty",
|
|
968
976
|
id: "91d9dbea2037f78b",
|
|
@@ -983,13 +991,13 @@ var SerializedTypeProperty = class SerializedTypeProperty extends $.Struct {
|
|
|
983
991
|
return $.utils.disown(this.typeArguments);
|
|
984
992
|
}
|
|
985
993
|
get typeArguments() {
|
|
986
|
-
return $.utils.getList(1, SerializedTypeProperty._TypeArguments, this);
|
|
994
|
+
return $.utils.getList(1, SerializedTypeProperty$1._TypeArguments, this);
|
|
987
995
|
}
|
|
988
996
|
_hasTypeArguments() {
|
|
989
997
|
return !$.utils.isNull($.utils.getPointer(1, this));
|
|
990
998
|
}
|
|
991
999
|
_initTypeArguments(length) {
|
|
992
|
-
return $.utils.initList(1, SerializedTypeProperty._TypeArguments, length, this);
|
|
1000
|
+
return $.utils.initList(1, SerializedTypeProperty$1._TypeArguments, length, this);
|
|
993
1001
|
}
|
|
994
1002
|
set typeArguments(value) {
|
|
995
1003
|
$.utils.copyFrom(value, $.utils.getPointer(1, this));
|
|
@@ -1019,13 +1027,13 @@ var SerializedTypeProperty = class SerializedTypeProperty extends $.Struct {
|
|
|
1019
1027
|
return $.utils.disown(this.decorators);
|
|
1020
1028
|
}
|
|
1021
1029
|
get decorators() {
|
|
1022
|
-
return $.utils.getList(3, SerializedTypeProperty._Decorators, this);
|
|
1030
|
+
return $.utils.getList(3, SerializedTypeProperty$1._Decorators, this);
|
|
1023
1031
|
}
|
|
1024
1032
|
_hasDecorators() {
|
|
1025
1033
|
return !$.utils.isNull($.utils.getPointer(3, this));
|
|
1026
1034
|
}
|
|
1027
1035
|
_initDecorators(length) {
|
|
1028
|
-
return $.utils.initList(3, SerializedTypeProperty._Decorators, length, this);
|
|
1036
|
+
return $.utils.initList(3, SerializedTypeProperty$1._Decorators, length, this);
|
|
1029
1037
|
}
|
|
1030
1038
|
set decorators(value) {
|
|
1031
1039
|
$.utils.copyFrom(value, $.utils.getPointer(3, this));
|
|
@@ -1061,13 +1069,13 @@ var SerializedTypeProperty = class SerializedTypeProperty extends $.Struct {
|
|
|
1061
1069
|
return $.utils.disown(this.tags);
|
|
1062
1070
|
}
|
|
1063
1071
|
get tags() {
|
|
1064
|
-
return $.utils.getStruct(4, TagsReflection, this);
|
|
1072
|
+
return $.utils.getStruct(4, TagsReflection$1, this);
|
|
1065
1073
|
}
|
|
1066
1074
|
_hasTags() {
|
|
1067
1075
|
return !$.utils.isNull($.utils.getPointer(4, this));
|
|
1068
1076
|
}
|
|
1069
1077
|
_initTags() {
|
|
1070
|
-
return $.utils.initStructAt(4, TagsReflection, this);
|
|
1078
|
+
return $.utils.initStructAt(4, TagsReflection$1, this);
|
|
1071
1079
|
}
|
|
1072
1080
|
set tags(value) {
|
|
1073
1081
|
$.utils.copyFrom(value, $.utils.getPointer(4, this));
|
|
@@ -1097,13 +1105,13 @@ var SerializedTypeProperty = class SerializedTypeProperty extends $.Struct {
|
|
|
1097
1105
|
return $.utils.disown(this.type);
|
|
1098
1106
|
}
|
|
1099
1107
|
get type() {
|
|
1100
|
-
return $.utils.getStruct(7, SerializedTypeReference, this);
|
|
1108
|
+
return $.utils.getStruct(7, SerializedTypeReference$1, this);
|
|
1101
1109
|
}
|
|
1102
1110
|
_hasType() {
|
|
1103
1111
|
return !$.utils.isNull($.utils.getPointer(7, this));
|
|
1104
1112
|
}
|
|
1105
1113
|
_initType() {
|
|
1106
|
-
return $.utils.initStructAt(7, SerializedTypeReference, this);
|
|
1114
|
+
return $.utils.initStructAt(7, SerializedTypeReference$1, this);
|
|
1107
1115
|
}
|
|
1108
1116
|
set type(value) {
|
|
1109
1117
|
$.utils.copyFrom(value, $.utils.getPointer(7, this));
|
|
@@ -1130,7 +1138,7 @@ var SerializedTypeProperty = class SerializedTypeProperty extends $.Struct {
|
|
|
1130
1138
|
return "SerializedTypeProperty_" + super.toString();
|
|
1131
1139
|
}
|
|
1132
1140
|
};
|
|
1133
|
-
var SerializedTypeFunction = class SerializedTypeFunction extends $.Struct {
|
|
1141
|
+
var SerializedTypeFunction$1 = class SerializedTypeFunction$1 extends $.Struct {
|
|
1134
1142
|
static _capnp = {
|
|
1135
1143
|
displayName: "SerializedTypeFunction",
|
|
1136
1144
|
id: "9130bccd82dfcfd4",
|
|
@@ -1152,13 +1160,13 @@ var SerializedTypeFunction = class SerializedTypeFunction extends $.Struct {
|
|
|
1152
1160
|
return $.utils.disown(this.typeArguments);
|
|
1153
1161
|
}
|
|
1154
1162
|
get typeArguments() {
|
|
1155
|
-
return $.utils.getList(1, SerializedTypeFunction._TypeArguments, this);
|
|
1163
|
+
return $.utils.getList(1, SerializedTypeFunction$1._TypeArguments, this);
|
|
1156
1164
|
}
|
|
1157
1165
|
_hasTypeArguments() {
|
|
1158
1166
|
return !$.utils.isNull($.utils.getPointer(1, this));
|
|
1159
1167
|
}
|
|
1160
1168
|
_initTypeArguments(length) {
|
|
1161
|
-
return $.utils.initList(1, SerializedTypeFunction._TypeArguments, length, this);
|
|
1169
|
+
return $.utils.initList(1, SerializedTypeFunction$1._TypeArguments, length, this);
|
|
1162
1170
|
}
|
|
1163
1171
|
set typeArguments(value) {
|
|
1164
1172
|
$.utils.copyFrom(value, $.utils.getPointer(1, this));
|
|
@@ -1188,13 +1196,13 @@ var SerializedTypeFunction = class SerializedTypeFunction extends $.Struct {
|
|
|
1188
1196
|
return $.utils.disown(this.decorators);
|
|
1189
1197
|
}
|
|
1190
1198
|
get decorators() {
|
|
1191
|
-
return $.utils.getList(3, SerializedTypeFunction._Decorators, this);
|
|
1199
|
+
return $.utils.getList(3, SerializedTypeFunction$1._Decorators, this);
|
|
1192
1200
|
}
|
|
1193
1201
|
_hasDecorators() {
|
|
1194
1202
|
return !$.utils.isNull($.utils.getPointer(3, this));
|
|
1195
1203
|
}
|
|
1196
1204
|
_initDecorators(length) {
|
|
1197
|
-
return $.utils.initList(3, SerializedTypeFunction._Decorators, length, this);
|
|
1205
|
+
return $.utils.initList(3, SerializedTypeFunction$1._Decorators, length, this);
|
|
1198
1206
|
}
|
|
1199
1207
|
set decorators(value) {
|
|
1200
1208
|
$.utils.copyFrom(value, $.utils.getPointer(3, this));
|
|
@@ -1230,13 +1238,13 @@ var SerializedTypeFunction = class SerializedTypeFunction extends $.Struct {
|
|
|
1230
1238
|
return $.utils.disown(this.tags);
|
|
1231
1239
|
}
|
|
1232
1240
|
get tags() {
|
|
1233
|
-
return $.utils.getStruct(4, TagsReflection, this);
|
|
1241
|
+
return $.utils.getStruct(4, TagsReflection$1, this);
|
|
1234
1242
|
}
|
|
1235
1243
|
_hasTags() {
|
|
1236
1244
|
return !$.utils.isNull($.utils.getPointer(4, this));
|
|
1237
1245
|
}
|
|
1238
1246
|
_initTags() {
|
|
1239
|
-
return $.utils.initStructAt(4, TagsReflection, this);
|
|
1247
|
+
return $.utils.initStructAt(4, TagsReflection$1, this);
|
|
1240
1248
|
}
|
|
1241
1249
|
set tags(value) {
|
|
1242
1250
|
$.utils.copyFrom(value, $.utils.getPointer(4, this));
|
|
@@ -1260,13 +1268,13 @@ var SerializedTypeFunction = class SerializedTypeFunction extends $.Struct {
|
|
|
1260
1268
|
return $.utils.disown(this.parameters);
|
|
1261
1269
|
}
|
|
1262
1270
|
get parameters() {
|
|
1263
|
-
return $.utils.getList(6, SerializedTypeFunction._Parameters, this);
|
|
1271
|
+
return $.utils.getList(6, SerializedTypeFunction$1._Parameters, this);
|
|
1264
1272
|
}
|
|
1265
1273
|
_hasParameters() {
|
|
1266
1274
|
return !$.utils.isNull($.utils.getPointer(6, this));
|
|
1267
1275
|
}
|
|
1268
1276
|
_initParameters(length) {
|
|
1269
|
-
return $.utils.initList(6, SerializedTypeFunction._Parameters, length, this);
|
|
1277
|
+
return $.utils.initList(6, SerializedTypeFunction$1._Parameters, length, this);
|
|
1270
1278
|
}
|
|
1271
1279
|
set parameters(value) {
|
|
1272
1280
|
$.utils.copyFrom(value, $.utils.getPointer(6, this));
|
|
@@ -1278,13 +1286,13 @@ var SerializedTypeFunction = class SerializedTypeFunction extends $.Struct {
|
|
|
1278
1286
|
return $.utils.disown(this.return);
|
|
1279
1287
|
}
|
|
1280
1288
|
get return() {
|
|
1281
|
-
return $.utils.getStruct(7, SerializedTypeReference, this);
|
|
1289
|
+
return $.utils.getStruct(7, SerializedTypeReference$1, this);
|
|
1282
1290
|
}
|
|
1283
1291
|
_hasReturn() {
|
|
1284
1292
|
return !$.utils.isNull($.utils.getPointer(7, this));
|
|
1285
1293
|
}
|
|
1286
1294
|
_initReturn() {
|
|
1287
|
-
return $.utils.initStructAt(7, SerializedTypeReference, this);
|
|
1295
|
+
return $.utils.initStructAt(7, SerializedTypeReference$1, this);
|
|
1288
1296
|
}
|
|
1289
1297
|
set return(value) {
|
|
1290
1298
|
$.utils.copyFrom(value, $.utils.getPointer(7, this));
|
|
@@ -1399,7 +1407,7 @@ var SerializedTypeEnumEntry = class extends $.Struct {
|
|
|
1399
1407
|
return "SerializedTypeEnumEntry_" + super.toString();
|
|
1400
1408
|
}
|
|
1401
1409
|
};
|
|
1402
|
-
var SerializedTypeEnum = class SerializedTypeEnum extends $.Struct {
|
|
1410
|
+
var SerializedTypeEnum$1 = class SerializedTypeEnum$1 extends $.Struct {
|
|
1403
1411
|
static _capnp = {
|
|
1404
1412
|
displayName: "SerializedTypeEnum",
|
|
1405
1413
|
id: "d7d36f0ae79e3841",
|
|
@@ -1421,13 +1429,13 @@ var SerializedTypeEnum = class SerializedTypeEnum extends $.Struct {
|
|
|
1421
1429
|
return $.utils.disown(this.typeArguments);
|
|
1422
1430
|
}
|
|
1423
1431
|
get typeArguments() {
|
|
1424
|
-
return $.utils.getList(1, SerializedTypeEnum._TypeArguments, this);
|
|
1432
|
+
return $.utils.getList(1, SerializedTypeEnum$1._TypeArguments, this);
|
|
1425
1433
|
}
|
|
1426
1434
|
_hasTypeArguments() {
|
|
1427
1435
|
return !$.utils.isNull($.utils.getPointer(1, this));
|
|
1428
1436
|
}
|
|
1429
1437
|
_initTypeArguments(length) {
|
|
1430
|
-
return $.utils.initList(1, SerializedTypeEnum._TypeArguments, length, this);
|
|
1438
|
+
return $.utils.initList(1, SerializedTypeEnum$1._TypeArguments, length, this);
|
|
1431
1439
|
}
|
|
1432
1440
|
set typeArguments(value) {
|
|
1433
1441
|
$.utils.copyFrom(value, $.utils.getPointer(1, this));
|
|
@@ -1457,13 +1465,13 @@ var SerializedTypeEnum = class SerializedTypeEnum extends $.Struct {
|
|
|
1457
1465
|
return $.utils.disown(this.decorators);
|
|
1458
1466
|
}
|
|
1459
1467
|
get decorators() {
|
|
1460
|
-
return $.utils.getList(3, SerializedTypeEnum._Decorators, this);
|
|
1468
|
+
return $.utils.getList(3, SerializedTypeEnum$1._Decorators, this);
|
|
1461
1469
|
}
|
|
1462
1470
|
_hasDecorators() {
|
|
1463
1471
|
return !$.utils.isNull($.utils.getPointer(3, this));
|
|
1464
1472
|
}
|
|
1465
1473
|
_initDecorators(length) {
|
|
1466
|
-
return $.utils.initList(3, SerializedTypeEnum._Decorators, length, this);
|
|
1474
|
+
return $.utils.initList(3, SerializedTypeEnum$1._Decorators, length, this);
|
|
1467
1475
|
}
|
|
1468
1476
|
set decorators(value) {
|
|
1469
1477
|
$.utils.copyFrom(value, $.utils.getPointer(3, this));
|
|
@@ -1481,13 +1489,13 @@ var SerializedTypeEnum = class SerializedTypeEnum extends $.Struct {
|
|
|
1481
1489
|
return $.utils.disown(this.enumEntries);
|
|
1482
1490
|
}
|
|
1483
1491
|
get enumEntries() {
|
|
1484
|
-
return $.utils.getList(4, SerializedTypeEnum._EnumEntries, this);
|
|
1492
|
+
return $.utils.getList(4, SerializedTypeEnum$1._EnumEntries, this);
|
|
1485
1493
|
}
|
|
1486
1494
|
_hasEnumEntries() {
|
|
1487
1495
|
return !$.utils.isNull($.utils.getPointer(4, this));
|
|
1488
1496
|
}
|
|
1489
1497
|
_initEnumEntries(length) {
|
|
1490
|
-
return $.utils.initList(4, SerializedTypeEnum._EnumEntries, length, this);
|
|
1498
|
+
return $.utils.initList(4, SerializedTypeEnum$1._EnumEntries, length, this);
|
|
1491
1499
|
}
|
|
1492
1500
|
set enumEntries(value) {
|
|
1493
1501
|
$.utils.copyFrom(value, $.utils.getPointer(4, this));
|
|
@@ -1517,13 +1525,13 @@ var SerializedTypeEnum = class SerializedTypeEnum extends $.Struct {
|
|
|
1517
1525
|
return $.utils.disown(this.indexType);
|
|
1518
1526
|
}
|
|
1519
1527
|
get indexType() {
|
|
1520
|
-
return $.utils.getStruct(6, SerializedTypeReference, this);
|
|
1528
|
+
return $.utils.getStruct(6, SerializedTypeReference$1, this);
|
|
1521
1529
|
}
|
|
1522
1530
|
_hasIndexType() {
|
|
1523
1531
|
return !$.utils.isNull($.utils.getPointer(6, this));
|
|
1524
1532
|
}
|
|
1525
1533
|
_initIndexType() {
|
|
1526
|
-
return $.utils.initStructAt(6, SerializedTypeReference, this);
|
|
1534
|
+
return $.utils.initStructAt(6, SerializedTypeReference$1, this);
|
|
1527
1535
|
}
|
|
1528
1536
|
set indexType(value) {
|
|
1529
1537
|
$.utils.copyFrom(value, $.utils.getPointer(6, this));
|
|
@@ -1535,13 +1543,13 @@ var SerializedTypeEnum = class SerializedTypeEnum extends $.Struct {
|
|
|
1535
1543
|
return $.utils.disown(this.tags);
|
|
1536
1544
|
}
|
|
1537
1545
|
get tags() {
|
|
1538
|
-
return $.utils.getStruct(7, TagsReflection, this);
|
|
1546
|
+
return $.utils.getStruct(7, TagsReflection$1, this);
|
|
1539
1547
|
}
|
|
1540
1548
|
_hasTags() {
|
|
1541
1549
|
return !$.utils.isNull($.utils.getPointer(7, this));
|
|
1542
1550
|
}
|
|
1543
1551
|
_initTags() {
|
|
1544
|
-
return $.utils.initStructAt(7, TagsReflection, this);
|
|
1552
|
+
return $.utils.initStructAt(7, TagsReflection$1, this);
|
|
1545
1553
|
}
|
|
1546
1554
|
set tags(value) {
|
|
1547
1555
|
$.utils.copyFrom(value, $.utils.getPointer(7, this));
|
|
@@ -1550,7 +1558,7 @@ var SerializedTypeEnum = class SerializedTypeEnum extends $.Struct {
|
|
|
1550
1558
|
return "SerializedTypeEnum_" + super.toString();
|
|
1551
1559
|
}
|
|
1552
1560
|
};
|
|
1553
|
-
var SerializedTypeUnion = class SerializedTypeUnion extends $.Struct {
|
|
1561
|
+
var SerializedTypeUnion$1 = class SerializedTypeUnion$1 extends $.Struct {
|
|
1554
1562
|
static _capnp = {
|
|
1555
1563
|
displayName: "SerializedTypeUnion",
|
|
1556
1564
|
id: "a9ae4c95e41ff4ab",
|
|
@@ -1572,13 +1580,13 @@ var SerializedTypeUnion = class SerializedTypeUnion extends $.Struct {
|
|
|
1572
1580
|
return $.utils.disown(this.typeArguments);
|
|
1573
1581
|
}
|
|
1574
1582
|
get typeArguments() {
|
|
1575
|
-
return $.utils.getList(1, SerializedTypeUnion._TypeArguments, this);
|
|
1583
|
+
return $.utils.getList(1, SerializedTypeUnion$1._TypeArguments, this);
|
|
1576
1584
|
}
|
|
1577
1585
|
_hasTypeArguments() {
|
|
1578
1586
|
return !$.utils.isNull($.utils.getPointer(1, this));
|
|
1579
1587
|
}
|
|
1580
1588
|
_initTypeArguments(length) {
|
|
1581
|
-
return $.utils.initList(1, SerializedTypeUnion._TypeArguments, length, this);
|
|
1589
|
+
return $.utils.initList(1, SerializedTypeUnion$1._TypeArguments, length, this);
|
|
1582
1590
|
}
|
|
1583
1591
|
set typeArguments(value) {
|
|
1584
1592
|
$.utils.copyFrom(value, $.utils.getPointer(1, this));
|
|
@@ -1608,13 +1616,13 @@ var SerializedTypeUnion = class SerializedTypeUnion extends $.Struct {
|
|
|
1608
1616
|
return $.utils.disown(this.decorators);
|
|
1609
1617
|
}
|
|
1610
1618
|
get decorators() {
|
|
1611
|
-
return $.utils.getList(3, SerializedTypeUnion._Decorators, this);
|
|
1619
|
+
return $.utils.getList(3, SerializedTypeUnion$1._Decorators, this);
|
|
1612
1620
|
}
|
|
1613
1621
|
_hasDecorators() {
|
|
1614
1622
|
return !$.utils.isNull($.utils.getPointer(3, this));
|
|
1615
1623
|
}
|
|
1616
1624
|
_initDecorators(length) {
|
|
1617
|
-
return $.utils.initList(3, SerializedTypeUnion._Decorators, length, this);
|
|
1625
|
+
return $.utils.initList(3, SerializedTypeUnion$1._Decorators, length, this);
|
|
1618
1626
|
}
|
|
1619
1627
|
set decorators(value) {
|
|
1620
1628
|
$.utils.copyFrom(value, $.utils.getPointer(3, this));
|
|
@@ -1632,13 +1640,13 @@ var SerializedTypeUnion = class SerializedTypeUnion extends $.Struct {
|
|
|
1632
1640
|
return $.utils.disown(this.types);
|
|
1633
1641
|
}
|
|
1634
1642
|
get types() {
|
|
1635
|
-
return $.utils.getList(4, SerializedTypeUnion._Types, this);
|
|
1643
|
+
return $.utils.getList(4, SerializedTypeUnion$1._Types, this);
|
|
1636
1644
|
}
|
|
1637
1645
|
_hasTypes() {
|
|
1638
1646
|
return !$.utils.isNull($.utils.getPointer(4, this));
|
|
1639
1647
|
}
|
|
1640
1648
|
_initTypes(length) {
|
|
1641
|
-
return $.utils.initList(4, SerializedTypeUnion._Types, length, this);
|
|
1649
|
+
return $.utils.initList(4, SerializedTypeUnion$1._Types, length, this);
|
|
1642
1650
|
}
|
|
1643
1651
|
set types(value) {
|
|
1644
1652
|
$.utils.copyFrom(value, $.utils.getPointer(4, this));
|
|
@@ -1647,7 +1655,7 @@ var SerializedTypeUnion = class SerializedTypeUnion extends $.Struct {
|
|
|
1647
1655
|
return "SerializedTypeUnion_" + super.toString();
|
|
1648
1656
|
}
|
|
1649
1657
|
};
|
|
1650
|
-
var SerializedTypeIntersection = class SerializedTypeIntersection extends $.Struct {
|
|
1658
|
+
var SerializedTypeIntersection$1 = class SerializedTypeIntersection$1 extends $.Struct {
|
|
1651
1659
|
static _capnp = {
|
|
1652
1660
|
displayName: "SerializedTypeIntersection",
|
|
1653
1661
|
id: "9ae42bd17511c09b",
|
|
@@ -1669,13 +1677,13 @@ var SerializedTypeIntersection = class SerializedTypeIntersection extends $.Stru
|
|
|
1669
1677
|
return $.utils.disown(this.typeArguments);
|
|
1670
1678
|
}
|
|
1671
1679
|
get typeArguments() {
|
|
1672
|
-
return $.utils.getList(1, SerializedTypeIntersection._TypeArguments, this);
|
|
1680
|
+
return $.utils.getList(1, SerializedTypeIntersection$1._TypeArguments, this);
|
|
1673
1681
|
}
|
|
1674
1682
|
_hasTypeArguments() {
|
|
1675
1683
|
return !$.utils.isNull($.utils.getPointer(1, this));
|
|
1676
1684
|
}
|
|
1677
1685
|
_initTypeArguments(length) {
|
|
1678
|
-
return $.utils.initList(1, SerializedTypeIntersection._TypeArguments, length, this);
|
|
1686
|
+
return $.utils.initList(1, SerializedTypeIntersection$1._TypeArguments, length, this);
|
|
1679
1687
|
}
|
|
1680
1688
|
set typeArguments(value) {
|
|
1681
1689
|
$.utils.copyFrom(value, $.utils.getPointer(1, this));
|
|
@@ -1705,13 +1713,13 @@ var SerializedTypeIntersection = class SerializedTypeIntersection extends $.Stru
|
|
|
1705
1713
|
return $.utils.disown(this.decorators);
|
|
1706
1714
|
}
|
|
1707
1715
|
get decorators() {
|
|
1708
|
-
return $.utils.getList(3, SerializedTypeIntersection._Decorators, this);
|
|
1716
|
+
return $.utils.getList(3, SerializedTypeIntersection$1._Decorators, this);
|
|
1709
1717
|
}
|
|
1710
1718
|
_hasDecorators() {
|
|
1711
1719
|
return !$.utils.isNull($.utils.getPointer(3, this));
|
|
1712
1720
|
}
|
|
1713
1721
|
_initDecorators(length) {
|
|
1714
|
-
return $.utils.initList(3, SerializedTypeIntersection._Decorators, length, this);
|
|
1722
|
+
return $.utils.initList(3, SerializedTypeIntersection$1._Decorators, length, this);
|
|
1715
1723
|
}
|
|
1716
1724
|
set decorators(value) {
|
|
1717
1725
|
$.utils.copyFrom(value, $.utils.getPointer(3, this));
|
|
@@ -1729,13 +1737,13 @@ var SerializedTypeIntersection = class SerializedTypeIntersection extends $.Stru
|
|
|
1729
1737
|
return $.utils.disown(this.types);
|
|
1730
1738
|
}
|
|
1731
1739
|
get types() {
|
|
1732
|
-
return $.utils.getList(4, SerializedTypeIntersection._Types, this);
|
|
1740
|
+
return $.utils.getList(4, SerializedTypeIntersection$1._Types, this);
|
|
1733
1741
|
}
|
|
1734
1742
|
_hasTypes() {
|
|
1735
1743
|
return !$.utils.isNull($.utils.getPointer(4, this));
|
|
1736
1744
|
}
|
|
1737
1745
|
_initTypes(length) {
|
|
1738
|
-
return $.utils.initList(4, SerializedTypeIntersection._Types, length, this);
|
|
1746
|
+
return $.utils.initList(4, SerializedTypeIntersection$1._Types, length, this);
|
|
1739
1747
|
}
|
|
1740
1748
|
set types(value) {
|
|
1741
1749
|
$.utils.copyFrom(value, $.utils.getPointer(4, this));
|
|
@@ -1744,7 +1752,7 @@ var SerializedTypeIntersection = class SerializedTypeIntersection extends $.Stru
|
|
|
1744
1752
|
return "SerializedTypeIntersection_" + super.toString();
|
|
1745
1753
|
}
|
|
1746
1754
|
};
|
|
1747
|
-
var SerializedTypeArray = class SerializedTypeArray extends $.Struct {
|
|
1755
|
+
var SerializedTypeArray$1 = class SerializedTypeArray$1 extends $.Struct {
|
|
1748
1756
|
static _capnp = {
|
|
1749
1757
|
displayName: "SerializedTypeArray",
|
|
1750
1758
|
id: "97d1d75240151501",
|
|
@@ -1765,13 +1773,13 @@ var SerializedTypeArray = class SerializedTypeArray extends $.Struct {
|
|
|
1765
1773
|
return $.utils.disown(this.typeArguments);
|
|
1766
1774
|
}
|
|
1767
1775
|
get typeArguments() {
|
|
1768
|
-
return $.utils.getList(1, SerializedTypeArray._TypeArguments, this);
|
|
1776
|
+
return $.utils.getList(1, SerializedTypeArray$1._TypeArguments, this);
|
|
1769
1777
|
}
|
|
1770
1778
|
_hasTypeArguments() {
|
|
1771
1779
|
return !$.utils.isNull($.utils.getPointer(1, this));
|
|
1772
1780
|
}
|
|
1773
1781
|
_initTypeArguments(length) {
|
|
1774
|
-
return $.utils.initList(1, SerializedTypeArray._TypeArguments, length, this);
|
|
1782
|
+
return $.utils.initList(1, SerializedTypeArray$1._TypeArguments, length, this);
|
|
1775
1783
|
}
|
|
1776
1784
|
set typeArguments(value) {
|
|
1777
1785
|
$.utils.copyFrom(value, $.utils.getPointer(1, this));
|
|
@@ -1801,13 +1809,13 @@ var SerializedTypeArray = class SerializedTypeArray extends $.Struct {
|
|
|
1801
1809
|
return $.utils.disown(this.decorators);
|
|
1802
1810
|
}
|
|
1803
1811
|
get decorators() {
|
|
1804
|
-
return $.utils.getList(3, SerializedTypeArray._Decorators, this);
|
|
1812
|
+
return $.utils.getList(3, SerializedTypeArray$1._Decorators, this);
|
|
1805
1813
|
}
|
|
1806
1814
|
_hasDecorators() {
|
|
1807
1815
|
return !$.utils.isNull($.utils.getPointer(3, this));
|
|
1808
1816
|
}
|
|
1809
1817
|
_initDecorators(length) {
|
|
1810
|
-
return $.utils.initList(3, SerializedTypeArray._Decorators, length, this);
|
|
1818
|
+
return $.utils.initList(3, SerializedTypeArray$1._Decorators, length, this);
|
|
1811
1819
|
}
|
|
1812
1820
|
set decorators(value) {
|
|
1813
1821
|
$.utils.copyFrom(value, $.utils.getPointer(3, this));
|
|
@@ -1825,13 +1833,13 @@ var SerializedTypeArray = class SerializedTypeArray extends $.Struct {
|
|
|
1825
1833
|
return $.utils.disown(this.type);
|
|
1826
1834
|
}
|
|
1827
1835
|
get type() {
|
|
1828
|
-
return $.utils.getStruct(4, SerializedTypeReference, this);
|
|
1836
|
+
return $.utils.getStruct(4, SerializedTypeReference$1, this);
|
|
1829
1837
|
}
|
|
1830
1838
|
_hasType() {
|
|
1831
1839
|
return !$.utils.isNull($.utils.getPointer(4, this));
|
|
1832
1840
|
}
|
|
1833
1841
|
_initType() {
|
|
1834
|
-
return $.utils.initStructAt(4, SerializedTypeReference, this);
|
|
1842
|
+
return $.utils.initStructAt(4, SerializedTypeReference$1, this);
|
|
1835
1843
|
}
|
|
1836
1844
|
set type(value) {
|
|
1837
1845
|
$.utils.copyFrom(value, $.utils.getPointer(4, this));
|
|
@@ -1843,13 +1851,13 @@ var SerializedTypeArray = class SerializedTypeArray extends $.Struct {
|
|
|
1843
1851
|
return $.utils.disown(this.tags);
|
|
1844
1852
|
}
|
|
1845
1853
|
get tags() {
|
|
1846
|
-
return $.utils.getStruct(5, TagsReflection, this);
|
|
1854
|
+
return $.utils.getStruct(5, TagsReflection$1, this);
|
|
1847
1855
|
}
|
|
1848
1856
|
_hasTags() {
|
|
1849
1857
|
return !$.utils.isNull($.utils.getPointer(5, this));
|
|
1850
1858
|
}
|
|
1851
1859
|
_initTags() {
|
|
1852
|
-
return $.utils.initStructAt(5, TagsReflection, this);
|
|
1860
|
+
return $.utils.initStructAt(5, TagsReflection$1, this);
|
|
1853
1861
|
}
|
|
1854
1862
|
set tags(value) {
|
|
1855
1863
|
$.utils.copyFrom(value, $.utils.getPointer(5, this));
|
|
@@ -1939,13 +1947,13 @@ var SerializedTypeIndexSignature = class SerializedTypeIndexSignature extends $.
|
|
|
1939
1947
|
return $.utils.disown(this.index);
|
|
1940
1948
|
}
|
|
1941
1949
|
get index() {
|
|
1942
|
-
return $.utils.getStruct(4, SerializedTypeReference, this);
|
|
1950
|
+
return $.utils.getStruct(4, SerializedTypeReference$1, this);
|
|
1943
1951
|
}
|
|
1944
1952
|
_hasIndex() {
|
|
1945
1953
|
return !$.utils.isNull($.utils.getPointer(4, this));
|
|
1946
1954
|
}
|
|
1947
1955
|
_initIndex() {
|
|
1948
|
-
return $.utils.initStructAt(4, SerializedTypeReference, this);
|
|
1956
|
+
return $.utils.initStructAt(4, SerializedTypeReference$1, this);
|
|
1949
1957
|
}
|
|
1950
1958
|
set index(value) {
|
|
1951
1959
|
$.utils.copyFrom(value, $.utils.getPointer(4, this));
|
|
@@ -1957,13 +1965,13 @@ var SerializedTypeIndexSignature = class SerializedTypeIndexSignature extends $.
|
|
|
1957
1965
|
return $.utils.disown(this.type);
|
|
1958
1966
|
}
|
|
1959
1967
|
get type() {
|
|
1960
|
-
return $.utils.getStruct(5, SerializedTypeReference, this);
|
|
1968
|
+
return $.utils.getStruct(5, SerializedTypeReference$1, this);
|
|
1961
1969
|
}
|
|
1962
1970
|
_hasType() {
|
|
1963
1971
|
return !$.utils.isNull($.utils.getPointer(5, this));
|
|
1964
1972
|
}
|
|
1965
1973
|
_initType() {
|
|
1966
|
-
return $.utils.initStructAt(5, SerializedTypeReference, this);
|
|
1974
|
+
return $.utils.initStructAt(5, SerializedTypeReference$1, this);
|
|
1967
1975
|
}
|
|
1968
1976
|
set type(value) {
|
|
1969
1977
|
$.utils.copyFrom(value, $.utils.getPointer(5, this));
|
|
@@ -1972,7 +1980,7 @@ var SerializedTypeIndexSignature = class SerializedTypeIndexSignature extends $.
|
|
|
1972
1980
|
return "SerializedTypeIndexSignature_" + super.toString();
|
|
1973
1981
|
}
|
|
1974
1982
|
};
|
|
1975
|
-
var SerializedTypePropertySignature = class SerializedTypePropertySignature extends $.Struct {
|
|
1983
|
+
var SerializedTypePropertySignature$1 = class SerializedTypePropertySignature$1 extends $.Struct {
|
|
1976
1984
|
static _capnp = {
|
|
1977
1985
|
displayName: "SerializedTypePropertySignature",
|
|
1978
1986
|
id: "9bc1cebd2ca1569a",
|
|
@@ -1993,13 +2001,13 @@ var SerializedTypePropertySignature = class SerializedTypePropertySignature exte
|
|
|
1993
2001
|
return $.utils.disown(this.typeArguments);
|
|
1994
2002
|
}
|
|
1995
2003
|
get typeArguments() {
|
|
1996
|
-
return $.utils.getList(1, SerializedTypePropertySignature._TypeArguments, this);
|
|
2004
|
+
return $.utils.getList(1, SerializedTypePropertySignature$1._TypeArguments, this);
|
|
1997
2005
|
}
|
|
1998
2006
|
_hasTypeArguments() {
|
|
1999
2007
|
return !$.utils.isNull($.utils.getPointer(1, this));
|
|
2000
2008
|
}
|
|
2001
2009
|
_initTypeArguments(length) {
|
|
2002
|
-
return $.utils.initList(1, SerializedTypePropertySignature._TypeArguments, length, this);
|
|
2010
|
+
return $.utils.initList(1, SerializedTypePropertySignature$1._TypeArguments, length, this);
|
|
2003
2011
|
}
|
|
2004
2012
|
set typeArguments(value) {
|
|
2005
2013
|
$.utils.copyFrom(value, $.utils.getPointer(1, this));
|
|
@@ -2029,13 +2037,13 @@ var SerializedTypePropertySignature = class SerializedTypePropertySignature exte
|
|
|
2029
2037
|
return $.utils.disown(this.decorators);
|
|
2030
2038
|
}
|
|
2031
2039
|
get decorators() {
|
|
2032
|
-
return $.utils.getList(3, SerializedTypePropertySignature._Decorators, this);
|
|
2040
|
+
return $.utils.getList(3, SerializedTypePropertySignature$1._Decorators, this);
|
|
2033
2041
|
}
|
|
2034
2042
|
_hasDecorators() {
|
|
2035
2043
|
return !$.utils.isNull($.utils.getPointer(3, this));
|
|
2036
2044
|
}
|
|
2037
2045
|
_initDecorators(length) {
|
|
2038
|
-
return $.utils.initList(3, SerializedTypePropertySignature._Decorators, length, this);
|
|
2046
|
+
return $.utils.initList(3, SerializedTypePropertySignature$1._Decorators, length, this);
|
|
2039
2047
|
}
|
|
2040
2048
|
set decorators(value) {
|
|
2041
2049
|
$.utils.copyFrom(value, $.utils.getPointer(3, this));
|
|
@@ -2095,13 +2103,13 @@ var SerializedTypePropertySignature = class SerializedTypePropertySignature exte
|
|
|
2095
2103
|
return $.utils.disown(this.type);
|
|
2096
2104
|
}
|
|
2097
2105
|
get type() {
|
|
2098
|
-
return $.utils.getStruct(7, SerializedTypeReference, this);
|
|
2106
|
+
return $.utils.getStruct(7, SerializedTypeReference$1, this);
|
|
2099
2107
|
}
|
|
2100
2108
|
_hasType() {
|
|
2101
2109
|
return !$.utils.isNull($.utils.getPointer(7, this));
|
|
2102
2110
|
}
|
|
2103
2111
|
_initType() {
|
|
2104
|
-
return $.utils.initStructAt(7, SerializedTypeReference, this);
|
|
2112
|
+
return $.utils.initStructAt(7, SerializedTypeReference$1, this);
|
|
2105
2113
|
}
|
|
2106
2114
|
set type(value) {
|
|
2107
2115
|
$.utils.copyFrom(value, $.utils.getPointer(7, this));
|
|
@@ -2113,13 +2121,13 @@ var SerializedTypePropertySignature = class SerializedTypePropertySignature exte
|
|
|
2113
2121
|
return $.utils.disown(this.tags);
|
|
2114
2122
|
}
|
|
2115
2123
|
get tags() {
|
|
2116
|
-
return $.utils.getStruct(8, TagsReflection, this);
|
|
2124
|
+
return $.utils.getStruct(8, TagsReflection$1, this);
|
|
2117
2125
|
}
|
|
2118
2126
|
_hasTags() {
|
|
2119
2127
|
return !$.utils.isNull($.utils.getPointer(8, this));
|
|
2120
2128
|
}
|
|
2121
2129
|
_initTags() {
|
|
2122
|
-
return $.utils.initStructAt(8, TagsReflection, this);
|
|
2130
|
+
return $.utils.initStructAt(8, TagsReflection$1, this);
|
|
2123
2131
|
}
|
|
2124
2132
|
set tags(value) {
|
|
2125
2133
|
$.utils.copyFrom(value, $.utils.getPointer(8, this));
|
|
@@ -2128,7 +2136,7 @@ var SerializedTypePropertySignature = class SerializedTypePropertySignature exte
|
|
|
2128
2136
|
return "SerializedTypePropertySignature_" + super.toString();
|
|
2129
2137
|
}
|
|
2130
2138
|
};
|
|
2131
|
-
var SerializedTypeMethodSignature = class SerializedTypeMethodSignature extends $.Struct {
|
|
2139
|
+
var SerializedTypeMethodSignature$1 = class SerializedTypeMethodSignature$1 extends $.Struct {
|
|
2132
2140
|
static _capnp = {
|
|
2133
2141
|
displayName: "SerializedTypeMethodSignature",
|
|
2134
2142
|
id: "e25a2cc39d5930c8",
|
|
@@ -2150,13 +2158,13 @@ var SerializedTypeMethodSignature = class SerializedTypeMethodSignature extends
|
|
|
2150
2158
|
return $.utils.disown(this.typeArguments);
|
|
2151
2159
|
}
|
|
2152
2160
|
get typeArguments() {
|
|
2153
|
-
return $.utils.getList(1, SerializedTypeMethodSignature._TypeArguments, this);
|
|
2161
|
+
return $.utils.getList(1, SerializedTypeMethodSignature$1._TypeArguments, this);
|
|
2154
2162
|
}
|
|
2155
2163
|
_hasTypeArguments() {
|
|
2156
2164
|
return !$.utils.isNull($.utils.getPointer(1, this));
|
|
2157
2165
|
}
|
|
2158
2166
|
_initTypeArguments(length) {
|
|
2159
|
-
return $.utils.initList(1, SerializedTypeMethodSignature._TypeArguments, length, this);
|
|
2167
|
+
return $.utils.initList(1, SerializedTypeMethodSignature$1._TypeArguments, length, this);
|
|
2160
2168
|
}
|
|
2161
2169
|
set typeArguments(value) {
|
|
2162
2170
|
$.utils.copyFrom(value, $.utils.getPointer(1, this));
|
|
@@ -2186,13 +2194,13 @@ var SerializedTypeMethodSignature = class SerializedTypeMethodSignature extends
|
|
|
2186
2194
|
return $.utils.disown(this.decorators);
|
|
2187
2195
|
}
|
|
2188
2196
|
get decorators() {
|
|
2189
|
-
return $.utils.getList(3, SerializedTypeMethodSignature._Decorators, this);
|
|
2197
|
+
return $.utils.getList(3, SerializedTypeMethodSignature$1._Decorators, this);
|
|
2190
2198
|
}
|
|
2191
2199
|
_hasDecorators() {
|
|
2192
2200
|
return !$.utils.isNull($.utils.getPointer(3, this));
|
|
2193
2201
|
}
|
|
2194
2202
|
_initDecorators(length) {
|
|
2195
|
-
return $.utils.initList(3, SerializedTypeMethodSignature._Decorators, length, this);
|
|
2203
|
+
return $.utils.initList(3, SerializedTypeMethodSignature$1._Decorators, length, this);
|
|
2196
2204
|
}
|
|
2197
2205
|
set decorators(value) {
|
|
2198
2206
|
$.utils.copyFrom(value, $.utils.getPointer(3, this));
|
|
@@ -2222,13 +2230,13 @@ var SerializedTypeMethodSignature = class SerializedTypeMethodSignature extends
|
|
|
2222
2230
|
return $.utils.disown(this.parameters);
|
|
2223
2231
|
}
|
|
2224
2232
|
get parameters() {
|
|
2225
|
-
return $.utils.getList(5, SerializedTypeMethodSignature._Parameters, this);
|
|
2233
|
+
return $.utils.getList(5, SerializedTypeMethodSignature$1._Parameters, this);
|
|
2226
2234
|
}
|
|
2227
2235
|
_hasParameters() {
|
|
2228
2236
|
return !$.utils.isNull($.utils.getPointer(5, this));
|
|
2229
2237
|
}
|
|
2230
2238
|
_initParameters(length) {
|
|
2231
|
-
return $.utils.initList(5, SerializedTypeMethodSignature._Parameters, length, this);
|
|
2239
|
+
return $.utils.initList(5, SerializedTypeMethodSignature$1._Parameters, length, this);
|
|
2232
2240
|
}
|
|
2233
2241
|
set parameters(value) {
|
|
2234
2242
|
$.utils.copyFrom(value, $.utils.getPointer(5, this));
|
|
@@ -2240,13 +2248,13 @@ var SerializedTypeMethodSignature = class SerializedTypeMethodSignature extends
|
|
|
2240
2248
|
return $.utils.disown(this.return);
|
|
2241
2249
|
}
|
|
2242
2250
|
get return() {
|
|
2243
|
-
return $.utils.getStruct(6, SerializedTypeReference, this);
|
|
2251
|
+
return $.utils.getStruct(6, SerializedTypeReference$1, this);
|
|
2244
2252
|
}
|
|
2245
2253
|
_hasReturn() {
|
|
2246
2254
|
return !$.utils.isNull($.utils.getPointer(6, this));
|
|
2247
2255
|
}
|
|
2248
2256
|
_initReturn() {
|
|
2249
|
-
return $.utils.initStructAt(6, SerializedTypeReference, this);
|
|
2257
|
+
return $.utils.initStructAt(6, SerializedTypeReference$1, this);
|
|
2250
2258
|
}
|
|
2251
2259
|
set return(value) {
|
|
2252
2260
|
$.utils.copyFrom(value, $.utils.getPointer(6, this));
|
|
@@ -2258,13 +2266,13 @@ var SerializedTypeMethodSignature = class SerializedTypeMethodSignature extends
|
|
|
2258
2266
|
return $.utils.disown(this.tags);
|
|
2259
2267
|
}
|
|
2260
2268
|
get tags() {
|
|
2261
|
-
return $.utils.getStruct(7, TagsReflection, this);
|
|
2269
|
+
return $.utils.getStruct(7, TagsReflection$1, this);
|
|
2262
2270
|
}
|
|
2263
2271
|
_hasTags() {
|
|
2264
2272
|
return !$.utils.isNull($.utils.getPointer(7, this));
|
|
2265
2273
|
}
|
|
2266
2274
|
_initTags() {
|
|
2267
|
-
return $.utils.initStructAt(7, TagsReflection, this);
|
|
2275
|
+
return $.utils.initStructAt(7, TagsReflection$1, this);
|
|
2268
2276
|
}
|
|
2269
2277
|
set tags(value) {
|
|
2270
2278
|
$.utils.copyFrom(value, $.utils.getPointer(7, this));
|
|
@@ -2357,7 +2365,7 @@ var SerializedTypeTypeParameter = class SerializedTypeTypeParameter extends $.St
|
|
|
2357
2365
|
return "SerializedTypeTypeParameter_" + super.toString();
|
|
2358
2366
|
}
|
|
2359
2367
|
};
|
|
2360
|
-
var SerializedTypeInfer = class SerializedTypeInfer extends $.Struct {
|
|
2368
|
+
var SerializedTypeInfer$1 = class SerializedTypeInfer$1 extends $.Struct {
|
|
2361
2369
|
static _capnp = {
|
|
2362
2370
|
displayName: "SerializedTypeInfer",
|
|
2363
2371
|
id: "91c6dd1e13f2b14d",
|
|
@@ -2378,13 +2386,13 @@ var SerializedTypeInfer = class SerializedTypeInfer extends $.Struct {
|
|
|
2378
2386
|
return $.utils.disown(this.typeArguments);
|
|
2379
2387
|
}
|
|
2380
2388
|
get typeArguments() {
|
|
2381
|
-
return $.utils.getList(1, SerializedTypeInfer._TypeArguments, this);
|
|
2389
|
+
return $.utils.getList(1, SerializedTypeInfer$1._TypeArguments, this);
|
|
2382
2390
|
}
|
|
2383
2391
|
_hasTypeArguments() {
|
|
2384
2392
|
return !$.utils.isNull($.utils.getPointer(1, this));
|
|
2385
2393
|
}
|
|
2386
2394
|
_initTypeArguments(length) {
|
|
2387
|
-
return $.utils.initList(1, SerializedTypeInfer._TypeArguments, length, this);
|
|
2395
|
+
return $.utils.initList(1, SerializedTypeInfer$1._TypeArguments, length, this);
|
|
2388
2396
|
}
|
|
2389
2397
|
set typeArguments(value) {
|
|
2390
2398
|
$.utils.copyFrom(value, $.utils.getPointer(1, this));
|
|
@@ -2414,13 +2422,13 @@ var SerializedTypeInfer = class SerializedTypeInfer extends $.Struct {
|
|
|
2414
2422
|
return $.utils.disown(this.decorators);
|
|
2415
2423
|
}
|
|
2416
2424
|
get decorators() {
|
|
2417
|
-
return $.utils.getList(3, SerializedTypeInfer._Decorators, this);
|
|
2425
|
+
return $.utils.getList(3, SerializedTypeInfer$1._Decorators, this);
|
|
2418
2426
|
}
|
|
2419
2427
|
_hasDecorators() {
|
|
2420
2428
|
return !$.utils.isNull($.utils.getPointer(3, this));
|
|
2421
2429
|
}
|
|
2422
2430
|
_initDecorators(length) {
|
|
2423
|
-
return $.utils.initList(3, SerializedTypeInfer._Decorators, length, this);
|
|
2431
|
+
return $.utils.initList(3, SerializedTypeInfer$1._Decorators, length, this);
|
|
2424
2432
|
}
|
|
2425
2433
|
set decorators(value) {
|
|
2426
2434
|
$.utils.copyFrom(value, $.utils.getPointer(3, this));
|
|
@@ -2435,7 +2443,7 @@ var SerializedTypeInfer = class SerializedTypeInfer extends $.Struct {
|
|
|
2435
2443
|
return "SerializedTypeInfer_" + super.toString();
|
|
2436
2444
|
}
|
|
2437
2445
|
};
|
|
2438
|
-
var SerializedTypeTupleMember = class SerializedTypeTupleMember extends $.Struct {
|
|
2446
|
+
var SerializedTypeTupleMember$1 = class SerializedTypeTupleMember$1 extends $.Struct {
|
|
2439
2447
|
static _capnp = {
|
|
2440
2448
|
displayName: "SerializedTypeTupleMember",
|
|
2441
2449
|
id: "e21c2a18d0d56fdf",
|
|
@@ -2456,13 +2464,13 @@ var SerializedTypeTupleMember = class SerializedTypeTupleMember extends $.Struct
|
|
|
2456
2464
|
return $.utils.disown(this.typeArguments);
|
|
2457
2465
|
}
|
|
2458
2466
|
get typeArguments() {
|
|
2459
|
-
return $.utils.getList(1, SerializedTypeTupleMember._TypeArguments, this);
|
|
2467
|
+
return $.utils.getList(1, SerializedTypeTupleMember$1._TypeArguments, this);
|
|
2460
2468
|
}
|
|
2461
2469
|
_hasTypeArguments() {
|
|
2462
2470
|
return !$.utils.isNull($.utils.getPointer(1, this));
|
|
2463
2471
|
}
|
|
2464
2472
|
_initTypeArguments(length) {
|
|
2465
|
-
return $.utils.initList(1, SerializedTypeTupleMember._TypeArguments, length, this);
|
|
2473
|
+
return $.utils.initList(1, SerializedTypeTupleMember$1._TypeArguments, length, this);
|
|
2466
2474
|
}
|
|
2467
2475
|
set typeArguments(value) {
|
|
2468
2476
|
$.utils.copyFrom(value, $.utils.getPointer(1, this));
|
|
@@ -2492,13 +2500,13 @@ var SerializedTypeTupleMember = class SerializedTypeTupleMember extends $.Struct
|
|
|
2492
2500
|
return $.utils.disown(this.decorators);
|
|
2493
2501
|
}
|
|
2494
2502
|
get decorators() {
|
|
2495
|
-
return $.utils.getList(3, SerializedTypeTupleMember._Decorators, this);
|
|
2503
|
+
return $.utils.getList(3, SerializedTypeTupleMember$1._Decorators, this);
|
|
2496
2504
|
}
|
|
2497
2505
|
_hasDecorators() {
|
|
2498
2506
|
return !$.utils.isNull($.utils.getPointer(3, this));
|
|
2499
2507
|
}
|
|
2500
2508
|
_initDecorators(length) {
|
|
2501
|
-
return $.utils.initList(3, SerializedTypeTupleMember._Decorators, length, this);
|
|
2509
|
+
return $.utils.initList(3, SerializedTypeTupleMember$1._Decorators, length, this);
|
|
2502
2510
|
}
|
|
2503
2511
|
set decorators(value) {
|
|
2504
2512
|
$.utils.copyFrom(value, $.utils.getPointer(3, this));
|
|
@@ -2516,13 +2524,13 @@ var SerializedTypeTupleMember = class SerializedTypeTupleMember extends $.Struct
|
|
|
2516
2524
|
return $.utils.disown(this.type);
|
|
2517
2525
|
}
|
|
2518
2526
|
get type() {
|
|
2519
|
-
return $.utils.getStruct(4, SerializedTypeReference, this);
|
|
2527
|
+
return $.utils.getStruct(4, SerializedTypeReference$1, this);
|
|
2520
2528
|
}
|
|
2521
2529
|
_hasType() {
|
|
2522
2530
|
return !$.utils.isNull($.utils.getPointer(4, this));
|
|
2523
2531
|
}
|
|
2524
2532
|
_initType() {
|
|
2525
|
-
return $.utils.initStructAt(4, SerializedTypeReference, this);
|
|
2533
|
+
return $.utils.initStructAt(4, SerializedTypeReference$1, this);
|
|
2526
2534
|
}
|
|
2527
2535
|
set type(value) {
|
|
2528
2536
|
$.utils.copyFrom(value, $.utils.getPointer(4, this));
|
|
@@ -2543,7 +2551,7 @@ var SerializedTypeTupleMember = class SerializedTypeTupleMember extends $.Struct
|
|
|
2543
2551
|
return "SerializedTypeTupleMember_" + super.toString();
|
|
2544
2552
|
}
|
|
2545
2553
|
};
|
|
2546
|
-
var SerializedTypeTuple = class SerializedTypeTuple extends $.Struct {
|
|
2554
|
+
var SerializedTypeTuple$1 = class SerializedTypeTuple$1 extends $.Struct {
|
|
2547
2555
|
static _capnp = {
|
|
2548
2556
|
displayName: "SerializedTypeTuple",
|
|
2549
2557
|
id: "eb7501eb1ee4fb6d",
|
|
@@ -2565,13 +2573,13 @@ var SerializedTypeTuple = class SerializedTypeTuple extends $.Struct {
|
|
|
2565
2573
|
return $.utils.disown(this.typeArguments);
|
|
2566
2574
|
}
|
|
2567
2575
|
get typeArguments() {
|
|
2568
|
-
return $.utils.getList(1, SerializedTypeTuple._TypeArguments, this);
|
|
2576
|
+
return $.utils.getList(1, SerializedTypeTuple$1._TypeArguments, this);
|
|
2569
2577
|
}
|
|
2570
2578
|
_hasTypeArguments() {
|
|
2571
2579
|
return !$.utils.isNull($.utils.getPointer(1, this));
|
|
2572
2580
|
}
|
|
2573
2581
|
_initTypeArguments(length) {
|
|
2574
|
-
return $.utils.initList(1, SerializedTypeTuple._TypeArguments, length, this);
|
|
2582
|
+
return $.utils.initList(1, SerializedTypeTuple$1._TypeArguments, length, this);
|
|
2575
2583
|
}
|
|
2576
2584
|
set typeArguments(value) {
|
|
2577
2585
|
$.utils.copyFrom(value, $.utils.getPointer(1, this));
|
|
@@ -2601,13 +2609,13 @@ var SerializedTypeTuple = class SerializedTypeTuple extends $.Struct {
|
|
|
2601
2609
|
return $.utils.disown(this.decorators);
|
|
2602
2610
|
}
|
|
2603
2611
|
get decorators() {
|
|
2604
|
-
return $.utils.getList(3, SerializedTypeTuple._Decorators, this);
|
|
2612
|
+
return $.utils.getList(3, SerializedTypeTuple$1._Decorators, this);
|
|
2605
2613
|
}
|
|
2606
2614
|
_hasDecorators() {
|
|
2607
2615
|
return !$.utils.isNull($.utils.getPointer(3, this));
|
|
2608
2616
|
}
|
|
2609
2617
|
_initDecorators(length) {
|
|
2610
|
-
return $.utils.initList(3, SerializedTypeTuple._Decorators, length, this);
|
|
2618
|
+
return $.utils.initList(3, SerializedTypeTuple$1._Decorators, length, this);
|
|
2611
2619
|
}
|
|
2612
2620
|
set decorators(value) {
|
|
2613
2621
|
$.utils.copyFrom(value, $.utils.getPointer(3, this));
|
|
@@ -2625,13 +2633,13 @@ var SerializedTypeTuple = class SerializedTypeTuple extends $.Struct {
|
|
|
2625
2633
|
return $.utils.disown(this.types);
|
|
2626
2634
|
}
|
|
2627
2635
|
get types() {
|
|
2628
|
-
return $.utils.getList(4, SerializedTypeTuple._Types, this);
|
|
2636
|
+
return $.utils.getList(4, SerializedTypeTuple$1._Types, this);
|
|
2629
2637
|
}
|
|
2630
2638
|
_hasTypes() {
|
|
2631
2639
|
return !$.utils.isNull($.utils.getPointer(4, this));
|
|
2632
2640
|
}
|
|
2633
2641
|
_initTypes(length) {
|
|
2634
|
-
return $.utils.initList(4, SerializedTypeTuple._Types, length, this);
|
|
2642
|
+
return $.utils.initList(4, SerializedTypeTuple$1._Types, length, this);
|
|
2635
2643
|
}
|
|
2636
2644
|
set types(value) {
|
|
2637
2645
|
$.utils.copyFrom(value, $.utils.getPointer(4, this));
|
|
@@ -2721,13 +2729,13 @@ var SerializedTypeRest = class SerializedTypeRest extends $.Struct {
|
|
|
2721
2729
|
return $.utils.disown(this.type);
|
|
2722
2730
|
}
|
|
2723
2731
|
get type() {
|
|
2724
|
-
return $.utils.getStruct(4, SerializedTypeReference, this);
|
|
2732
|
+
return $.utils.getStruct(4, SerializedTypeReference$1, this);
|
|
2725
2733
|
}
|
|
2726
2734
|
_hasType() {
|
|
2727
2735
|
return !$.utils.isNull($.utils.getPointer(4, this));
|
|
2728
2736
|
}
|
|
2729
2737
|
_initType() {
|
|
2730
|
-
return $.utils.initStructAt(4, SerializedTypeReference, this);
|
|
2738
|
+
return $.utils.initStructAt(4, SerializedTypeReference$1, this);
|
|
2731
2739
|
}
|
|
2732
2740
|
set type(value) {
|
|
2733
2741
|
$.utils.copyFrom(value, $.utils.getPointer(4, this));
|
|
@@ -2736,7 +2744,7 @@ var SerializedTypeRest = class SerializedTypeRest extends $.Struct {
|
|
|
2736
2744
|
return "SerializedTypeRest_" + super.toString();
|
|
2737
2745
|
}
|
|
2738
2746
|
};
|
|
2739
|
-
var SimpleSerializedType = class SimpleSerializedType extends $.Struct {
|
|
2747
|
+
var SimpleSerializedType$1 = class SimpleSerializedType$1 extends $.Struct {
|
|
2740
2748
|
static _capnp = {
|
|
2741
2749
|
displayName: "SimpleSerializedType",
|
|
2742
2750
|
id: "80f983e4b811c3ca",
|
|
@@ -2757,13 +2765,13 @@ var SimpleSerializedType = class SimpleSerializedType extends $.Struct {
|
|
|
2757
2765
|
return $.utils.disown(this.typeArguments);
|
|
2758
2766
|
}
|
|
2759
2767
|
get typeArguments() {
|
|
2760
|
-
return $.utils.getList(1, SimpleSerializedType._TypeArguments, this);
|
|
2768
|
+
return $.utils.getList(1, SimpleSerializedType$1._TypeArguments, this);
|
|
2761
2769
|
}
|
|
2762
2770
|
_hasTypeArguments() {
|
|
2763
2771
|
return !$.utils.isNull($.utils.getPointer(1, this));
|
|
2764
2772
|
}
|
|
2765
2773
|
_initTypeArguments(length) {
|
|
2766
|
-
return $.utils.initList(1, SimpleSerializedType._TypeArguments, length, this);
|
|
2774
|
+
return $.utils.initList(1, SimpleSerializedType$1._TypeArguments, length, this);
|
|
2767
2775
|
}
|
|
2768
2776
|
set typeArguments(value) {
|
|
2769
2777
|
$.utils.copyFrom(value, $.utils.getPointer(1, this));
|
|
@@ -2793,13 +2801,13 @@ var SimpleSerializedType = class SimpleSerializedType extends $.Struct {
|
|
|
2793
2801
|
return $.utils.disown(this.decorators);
|
|
2794
2802
|
}
|
|
2795
2803
|
get decorators() {
|
|
2796
|
-
return $.utils.getList(3, SimpleSerializedType._Decorators, this);
|
|
2804
|
+
return $.utils.getList(3, SimpleSerializedType$1._Decorators, this);
|
|
2797
2805
|
}
|
|
2798
2806
|
_hasDecorators() {
|
|
2799
2807
|
return !$.utils.isNull($.utils.getPointer(3, this));
|
|
2800
2808
|
}
|
|
2801
2809
|
_initDecorators(length) {
|
|
2802
|
-
return $.utils.initList(3, SimpleSerializedType._Decorators, length, this);
|
|
2810
|
+
return $.utils.initList(3, SimpleSerializedType$1._Decorators, length, this);
|
|
2803
2811
|
}
|
|
2804
2812
|
set decorators(value) {
|
|
2805
2813
|
$.utils.copyFrom(value, $.utils.getPointer(3, this));
|
|
@@ -2817,13 +2825,13 @@ var SimpleSerializedType = class SimpleSerializedType extends $.Struct {
|
|
|
2817
2825
|
return $.utils.disown(this.origin);
|
|
2818
2826
|
}
|
|
2819
2827
|
get origin() {
|
|
2820
|
-
return $.utils.getStruct(4, SerializedTypeReference, this);
|
|
2828
|
+
return $.utils.getStruct(4, SerializedTypeReference$1, this);
|
|
2821
2829
|
}
|
|
2822
2830
|
_hasOrigin() {
|
|
2823
2831
|
return !$.utils.isNull($.utils.getPointer(4, this));
|
|
2824
2832
|
}
|
|
2825
2833
|
_initOrigin() {
|
|
2826
|
-
return $.utils.initStructAt(4, SerializedTypeReference, this);
|
|
2834
|
+
return $.utils.initStructAt(4, SerializedTypeReference$1, this);
|
|
2827
2835
|
}
|
|
2828
2836
|
set origin(value) {
|
|
2829
2837
|
$.utils.copyFrom(value, $.utils.getPointer(4, this));
|
|
@@ -3045,7 +3053,7 @@ var SerializedTypeLiteral_Literal = class extends $.Struct {
|
|
|
3045
3053
|
return $.utils.getUint16(2, this);
|
|
3046
3054
|
}
|
|
3047
3055
|
};
|
|
3048
|
-
var SerializedTypeLiteral = class SerializedTypeLiteral extends $.Struct {
|
|
3056
|
+
var SerializedTypeLiteral$1 = class SerializedTypeLiteral$1 extends $.Struct {
|
|
3049
3057
|
static _capnp = {
|
|
3050
3058
|
displayName: "SerializedTypeLiteral",
|
|
3051
3059
|
id: "b876ba24d27d88c8",
|
|
@@ -3066,13 +3074,13 @@ var SerializedTypeLiteral = class SerializedTypeLiteral extends $.Struct {
|
|
|
3066
3074
|
return $.utils.disown(this.typeArguments);
|
|
3067
3075
|
}
|
|
3068
3076
|
get typeArguments() {
|
|
3069
|
-
return $.utils.getList(1, SerializedTypeLiteral._TypeArguments, this);
|
|
3077
|
+
return $.utils.getList(1, SerializedTypeLiteral$1._TypeArguments, this);
|
|
3070
3078
|
}
|
|
3071
3079
|
_hasTypeArguments() {
|
|
3072
3080
|
return !$.utils.isNull($.utils.getPointer(1, this));
|
|
3073
3081
|
}
|
|
3074
3082
|
_initTypeArguments(length) {
|
|
3075
|
-
return $.utils.initList(1, SerializedTypeLiteral._TypeArguments, length, this);
|
|
3083
|
+
return $.utils.initList(1, SerializedTypeLiteral$1._TypeArguments, length, this);
|
|
3076
3084
|
}
|
|
3077
3085
|
set typeArguments(value) {
|
|
3078
3086
|
$.utils.copyFrom(value, $.utils.getPointer(1, this));
|
|
@@ -3102,13 +3110,13 @@ var SerializedTypeLiteral = class SerializedTypeLiteral extends $.Struct {
|
|
|
3102
3110
|
return $.utils.disown(this.decorators);
|
|
3103
3111
|
}
|
|
3104
3112
|
get decorators() {
|
|
3105
|
-
return $.utils.getList(3, SerializedTypeLiteral._Decorators, this);
|
|
3113
|
+
return $.utils.getList(3, SerializedTypeLiteral$1._Decorators, this);
|
|
3106
3114
|
}
|
|
3107
3115
|
_hasDecorators() {
|
|
3108
3116
|
return !$.utils.isNull($.utils.getPointer(3, this));
|
|
3109
3117
|
}
|
|
3110
3118
|
_initDecorators(length) {
|
|
3111
|
-
return $.utils.initList(3, SerializedTypeLiteral._Decorators, length, this);
|
|
3119
|
+
return $.utils.initList(3, SerializedTypeLiteral$1._Decorators, length, this);
|
|
3112
3120
|
}
|
|
3113
3121
|
set decorators(value) {
|
|
3114
3122
|
$.utils.copyFrom(value, $.utils.getPointer(3, this));
|
|
@@ -3311,14 +3319,14 @@ var SerializedType_Type = class extends $.Struct {
|
|
|
3311
3319
|
}
|
|
3312
3320
|
get simple() {
|
|
3313
3321
|
$.utils.testWhich("simple", $.utils.getUint16(0, this), 0, this);
|
|
3314
|
-
return $.utils.getStruct(0, SimpleSerializedType, this);
|
|
3322
|
+
return $.utils.getStruct(0, SimpleSerializedType$1, this);
|
|
3315
3323
|
}
|
|
3316
3324
|
_hasSimple() {
|
|
3317
3325
|
return !$.utils.isNull($.utils.getPointer(0, this));
|
|
3318
3326
|
}
|
|
3319
3327
|
_initSimple() {
|
|
3320
3328
|
$.utils.setUint16(0, 0, this);
|
|
3321
|
-
return $.utils.initStructAt(0, SimpleSerializedType, this);
|
|
3329
|
+
return $.utils.initStructAt(0, SimpleSerializedType$1, this);
|
|
3322
3330
|
}
|
|
3323
3331
|
get _isSimple() {
|
|
3324
3332
|
return $.utils.getUint16(0, this) === 0;
|
|
@@ -3336,14 +3344,14 @@ var SerializedType_Type = class extends $.Struct {
|
|
|
3336
3344
|
}
|
|
3337
3345
|
get literal() {
|
|
3338
3346
|
$.utils.testWhich("literal", $.utils.getUint16(0, this), 1, this);
|
|
3339
|
-
return $.utils.getStruct(0, SerializedTypeLiteral, this);
|
|
3347
|
+
return $.utils.getStruct(0, SerializedTypeLiteral$1, this);
|
|
3340
3348
|
}
|
|
3341
3349
|
_hasLiteral() {
|
|
3342
3350
|
return !$.utils.isNull($.utils.getPointer(0, this));
|
|
3343
3351
|
}
|
|
3344
3352
|
_initLiteral() {
|
|
3345
3353
|
$.utils.setUint16(0, 1, this);
|
|
3346
|
-
return $.utils.initStructAt(0, SerializedTypeLiteral, this);
|
|
3354
|
+
return $.utils.initStructAt(0, SerializedTypeLiteral$1, this);
|
|
3347
3355
|
}
|
|
3348
3356
|
get _isLiteral() {
|
|
3349
3357
|
return $.utils.getUint16(0, this) === 1;
|
|
@@ -3386,14 +3394,14 @@ var SerializedType_Type = class extends $.Struct {
|
|
|
3386
3394
|
}
|
|
3387
3395
|
get parameter() {
|
|
3388
3396
|
$.utils.testWhich("parameter", $.utils.getUint16(0, this), 3, this);
|
|
3389
|
-
return $.utils.getStruct(0, SerializedTypeParameter, this);
|
|
3397
|
+
return $.utils.getStruct(0, SerializedTypeParameter$1, this);
|
|
3390
3398
|
}
|
|
3391
3399
|
_hasParameter() {
|
|
3392
3400
|
return !$.utils.isNull($.utils.getPointer(0, this));
|
|
3393
3401
|
}
|
|
3394
3402
|
_initParameter() {
|
|
3395
3403
|
$.utils.setUint16(0, 3, this);
|
|
3396
|
-
return $.utils.initStructAt(0, SerializedTypeParameter, this);
|
|
3404
|
+
return $.utils.initStructAt(0, SerializedTypeParameter$1, this);
|
|
3397
3405
|
}
|
|
3398
3406
|
get _isParameter() {
|
|
3399
3407
|
return $.utils.getUint16(0, this) === 3;
|
|
@@ -3411,14 +3419,14 @@ var SerializedType_Type = class extends $.Struct {
|
|
|
3411
3419
|
}
|
|
3412
3420
|
get function() {
|
|
3413
3421
|
$.utils.testWhich("function", $.utils.getUint16(0, this), 4, this);
|
|
3414
|
-
return $.utils.getStruct(0, SerializedTypeFunction, this);
|
|
3422
|
+
return $.utils.getStruct(0, SerializedTypeFunction$1, this);
|
|
3415
3423
|
}
|
|
3416
3424
|
_hasFunction() {
|
|
3417
3425
|
return !$.utils.isNull($.utils.getPointer(0, this));
|
|
3418
3426
|
}
|
|
3419
3427
|
_initFunction() {
|
|
3420
3428
|
$.utils.setUint16(0, 4, this);
|
|
3421
|
-
return $.utils.initStructAt(0, SerializedTypeFunction, this);
|
|
3429
|
+
return $.utils.initStructAt(0, SerializedTypeFunction$1, this);
|
|
3422
3430
|
}
|
|
3423
3431
|
get _isFunction() {
|
|
3424
3432
|
return $.utils.getUint16(0, this) === 4;
|
|
@@ -3436,14 +3444,14 @@ var SerializedType_Type = class extends $.Struct {
|
|
|
3436
3444
|
}
|
|
3437
3445
|
get method() {
|
|
3438
3446
|
$.utils.testWhich("method", $.utils.getUint16(0, this), 5, this);
|
|
3439
|
-
return $.utils.getStruct(0, SerializedTypeMethod, this);
|
|
3447
|
+
return $.utils.getStruct(0, SerializedTypeMethod$1, this);
|
|
3440
3448
|
}
|
|
3441
3449
|
_hasMethod() {
|
|
3442
3450
|
return !$.utils.isNull($.utils.getPointer(0, this));
|
|
3443
3451
|
}
|
|
3444
3452
|
_initMethod() {
|
|
3445
3453
|
$.utils.setUint16(0, 5, this);
|
|
3446
|
-
return $.utils.initStructAt(0, SerializedTypeMethod, this);
|
|
3454
|
+
return $.utils.initStructAt(0, SerializedTypeMethod$1, this);
|
|
3447
3455
|
}
|
|
3448
3456
|
get _isMethod() {
|
|
3449
3457
|
return $.utils.getUint16(0, this) === 5;
|
|
@@ -3461,14 +3469,14 @@ var SerializedType_Type = class extends $.Struct {
|
|
|
3461
3469
|
}
|
|
3462
3470
|
get property() {
|
|
3463
3471
|
$.utils.testWhich("property", $.utils.getUint16(0, this), 6, this);
|
|
3464
|
-
return $.utils.getStruct(0, SerializedTypeProperty, this);
|
|
3472
|
+
return $.utils.getStruct(0, SerializedTypeProperty$1, this);
|
|
3465
3473
|
}
|
|
3466
3474
|
_hasProperty() {
|
|
3467
3475
|
return !$.utils.isNull($.utils.getPointer(0, this));
|
|
3468
3476
|
}
|
|
3469
3477
|
_initProperty() {
|
|
3470
3478
|
$.utils.setUint16(0, 6, this);
|
|
3471
|
-
return $.utils.initStructAt(0, SerializedTypeProperty, this);
|
|
3479
|
+
return $.utils.initStructAt(0, SerializedTypeProperty$1, this);
|
|
3472
3480
|
}
|
|
3473
3481
|
get _isProperty() {
|
|
3474
3482
|
return $.utils.getUint16(0, this) === 6;
|
|
@@ -3511,14 +3519,14 @@ var SerializedType_Type = class extends $.Struct {
|
|
|
3511
3519
|
}
|
|
3512
3520
|
get classType() {
|
|
3513
3521
|
$.utils.testWhich("classType", $.utils.getUint16(0, this), 8, this);
|
|
3514
|
-
return $.utils.getStruct(0, SerializedTypeClassType, this);
|
|
3522
|
+
return $.utils.getStruct(0, SerializedTypeClassType$1, this);
|
|
3515
3523
|
}
|
|
3516
3524
|
_hasClassType() {
|
|
3517
3525
|
return !$.utils.isNull($.utils.getPointer(0, this));
|
|
3518
3526
|
}
|
|
3519
3527
|
_initClassType() {
|
|
3520
3528
|
$.utils.setUint16(0, 8, this);
|
|
3521
|
-
return $.utils.initStructAt(0, SerializedTypeClassType, this);
|
|
3529
|
+
return $.utils.initStructAt(0, SerializedTypeClassType$1, this);
|
|
3522
3530
|
}
|
|
3523
3531
|
get _isClassType() {
|
|
3524
3532
|
return $.utils.getUint16(0, this) === 8;
|
|
@@ -3536,14 +3544,14 @@ var SerializedType_Type = class extends $.Struct {
|
|
|
3536
3544
|
}
|
|
3537
3545
|
get enum() {
|
|
3538
3546
|
$.utils.testWhich("enum", $.utils.getUint16(0, this), 9, this);
|
|
3539
|
-
return $.utils.getStruct(0, SerializedTypeEnum, this);
|
|
3547
|
+
return $.utils.getStruct(0, SerializedTypeEnum$1, this);
|
|
3540
3548
|
}
|
|
3541
3549
|
_hasEnum() {
|
|
3542
3550
|
return !$.utils.isNull($.utils.getPointer(0, this));
|
|
3543
3551
|
}
|
|
3544
3552
|
_initEnum() {
|
|
3545
3553
|
$.utils.setUint16(0, 9, this);
|
|
3546
|
-
return $.utils.initStructAt(0, SerializedTypeEnum, this);
|
|
3554
|
+
return $.utils.initStructAt(0, SerializedTypeEnum$1, this);
|
|
3547
3555
|
}
|
|
3548
3556
|
get _isEnum() {
|
|
3549
3557
|
return $.utils.getUint16(0, this) === 9;
|
|
@@ -3561,14 +3569,14 @@ var SerializedType_Type = class extends $.Struct {
|
|
|
3561
3569
|
}
|
|
3562
3570
|
get union() {
|
|
3563
3571
|
$.utils.testWhich("union", $.utils.getUint16(0, this), 10, this);
|
|
3564
|
-
return $.utils.getStruct(0, SerializedTypeUnion, this);
|
|
3572
|
+
return $.utils.getStruct(0, SerializedTypeUnion$1, this);
|
|
3565
3573
|
}
|
|
3566
3574
|
_hasUnion() {
|
|
3567
3575
|
return !$.utils.isNull($.utils.getPointer(0, this));
|
|
3568
3576
|
}
|
|
3569
3577
|
_initUnion() {
|
|
3570
3578
|
$.utils.setUint16(0, 10, this);
|
|
3571
|
-
return $.utils.initStructAt(0, SerializedTypeUnion, this);
|
|
3579
|
+
return $.utils.initStructAt(0, SerializedTypeUnion$1, this);
|
|
3572
3580
|
}
|
|
3573
3581
|
get _isUnion() {
|
|
3574
3582
|
return $.utils.getUint16(0, this) === 10;
|
|
@@ -3586,14 +3594,14 @@ var SerializedType_Type = class extends $.Struct {
|
|
|
3586
3594
|
}
|
|
3587
3595
|
get intersection() {
|
|
3588
3596
|
$.utils.testWhich("intersection", $.utils.getUint16(0, this), 11, this);
|
|
3589
|
-
return $.utils.getStruct(0, SerializedTypeIntersection, this);
|
|
3597
|
+
return $.utils.getStruct(0, SerializedTypeIntersection$1, this);
|
|
3590
3598
|
}
|
|
3591
3599
|
_hasIntersection() {
|
|
3592
3600
|
return !$.utils.isNull($.utils.getPointer(0, this));
|
|
3593
3601
|
}
|
|
3594
3602
|
_initIntersection() {
|
|
3595
3603
|
$.utils.setUint16(0, 11, this);
|
|
3596
|
-
return $.utils.initStructAt(0, SerializedTypeIntersection, this);
|
|
3604
|
+
return $.utils.initStructAt(0, SerializedTypeIntersection$1, this);
|
|
3597
3605
|
}
|
|
3598
3606
|
get _isIntersection() {
|
|
3599
3607
|
return $.utils.getUint16(0, this) === 11;
|
|
@@ -3611,14 +3619,14 @@ var SerializedType_Type = class extends $.Struct {
|
|
|
3611
3619
|
}
|
|
3612
3620
|
get array() {
|
|
3613
3621
|
$.utils.testWhich("array", $.utils.getUint16(0, this), 12, this);
|
|
3614
|
-
return $.utils.getStruct(0, SerializedTypeArray, this);
|
|
3622
|
+
return $.utils.getStruct(0, SerializedTypeArray$1, this);
|
|
3615
3623
|
}
|
|
3616
3624
|
_hasArray() {
|
|
3617
3625
|
return !$.utils.isNull($.utils.getPointer(0, this));
|
|
3618
3626
|
}
|
|
3619
3627
|
_initArray() {
|
|
3620
3628
|
$.utils.setUint16(0, 12, this);
|
|
3621
|
-
return $.utils.initStructAt(0, SerializedTypeArray, this);
|
|
3629
|
+
return $.utils.initStructAt(0, SerializedTypeArray$1, this);
|
|
3622
3630
|
}
|
|
3623
3631
|
get _isArray() {
|
|
3624
3632
|
return $.utils.getUint16(0, this) === 12;
|
|
@@ -3636,14 +3644,14 @@ var SerializedType_Type = class extends $.Struct {
|
|
|
3636
3644
|
}
|
|
3637
3645
|
get objectLiteral() {
|
|
3638
3646
|
$.utils.testWhich("objectLiteral", $.utils.getUint16(0, this), 13, this);
|
|
3639
|
-
return $.utils.getStruct(0, SerializedTypeObjectLiteral, this);
|
|
3647
|
+
return $.utils.getStruct(0, SerializedTypeObjectLiteral$1, this);
|
|
3640
3648
|
}
|
|
3641
3649
|
_hasObjectLiteral() {
|
|
3642
3650
|
return !$.utils.isNull($.utils.getPointer(0, this));
|
|
3643
3651
|
}
|
|
3644
3652
|
_initObjectLiteral() {
|
|
3645
3653
|
$.utils.setUint16(0, 13, this);
|
|
3646
|
-
return $.utils.initStructAt(0, SerializedTypeObjectLiteral, this);
|
|
3654
|
+
return $.utils.initStructAt(0, SerializedTypeObjectLiteral$1, this);
|
|
3647
3655
|
}
|
|
3648
3656
|
get _isObjectLiteral() {
|
|
3649
3657
|
return $.utils.getUint16(0, this) === 13;
|
|
@@ -3686,14 +3694,14 @@ var SerializedType_Type = class extends $.Struct {
|
|
|
3686
3694
|
}
|
|
3687
3695
|
get propertySignature() {
|
|
3688
3696
|
$.utils.testWhich("propertySignature", $.utils.getUint16(0, this), 15, this);
|
|
3689
|
-
return $.utils.getStruct(0, SerializedTypePropertySignature, this);
|
|
3697
|
+
return $.utils.getStruct(0, SerializedTypePropertySignature$1, this);
|
|
3690
3698
|
}
|
|
3691
3699
|
_hasPropertySignature() {
|
|
3692
3700
|
return !$.utils.isNull($.utils.getPointer(0, this));
|
|
3693
3701
|
}
|
|
3694
3702
|
_initPropertySignature() {
|
|
3695
3703
|
$.utils.setUint16(0, 15, this);
|
|
3696
|
-
return $.utils.initStructAt(0, SerializedTypePropertySignature, this);
|
|
3704
|
+
return $.utils.initStructAt(0, SerializedTypePropertySignature$1, this);
|
|
3697
3705
|
}
|
|
3698
3706
|
get _isPropertySignature() {
|
|
3699
3707
|
return $.utils.getUint16(0, this) === 15;
|
|
@@ -3711,14 +3719,14 @@ var SerializedType_Type = class extends $.Struct {
|
|
|
3711
3719
|
}
|
|
3712
3720
|
get methodSignature() {
|
|
3713
3721
|
$.utils.testWhich("methodSignature", $.utils.getUint16(0, this), 16, this);
|
|
3714
|
-
return $.utils.getStruct(0, SerializedTypeMethodSignature, this);
|
|
3722
|
+
return $.utils.getStruct(0, SerializedTypeMethodSignature$1, this);
|
|
3715
3723
|
}
|
|
3716
3724
|
_hasMethodSignature() {
|
|
3717
3725
|
return !$.utils.isNull($.utils.getPointer(0, this));
|
|
3718
3726
|
}
|
|
3719
3727
|
_initMethodSignature() {
|
|
3720
3728
|
$.utils.setUint16(0, 16, this);
|
|
3721
|
-
return $.utils.initStructAt(0, SerializedTypeMethodSignature, this);
|
|
3729
|
+
return $.utils.initStructAt(0, SerializedTypeMethodSignature$1, this);
|
|
3722
3730
|
}
|
|
3723
3731
|
get _isMethodSignature() {
|
|
3724
3732
|
return $.utils.getUint16(0, this) === 16;
|
|
@@ -3761,14 +3769,14 @@ var SerializedType_Type = class extends $.Struct {
|
|
|
3761
3769
|
}
|
|
3762
3770
|
get infer() {
|
|
3763
3771
|
$.utils.testWhich("infer", $.utils.getUint16(0, this), 18, this);
|
|
3764
|
-
return $.utils.getStruct(0, SerializedTypeInfer, this);
|
|
3772
|
+
return $.utils.getStruct(0, SerializedTypeInfer$1, this);
|
|
3765
3773
|
}
|
|
3766
3774
|
_hasInfer() {
|
|
3767
3775
|
return !$.utils.isNull($.utils.getPointer(0, this));
|
|
3768
3776
|
}
|
|
3769
3777
|
_initInfer() {
|
|
3770
3778
|
$.utils.setUint16(0, 18, this);
|
|
3771
|
-
return $.utils.initStructAt(0, SerializedTypeInfer, this);
|
|
3779
|
+
return $.utils.initStructAt(0, SerializedTypeInfer$1, this);
|
|
3772
3780
|
}
|
|
3773
3781
|
get _isInfer() {
|
|
3774
3782
|
return $.utils.getUint16(0, this) === 18;
|
|
@@ -3786,14 +3794,14 @@ var SerializedType_Type = class extends $.Struct {
|
|
|
3786
3794
|
}
|
|
3787
3795
|
get tuple() {
|
|
3788
3796
|
$.utils.testWhich("tuple", $.utils.getUint16(0, this), 19, this);
|
|
3789
|
-
return $.utils.getStruct(0, SerializedTypeTuple, this);
|
|
3797
|
+
return $.utils.getStruct(0, SerializedTypeTuple$1, this);
|
|
3790
3798
|
}
|
|
3791
3799
|
_hasTuple() {
|
|
3792
3800
|
return !$.utils.isNull($.utils.getPointer(0, this));
|
|
3793
3801
|
}
|
|
3794
3802
|
_initTuple() {
|
|
3795
3803
|
$.utils.setUint16(0, 19, this);
|
|
3796
|
-
return $.utils.initStructAt(0, SerializedTypeTuple, this);
|
|
3804
|
+
return $.utils.initStructAt(0, SerializedTypeTuple$1, this);
|
|
3797
3805
|
}
|
|
3798
3806
|
get _isTuple() {
|
|
3799
3807
|
return $.utils.getUint16(0, this) === 19;
|
|
@@ -3811,14 +3819,14 @@ var SerializedType_Type = class extends $.Struct {
|
|
|
3811
3819
|
}
|
|
3812
3820
|
get tupleMember() {
|
|
3813
3821
|
$.utils.testWhich("tupleMember", $.utils.getUint16(0, this), 20, this);
|
|
3814
|
-
return $.utils.getStruct(0, SerializedTypeTupleMember, this);
|
|
3822
|
+
return $.utils.getStruct(0, SerializedTypeTupleMember$1, this);
|
|
3815
3823
|
}
|
|
3816
3824
|
_hasTupleMember() {
|
|
3817
3825
|
return !$.utils.isNull($.utils.getPointer(0, this));
|
|
3818
3826
|
}
|
|
3819
3827
|
_initTupleMember() {
|
|
3820
3828
|
$.utils.setUint16(0, 20, this);
|
|
3821
|
-
return $.utils.initStructAt(0, SerializedTypeTupleMember, this);
|
|
3829
|
+
return $.utils.initStructAt(0, SerializedTypeTupleMember$1, this);
|
|
3822
3830
|
}
|
|
3823
3831
|
get _isTupleMember() {
|
|
3824
3832
|
return $.utils.getUint16(0, this) === 20;
|
|
@@ -3888,7 +3896,7 @@ var SerializedType_Type = class extends $.Struct {
|
|
|
3888
3896
|
return $.utils.getUint16(0, this);
|
|
3889
3897
|
}
|
|
3890
3898
|
};
|
|
3891
|
-
var SerializedType = class extends $.Struct {
|
|
3899
|
+
var SerializedType$1 = class extends $.Struct {
|
|
3892
3900
|
static _capnp = {
|
|
3893
3901
|
displayName: "SerializedType",
|
|
3894
3902
|
id: "96856dcc2dd3d58f",
|
|
@@ -3904,7 +3912,7 @@ var SerializedType = class extends $.Struct {
|
|
|
3904
3912
|
return "SerializedType_" + super.toString();
|
|
3905
3913
|
}
|
|
3906
3914
|
};
|
|
3907
|
-
var SerializedTypes = class SerializedTypes extends $.Struct {
|
|
3915
|
+
var SerializedTypes$1 = class SerializedTypes$1 extends $.Struct {
|
|
3908
3916
|
static _capnp = {
|
|
3909
3917
|
displayName: "SerializedTypes",
|
|
3910
3918
|
id: "ac55398ab0ef4958",
|
|
@@ -3918,13 +3926,13 @@ var SerializedTypes = class SerializedTypes extends $.Struct {
|
|
|
3918
3926
|
return $.utils.disown(this.types);
|
|
3919
3927
|
}
|
|
3920
3928
|
get types() {
|
|
3921
|
-
return $.utils.getList(0, SerializedTypes._Types, this);
|
|
3929
|
+
return $.utils.getList(0, SerializedTypes$1._Types, this);
|
|
3922
3930
|
}
|
|
3923
3931
|
_hasTypes() {
|
|
3924
3932
|
return !$.utils.isNull($.utils.getPointer(0, this));
|
|
3925
3933
|
}
|
|
3926
3934
|
_initTypes(length) {
|
|
3927
|
-
return $.utils.initList(0, SerializedTypes._Types, length, this);
|
|
3935
|
+
return $.utils.initList(0, SerializedTypes$1._Types, length, this);
|
|
3928
3936
|
}
|
|
3929
3937
|
set types(value) {
|
|
3930
3938
|
$.utils.copyFrom(value, $.utils.getPointer(0, this));
|
|
@@ -3934,64 +3942,972 @@ var SerializedTypes = class SerializedTypes extends $.Struct {
|
|
|
3934
3942
|
}
|
|
3935
3943
|
};
|
|
3936
3944
|
EntityOptions._Indexes = $.CompositeList(EntityOptions_EntityIndexOptions);
|
|
3937
|
-
SerializedTypeObjectLiteral._TypeArguments = $.CompositeList(SerializedTypeReference);
|
|
3938
|
-
SerializedTypeObjectLiteral._Decorators = $.CompositeList(SerializedTypeReference);
|
|
3939
|
-
SerializedTypeObjectLiteral._Types = $.CompositeList(SerializedTypeReference);
|
|
3940
|
-
SerializedTypeClassType._TypeArguments = $.CompositeList(SerializedTypeReference);
|
|
3941
|
-
SerializedTypeClassType._Decorators = $.CompositeList(SerializedTypeReference);
|
|
3942
|
-
SerializedTypeClassType._ExtendsArguments = $.CompositeList(SerializedTypeReference);
|
|
3943
|
-
SerializedTypeClassType._Arguments = $.CompositeList(SerializedTypeReference);
|
|
3944
|
-
SerializedTypeClassType._Types = $.CompositeList(SerializedTypeReference);
|
|
3945
|
-
SerializedTypeParameter._TypeArguments = $.CompositeList(SerializedTypeReference);
|
|
3946
|
-
SerializedTypeParameter._Decorators = $.CompositeList(SerializedTypeReference);
|
|
3947
|
-
SerializedTypeMethod._TypeArguments = $.CompositeList(SerializedTypeReference);
|
|
3948
|
-
SerializedTypeMethod._Decorators = $.CompositeList(SerializedTypeReference);
|
|
3949
|
-
SerializedTypeMethod._Parameters = $.CompositeList(SerializedTypeParameter);
|
|
3950
|
-
SerializedTypeProperty._TypeArguments = $.CompositeList(SerializedTypeReference);
|
|
3951
|
-
SerializedTypeProperty._Decorators = $.CompositeList(SerializedTypeReference);
|
|
3952
|
-
SerializedTypeFunction._TypeArguments = $.CompositeList(SerializedTypeReference);
|
|
3953
|
-
SerializedTypeFunction._Decorators = $.CompositeList(SerializedTypeReference);
|
|
3954
|
-
SerializedTypeFunction._Parameters = $.CompositeList(SerializedTypeParameter);
|
|
3955
|
-
SerializedTypePromise._TypeArguments = $.CompositeList(SerializedTypeReference);
|
|
3956
|
-
SerializedTypePromise._Decorators = $.CompositeList(SerializedTypeReference);
|
|
3957
|
-
SerializedTypeEnum._TypeArguments = $.CompositeList(SerializedTypeReference);
|
|
3958
|
-
SerializedTypeEnum._Decorators = $.CompositeList(SerializedTypeReference);
|
|
3959
|
-
SerializedTypeEnum._EnumEntries = $.CompositeList(SerializedTypeEnumEntry);
|
|
3960
|
-
SerializedTypeUnion._TypeArguments = $.CompositeList(SerializedTypeReference);
|
|
3961
|
-
SerializedTypeUnion._Decorators = $.CompositeList(SerializedTypeReference);
|
|
3962
|
-
SerializedTypeUnion._Types = $.CompositeList(SerializedTypeReference);
|
|
3963
|
-
SerializedTypeIntersection._TypeArguments = $.CompositeList(SerializedTypeReference);
|
|
3964
|
-
SerializedTypeIntersection._Decorators = $.CompositeList(SerializedTypeReference);
|
|
3965
|
-
SerializedTypeIntersection._Types = $.CompositeList(SerializedTypeReference);
|
|
3966
|
-
SerializedTypeArray._TypeArguments = $.CompositeList(SerializedTypeReference);
|
|
3967
|
-
SerializedTypeArray._Decorators = $.CompositeList(SerializedTypeReference);
|
|
3968
|
-
SerializedTypeIndexSignature._TypeArguments = $.CompositeList(SerializedTypeReference);
|
|
3969
|
-
SerializedTypeIndexSignature._Decorators = $.CompositeList(SerializedTypeReference);
|
|
3970
|
-
SerializedTypePropertySignature._TypeArguments = $.CompositeList(SerializedTypeReference);
|
|
3971
|
-
SerializedTypePropertySignature._Decorators = $.CompositeList(SerializedTypeReference);
|
|
3972
|
-
SerializedTypeMethodSignature._TypeArguments = $.CompositeList(SerializedTypeReference);
|
|
3973
|
-
SerializedTypeMethodSignature._Decorators = $.CompositeList(SerializedTypeReference);
|
|
3974
|
-
SerializedTypeMethodSignature._Parameters = $.CompositeList(SerializedTypeParameter);
|
|
3975
|
-
SerializedTypeTypeParameter._TypeArguments = $.CompositeList(SerializedTypeReference);
|
|
3976
|
-
SerializedTypeTypeParameter._Decorators = $.CompositeList(SerializedTypeReference);
|
|
3977
|
-
SerializedTypeInfer._TypeArguments = $.CompositeList(SerializedTypeReference);
|
|
3978
|
-
SerializedTypeInfer._Decorators = $.CompositeList(SerializedTypeReference);
|
|
3979
|
-
SerializedTypeTupleMember._TypeArguments = $.CompositeList(SerializedTypeReference);
|
|
3980
|
-
SerializedTypeTupleMember._Decorators = $.CompositeList(SerializedTypeReference);
|
|
3981
|
-
SerializedTypeTuple._TypeArguments = $.CompositeList(SerializedTypeReference);
|
|
3982
|
-
SerializedTypeTuple._Decorators = $.CompositeList(SerializedTypeReference);
|
|
3983
|
-
SerializedTypeTuple._Types = $.CompositeList(SerializedTypeTupleMember);
|
|
3984
|
-
SerializedTypeRest._TypeArguments = $.CompositeList(SerializedTypeReference);
|
|
3985
|
-
SerializedTypeRest._Decorators = $.CompositeList(SerializedTypeReference);
|
|
3986
|
-
SimpleSerializedType._TypeArguments = $.CompositeList(SerializedTypeReference);
|
|
3987
|
-
SimpleSerializedType._Decorators = $.CompositeList(SerializedTypeReference);
|
|
3988
|
-
SerializedTypeLiteral._TypeArguments = $.CompositeList(SerializedTypeReference);
|
|
3989
|
-
SerializedTypeLiteral._Decorators = $.CompositeList(SerializedTypeReference);
|
|
3990
|
-
SerializedTypeTemplateLiteral._TypeArguments = $.CompositeList(SerializedTypeReference);
|
|
3991
|
-
SerializedTypeTemplateLiteral._Decorators = $.CompositeList(SerializedTypeReference);
|
|
3992
|
-
SerializedTypeTemplateLiteral._Types = $.CompositeList(SerializedTypeReference);
|
|
3993
|
-
SerializedTypes._Types = $.CompositeList(SerializedType);
|
|
3945
|
+
SerializedTypeObjectLiteral$1._TypeArguments = $.CompositeList(SerializedTypeReference$1);
|
|
3946
|
+
SerializedTypeObjectLiteral$1._Decorators = $.CompositeList(SerializedTypeReference$1);
|
|
3947
|
+
SerializedTypeObjectLiteral$1._Types = $.CompositeList(SerializedTypeReference$1);
|
|
3948
|
+
SerializedTypeClassType$1._TypeArguments = $.CompositeList(SerializedTypeReference$1);
|
|
3949
|
+
SerializedTypeClassType$1._Decorators = $.CompositeList(SerializedTypeReference$1);
|
|
3950
|
+
SerializedTypeClassType$1._ExtendsArguments = $.CompositeList(SerializedTypeReference$1);
|
|
3951
|
+
SerializedTypeClassType$1._Arguments = $.CompositeList(SerializedTypeReference$1);
|
|
3952
|
+
SerializedTypeClassType$1._Types = $.CompositeList(SerializedTypeReference$1);
|
|
3953
|
+
SerializedTypeParameter$1._TypeArguments = $.CompositeList(SerializedTypeReference$1);
|
|
3954
|
+
SerializedTypeParameter$1._Decorators = $.CompositeList(SerializedTypeReference$1);
|
|
3955
|
+
SerializedTypeMethod$1._TypeArguments = $.CompositeList(SerializedTypeReference$1);
|
|
3956
|
+
SerializedTypeMethod$1._Decorators = $.CompositeList(SerializedTypeReference$1);
|
|
3957
|
+
SerializedTypeMethod$1._Parameters = $.CompositeList(SerializedTypeParameter$1);
|
|
3958
|
+
SerializedTypeProperty$1._TypeArguments = $.CompositeList(SerializedTypeReference$1);
|
|
3959
|
+
SerializedTypeProperty$1._Decorators = $.CompositeList(SerializedTypeReference$1);
|
|
3960
|
+
SerializedTypeFunction$1._TypeArguments = $.CompositeList(SerializedTypeReference$1);
|
|
3961
|
+
SerializedTypeFunction$1._Decorators = $.CompositeList(SerializedTypeReference$1);
|
|
3962
|
+
SerializedTypeFunction$1._Parameters = $.CompositeList(SerializedTypeParameter$1);
|
|
3963
|
+
SerializedTypePromise._TypeArguments = $.CompositeList(SerializedTypeReference$1);
|
|
3964
|
+
SerializedTypePromise._Decorators = $.CompositeList(SerializedTypeReference$1);
|
|
3965
|
+
SerializedTypeEnum$1._TypeArguments = $.CompositeList(SerializedTypeReference$1);
|
|
3966
|
+
SerializedTypeEnum$1._Decorators = $.CompositeList(SerializedTypeReference$1);
|
|
3967
|
+
SerializedTypeEnum$1._EnumEntries = $.CompositeList(SerializedTypeEnumEntry);
|
|
3968
|
+
SerializedTypeUnion$1._TypeArguments = $.CompositeList(SerializedTypeReference$1);
|
|
3969
|
+
SerializedTypeUnion$1._Decorators = $.CompositeList(SerializedTypeReference$1);
|
|
3970
|
+
SerializedTypeUnion$1._Types = $.CompositeList(SerializedTypeReference$1);
|
|
3971
|
+
SerializedTypeIntersection$1._TypeArguments = $.CompositeList(SerializedTypeReference$1);
|
|
3972
|
+
SerializedTypeIntersection$1._Decorators = $.CompositeList(SerializedTypeReference$1);
|
|
3973
|
+
SerializedTypeIntersection$1._Types = $.CompositeList(SerializedTypeReference$1);
|
|
3974
|
+
SerializedTypeArray$1._TypeArguments = $.CompositeList(SerializedTypeReference$1);
|
|
3975
|
+
SerializedTypeArray$1._Decorators = $.CompositeList(SerializedTypeReference$1);
|
|
3976
|
+
SerializedTypeIndexSignature._TypeArguments = $.CompositeList(SerializedTypeReference$1);
|
|
3977
|
+
SerializedTypeIndexSignature._Decorators = $.CompositeList(SerializedTypeReference$1);
|
|
3978
|
+
SerializedTypePropertySignature$1._TypeArguments = $.CompositeList(SerializedTypeReference$1);
|
|
3979
|
+
SerializedTypePropertySignature$1._Decorators = $.CompositeList(SerializedTypeReference$1);
|
|
3980
|
+
SerializedTypeMethodSignature$1._TypeArguments = $.CompositeList(SerializedTypeReference$1);
|
|
3981
|
+
SerializedTypeMethodSignature$1._Decorators = $.CompositeList(SerializedTypeReference$1);
|
|
3982
|
+
SerializedTypeMethodSignature$1._Parameters = $.CompositeList(SerializedTypeParameter$1);
|
|
3983
|
+
SerializedTypeTypeParameter._TypeArguments = $.CompositeList(SerializedTypeReference$1);
|
|
3984
|
+
SerializedTypeTypeParameter._Decorators = $.CompositeList(SerializedTypeReference$1);
|
|
3985
|
+
SerializedTypeInfer$1._TypeArguments = $.CompositeList(SerializedTypeReference$1);
|
|
3986
|
+
SerializedTypeInfer$1._Decorators = $.CompositeList(SerializedTypeReference$1);
|
|
3987
|
+
SerializedTypeTupleMember$1._TypeArguments = $.CompositeList(SerializedTypeReference$1);
|
|
3988
|
+
SerializedTypeTupleMember$1._Decorators = $.CompositeList(SerializedTypeReference$1);
|
|
3989
|
+
SerializedTypeTuple$1._TypeArguments = $.CompositeList(SerializedTypeReference$1);
|
|
3990
|
+
SerializedTypeTuple$1._Decorators = $.CompositeList(SerializedTypeReference$1);
|
|
3991
|
+
SerializedTypeTuple$1._Types = $.CompositeList(SerializedTypeTupleMember$1);
|
|
3992
|
+
SerializedTypeRest._TypeArguments = $.CompositeList(SerializedTypeReference$1);
|
|
3993
|
+
SerializedTypeRest._Decorators = $.CompositeList(SerializedTypeReference$1);
|
|
3994
|
+
SimpleSerializedType$1._TypeArguments = $.CompositeList(SerializedTypeReference$1);
|
|
3995
|
+
SimpleSerializedType$1._Decorators = $.CompositeList(SerializedTypeReference$1);
|
|
3996
|
+
SerializedTypeLiteral$1._TypeArguments = $.CompositeList(SerializedTypeReference$1);
|
|
3997
|
+
SerializedTypeLiteral$1._Decorators = $.CompositeList(SerializedTypeReference$1);
|
|
3998
|
+
SerializedTypeTemplateLiteral._TypeArguments = $.CompositeList(SerializedTypeReference$1);
|
|
3999
|
+
SerializedTypeTemplateLiteral._Decorators = $.CompositeList(SerializedTypeReference$1);
|
|
4000
|
+
SerializedTypeTemplateLiteral._Types = $.CompositeList(SerializedTypeReference$1);
|
|
4001
|
+
SerializedTypes$1._Types = $.CompositeList(SerializedType$1);
|
|
4002
|
+
|
|
4003
|
+
//#endregion
|
|
4004
|
+
//#region src/capnp.ts
|
|
4005
|
+
/**
|
|
4006
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
4007
|
+
*
|
|
4008
|
+
* @param serializedTypes - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
4009
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
4010
|
+
*/
|
|
4011
|
+
function convertToCapnp(serializedTypes, result) {
|
|
4012
|
+
if (!serializedTypes || !Array.isArray(serializedTypes) || serializedTypes.length === 0) throw new Error("Invalid serialized type provided for conversion.");
|
|
4013
|
+
if (serializedTypes.length !== result.length) throw new Error(`Mismatch in length of serialized types: expected ${result.length}, got ${serializedTypes.length}.`);
|
|
4014
|
+
serializedTypes.filter((serializedType) => isSetObject(serializedType) && !isUndefined(serializedType.kind)).forEach((serializedType, index) => {
|
|
4015
|
+
convertToCapnpBase(serializedType, result.get(index)._initType());
|
|
4016
|
+
});
|
|
4017
|
+
return result;
|
|
4018
|
+
}
|
|
4019
|
+
/**
|
|
4020
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
4021
|
+
*
|
|
4022
|
+
* @param serializedTypes - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema
|
|
4023
|
+
* @returns The [Deepkit](https://deepkit.io/) {@link SerializedTypes | serialized types} converted from the Cap'n Proto serialized type
|
|
4024
|
+
*/
|
|
4025
|
+
function convertFromCapnp(serializedTypes) {
|
|
4026
|
+
if (!serializedTypes) throw new Error("Invalid serialized type provided for conversion.");
|
|
4027
|
+
const result = [];
|
|
4028
|
+
serializedTypes.forEach((serializedType) => {
|
|
4029
|
+
const deserializedType = convertFromCapnpBase(serializedType.type);
|
|
4030
|
+
result.push(deserializedType);
|
|
4031
|
+
});
|
|
4032
|
+
return result;
|
|
4033
|
+
}
|
|
4034
|
+
/**
|
|
4035
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
4036
|
+
*
|
|
4037
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
4038
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
4039
|
+
*/
|
|
4040
|
+
function convertToCapnpTagsReflection(result, serializedType) {
|
|
4041
|
+
if (serializedType?.alias?.length) {
|
|
4042
|
+
const alias = result._initAlias(serializedType.alias.length);
|
|
4043
|
+
serializedType.alias.forEach((a, index) => {
|
|
4044
|
+
alias.set(index, a);
|
|
4045
|
+
});
|
|
4046
|
+
}
|
|
4047
|
+
result.hidden = serializedType?.hidden ?? false;
|
|
4048
|
+
result.ignore = serializedType?.ignore ?? false;
|
|
4049
|
+
result.internal = serializedType?.internal ?? false;
|
|
4050
|
+
result.runtime = serializedType?.runtime ?? false;
|
|
4051
|
+
result.readonly = serializedType?.readonly ?? false;
|
|
4052
|
+
if (serializedType?.title) result.title = serializedType?.title;
|
|
4053
|
+
if (serializedType?.domain) result.domain = serializedType?.domain;
|
|
4054
|
+
if (serializedType?.permission?.length) {
|
|
4055
|
+
const permission = result._initPermission(serializedType.permission.length);
|
|
4056
|
+
serializedType.permission?.forEach((p, index) => {
|
|
4057
|
+
permission.set(index, p);
|
|
4058
|
+
});
|
|
4059
|
+
}
|
|
4060
|
+
return result;
|
|
4061
|
+
}
|
|
4062
|
+
function convertFromCapnpTagsReflection(serializedType) {
|
|
4063
|
+
return serializedType._hasTags() ? {
|
|
4064
|
+
alias: serializedType.tags?.alias?.length ? serializedType.tags?.alias.map((value) => value) : void 0,
|
|
4065
|
+
hidden: serializedType.tags?.hidden,
|
|
4066
|
+
domain: serializedType.tags?.domain ? serializedType.tags.domain : void 0,
|
|
4067
|
+
title: serializedType.tags?.title ? serializedType.tags.title : void 0,
|
|
4068
|
+
ignore: serializedType.tags?.ignore,
|
|
4069
|
+
internal: serializedType.tags?.internal,
|
|
4070
|
+
runtime: serializedType.tags?.runtime,
|
|
4071
|
+
readonly: serializedType.tags?.readonly,
|
|
4072
|
+
permission: serializedType.tags?.permission?.length ? serializedType.tags?.permission?.map((value) => value) : void 0
|
|
4073
|
+
} : void 0;
|
|
4074
|
+
}
|
|
4075
|
+
/**
|
|
4076
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
4077
|
+
*
|
|
4078
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
4079
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
4080
|
+
*/
|
|
4081
|
+
function convertToCapnpIndexAccessOrigin(result, serializedType) {
|
|
4082
|
+
const indexAccessOriginIndex = result._initIndex();
|
|
4083
|
+
indexAccessOriginIndex.id = serializedType?.index ?? 0;
|
|
4084
|
+
const indexAccessOriginContainer = result._initContainer();
|
|
4085
|
+
indexAccessOriginContainer.id = serializedType?.container ?? 0;
|
|
4086
|
+
return result;
|
|
4087
|
+
}
|
|
4088
|
+
function convertFromCapnpIndexAccessOrigin(serializedType) {
|
|
4089
|
+
return serializedType._hasIndexAccessOrigin() ? {
|
|
4090
|
+
container: Number(serializedType.indexAccessOrigin?.container.id),
|
|
4091
|
+
index: Number(serializedType.indexAccessOrigin?.index.id)
|
|
4092
|
+
} : void 0;
|
|
4093
|
+
}
|
|
4094
|
+
/**
|
|
4095
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
4096
|
+
*
|
|
4097
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
4098
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
4099
|
+
*/
|
|
4100
|
+
function convertToCapnpBase(serializedType, result) {
|
|
4101
|
+
if (serializedType.kind === ReflectionKind.objectLiteral) convertToCapnpObjectLiteral(serializedType, result._initObjectLiteral());
|
|
4102
|
+
else if (serializedType.kind === ReflectionKind.class) convertToCapnpClassType(serializedType, result._initClassType());
|
|
4103
|
+
else if (serializedType.kind === ReflectionKind.parameter) convertToCapnpParameter(serializedType, result._initParameter());
|
|
4104
|
+
else if (serializedType.kind === ReflectionKind.function) convertToCapnpFunction(serializedType, result._initFunction());
|
|
4105
|
+
else if (serializedType.kind === ReflectionKind.method) convertToCapnpMethod(serializedType, result._initMethod());
|
|
4106
|
+
else if (serializedType.kind === ReflectionKind.infer) convertToCapnpInfer(serializedType, result._initInfer());
|
|
4107
|
+
else if (serializedType.kind === ReflectionKind.union) convertToCapnpUnion(serializedType, result._initUnion());
|
|
4108
|
+
else if (serializedType.kind === ReflectionKind.array) convertToCapnpArray(serializedType, result._initArray());
|
|
4109
|
+
else if (serializedType.kind === ReflectionKind.intersection) convertToCapnpIntersection(serializedType, result._initIntersection());
|
|
4110
|
+
else if (serializedType.kind === ReflectionKind.enum) convertToCapnpEnum(serializedType, result._initEnum());
|
|
4111
|
+
else if (serializedType.kind === ReflectionKind.property) convertToCapnpProperty(serializedType, result._initProperty());
|
|
4112
|
+
else if (serializedType.kind === ReflectionKind.tuple) convertToCapnpTuple(serializedType, result._initTuple());
|
|
4113
|
+
else if (serializedType.kind === ReflectionKind.tupleMember) convertToCapnpTupleMember(serializedType, result._initTupleMember());
|
|
4114
|
+
else if (serializedType.kind === ReflectionKind.propertySignature) convertToCapnpPropertySignature(serializedType, result._initPropertySignature());
|
|
4115
|
+
else if (serializedType.kind === ReflectionKind.methodSignature) convertToCapnpMethodSignature(serializedType, result._initMethodSignature());
|
|
4116
|
+
else if (serializedType.kind === ReflectionKind.literal) convertToCapnpLiteral(serializedType, result._initLiteral());
|
|
4117
|
+
else if (serializedType.kind === ReflectionKind.never || serializedType.kind === ReflectionKind.any || serializedType.kind === ReflectionKind.unknown || serializedType.kind === ReflectionKind.void || serializedType.kind === ReflectionKind.object || serializedType.kind === ReflectionKind.string || serializedType.kind === ReflectionKind.number || serializedType.kind === ReflectionKind.boolean || serializedType.kind === ReflectionKind.symbol || serializedType.kind === ReflectionKind.bigint || serializedType.kind === ReflectionKind.null || serializedType.kind === ReflectionKind.undefined || serializedType.kind === ReflectionKind.regexp) convertToCapnpSimple(serializedType, result._initSimple());
|
|
4118
|
+
else convertToCapnpOther(serializedType, result._initOther());
|
|
4119
|
+
return result;
|
|
4120
|
+
}
|
|
4121
|
+
function convertFromCapnpBase(serializedType) {
|
|
4122
|
+
if (serializedType._isObjectLiteral) return convertFromCapnpObjectLiteral(serializedType.objectLiteral);
|
|
4123
|
+
else if (serializedType._isClassType) return convertFromCapnpClassType(serializedType.classType);
|
|
4124
|
+
else if (serializedType._isParameter) return convertFromCapnpParameter(serializedType.parameter);
|
|
4125
|
+
else if (serializedType._isFunction) return convertFromCapnpFunction(serializedType.function);
|
|
4126
|
+
else if (serializedType._isInfer) return convertFromCapnpInfer(serializedType.infer);
|
|
4127
|
+
else if (serializedType._isMethod) return convertFromCapnpMethod(serializedType.method);
|
|
4128
|
+
else if (serializedType._isUnion) return convertFromCapnpUnion(serializedType.union);
|
|
4129
|
+
else if (serializedType._isArray) return convertFromCapnpArray(serializedType.array);
|
|
4130
|
+
else if (serializedType._isIntersection) return convertFromCapnpIntersection(serializedType.intersection);
|
|
4131
|
+
else if (serializedType._isEnum) return convertFromCapnpEnum(serializedType.enum);
|
|
4132
|
+
else if (serializedType._isProperty) return convertFromCapnpProperty(serializedType.property);
|
|
4133
|
+
else if (serializedType._isTuple) return convertFromCapnpTuple(serializedType.tuple);
|
|
4134
|
+
else if (serializedType._isTupleMember) return convertFromCapnpTupleMember(serializedType.tupleMember);
|
|
4135
|
+
else if (serializedType._isPropertySignature) return convertFromCapnpPropertySignature(serializedType.propertySignature);
|
|
4136
|
+
else if (serializedType._isMethodSignature) return convertFromCapnpMethodSignature(serializedType.methodSignature);
|
|
4137
|
+
else if (serializedType._isLiteral) return convertFromCapnpLiteral(serializedType.literal);
|
|
4138
|
+
else if (serializedType._isSimple) return convertFromCapnpSimple(serializedType.simple);
|
|
4139
|
+
else if (serializedType._isOther) return convertFromCapnpOther(serializedType.other);
|
|
4140
|
+
else throw new Error(`Unsupported serialized type kind: ${serializedType.toString()}`);
|
|
4141
|
+
}
|
|
4142
|
+
function convertFromCapnpOther(serializedType) {
|
|
4143
|
+
return {
|
|
4144
|
+
kind: serializedType.kind,
|
|
4145
|
+
typeName: serializedType.typeName || void 0
|
|
4146
|
+
};
|
|
4147
|
+
}
|
|
4148
|
+
function convertFromCapnpSimple(serializedType) {
|
|
4149
|
+
const result = {
|
|
4150
|
+
kind: serializedType.kind,
|
|
4151
|
+
typeName: serializedType.typeName || void 0,
|
|
4152
|
+
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
4153
|
+
typeArguments: serializedType._hasTypeArguments() ? serializedType.typeArguments.map((t) => t.id) : void 0,
|
|
4154
|
+
indexAccessOrigin: convertFromCapnpIndexAccessOrigin(serializedType)
|
|
4155
|
+
};
|
|
4156
|
+
if (serializedType._hasOrigin()) result.origin = Number(serializedType.origin.id);
|
|
4157
|
+
return result;
|
|
4158
|
+
}
|
|
4159
|
+
function convertToCapnpOther(serializedType, result) {
|
|
4160
|
+
result.kind = serializedType.kind;
|
|
4161
|
+
result.typeName = serializedType.typeName || "";
|
|
4162
|
+
return result;
|
|
4163
|
+
}
|
|
4164
|
+
function convertToCapnpSimple(serializedType, result) {
|
|
4165
|
+
result.kind = serializedType.kind;
|
|
4166
|
+
result.typeName = serializedType.typeName || "";
|
|
4167
|
+
if (serializedType.origin) {
|
|
4168
|
+
result._initOrigin();
|
|
4169
|
+
result.origin.id = serializedType.origin ?? 0;
|
|
4170
|
+
}
|
|
4171
|
+
if (serializedType.decorators?.length) {
|
|
4172
|
+
const decorators = result._initDecorators(serializedType.decorators.length);
|
|
4173
|
+
serializedType.decorators.forEach((d, index) => {
|
|
4174
|
+
const decorator = decorators.get(index);
|
|
4175
|
+
decorator.id = d;
|
|
4176
|
+
});
|
|
4177
|
+
}
|
|
4178
|
+
if (serializedType.typeArguments?.length) {
|
|
4179
|
+
const typeArguments = result._initTypeArguments(serializedType.typeArguments.length);
|
|
4180
|
+
serializedType.typeArguments.forEach((t, index) => {
|
|
4181
|
+
const typeArgument = typeArguments.get(index);
|
|
4182
|
+
typeArgument.id = t;
|
|
4183
|
+
});
|
|
4184
|
+
}
|
|
4185
|
+
if (serializedType.indexAccessOrigin) convertToCapnpIndexAccessOrigin(result._initIndexAccessOrigin(), serializedType.indexAccessOrigin);
|
|
4186
|
+
return result;
|
|
4187
|
+
}
|
|
4188
|
+
function convertFromCapnpLiteral(serializedType) {
|
|
4189
|
+
return {
|
|
4190
|
+
kind: ReflectionKind.literal,
|
|
4191
|
+
literal: serializedType.literal._isString ? serializedType.literal.string : serializedType.literal._isNumber ? serializedType.literal.number : serializedType.literal._isBoolean ? serializedType.literal.boolean : serializedType.literal._isBigint ? {
|
|
4192
|
+
type: "bigint",
|
|
4193
|
+
value: serializedType.literal.bigint.value
|
|
4194
|
+
} : serializedType.literal._isSymbol ? {
|
|
4195
|
+
type: "symbol",
|
|
4196
|
+
name: serializedType.literal.symbol.name
|
|
4197
|
+
} : {
|
|
4198
|
+
type: "regex",
|
|
4199
|
+
regex: serializedType.literal.regex.regex
|
|
4200
|
+
},
|
|
4201
|
+
typeName: serializedType.typeName || void 0,
|
|
4202
|
+
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
4203
|
+
typeArguments: serializedType._hasTypeArguments() ? serializedType.typeArguments.map((t) => t.id) : void 0,
|
|
4204
|
+
indexAccessOrigin: convertFromCapnpIndexAccessOrigin(serializedType)
|
|
4205
|
+
};
|
|
4206
|
+
}
|
|
4207
|
+
function convertToCapnpLiteral(serializedType, result) {
|
|
4208
|
+
result.kind = serializedType.kind;
|
|
4209
|
+
result.typeName = serializedType.typeName || "";
|
|
4210
|
+
const literalType = result._initLiteral();
|
|
4211
|
+
if (typeof serializedType.literal === "boolean") literalType.boolean = serializedType.literal;
|
|
4212
|
+
else if (typeof serializedType.literal === "number") literalType.number = serializedType.literal;
|
|
4213
|
+
else if (typeof serializedType.literal === "string") literalType.string = serializedType.literal;
|
|
4214
|
+
else if (serializedType.literal.type === "bigint") {
|
|
4215
|
+
const literalTypeBigint = literalType._initBigint();
|
|
4216
|
+
literalTypeBigint.type = "bigint";
|
|
4217
|
+
literalTypeBigint.value = serializedType.literal.value;
|
|
4218
|
+
} else if (serializedType.literal.type === "symbol") {
|
|
4219
|
+
const literalTypeSymbol = literalType._initSymbol();
|
|
4220
|
+
literalTypeSymbol.type = "symbol";
|
|
4221
|
+
literalTypeSymbol.name = serializedType.literal.name.toString().slice(7, -1);
|
|
4222
|
+
} else if (serializedType.literal.type === "regex") {
|
|
4223
|
+
const literalTypeRegex = literalType._initRegex();
|
|
4224
|
+
literalTypeRegex.type = "regex";
|
|
4225
|
+
literalTypeRegex.regex = serializedType.literal.regex;
|
|
4226
|
+
}
|
|
4227
|
+
if (serializedType.decorators?.length) {
|
|
4228
|
+
const decorators = result._initDecorators(serializedType.decorators.length);
|
|
4229
|
+
serializedType.decorators.forEach((d, index) => {
|
|
4230
|
+
const decorator = decorators.get(index);
|
|
4231
|
+
decorator.id = d;
|
|
4232
|
+
});
|
|
4233
|
+
}
|
|
4234
|
+
if (serializedType.typeArguments?.length) {
|
|
4235
|
+
const typeArguments = result._initTypeArguments(serializedType.typeArguments.length);
|
|
4236
|
+
serializedType.typeArguments.forEach((t, index) => {
|
|
4237
|
+
const typeArgument = typeArguments.get(index);
|
|
4238
|
+
typeArgument.id = t;
|
|
4239
|
+
});
|
|
4240
|
+
}
|
|
4241
|
+
if (serializedType.indexAccessOrigin) convertToCapnpIndexAccessOrigin(result._initIndexAccessOrigin(), serializedType.indexAccessOrigin);
|
|
4242
|
+
return result;
|
|
4243
|
+
}
|
|
4244
|
+
function convertFromCapnpMethodSignature(serializedType) {
|
|
4245
|
+
return {
|
|
4246
|
+
kind: ReflectionKind.methodSignature,
|
|
4247
|
+
name: serializedType.name,
|
|
4248
|
+
typeName: serializedType.typeName || void 0,
|
|
4249
|
+
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
4250
|
+
parameters: serializedType._hasParameters() ? serializedType.parameters.map((p) => convertFromCapnpParameter(p)) : [],
|
|
4251
|
+
return: serializedType.return.id,
|
|
4252
|
+
tags: convertFromCapnpTagsReflection(serializedType)
|
|
4253
|
+
};
|
|
4254
|
+
}
|
|
4255
|
+
function convertToCapnpMethodSignature(serializedType, result) {
|
|
4256
|
+
result.kind = serializedType.kind;
|
|
4257
|
+
result.name = String(serializedType.name);
|
|
4258
|
+
result.typeName = serializedType.typeName || "";
|
|
4259
|
+
if (serializedType.decorators?.length) {
|
|
4260
|
+
const decorators = result._initDecorators(serializedType.decorators.length);
|
|
4261
|
+
serializedType.decorators.forEach((d, index) => {
|
|
4262
|
+
const decorator = decorators.get(index);
|
|
4263
|
+
decorator.id = d;
|
|
4264
|
+
});
|
|
4265
|
+
}
|
|
4266
|
+
if (serializedType.typeArguments?.length) {
|
|
4267
|
+
const typeArguments = result._initTypeArguments(serializedType.typeArguments.length);
|
|
4268
|
+
serializedType.typeArguments.forEach((t, index) => {
|
|
4269
|
+
const typeArgument = typeArguments.get(index);
|
|
4270
|
+
typeArgument.id = t;
|
|
4271
|
+
});
|
|
4272
|
+
}
|
|
4273
|
+
if (serializedType.indexAccessOrigin) convertToCapnpIndexAccessOrigin(result._initIndexAccessOrigin(), serializedType.indexAccessOrigin);
|
|
4274
|
+
if (serializedType.tags) convertToCapnpTagsReflection(result._initTags(), serializedType.tags);
|
|
4275
|
+
return result;
|
|
4276
|
+
}
|
|
4277
|
+
function convertFromCapnpPropertySignature(serializedType) {
|
|
4278
|
+
return {
|
|
4279
|
+
kind: ReflectionKind.propertySignature,
|
|
4280
|
+
name: serializedType.name,
|
|
4281
|
+
typeName: serializedType.typeName || void 0,
|
|
4282
|
+
description: serializedType.description,
|
|
4283
|
+
default: convertFromCapnpDefault(serializedType.default),
|
|
4284
|
+
optional: serializedType.optional ? true : void 0,
|
|
4285
|
+
readonly: serializedType.readonly ? true : void 0,
|
|
4286
|
+
type: serializedType.type.id,
|
|
4287
|
+
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
4288
|
+
typeArguments: serializedType._hasTypeArguments() ? serializedType.typeArguments.map((t) => t.id) : void 0,
|
|
4289
|
+
indexAccessOrigin: convertFromCapnpIndexAccessOrigin(serializedType),
|
|
4290
|
+
tags: convertFromCapnpTagsReflection(serializedType)
|
|
4291
|
+
};
|
|
4292
|
+
}
|
|
4293
|
+
function convertToCapnpDefault(defaultValue, result) {
|
|
4294
|
+
if (typeof defaultValue !== "undefined" && defaultValue !== "") {
|
|
4295
|
+
result._initValue();
|
|
4296
|
+
if (typeof defaultValue === "string") result.value.string = defaultValue;
|
|
4297
|
+
else if (typeof defaultValue === "number") if (isInteger(defaultValue)) result.value.integer = defaultValue;
|
|
4298
|
+
else result.value.float = defaultValue;
|
|
4299
|
+
else if (typeof defaultValue === "boolean") result.value.boolean = defaultValue;
|
|
4300
|
+
}
|
|
4301
|
+
}
|
|
4302
|
+
function convertFromCapnpDefault(serializedType) {
|
|
4303
|
+
if (typeof serializedType.value === "undefined") return;
|
|
4304
|
+
else if (serializedType.value._isBoolean) return serializedType.value.boolean;
|
|
4305
|
+
else if (serializedType.value._isInteger) return serializedType.value.integer;
|
|
4306
|
+
else if (serializedType.value._isFloat) return serializedType.value.float;
|
|
4307
|
+
else if (serializedType.value._isString) return serializedType.value.string;
|
|
4308
|
+
}
|
|
4309
|
+
function convertToCapnpPropertySignature(serializedType, result) {
|
|
4310
|
+
result.kind = serializedType.kind;
|
|
4311
|
+
result.name = String(serializedType.name) || "";
|
|
4312
|
+
result.typeName = serializedType.typeName || "";
|
|
4313
|
+
result.description = serializedType.description || "";
|
|
4314
|
+
result.optional = serializedType.optional ?? false;
|
|
4315
|
+
result.readonly = serializedType.readonly ?? false;
|
|
4316
|
+
if (typeof serializedType.default !== "undefined") {
|
|
4317
|
+
const defaultValue = result._initDefault();
|
|
4318
|
+
convertToCapnpDefault(serializedType.default, defaultValue);
|
|
4319
|
+
}
|
|
4320
|
+
const type = result._initType();
|
|
4321
|
+
type.id = serializedType.type;
|
|
4322
|
+
if (serializedType.decorators?.length) {
|
|
4323
|
+
const decorators = result._initDecorators(serializedType.decorators.length);
|
|
4324
|
+
serializedType.decorators.forEach((d, index) => {
|
|
4325
|
+
const decorator = decorators.get(index);
|
|
4326
|
+
decorator.id = d;
|
|
4327
|
+
});
|
|
4328
|
+
}
|
|
4329
|
+
if (serializedType.typeArguments?.length) {
|
|
4330
|
+
const typeArguments = result._initTypeArguments(serializedType.typeArguments.length);
|
|
4331
|
+
serializedType.typeArguments.forEach((t, index) => {
|
|
4332
|
+
const typeArgument = typeArguments.get(index);
|
|
4333
|
+
typeArgument.id = t;
|
|
4334
|
+
});
|
|
4335
|
+
}
|
|
4336
|
+
if (serializedType.indexAccessOrigin) convertToCapnpIndexAccessOrigin(result._initIndexAccessOrigin(), serializedType.indexAccessOrigin);
|
|
4337
|
+
if (serializedType.tags) convertToCapnpTagsReflection(result._initTags(), serializedType.tags);
|
|
4338
|
+
return result;
|
|
4339
|
+
}
|
|
4340
|
+
function convertToCapnpTupleMember(serializedType, result) {
|
|
4341
|
+
result.kind = serializedType.kind;
|
|
4342
|
+
result.typeName = serializedType.typeName || "";
|
|
4343
|
+
const type = result._initType();
|
|
4344
|
+
type.id = serializedType.type;
|
|
4345
|
+
if (serializedType.decorators?.length) {
|
|
4346
|
+
const decorators = result._initDecorators(serializedType.decorators.length);
|
|
4347
|
+
serializedType.decorators.forEach((d, index) => {
|
|
4348
|
+
const decorator = decorators.get(index);
|
|
4349
|
+
decorator.id = d;
|
|
4350
|
+
});
|
|
4351
|
+
}
|
|
4352
|
+
if (serializedType.typeArguments?.length) {
|
|
4353
|
+
const typeArguments = result._initTypeArguments(serializedType.typeArguments.length);
|
|
4354
|
+
serializedType.typeArguments.forEach((t, index) => {
|
|
4355
|
+
const typeArgument = typeArguments.get(index);
|
|
4356
|
+
typeArgument.id = t;
|
|
4357
|
+
});
|
|
4358
|
+
}
|
|
4359
|
+
if (serializedType.indexAccessOrigin) convertToCapnpIndexAccessOrigin(result._initIndexAccessOrigin(), serializedType.indexAccessOrigin);
|
|
4360
|
+
return result;
|
|
4361
|
+
}
|
|
4362
|
+
function convertFromCapnpTupleMember(serializedType) {
|
|
4363
|
+
return {
|
|
4364
|
+
kind: ReflectionKind.tupleMember,
|
|
4365
|
+
type: serializedType.type.id,
|
|
4366
|
+
typeName: serializedType.typeName || void 0,
|
|
4367
|
+
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
4368
|
+
typeArguments: serializedType._hasTypeArguments() ? serializedType.typeArguments.map((t) => t.id) : void 0,
|
|
4369
|
+
indexAccessOrigin: convertFromCapnpIndexAccessOrigin(serializedType)
|
|
4370
|
+
};
|
|
4371
|
+
}
|
|
4372
|
+
function convertToCapnpTuple(serializedType, result) {
|
|
4373
|
+
result.kind = serializedType.kind;
|
|
4374
|
+
result.typeName = serializedType.typeName || "";
|
|
4375
|
+
const types = result._initTypes(serializedType.types.length);
|
|
4376
|
+
serializedType.types.forEach((t, index) => {
|
|
4377
|
+
convertToCapnpTupleMember(t, types.get(index));
|
|
4378
|
+
});
|
|
4379
|
+
if (serializedType.decorators?.length) {
|
|
4380
|
+
const decorators = result._initDecorators(serializedType.decorators?.length ?? 0);
|
|
4381
|
+
serializedType.decorators?.forEach((d, index) => {
|
|
4382
|
+
const decorator = decorators.get(index);
|
|
4383
|
+
decorator.id = d;
|
|
4384
|
+
});
|
|
4385
|
+
}
|
|
4386
|
+
if (serializedType.typeArguments?.length) {
|
|
4387
|
+
const typeArguments = result._initTypeArguments(serializedType.typeArguments?.length ?? 0);
|
|
4388
|
+
serializedType.typeArguments?.forEach((t, index) => {
|
|
4389
|
+
const typeArgument = typeArguments.get(index);
|
|
4390
|
+
typeArgument.id = t;
|
|
4391
|
+
});
|
|
4392
|
+
}
|
|
4393
|
+
if (serializedType.indexAccessOrigin) convertToCapnpIndexAccessOrigin(result._initIndexAccessOrigin(), serializedType.indexAccessOrigin);
|
|
4394
|
+
return result;
|
|
4395
|
+
}
|
|
4396
|
+
function convertFromCapnpTuple(serializedType) {
|
|
4397
|
+
return {
|
|
4398
|
+
kind: ReflectionKind.tuple,
|
|
4399
|
+
typeName: serializedType.typeName || void 0,
|
|
4400
|
+
types: serializedType._hasTypes() ? serializedType.types.map((t) => convertFromCapnpTupleMember(t)) : [],
|
|
4401
|
+
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
4402
|
+
typeArguments: serializedType._hasTypeArguments() ? serializedType.typeArguments.map((t) => t.id) : void 0,
|
|
4403
|
+
indexAccessOrigin: convertFromCapnpIndexAccessOrigin(serializedType)
|
|
4404
|
+
};
|
|
4405
|
+
}
|
|
4406
|
+
function convertToCapnpProperty(serializedType, result) {
|
|
4407
|
+
result.kind = serializedType.kind;
|
|
4408
|
+
result.typeName = serializedType.typeName || "";
|
|
4409
|
+
result.description = serializedType.description || "";
|
|
4410
|
+
result.optional = serializedType.optional ?? false;
|
|
4411
|
+
result.readonly = serializedType.readonly ?? false;
|
|
4412
|
+
result.visibility = serializedType.visibility === ReflectionVisibility.public ? ReflectionVisibility$1.PUBLIC : serializedType.visibility === ReflectionVisibility.protected ? ReflectionVisibility$1.PROTECTED : ReflectionVisibility$1.PRIVATE;
|
|
4413
|
+
result.abstract = serializedType.abstract ?? false;
|
|
4414
|
+
result.name = String(serializedType.name) || "";
|
|
4415
|
+
if (typeof serializedType.default !== "undefined") {
|
|
4416
|
+
const defaultValue = result._initDefault();
|
|
4417
|
+
convertToCapnpDefault(serializedType.default, defaultValue);
|
|
4418
|
+
}
|
|
4419
|
+
const type = result._initType();
|
|
4420
|
+
type.id = serializedType.type;
|
|
4421
|
+
if (serializedType.decorators?.length) {
|
|
4422
|
+
const decorators = result._initDecorators(serializedType.decorators?.length ?? 0);
|
|
4423
|
+
serializedType.decorators?.forEach((d, index) => {
|
|
4424
|
+
const decorator = decorators.get(index);
|
|
4425
|
+
decorator.id = d;
|
|
4426
|
+
});
|
|
4427
|
+
}
|
|
4428
|
+
if (serializedType.typeArguments?.length) {
|
|
4429
|
+
const typeArguments = result._initTypeArguments(serializedType.typeArguments?.length ?? 0);
|
|
4430
|
+
serializedType.typeArguments?.forEach((t, index) => {
|
|
4431
|
+
const typeArgument = typeArguments.get(index);
|
|
4432
|
+
typeArgument.id = t;
|
|
4433
|
+
});
|
|
4434
|
+
}
|
|
4435
|
+
if (serializedType.indexAccessOrigin) convertToCapnpIndexAccessOrigin(result._initIndexAccessOrigin(), serializedType.indexAccessOrigin);
|
|
4436
|
+
if (serializedType.tags) convertToCapnpTagsReflection(result._initTags(), serializedType.tags);
|
|
4437
|
+
return result;
|
|
4438
|
+
}
|
|
4439
|
+
function convertFromCapnpProperty(serializedType) {
|
|
4440
|
+
return {
|
|
4441
|
+
kind: ReflectionKind.property,
|
|
4442
|
+
typeName: serializedType.typeName || void 0,
|
|
4443
|
+
description: serializedType.description,
|
|
4444
|
+
default: convertFromCapnpDefault(serializedType.default),
|
|
4445
|
+
optional: serializedType.optional ? true : void 0,
|
|
4446
|
+
readonly: serializedType.readonly ? true : void 0,
|
|
4447
|
+
visibility: serializedType.visibility === ReflectionVisibility$1.PUBLIC ? ReflectionVisibility.public : serializedType.visibility === ReflectionVisibility$1.PROTECTED ? ReflectionVisibility.protected : ReflectionVisibility.private,
|
|
4448
|
+
abstract: serializedType.abstract ? true : void 0,
|
|
4449
|
+
name: serializedType.name,
|
|
4450
|
+
type: serializedType.type.id,
|
|
4451
|
+
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
4452
|
+
typeArguments: serializedType._hasTypeArguments() ? serializedType.typeArguments.map((t) => t.id) : void 0,
|
|
4453
|
+
indexAccessOrigin: convertFromCapnpIndexAccessOrigin(serializedType),
|
|
4454
|
+
tags: convertFromCapnpTagsReflection(serializedType)
|
|
4455
|
+
};
|
|
4456
|
+
}
|
|
4457
|
+
function convertToCapnpEnum(serializedType, result) {
|
|
4458
|
+
result.kind = serializedType.kind;
|
|
4459
|
+
result.typeName = serializedType.typeName || "";
|
|
4460
|
+
const indexType = result._initIndexType();
|
|
4461
|
+
indexType.id = serializedType.indexType;
|
|
4462
|
+
if (serializedType.decorators?.length) {
|
|
4463
|
+
const decorators = result._initDecorators(serializedType.decorators?.length ?? 0);
|
|
4464
|
+
serializedType.decorators?.forEach((d, index) => {
|
|
4465
|
+
const decorator = decorators.get(index);
|
|
4466
|
+
decorator.id = d;
|
|
4467
|
+
});
|
|
4468
|
+
}
|
|
4469
|
+
if (serializedType.typeArguments?.length) {
|
|
4470
|
+
const typeArguments = result._initTypeArguments(serializedType.typeArguments?.length ?? 0);
|
|
4471
|
+
serializedType.typeArguments?.forEach((t, index) => {
|
|
4472
|
+
const typeArgument = typeArguments.get(index);
|
|
4473
|
+
typeArgument.id = t;
|
|
4474
|
+
});
|
|
4475
|
+
}
|
|
4476
|
+
if (serializedType.indexAccessOrigin) convertToCapnpIndexAccessOrigin(result._initIndexAccessOrigin(), serializedType.indexAccessOrigin);
|
|
4477
|
+
if (serializedType.values?.length) {
|
|
4478
|
+
const values = result._initValues(serializedType.values?.length);
|
|
4479
|
+
serializedType.values.forEach((value, index) => {
|
|
4480
|
+
values.set(index, String(value));
|
|
4481
|
+
});
|
|
4482
|
+
}
|
|
4483
|
+
const enumEntries = result._initEnumEntries(Object.keys(serializedType.enum).length ?? 0);
|
|
4484
|
+
Object.entries(serializedType.enum).forEach(([key, value], index) => {
|
|
4485
|
+
const enumEntry = enumEntries.get(index);
|
|
4486
|
+
enumEntry.name = key;
|
|
4487
|
+
enumEntry.value = String(value);
|
|
4488
|
+
});
|
|
4489
|
+
if (serializedType.tags) convertToCapnpTagsReflection(result._initTags(), serializedType.tags);
|
|
4490
|
+
return result;
|
|
4491
|
+
}
|
|
4492
|
+
function convertFromCapnpEnum(serializedType) {
|
|
4493
|
+
return {
|
|
4494
|
+
kind: ReflectionKind.enum,
|
|
4495
|
+
typeName: serializedType.typeName || void 0,
|
|
4496
|
+
indexType: serializedType.indexType.id,
|
|
4497
|
+
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
4498
|
+
typeArguments: serializedType._hasTypeArguments() ? serializedType.typeArguments.map((t) => t.id) : void 0,
|
|
4499
|
+
values: serializedType._hasValues() ? serializedType.values.map((value) => value) : [],
|
|
4500
|
+
enum: serializedType._hasEnumEntries() ? Object.entries(serializedType.enumEntries).reduce((ret, [key, value]) => {
|
|
4501
|
+
ret[key] = value.value;
|
|
4502
|
+
return ret;
|
|
4503
|
+
}, {}) : {},
|
|
4504
|
+
indexAccessOrigin: convertFromCapnpIndexAccessOrigin(serializedType),
|
|
4505
|
+
tags: convertFromCapnpTagsReflection(serializedType)
|
|
4506
|
+
};
|
|
4507
|
+
}
|
|
4508
|
+
function convertToCapnpIntersection(serializedType, result) {
|
|
4509
|
+
result.kind = serializedType.kind;
|
|
4510
|
+
result.typeName = serializedType.typeName || "";
|
|
4511
|
+
const types = result._initTypes(serializedType.types?.length ?? 0);
|
|
4512
|
+
serializedType.types?.forEach((t, index) => {
|
|
4513
|
+
const serializedTypeType = types.get(index);
|
|
4514
|
+
serializedTypeType.id = t;
|
|
4515
|
+
});
|
|
4516
|
+
if (serializedType.decorators?.length) {
|
|
4517
|
+
const decorators = result._initDecorators(serializedType.decorators?.length ?? 0);
|
|
4518
|
+
serializedType.decorators?.forEach((d, index) => {
|
|
4519
|
+
const decorator = decorators.get(index);
|
|
4520
|
+
decorator.id = d;
|
|
4521
|
+
});
|
|
4522
|
+
}
|
|
4523
|
+
if (serializedType.typeArguments?.length) {
|
|
4524
|
+
const typeArguments = result._initTypeArguments(serializedType.typeArguments?.length ?? 0);
|
|
4525
|
+
serializedType.typeArguments?.forEach((t, index) => {
|
|
4526
|
+
const typeArgument = typeArguments.get(index);
|
|
4527
|
+
typeArgument.id = t;
|
|
4528
|
+
});
|
|
4529
|
+
}
|
|
4530
|
+
if (serializedType.indexAccessOrigin) convertToCapnpIndexAccessOrigin(result._initIndexAccessOrigin(), serializedType.indexAccessOrigin);
|
|
4531
|
+
return result;
|
|
4532
|
+
}
|
|
4533
|
+
function convertFromCapnpIntersection(serializedType) {
|
|
4534
|
+
return {
|
|
4535
|
+
kind: ReflectionKind.intersection,
|
|
4536
|
+
typeName: serializedType.typeName || void 0,
|
|
4537
|
+
types: serializedType._hasTypes() ? serializedType.types.map((t) => t.id) : [],
|
|
4538
|
+
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
4539
|
+
typeArguments: serializedType._hasTypeArguments() ? serializedType.typeArguments.map((t) => t.id) : void 0,
|
|
4540
|
+
indexAccessOrigin: convertFromCapnpIndexAccessOrigin(serializedType)
|
|
4541
|
+
};
|
|
4542
|
+
}
|
|
4543
|
+
function convertToCapnpArray(serializedType, result) {
|
|
4544
|
+
result.kind = serializedType.kind;
|
|
4545
|
+
result.typeName = serializedType.typeName || "";
|
|
4546
|
+
const type = result._initType();
|
|
4547
|
+
type.id = serializedType.type;
|
|
4548
|
+
if (serializedType.decorators?.length) {
|
|
4549
|
+
const decorators = result._initDecorators(serializedType.decorators?.length ?? 0);
|
|
4550
|
+
serializedType.decorators?.forEach((d, index) => {
|
|
4551
|
+
const decorator = decorators.get(index);
|
|
4552
|
+
decorator.id = d;
|
|
4553
|
+
});
|
|
4554
|
+
}
|
|
4555
|
+
if (serializedType.typeArguments?.length) {
|
|
4556
|
+
const typeArguments = result._initTypeArguments(serializedType.typeArguments?.length ?? 0);
|
|
4557
|
+
serializedType.typeArguments?.forEach((t, index) => {
|
|
4558
|
+
const typeArgument = typeArguments.get(index);
|
|
4559
|
+
typeArgument.id = t;
|
|
4560
|
+
});
|
|
4561
|
+
}
|
|
4562
|
+
if (serializedType.indexAccessOrigin) convertToCapnpIndexAccessOrigin(result._initIndexAccessOrigin(), serializedType.indexAccessOrigin);
|
|
4563
|
+
if (serializedType.tags) convertToCapnpTagsReflection(result._initTags(), serializedType.tags);
|
|
4564
|
+
return result;
|
|
4565
|
+
}
|
|
4566
|
+
function convertFromCapnpArray(serializedType) {
|
|
4567
|
+
return {
|
|
4568
|
+
kind: ReflectionKind.array,
|
|
4569
|
+
typeName: serializedType.typeName || void 0,
|
|
4570
|
+
type: serializedType.type.id,
|
|
4571
|
+
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
4572
|
+
typeArguments: serializedType._hasTypeArguments() ? serializedType.typeArguments.map((t) => t.id) : void 0,
|
|
4573
|
+
indexAccessOrigin: convertFromCapnpIndexAccessOrigin(serializedType),
|
|
4574
|
+
tags: convertFromCapnpTagsReflection(serializedType)
|
|
4575
|
+
};
|
|
4576
|
+
}
|
|
4577
|
+
/**
|
|
4578
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
4579
|
+
*
|
|
4580
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
4581
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
4582
|
+
*/
|
|
4583
|
+
function convertToCapnpUnion(serializedType, result) {
|
|
4584
|
+
result.kind = serializedType.kind;
|
|
4585
|
+
result.typeName = serializedType.typeName || "";
|
|
4586
|
+
const types = result._initTypes(serializedType.types?.length ?? 0);
|
|
4587
|
+
serializedType.types?.forEach((t, index) => {
|
|
4588
|
+
const serializedTypeType = types.get(index);
|
|
4589
|
+
serializedTypeType.id = t;
|
|
4590
|
+
});
|
|
4591
|
+
if (serializedType.decorators?.length) {
|
|
4592
|
+
const decorators = result._initDecorators(serializedType.decorators?.length ?? 0);
|
|
4593
|
+
serializedType.decorators?.forEach((d, index) => {
|
|
4594
|
+
const decorator = decorators.get(index);
|
|
4595
|
+
decorator.id = d;
|
|
4596
|
+
});
|
|
4597
|
+
}
|
|
4598
|
+
if (serializedType.typeArguments?.length) {
|
|
4599
|
+
const typeArguments = result._initTypeArguments(serializedType.typeArguments?.length ?? 0);
|
|
4600
|
+
serializedType.typeArguments?.forEach((t, index) => {
|
|
4601
|
+
const typeArgument = typeArguments.get(index);
|
|
4602
|
+
typeArgument.id = t;
|
|
4603
|
+
});
|
|
4604
|
+
}
|
|
4605
|
+
if (serializedType.indexAccessOrigin) convertToCapnpIndexAccessOrigin(result._initIndexAccessOrigin(), serializedType.indexAccessOrigin);
|
|
4606
|
+
return result;
|
|
4607
|
+
}
|
|
4608
|
+
function convertFromCapnpUnion(serializedType) {
|
|
4609
|
+
return {
|
|
4610
|
+
kind: ReflectionKind.union,
|
|
4611
|
+
typeName: serializedType.typeName || void 0,
|
|
4612
|
+
types: serializedType._hasTypes() ? serializedType.types.map((t) => t.id) : [],
|
|
4613
|
+
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
4614
|
+
typeArguments: serializedType._hasTypeArguments() ? serializedType.typeArguments.map((t) => t.id) : void 0,
|
|
4615
|
+
indexAccessOrigin: convertFromCapnpIndexAccessOrigin(serializedType)
|
|
4616
|
+
};
|
|
4617
|
+
}
|
|
4618
|
+
/**
|
|
4619
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
4620
|
+
*
|
|
4621
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert.
|
|
4622
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
4623
|
+
*/
|
|
4624
|
+
function convertToCapnpInfer(serializedType, result) {
|
|
4625
|
+
result.kind = serializedType.kind;
|
|
4626
|
+
result.typeName = serializedType.typeName || "";
|
|
4627
|
+
if (serializedType.decorators?.length) {
|
|
4628
|
+
const decorators = result._initDecorators(serializedType.decorators?.length ?? 0);
|
|
4629
|
+
serializedType.decorators?.forEach((d, index) => {
|
|
4630
|
+
const decorator = decorators.get(index);
|
|
4631
|
+
decorator.id = d;
|
|
4632
|
+
});
|
|
4633
|
+
}
|
|
4634
|
+
if (serializedType.typeArguments?.length) {
|
|
4635
|
+
const typeArguments = result._initTypeArguments(serializedType.typeArguments?.length ?? 0);
|
|
4636
|
+
serializedType.typeArguments?.forEach((t, index) => {
|
|
4637
|
+
const typeArgument = typeArguments.get(index);
|
|
4638
|
+
typeArgument.id = t;
|
|
4639
|
+
});
|
|
4640
|
+
}
|
|
4641
|
+
if (serializedType.indexAccessOrigin) convertToCapnpIndexAccessOrigin(result._initIndexAccessOrigin(), serializedType.indexAccessOrigin);
|
|
4642
|
+
return result;
|
|
4643
|
+
}
|
|
4644
|
+
function convertFromCapnpInfer(serializedType) {
|
|
4645
|
+
return {
|
|
4646
|
+
kind: ReflectionKind.infer,
|
|
4647
|
+
typeName: serializedType.typeName || void 0,
|
|
4648
|
+
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
4649
|
+
typeArguments: serializedType._hasTypeArguments() ? serializedType.typeArguments.map((t) => t.id) : void 0,
|
|
4650
|
+
indexAccessOrigin: convertFromCapnpIndexAccessOrigin(serializedType)
|
|
4651
|
+
};
|
|
4652
|
+
}
|
|
4653
|
+
/**
|
|
4654
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
4655
|
+
*
|
|
4656
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
4657
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
4658
|
+
*/
|
|
4659
|
+
function convertToCapnpFunction(serializedType, result) {
|
|
4660
|
+
result.name = String(serializedType.name) || "";
|
|
4661
|
+
result.kind = serializedType.kind;
|
|
4662
|
+
result.typeName = serializedType.typeName || "";
|
|
4663
|
+
if (serializedType.decorators?.length) {
|
|
4664
|
+
const decorators = result._initDecorators(serializedType.decorators.length);
|
|
4665
|
+
serializedType.decorators.forEach((d, index) => {
|
|
4666
|
+
const decorator = decorators.get(index);
|
|
4667
|
+
decorator.id = d;
|
|
4668
|
+
});
|
|
4669
|
+
}
|
|
4670
|
+
if (serializedType.typeArguments?.length) {
|
|
4671
|
+
const typeArguments = result._initTypeArguments(serializedType.typeArguments.length);
|
|
4672
|
+
serializedType.typeArguments.forEach((t, index) => {
|
|
4673
|
+
const typeArgument = typeArguments.get(index);
|
|
4674
|
+
typeArgument.id = t;
|
|
4675
|
+
});
|
|
4676
|
+
}
|
|
4677
|
+
if (serializedType.parameters?.length) {
|
|
4678
|
+
const parameters = result._initParameters(serializedType.parameters.length);
|
|
4679
|
+
serializedType.parameters.forEach((p, index) => {
|
|
4680
|
+
convertToCapnpParameter(p, parameters.get(index));
|
|
4681
|
+
});
|
|
4682
|
+
}
|
|
4683
|
+
const returnType = result._initReturn();
|
|
4684
|
+
returnType.id = serializedType.return;
|
|
4685
|
+
if (serializedType.indexAccessOrigin) convertToCapnpIndexAccessOrigin(result._initIndexAccessOrigin(), serializedType.indexAccessOrigin);
|
|
4686
|
+
if (serializedType.tags) convertToCapnpTagsReflection(result._initTags(), serializedType.tags);
|
|
4687
|
+
return result;
|
|
4688
|
+
}
|
|
4689
|
+
/**
|
|
4690
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
4691
|
+
*
|
|
4692
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
4693
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
4694
|
+
*/
|
|
4695
|
+
function convertToCapnpMethod(serializedType, result) {
|
|
4696
|
+
result.name = String(serializedType.name) || "";
|
|
4697
|
+
result.kind = serializedType.kind;
|
|
4698
|
+
result.typeName = serializedType.typeName || "";
|
|
4699
|
+
result.abstract = serializedType.abstract ?? false;
|
|
4700
|
+
result.visibility = serializedType.visibility === ReflectionVisibility.public ? ReflectionVisibility$1.PUBLIC : serializedType.visibility === ReflectionVisibility.protected ? ReflectionVisibility$1.PROTECTED : ReflectionVisibility$1.PRIVATE;
|
|
4701
|
+
if (serializedType.decorators?.length) {
|
|
4702
|
+
const decorators = result._initDecorators(serializedType.decorators.length);
|
|
4703
|
+
serializedType.decorators.forEach((d, index) => {
|
|
4704
|
+
const decorator = decorators.get(index);
|
|
4705
|
+
decorator.id = d;
|
|
4706
|
+
});
|
|
4707
|
+
}
|
|
4708
|
+
if (serializedType.typeArguments?.length) {
|
|
4709
|
+
const typeArguments = result._initTypeArguments(serializedType.typeArguments.length);
|
|
4710
|
+
serializedType.typeArguments.forEach((t, index) => {
|
|
4711
|
+
const typeArgument = typeArguments.get(index);
|
|
4712
|
+
typeArgument.id = t;
|
|
4713
|
+
});
|
|
4714
|
+
}
|
|
4715
|
+
if (serializedType.parameters?.length) {
|
|
4716
|
+
const parameters = result._initParameters(serializedType.parameters.length);
|
|
4717
|
+
serializedType.parameters.forEach((p, index) => {
|
|
4718
|
+
convertToCapnpParameter(p, parameters.get(index));
|
|
4719
|
+
});
|
|
4720
|
+
}
|
|
4721
|
+
const returnType = result._initReturn();
|
|
4722
|
+
returnType.id = serializedType.return;
|
|
4723
|
+
if (serializedType.indexAccessOrigin) convertToCapnpIndexAccessOrigin(result._initIndexAccessOrigin(), serializedType.indexAccessOrigin);
|
|
4724
|
+
if (serializedType.tags) convertToCapnpTagsReflection(result._initTags(), serializedType.tags);
|
|
4725
|
+
return result;
|
|
4726
|
+
}
|
|
4727
|
+
function convertFromCapnpFunction(serializedType) {
|
|
4728
|
+
return {
|
|
4729
|
+
kind: ReflectionKind.function,
|
|
4730
|
+
name: serializedType.name,
|
|
4731
|
+
typeName: serializedType.typeName || void 0,
|
|
4732
|
+
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
4733
|
+
typeArguments: serializedType._hasTypeArguments() ? serializedType.typeArguments.map((t) => t.id) : void 0,
|
|
4734
|
+
parameters: serializedType._hasParameters() ? serializedType.parameters.map((p) => convertFromCapnpParameter(p)) : [],
|
|
4735
|
+
return: serializedType.return.id,
|
|
4736
|
+
indexAccessOrigin: convertFromCapnpIndexAccessOrigin(serializedType),
|
|
4737
|
+
tags: convertFromCapnpTagsReflection(serializedType)
|
|
4738
|
+
};
|
|
4739
|
+
}
|
|
4740
|
+
function convertFromCapnpMethod(serializedType) {
|
|
4741
|
+
return {
|
|
4742
|
+
kind: ReflectionKind.method,
|
|
4743
|
+
name: serializedType.name,
|
|
4744
|
+
typeName: serializedType.typeName || void 0,
|
|
4745
|
+
abstract: serializedType.abstract ? true : void 0,
|
|
4746
|
+
return: serializedType.return.id,
|
|
4747
|
+
visibility: serializedType.visibility === ReflectionVisibility$1.PUBLIC ? ReflectionVisibility.public : serializedType.visibility === ReflectionVisibility$1.PROTECTED ? ReflectionVisibility.protected : ReflectionVisibility.private,
|
|
4748
|
+
parameters: serializedType._hasParameters() ? serializedType.parameters.map((parameter) => convertFromCapnpParameter(parameter)) : []
|
|
4749
|
+
};
|
|
4750
|
+
}
|
|
4751
|
+
/**
|
|
4752
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
4753
|
+
*
|
|
4754
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
4755
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
4756
|
+
*/
|
|
4757
|
+
function convertToCapnpClassType(serializedType, result) {
|
|
4758
|
+
result.kind = serializedType.kind;
|
|
4759
|
+
result.typeName = serializedType.typeName || "";
|
|
4760
|
+
result.classType = serializedType.classType || "";
|
|
4761
|
+
result.globalObject = serializedType.globalObject ?? false;
|
|
4762
|
+
if (serializedType.arguments?.length) {
|
|
4763
|
+
const _arguments = result._initArguments(serializedType.arguments.length);
|
|
4764
|
+
serializedType.arguments.forEach((t, index) => {
|
|
4765
|
+
const serializedTypeArguments = _arguments.get(index);
|
|
4766
|
+
serializedTypeArguments.id = t;
|
|
4767
|
+
});
|
|
4768
|
+
}
|
|
4769
|
+
if (serializedType.extendsArguments?.length) {
|
|
4770
|
+
const extendsArguments = result._initArguments(serializedType.extendsArguments.length);
|
|
4771
|
+
serializedType.extendsArguments.forEach((t, index) => {
|
|
4772
|
+
const serializedTypeExtendsArguments = extendsArguments.get(index);
|
|
4773
|
+
serializedTypeExtendsArguments.id = t;
|
|
4774
|
+
});
|
|
4775
|
+
}
|
|
4776
|
+
if (serializedType.decorators?.length) {
|
|
4777
|
+
const decorators = result._initDecorators(serializedType.decorators.length);
|
|
4778
|
+
serializedType.decorators.forEach((d, index) => {
|
|
4779
|
+
const decorator = decorators.get(index);
|
|
4780
|
+
decorator.id = d;
|
|
4781
|
+
});
|
|
4782
|
+
}
|
|
4783
|
+
if (serializedType.typeArguments?.length) {
|
|
4784
|
+
const typeArguments = result._initTypeArguments(serializedType.typeArguments.length);
|
|
4785
|
+
serializedType.typeArguments.forEach((t, index) => {
|
|
4786
|
+
const typeArgument = typeArguments.get(index);
|
|
4787
|
+
typeArgument.id = t;
|
|
4788
|
+
});
|
|
4789
|
+
}
|
|
4790
|
+
if (serializedType.superClass) {
|
|
4791
|
+
const superClass = result._initSuperClass();
|
|
4792
|
+
superClass.id = serializedType.superClass;
|
|
4793
|
+
}
|
|
4794
|
+
if (serializedType.indexAccessOrigin) convertToCapnpIndexAccessOrigin(result._initIndexAccessOrigin(), serializedType.indexAccessOrigin);
|
|
4795
|
+
if (serializedType.tags) convertToCapnpTagsReflection(result._initTags(), serializedType.tags);
|
|
4796
|
+
return result;
|
|
4797
|
+
}
|
|
4798
|
+
function convertFromCapnpClassType(serializedType) {
|
|
4799
|
+
return {
|
|
4800
|
+
kind: ReflectionKind.class,
|
|
4801
|
+
typeName: serializedType.typeName || void 0,
|
|
4802
|
+
classType: serializedType.classType,
|
|
4803
|
+
globalObject: serializedType.globalObject ? true : void 0,
|
|
4804
|
+
arguments: serializedType._hasArguments() ? serializedType.arguments.map((t) => t.id) : void 0,
|
|
4805
|
+
extendsArguments: serializedType._hasExtendsArguments() ? serializedType.extendsArguments.map((t) => t.id) : void 0,
|
|
4806
|
+
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
4807
|
+
types: serializedType._hasTypes() ? serializedType.types.map((t) => t.id) : [],
|
|
4808
|
+
typeArguments: serializedType._hasTypeArguments() ? serializedType.typeArguments.map((t) => t.id) : void 0,
|
|
4809
|
+
superClass: serializedType._hasSuperClass() ? serializedType.superClass.id : void 0,
|
|
4810
|
+
indexAccessOrigin: convertFromCapnpIndexAccessOrigin(serializedType),
|
|
4811
|
+
tags: convertFromCapnpTagsReflection(serializedType)
|
|
4812
|
+
};
|
|
4813
|
+
}
|
|
4814
|
+
/**
|
|
4815
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
4816
|
+
*
|
|
4817
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
4818
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
4819
|
+
*/
|
|
4820
|
+
function convertToCapnpObjectLiteral(serializedType, result) {
|
|
4821
|
+
if (serializedType.decorators?.length) {
|
|
4822
|
+
const decorators = result._initDecorators(serializedType.decorators?.length ?? 0);
|
|
4823
|
+
serializedType.decorators.forEach((d, index) => {
|
|
4824
|
+
const decorator = decorators.get(index);
|
|
4825
|
+
decorator.id = d;
|
|
4826
|
+
});
|
|
4827
|
+
}
|
|
4828
|
+
if (serializedType.types?.length) {
|
|
4829
|
+
const types = result._initTypes(serializedType.types.length);
|
|
4830
|
+
serializedType.types.forEach((t, index) => {
|
|
4831
|
+
const serializedTypeType = types.get(index);
|
|
4832
|
+
serializedTypeType.id = t;
|
|
4833
|
+
});
|
|
4834
|
+
}
|
|
4835
|
+
if (serializedType.typeArguments?.length) {
|
|
4836
|
+
const typeArguments = result._initTypeArguments(serializedType.typeArguments.length);
|
|
4837
|
+
serializedType.typeArguments.forEach((t, index) => {
|
|
4838
|
+
const serializedTypeTypeArguments = typeArguments.get(index);
|
|
4839
|
+
serializedTypeTypeArguments.id = t;
|
|
4840
|
+
});
|
|
4841
|
+
}
|
|
4842
|
+
if (serializedType.indexAccessOrigin) convertToCapnpIndexAccessOrigin(result._initIndexAccessOrigin(), serializedType.indexAccessOrigin);
|
|
4843
|
+
if (serializedType.tags) convertToCapnpTagsReflection(result._initTags(), serializedType.tags);
|
|
4844
|
+
return result;
|
|
4845
|
+
}
|
|
4846
|
+
function convertFromCapnpObjectLiteral(serializedType) {
|
|
4847
|
+
return {
|
|
4848
|
+
kind: ReflectionKind.objectLiteral,
|
|
4849
|
+
typeName: serializedType.typeName || void 0,
|
|
4850
|
+
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
4851
|
+
types: serializedType._hasTypes() ? serializedType.types.map((t) => t.id) : [],
|
|
4852
|
+
typeArguments: serializedType._hasTypeArguments() ? serializedType.typeArguments.map((t) => t.id) : void 0,
|
|
4853
|
+
indexAccessOrigin: convertFromCapnpIndexAccessOrigin(serializedType),
|
|
4854
|
+
tags: convertFromCapnpTagsReflection(serializedType)
|
|
4855
|
+
};
|
|
4856
|
+
}
|
|
4857
|
+
/**
|
|
4858
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
4859
|
+
*
|
|
4860
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
4861
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
4862
|
+
*/
|
|
4863
|
+
function convertToCapnpParameter(serializedType, result) {
|
|
4864
|
+
result.kind = serializedType.kind;
|
|
4865
|
+
result.typeName = serializedType.typeName || "";
|
|
4866
|
+
result.name = serializedType.name || "";
|
|
4867
|
+
result.optional = serializedType.optional ?? false;
|
|
4868
|
+
result.readonly = serializedType.readonly ?? false;
|
|
4869
|
+
result.visibility = serializedType.visibility === ReflectionVisibility.public ? ReflectionVisibility$1.PUBLIC : serializedType.visibility === ReflectionVisibility.protected ? ReflectionVisibility$1.PROTECTED : ReflectionVisibility$1.PRIVATE;
|
|
4870
|
+
if (typeof serializedType.default !== "undefined") {
|
|
4871
|
+
const defaultValue = result._initDefault();
|
|
4872
|
+
convertToCapnpDefault(serializedType.default, defaultValue);
|
|
4873
|
+
}
|
|
4874
|
+
const parameterType = result._initType();
|
|
4875
|
+
parameterType.id = serializedType.type;
|
|
4876
|
+
if (serializedType.decorators?.length) {
|
|
4877
|
+
const decorators = result._initDecorators(serializedType.decorators.length);
|
|
4878
|
+
serializedType.decorators.forEach((d, index) => {
|
|
4879
|
+
const decorator = decorators.get(index);
|
|
4880
|
+
decorator.id = d;
|
|
4881
|
+
});
|
|
4882
|
+
}
|
|
4883
|
+
if (serializedType.typeArguments?.length) {
|
|
4884
|
+
const typeArguments = result._initTypeArguments(serializedType.typeArguments.length);
|
|
4885
|
+
serializedType.typeArguments.forEach((t, index) => {
|
|
4886
|
+
const typeArgument = typeArguments.get(index);
|
|
4887
|
+
typeArgument.id = t;
|
|
4888
|
+
});
|
|
4889
|
+
}
|
|
4890
|
+
if (serializedType.indexAccessOrigin) convertToCapnpIndexAccessOrigin(result._initIndexAccessOrigin(), serializedType.indexAccessOrigin);
|
|
4891
|
+
if (serializedType.tags) convertToCapnpTagsReflection(result._initTags(), serializedType.tags);
|
|
4892
|
+
return result;
|
|
4893
|
+
}
|
|
4894
|
+
function convertFromCapnpParameter(serializedType) {
|
|
4895
|
+
return {
|
|
4896
|
+
kind: ReflectionKind.parameter,
|
|
4897
|
+
typeName: serializedType.typeName || void 0,
|
|
4898
|
+
name: serializedType.name,
|
|
4899
|
+
default: convertFromCapnpDefault(serializedType.default),
|
|
4900
|
+
optional: serializedType.optional ? true : void 0,
|
|
4901
|
+
readonly: serializedType.readonly ? true : void 0,
|
|
4902
|
+
visibility: serializedType.visibility === ReflectionVisibility$1.PUBLIC ? ReflectionVisibility.public : serializedType.visibility === ReflectionVisibility$1.PROTECTED ? ReflectionVisibility.protected : ReflectionVisibility.private,
|
|
4903
|
+
type: serializedType.type.id,
|
|
4904
|
+
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
4905
|
+
typeArguments: serializedType._hasTypeArguments() ? serializedType.typeArguments.map((t) => t.id) : void 0,
|
|
4906
|
+
indexAccessOrigin: convertFromCapnpIndexAccessOrigin(serializedType),
|
|
4907
|
+
tags: convertFromCapnpTagsReflection(serializedType)
|
|
4908
|
+
};
|
|
4909
|
+
}
|
|
3994
4910
|
|
|
3995
4911
|
//#endregion
|
|
3996
|
-
export {
|
|
3997
|
-
//# sourceMappingURL=
|
|
4912
|
+
export { convertToCapnpIndexAccessOrigin as A, convertToCapnpPropertySignature as B, convertToCapnp as C, convertToCapnpDefault as D, convertToCapnpClassType as E, convertToCapnpMethodSignature as F, convertToCapnpUnion as G, convertToCapnpTagsReflection as H, convertToCapnpObjectLiteral as I, convertToCapnpOther as L, convertToCapnpIntersection as M, convertToCapnpLiteral as N, convertToCapnpEnum as O, convertToCapnpMethod as P, convertToCapnpParameter as R, convertFromCapnpUnion as S, convertToCapnpBase as T, convertToCapnpTuple as U, convertToCapnpSimple as V, convertToCapnpTupleMember as W, convertFromCapnpPropertySignature as _, convertFromCapnpDefault as a, convertFromCapnpTuple as b, convertFromCapnpIndexAccessOrigin as c, convertFromCapnpLiteral as d, convertFromCapnpMethodSignature as f, convertFromCapnpProperty as g, convertFromCapnpParameter as h, convertFromCapnpClassType as i, convertToCapnpInfer as j, convertToCapnpFunction as k, convertFromCapnpInfer as l, convertFromCapnpOther as m, convertFromCapnpArray as n, convertFromCapnpEnum as o, convertFromCapnpObjectLiteral as p, convertFromCapnpBase as r, convertFromCapnpFunction as s, convertFromCapnp as t, convertFromCapnpIntersection as u, convertFromCapnpSimple as v, convertToCapnpArray as w, convertFromCapnpTupleMember as x, convertFromCapnpTagsReflection as y, convertToCapnpProperty as z };
|
|
4913
|
+
//# sourceMappingURL=capnp-D0NNeu5y.mjs.map
|