@powerlines/deepkit 0.7.7 → 0.7.8

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