@powerlines/deepkit 0.6.166 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/bin/deepkit-install.cjs +55 -90
  2. package/dist/capnp-BLx1WTBU.cjs +5175 -0
  3. package/dist/capnp-BiGNkOmV.mjs +4905 -0
  4. package/dist/capnp.cjs +47 -186
  5. package/dist/capnp.d.cts +78 -77
  6. package/dist/{capnp.d.ts → capnp.d.mts} +78 -77
  7. package/dist/capnp.mjs +3 -0
  8. package/dist/chunk-C0xms8kb.cjs +34 -0
  9. package/dist/esbuild-plugin.cjs +47 -11
  10. package/dist/esbuild-plugin.d.cts +20 -18
  11. package/dist/esbuild-plugin.d.mts +35 -0
  12. package/dist/esbuild-plugin.mjs +48 -0
  13. package/dist/index.cjs +69 -250
  14. package/dist/index.d.cts +10 -19
  15. package/dist/index.d.mts +10 -0
  16. package/dist/index.mjs +11 -0
  17. package/dist/reflect-type.cjs +24 -12
  18. package/dist/reflect-type.d.cts +7 -5
  19. package/dist/{reflect-type.d.ts → reflect-type.d.mts} +7 -5
  20. package/dist/reflect-type.mjs +24 -0
  21. package/dist/{reflection-9KUpjPqV.d.cts → reflection-BwdnCwaK.d.cts} +11 -17
  22. package/dist/{reflection-9KUpjPqV.d.ts → reflection-D9R8cdSo.d.mts} +26 -32
  23. package/dist/resolve-reflections.cjs +15 -9
  24. package/dist/resolve-reflections.d.cts +4 -2
  25. package/dist/{resolve-reflections.d.ts → resolve-reflections.d.mts} +4 -2
  26. package/dist/resolve-reflections.mjs +16 -0
  27. package/dist/rolldown-plugin.cjs +44 -11
  28. package/dist/rolldown-plugin.d.cts +5 -3
  29. package/dist/{rolldown-plugin.d.ts → rolldown-plugin.d.mts} +5 -3
  30. package/dist/rolldown-plugin.mjs +45 -0
  31. package/dist/transformer.cjs +52 -13
  32. package/dist/transformer.d.cts +6 -4
  33. package/dist/{transformer.d.ts → transformer.d.mts} +6 -4
  34. package/dist/transformer.mjs +51 -0
  35. package/dist/transpile.cjs +29 -10
  36. package/dist/transpile.d.cts +6 -4
  37. package/dist/{transpile.d.ts → transpile.d.mts} +6 -4
  38. package/dist/transpile.mjs +29 -0
  39. package/dist/types.cjs +0 -4
  40. package/dist/types.d.cts +9 -9
  41. package/dist/{types.d.ts → types.d.mts} +9 -9
  42. package/dist/types.mjs +1 -0
  43. package/dist/utilities.cjs +116 -33
  44. package/dist/utilities.d.cts +4 -2
  45. package/dist/{utilities.d.ts → utilities.d.mts} +4 -2
  46. package/dist/utilities.mjs +111 -0
  47. package/dist/vendor/core.cjs +1240 -513
  48. package/dist/vendor/core.mjs +1116 -0
  49. package/dist/vendor/string-BoXo0wS7.cjs +2983 -0
  50. package/dist/vendor/string-BuMgdahD.mjs +2467 -0
  51. package/dist/vendor/type-BMLjRtLY.cjs +202 -0
  52. package/dist/vendor/type-Dgeqs-rL.mjs +190 -0
  53. package/dist/vendor/type-compiler/compiler-BUrWMhGi.cjs +6792 -0
  54. package/dist/vendor/type-compiler/compiler-Bg8jX6qU.mjs +6739 -0
  55. package/dist/vendor/type-compiler/compiler-D1z5h1MK.d.cts +578 -0
  56. package/dist/vendor/type-compiler/compiler-Nkxc4PLJ.d.mts +578 -0
  57. package/dist/vendor/type-compiler/compiler.cjs +11 -43
  58. package/dist/vendor/type-compiler/compiler.d.cts +2 -3
  59. package/dist/vendor/type-compiler/compiler.d.mts +2 -0
  60. package/dist/vendor/type-compiler/compiler.mjs +3 -0
  61. package/dist/vendor/type-compiler/config-BEX924PC.cjs +3709 -0
  62. package/dist/vendor/type-compiler/config-B_cKkYZm.d.cts +116 -0
  63. package/dist/vendor/type-compiler/config-D9DM7Du_.d.mts +116 -0
  64. package/dist/vendor/type-compiler/config-y0HNkbCH.mjs +3640 -0
  65. package/dist/vendor/type-compiler/config.cjs +9 -34
  66. package/dist/vendor/type-compiler/config.d.cts +2 -1
  67. package/dist/vendor/type-compiler/config.d.mts +2 -0
  68. package/dist/vendor/type-compiler/config.mjs +3 -0
  69. package/dist/vendor/type-compiler/index.cjs +56 -129
  70. package/dist/vendor/type-compiler/index.d.cts +22 -3
  71. package/dist/vendor/type-compiler/index.d.mts +22 -0
  72. package/dist/vendor/type-compiler/index.mjs +50 -0
  73. package/dist/vendor/type-spec.cjs +11 -12
  74. package/dist/vendor/type-spec.mjs +3 -0
  75. package/dist/vendor/type.cjs +8407 -17892
  76. package/dist/vendor/type.d.cts +10 -196
  77. package/dist/vendor/{type.d.ts → type.d.mts} +10 -196
  78. package/dist/vendor/type.mjs +9109 -0
  79. package/package.json +43 -31
  80. package/schemas/reflection.cjs +4018 -4129
  81. package/schemas/reflection.d.cts +30 -38
  82. package/schemas/{reflection.d.ts → reflection.d.mts} +30 -38
  83. package/schemas/reflection.mjs +4036 -0
  84. package/dist/capnp.js +0 -2
  85. package/dist/chunk-23YNDVRG.js +0 -34
  86. package/dist/chunk-27RKMKSF.cjs +0 -50
  87. package/dist/chunk-2XDQUCXZ.js +0 -2392
  88. package/dist/chunk-34OFD7LS.cjs +0 -68
  89. package/dist/chunk-7FXYDYVQ.cjs +0 -5246
  90. package/dist/chunk-7QZGCBH7.cjs +0 -11
  91. package/dist/chunk-ALM6UMVU.js +0 -9
  92. package/dist/chunk-BLLXF42T.cjs +0 -41
  93. package/dist/chunk-H3Q3XL3D.js +0 -19
  94. package/dist/chunk-HPVJ6OV3.cjs +0 -31
  95. package/dist/chunk-JQUKKAFM.js +0 -48
  96. package/dist/chunk-KK7TQA7L.cjs +0 -25
  97. package/dist/chunk-NPV2346T.js +0 -25
  98. package/dist/chunk-ORA4UQMU.cjs +0 -2
  99. package/dist/chunk-OUGDFUKJ.cjs +0 -2400
  100. package/dist/chunk-OULCUN6I.js +0 -1
  101. package/dist/chunk-SHUYVCID.js +0 -4
  102. package/dist/chunk-TDYIUJGY.js +0 -5180
  103. package/dist/chunk-USNT2KNT.cjs +0 -6
  104. package/dist/chunk-WYEFKIRL.js +0 -66
  105. package/dist/esbuild-plugin.d.ts +0 -33
  106. package/dist/esbuild-plugin.js +0 -4
  107. package/dist/index.d.ts +0 -19
  108. package/dist/index.js +0 -10
  109. package/dist/reflect-type.js +0 -5
  110. package/dist/resolve-reflections.js +0 -2
  111. package/dist/rolldown-plugin.js +0 -4
  112. package/dist/transformer.js +0 -2
  113. package/dist/transpile.js +0 -3
  114. package/dist/types.js +0 -1
  115. package/dist/utilities.js +0 -2
  116. package/dist/vendor/chunk-5BKT4CS5.js +0 -28
  117. package/dist/vendor/chunk-BLN7QVCP.js +0 -3704
  118. package/dist/vendor/chunk-BR2FK5K7.js +0 -109
  119. package/dist/vendor/chunk-EPQZMVJO.cjs +0 -3859
  120. package/dist/vendor/chunk-IFK6AU6M.cjs +0 -42
  121. package/dist/vendor/chunk-SHDAXCXF.cjs +0 -115
  122. package/dist/vendor/core.js +0 -2
  123. package/dist/vendor/type-compiler/chunk-3LL3TSRJ.js +0 -3762
  124. package/dist/vendor/type-compiler/chunk-CUTGHVNY.js +0 -7100
  125. package/dist/vendor/type-compiler/chunk-IAWCLVUK.cjs +0 -3780
  126. package/dist/vendor/type-compiler/chunk-UIWPG352.cjs +0 -7114
  127. package/dist/vendor/type-compiler/compiler.d.ts +0 -3
  128. package/dist/vendor/type-compiler/compiler.js +0 -5
  129. package/dist/vendor/type-compiler/config.d.ts +0 -1
  130. package/dist/vendor/type-compiler/config.js +0 -5
  131. package/dist/vendor/type-compiler/index.d.ts +0 -3
  132. package/dist/vendor/type-compiler/index.js +0 -66
  133. package/dist/vendor/type-spec.js +0 -2
  134. package/dist/vendor/type.js +0 -18359
  135. package/schemas/reflection.js +0 -4153
  136. /package/dist/vendor/{core.d.ts → core.d.mts} +0 -0
  137. /package/dist/vendor/{type-spec.d.ts → type-spec.d.mts} +0 -0
@@ -0,0 +1,4905 @@
1
+ import { ReflectionKind, ReflectionVisibility } from "@powerlines/deepkit/vendor/type";
2
+ import { isInteger, isSetObject, isUndefined } from "@stryke/type-checks";
3
+ import * as $ from "@stryke/capnp";
4
+
5
+ //#region schemas/reflection.ts
6
+ const ReflectionVisibility$1 = {
7
+ PUBLIC: 0,
8
+ PROTECTED: 1,
9
+ PRIVATE: 2
10
+ };
11
+ var TagsReflection$1 = class extends $.Struct {
12
+ static _capnp = {
13
+ displayName: "TagsReflection",
14
+ id: "ab7e31d6b834bbf8",
15
+ size: new $.ObjectSize(8, 4)
16
+ };
17
+ _adoptAlias(value) {
18
+ $.utils.adopt(value, $.utils.getPointer(0, this));
19
+ }
20
+ _disownAlias() {
21
+ return $.utils.disown(this.alias);
22
+ }
23
+ get alias() {
24
+ return $.utils.getList(0, $.TextList, this);
25
+ }
26
+ _hasAlias() {
27
+ return !$.utils.isNull($.utils.getPointer(0, this));
28
+ }
29
+ _initAlias(length) {
30
+ return $.utils.initList(0, $.TextList, length, this);
31
+ }
32
+ set alias(value) {
33
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
34
+ }
35
+ get title() {
36
+ return $.utils.getText(1, this);
37
+ }
38
+ set title(value) {
39
+ $.utils.setText(1, value, this);
40
+ }
41
+ get hidden() {
42
+ return $.utils.getBit(0, this);
43
+ }
44
+ set hidden(value) {
45
+ $.utils.setBit(0, value, this);
46
+ }
47
+ get readonly() {
48
+ return $.utils.getBit(1, this);
49
+ }
50
+ set readonly(value) {
51
+ $.utils.setBit(1, value, this);
52
+ }
53
+ get ignore() {
54
+ return $.utils.getBit(2, this);
55
+ }
56
+ set ignore(value) {
57
+ $.utils.setBit(2, value, this);
58
+ }
59
+ get internal() {
60
+ return $.utils.getBit(3, this);
61
+ }
62
+ set internal(value) {
63
+ $.utils.setBit(3, value, this);
64
+ }
65
+ _adoptPermission(value) {
66
+ $.utils.adopt(value, $.utils.getPointer(2, this));
67
+ }
68
+ _disownPermission() {
69
+ return $.utils.disown(this.permission);
70
+ }
71
+ get permission() {
72
+ return $.utils.getList(2, $.TextList, this);
73
+ }
74
+ _hasPermission() {
75
+ return !$.utils.isNull($.utils.getPointer(2, this));
76
+ }
77
+ _initPermission(length) {
78
+ return $.utils.initList(2, $.TextList, length, this);
79
+ }
80
+ set permission(value) {
81
+ $.utils.copyFrom(value, $.utils.getPointer(2, this));
82
+ }
83
+ get domain() {
84
+ return $.utils.getText(3, this);
85
+ }
86
+ set domain(value) {
87
+ $.utils.setText(3, value, this);
88
+ }
89
+ toString() {
90
+ return "TagsReflection_" + super.toString();
91
+ }
92
+ };
93
+ const DefaultValueReflection_Value_Which = {
94
+ UNDEFINED: 0,
95
+ BOOLEAN: 1,
96
+ INTEGER: 2,
97
+ FLOAT: 3,
98
+ STRING: 4
99
+ };
100
+ var DefaultValueReflection_Value = class extends $.Struct {
101
+ static UNDEFINED = DefaultValueReflection_Value_Which.UNDEFINED;
102
+ static BOOLEAN = DefaultValueReflection_Value_Which.BOOLEAN;
103
+ static INTEGER = DefaultValueReflection_Value_Which.INTEGER;
104
+ static FLOAT = DefaultValueReflection_Value_Which.FLOAT;
105
+ static STRING = DefaultValueReflection_Value_Which.STRING;
106
+ static _capnp = {
107
+ displayName: "value",
108
+ id: "8748135e0497fe81",
109
+ size: new $.ObjectSize(16, 1)
110
+ };
111
+ get _isUndefined() {
112
+ return $.utils.getUint16(0, this) === 0;
113
+ }
114
+ set undefined(_) {
115
+ $.utils.setUint16(0, 0, this);
116
+ }
117
+ get boolean() {
118
+ $.utils.testWhich("boolean", $.utils.getUint16(0, this), 1, this);
119
+ return $.utils.getBit(16, this);
120
+ }
121
+ get _isBoolean() {
122
+ return $.utils.getUint16(0, this) === 1;
123
+ }
124
+ set boolean(value) {
125
+ $.utils.setUint16(0, 1, this);
126
+ $.utils.setBit(16, value, this);
127
+ }
128
+ get integer() {
129
+ $.utils.testWhich("integer", $.utils.getUint16(0, this), 2, this);
130
+ return $.utils.getInt32(4, this);
131
+ }
132
+ get _isInteger() {
133
+ return $.utils.getUint16(0, this) === 2;
134
+ }
135
+ set integer(value) {
136
+ $.utils.setUint16(0, 2, this);
137
+ $.utils.setInt32(4, value, this);
138
+ }
139
+ get float() {
140
+ $.utils.testWhich("float", $.utils.getUint16(0, this), 3, this);
141
+ return $.utils.getFloat64(8, this);
142
+ }
143
+ get _isFloat() {
144
+ return $.utils.getUint16(0, this) === 3;
145
+ }
146
+ set float(value) {
147
+ $.utils.setUint16(0, 3, this);
148
+ $.utils.setFloat64(8, value, this);
149
+ }
150
+ get string() {
151
+ $.utils.testWhich("string", $.utils.getUint16(0, this), 4, this);
152
+ return $.utils.getText(0, this);
153
+ }
154
+ get _isString() {
155
+ return $.utils.getUint16(0, this) === 4;
156
+ }
157
+ set string(value) {
158
+ $.utils.setUint16(0, 4, this);
159
+ $.utils.setText(0, value, this);
160
+ }
161
+ toString() {
162
+ return "DefaultValueReflection_Value_" + super.toString();
163
+ }
164
+ which() {
165
+ return $.utils.getUint16(0, this);
166
+ }
167
+ };
168
+ var DefaultValueReflection = class extends $.Struct {
169
+ static _capnp = {
170
+ displayName: "DefaultValueReflection",
171
+ id: "96fe6f07954197c9",
172
+ size: new $.ObjectSize(16, 1)
173
+ };
174
+ get value() {
175
+ return $.utils.getAs(DefaultValueReflection_Value, this);
176
+ }
177
+ _initValue() {
178
+ return $.utils.getAs(DefaultValueReflection_Value, this);
179
+ }
180
+ toString() {
181
+ return "DefaultValueReflection_" + super.toString();
182
+ }
183
+ };
184
+ var SerializedTypeReference$1 = class extends $.Struct {
185
+ static _capnp = {
186
+ displayName: "SerializedTypeReference",
187
+ id: "a83d8a28b5e80f3a",
188
+ size: new $.ObjectSize(8, 0)
189
+ };
190
+ get id() {
191
+ return $.utils.getUint32(0, this);
192
+ }
193
+ set id(value) {
194
+ $.utils.setUint32(0, value, this);
195
+ }
196
+ toString() {
197
+ return "SerializedTypeReference_" + super.toString();
198
+ }
199
+ };
200
+ var IndexAccessOrigin = class extends $.Struct {
201
+ static _capnp = {
202
+ displayName: "IndexAccessOrigin",
203
+ id: "ca50b18186c87afe",
204
+ size: new $.ObjectSize(0, 2)
205
+ };
206
+ _adoptContainer(value) {
207
+ $.utils.adopt(value, $.utils.getPointer(0, this));
208
+ }
209
+ _disownContainer() {
210
+ return $.utils.disown(this.container);
211
+ }
212
+ get container() {
213
+ return $.utils.getStruct(0, SerializedTypeReference$1, this);
214
+ }
215
+ _hasContainer() {
216
+ return !$.utils.isNull($.utils.getPointer(0, this));
217
+ }
218
+ _initContainer() {
219
+ return $.utils.initStructAt(0, SerializedTypeReference$1, this);
220
+ }
221
+ set container(value) {
222
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
223
+ }
224
+ _adoptIndex(value) {
225
+ $.utils.adopt(value, $.utils.getPointer(1, this));
226
+ }
227
+ _disownIndex() {
228
+ return $.utils.disown(this.index);
229
+ }
230
+ get index() {
231
+ return $.utils.getStruct(1, SerializedTypeReference$1, this);
232
+ }
233
+ _hasIndex() {
234
+ return !$.utils.isNull($.utils.getPointer(1, this));
235
+ }
236
+ _initIndex() {
237
+ return $.utils.initStructAt(1, SerializedTypeReference$1, this);
238
+ }
239
+ set index(value) {
240
+ $.utils.copyFrom(value, $.utils.getPointer(1, this));
241
+ }
242
+ toString() {
243
+ return "IndexAccessOrigin_" + super.toString();
244
+ }
245
+ };
246
+ var EntityOptions_EntityIndexOptions = class extends $.Struct {
247
+ static _capnp = {
248
+ displayName: "EntityIndexOptions",
249
+ id: "de584ad10b7c5004",
250
+ size: new $.ObjectSize(0, 2)
251
+ };
252
+ _adoptNames(value) {
253
+ $.utils.adopt(value, $.utils.getPointer(0, this));
254
+ }
255
+ _disownNames() {
256
+ return $.utils.disown(this.names);
257
+ }
258
+ get names() {
259
+ return $.utils.getList(0, $.TextList, this);
260
+ }
261
+ _hasNames() {
262
+ return !$.utils.isNull($.utils.getPointer(0, this));
263
+ }
264
+ _initNames(length) {
265
+ return $.utils.initList(0, $.TextList, length, this);
266
+ }
267
+ set names(value) {
268
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
269
+ }
270
+ /**
271
+ * JSON stringified options
272
+ *
273
+ */
274
+ get options() {
275
+ return $.utils.getText(1, this);
276
+ }
277
+ set options(value) {
278
+ $.utils.setText(1, value, this);
279
+ }
280
+ toString() {
281
+ return "EntityOptions_EntityIndexOptions_" + super.toString();
282
+ }
283
+ };
284
+ var EntityOptions = class EntityOptions extends $.Struct {
285
+ static EntityIndexOptions = EntityOptions_EntityIndexOptions;
286
+ static _capnp = {
287
+ displayName: "EntityOptions",
288
+ id: "948d2d02cf676d60",
289
+ size: new $.ObjectSize(8, 5)
290
+ };
291
+ static _Indexes;
292
+ get name() {
293
+ return $.utils.getText(0, this);
294
+ }
295
+ set name(value) {
296
+ $.utils.setText(0, value, this);
297
+ }
298
+ get description() {
299
+ return $.utils.getText(1, this);
300
+ }
301
+ set description(value) {
302
+ $.utils.setText(1, value, this);
303
+ }
304
+ get collection() {
305
+ return $.utils.getText(2, this);
306
+ }
307
+ set collection(value) {
308
+ $.utils.setText(2, value, this);
309
+ }
310
+ get database() {
311
+ return $.utils.getText(3, this);
312
+ }
313
+ set database(value) {
314
+ $.utils.setText(3, value, this);
315
+ }
316
+ get singleTableInheritance() {
317
+ return $.utils.getBit(0, this);
318
+ }
319
+ set singleTableInheritance(value) {
320
+ $.utils.setBit(0, value, this);
321
+ }
322
+ _adoptIndexes(value) {
323
+ $.utils.adopt(value, $.utils.getPointer(4, this));
324
+ }
325
+ _disownIndexes() {
326
+ return $.utils.disown(this.indexes);
327
+ }
328
+ get indexes() {
329
+ return $.utils.getList(4, EntityOptions._Indexes, this);
330
+ }
331
+ _hasIndexes() {
332
+ return !$.utils.isNull($.utils.getPointer(4, this));
333
+ }
334
+ _initIndexes(length) {
335
+ return $.utils.initList(4, EntityOptions._Indexes, length, this);
336
+ }
337
+ set indexes(value) {
338
+ $.utils.copyFrom(value, $.utils.getPointer(4, this));
339
+ }
340
+ toString() {
341
+ return "EntityOptions_" + super.toString();
342
+ }
343
+ };
344
+ var SerializedTypeObjectLiteral$1 = class SerializedTypeObjectLiteral$1 extends $.Struct {
345
+ static _capnp = {
346
+ displayName: "SerializedTypeObjectLiteral",
347
+ id: "8b56235ad9bcb2b1",
348
+ size: new $.ObjectSize(8, 6)
349
+ };
350
+ static _TypeArguments;
351
+ static _Decorators;
352
+ static _Types;
353
+ get typeName() {
354
+ return $.utils.getText(0, this);
355
+ }
356
+ set typeName(value) {
357
+ $.utils.setText(0, value, this);
358
+ }
359
+ _adoptTypeArguments(value) {
360
+ $.utils.adopt(value, $.utils.getPointer(1, this));
361
+ }
362
+ _disownTypeArguments() {
363
+ return $.utils.disown(this.typeArguments);
364
+ }
365
+ get typeArguments() {
366
+ return $.utils.getList(1, SerializedTypeObjectLiteral$1._TypeArguments, this);
367
+ }
368
+ _hasTypeArguments() {
369
+ return !$.utils.isNull($.utils.getPointer(1, this));
370
+ }
371
+ _initTypeArguments(length) {
372
+ return $.utils.initList(1, SerializedTypeObjectLiteral$1._TypeArguments, length, this);
373
+ }
374
+ set typeArguments(value) {
375
+ $.utils.copyFrom(value, $.utils.getPointer(1, this));
376
+ }
377
+ _adoptIndexAccessOrigin(value) {
378
+ $.utils.adopt(value, $.utils.getPointer(2, this));
379
+ }
380
+ _disownIndexAccessOrigin() {
381
+ return $.utils.disown(this.indexAccessOrigin);
382
+ }
383
+ get indexAccessOrigin() {
384
+ return $.utils.getStruct(2, IndexAccessOrigin, this);
385
+ }
386
+ _hasIndexAccessOrigin() {
387
+ return !$.utils.isNull($.utils.getPointer(2, this));
388
+ }
389
+ _initIndexAccessOrigin() {
390
+ return $.utils.initStructAt(2, IndexAccessOrigin, this);
391
+ }
392
+ set indexAccessOrigin(value) {
393
+ $.utils.copyFrom(value, $.utils.getPointer(2, this));
394
+ }
395
+ _adoptDecorators(value) {
396
+ $.utils.adopt(value, $.utils.getPointer(3, this));
397
+ }
398
+ _disownDecorators() {
399
+ return $.utils.disown(this.decorators);
400
+ }
401
+ get decorators() {
402
+ return $.utils.getList(3, SerializedTypeObjectLiteral$1._Decorators, this);
403
+ }
404
+ _hasDecorators() {
405
+ return !$.utils.isNull($.utils.getPointer(3, this));
406
+ }
407
+ _initDecorators(length) {
408
+ return $.utils.initList(3, SerializedTypeObjectLiteral$1._Decorators, length, this);
409
+ }
410
+ set decorators(value) {
411
+ $.utils.copyFrom(value, $.utils.getPointer(3, this));
412
+ }
413
+ get kind() {
414
+ return $.utils.getUint16(0, this);
415
+ }
416
+ set kind(value) {
417
+ $.utils.setUint16(0, value, this);
418
+ }
419
+ _adoptTypes(value) {
420
+ $.utils.adopt(value, $.utils.getPointer(4, this));
421
+ }
422
+ _disownTypes() {
423
+ return $.utils.disown(this.types);
424
+ }
425
+ get types() {
426
+ return $.utils.getList(4, SerializedTypeObjectLiteral$1._Types, this);
427
+ }
428
+ _hasTypes() {
429
+ return !$.utils.isNull($.utils.getPointer(4, this));
430
+ }
431
+ _initTypes(length) {
432
+ return $.utils.initList(4, SerializedTypeObjectLiteral$1._Types, length, this);
433
+ }
434
+ set types(value) {
435
+ $.utils.copyFrom(value, $.utils.getPointer(4, this));
436
+ }
437
+ _adoptTags(value) {
438
+ $.utils.adopt(value, $.utils.getPointer(5, this));
439
+ }
440
+ _disownTags() {
441
+ return $.utils.disown(this.tags);
442
+ }
443
+ get tags() {
444
+ return $.utils.getStruct(5, TagsReflection$1, this);
445
+ }
446
+ _hasTags() {
447
+ return !$.utils.isNull($.utils.getPointer(5, this));
448
+ }
449
+ _initTags() {
450
+ return $.utils.initStructAt(5, TagsReflection$1, this);
451
+ }
452
+ set tags(value) {
453
+ $.utils.copyFrom(value, $.utils.getPointer(5, this));
454
+ }
455
+ toString() {
456
+ return "SerializedTypeObjectLiteral_" + super.toString();
457
+ }
458
+ };
459
+ var SerializedTypeClassType$1 = class SerializedTypeClassType$1 extends $.Struct {
460
+ static _capnp = {
461
+ displayName: "SerializedTypeClassType",
462
+ id: "9855392bf9c48b25",
463
+ size: new $.ObjectSize(8, 11)
464
+ };
465
+ static _TypeArguments;
466
+ static _Decorators;
467
+ static _ExtendsArguments;
468
+ static _Arguments;
469
+ static _Types;
470
+ get typeName() {
471
+ return $.utils.getText(0, this);
472
+ }
473
+ set typeName(value) {
474
+ $.utils.setText(0, value, this);
475
+ }
476
+ _adoptTypeArguments(value) {
477
+ $.utils.adopt(value, $.utils.getPointer(1, this));
478
+ }
479
+ _disownTypeArguments() {
480
+ return $.utils.disown(this.typeArguments);
481
+ }
482
+ get typeArguments() {
483
+ return $.utils.getList(1, SerializedTypeClassType$1._TypeArguments, this);
484
+ }
485
+ _hasTypeArguments() {
486
+ return !$.utils.isNull($.utils.getPointer(1, this));
487
+ }
488
+ _initTypeArguments(length) {
489
+ return $.utils.initList(1, SerializedTypeClassType$1._TypeArguments, length, this);
490
+ }
491
+ set typeArguments(value) {
492
+ $.utils.copyFrom(value, $.utils.getPointer(1, this));
493
+ }
494
+ _adoptIndexAccessOrigin(value) {
495
+ $.utils.adopt(value, $.utils.getPointer(2, this));
496
+ }
497
+ _disownIndexAccessOrigin() {
498
+ return $.utils.disown(this.indexAccessOrigin);
499
+ }
500
+ get indexAccessOrigin() {
501
+ return $.utils.getStruct(2, IndexAccessOrigin, this);
502
+ }
503
+ _hasIndexAccessOrigin() {
504
+ return !$.utils.isNull($.utils.getPointer(2, this));
505
+ }
506
+ _initIndexAccessOrigin() {
507
+ return $.utils.initStructAt(2, IndexAccessOrigin, this);
508
+ }
509
+ set indexAccessOrigin(value) {
510
+ $.utils.copyFrom(value, $.utils.getPointer(2, this));
511
+ }
512
+ _adoptDecorators(value) {
513
+ $.utils.adopt(value, $.utils.getPointer(3, this));
514
+ }
515
+ _disownDecorators() {
516
+ return $.utils.disown(this.decorators);
517
+ }
518
+ get decorators() {
519
+ return $.utils.getList(3, SerializedTypeClassType$1._Decorators, this);
520
+ }
521
+ _hasDecorators() {
522
+ return !$.utils.isNull($.utils.getPointer(3, this));
523
+ }
524
+ _initDecorators(length) {
525
+ return $.utils.initList(3, SerializedTypeClassType$1._Decorators, length, this);
526
+ }
527
+ set decorators(value) {
528
+ $.utils.copyFrom(value, $.utils.getPointer(3, this));
529
+ }
530
+ get kind() {
531
+ return $.utils.getUint16(0, this);
532
+ }
533
+ set kind(value) {
534
+ $.utils.setUint16(0, value, this);
535
+ }
536
+ get name() {
537
+ return $.utils.getText(4, this);
538
+ }
539
+ set name(value) {
540
+ $.utils.setText(4, value, this);
541
+ }
542
+ get globalObject() {
543
+ return $.utils.getBit(16, this);
544
+ }
545
+ set globalObject(value) {
546
+ $.utils.setBit(16, value, this);
547
+ }
548
+ get classType() {
549
+ return $.utils.getText(5, this);
550
+ }
551
+ set classType(value) {
552
+ $.utils.setText(5, value, this);
553
+ }
554
+ _adoptExtendsArguments(value) {
555
+ $.utils.adopt(value, $.utils.getPointer(6, this));
556
+ }
557
+ _disownExtendsArguments() {
558
+ return $.utils.disown(this.extendsArguments);
559
+ }
560
+ get extendsArguments() {
561
+ return $.utils.getList(6, SerializedTypeClassType$1._ExtendsArguments, this);
562
+ }
563
+ _hasExtendsArguments() {
564
+ return !$.utils.isNull($.utils.getPointer(6, this));
565
+ }
566
+ _initExtendsArguments(length) {
567
+ return $.utils.initList(6, SerializedTypeClassType$1._ExtendsArguments, length, this);
568
+ }
569
+ set extendsArguments(value) {
570
+ $.utils.copyFrom(value, $.utils.getPointer(6, this));
571
+ }
572
+ _adoptArguments(value) {
573
+ $.utils.adopt(value, $.utils.getPointer(7, this));
574
+ }
575
+ _disownArguments() {
576
+ return $.utils.disown(this.arguments);
577
+ }
578
+ get arguments() {
579
+ return $.utils.getList(7, SerializedTypeClassType$1._Arguments, this);
580
+ }
581
+ _hasArguments() {
582
+ return !$.utils.isNull($.utils.getPointer(7, this));
583
+ }
584
+ _initArguments(length) {
585
+ return $.utils.initList(7, SerializedTypeClassType$1._Arguments, length, this);
586
+ }
587
+ set arguments(value) {
588
+ $.utils.copyFrom(value, $.utils.getPointer(7, this));
589
+ }
590
+ _adoptSuperClass(value) {
591
+ $.utils.adopt(value, $.utils.getPointer(8, this));
592
+ }
593
+ _disownSuperClass() {
594
+ return $.utils.disown(this.superClass);
595
+ }
596
+ get superClass() {
597
+ return $.utils.getStruct(8, SerializedTypeReference$1, this);
598
+ }
599
+ _hasSuperClass() {
600
+ return !$.utils.isNull($.utils.getPointer(8, this));
601
+ }
602
+ _initSuperClass() {
603
+ return $.utils.initStructAt(8, SerializedTypeReference$1, this);
604
+ }
605
+ set superClass(value) {
606
+ $.utils.copyFrom(value, $.utils.getPointer(8, this));
607
+ }
608
+ _adoptTypes(value) {
609
+ $.utils.adopt(value, $.utils.getPointer(9, this));
610
+ }
611
+ _disownTypes() {
612
+ return $.utils.disown(this.types);
613
+ }
614
+ get types() {
615
+ return $.utils.getList(9, SerializedTypeClassType$1._Types, this);
616
+ }
617
+ _hasTypes() {
618
+ return !$.utils.isNull($.utils.getPointer(9, this));
619
+ }
620
+ _initTypes(length) {
621
+ return $.utils.initList(9, SerializedTypeClassType$1._Types, length, this);
622
+ }
623
+ set types(value) {
624
+ $.utils.copyFrom(value, $.utils.getPointer(9, this));
625
+ }
626
+ _adoptTags(value) {
627
+ $.utils.adopt(value, $.utils.getPointer(10, this));
628
+ }
629
+ _disownTags() {
630
+ return $.utils.disown(this.tags);
631
+ }
632
+ get tags() {
633
+ return $.utils.getStruct(10, TagsReflection$1, this);
634
+ }
635
+ _hasTags() {
636
+ return !$.utils.isNull($.utils.getPointer(10, this));
637
+ }
638
+ _initTags() {
639
+ return $.utils.initStructAt(10, TagsReflection$1, this);
640
+ }
641
+ set tags(value) {
642
+ $.utils.copyFrom(value, $.utils.getPointer(10, this));
643
+ }
644
+ toString() {
645
+ return "SerializedTypeClassType_" + super.toString();
646
+ }
647
+ };
648
+ var SerializedTypeParameter$1 = class SerializedTypeParameter$1 extends $.Struct {
649
+ static _capnp = {
650
+ displayName: "SerializedTypeParameter",
651
+ id: "fcbaa08bb97b8b1a",
652
+ size: new $.ObjectSize(8, 8)
653
+ };
654
+ static _TypeArguments;
655
+ static _Decorators;
656
+ get typeName() {
657
+ return $.utils.getText(0, this);
658
+ }
659
+ set typeName(value) {
660
+ $.utils.setText(0, value, this);
661
+ }
662
+ _adoptTypeArguments(value) {
663
+ $.utils.adopt(value, $.utils.getPointer(1, this));
664
+ }
665
+ _disownTypeArguments() {
666
+ return $.utils.disown(this.typeArguments);
667
+ }
668
+ get typeArguments() {
669
+ return $.utils.getList(1, SerializedTypeParameter$1._TypeArguments, this);
670
+ }
671
+ _hasTypeArguments() {
672
+ return !$.utils.isNull($.utils.getPointer(1, this));
673
+ }
674
+ _initTypeArguments(length) {
675
+ return $.utils.initList(1, SerializedTypeParameter$1._TypeArguments, length, this);
676
+ }
677
+ set typeArguments(value) {
678
+ $.utils.copyFrom(value, $.utils.getPointer(1, this));
679
+ }
680
+ _adoptIndexAccessOrigin(value) {
681
+ $.utils.adopt(value, $.utils.getPointer(2, this));
682
+ }
683
+ _disownIndexAccessOrigin() {
684
+ return $.utils.disown(this.indexAccessOrigin);
685
+ }
686
+ get indexAccessOrigin() {
687
+ return $.utils.getStruct(2, IndexAccessOrigin, this);
688
+ }
689
+ _hasIndexAccessOrigin() {
690
+ return !$.utils.isNull($.utils.getPointer(2, this));
691
+ }
692
+ _initIndexAccessOrigin() {
693
+ return $.utils.initStructAt(2, IndexAccessOrigin, this);
694
+ }
695
+ set indexAccessOrigin(value) {
696
+ $.utils.copyFrom(value, $.utils.getPointer(2, this));
697
+ }
698
+ _adoptDecorators(value) {
699
+ $.utils.adopt(value, $.utils.getPointer(3, this));
700
+ }
701
+ _disownDecorators() {
702
+ return $.utils.disown(this.decorators);
703
+ }
704
+ get decorators() {
705
+ return $.utils.getList(3, SerializedTypeParameter$1._Decorators, this);
706
+ }
707
+ _hasDecorators() {
708
+ return !$.utils.isNull($.utils.getPointer(3, this));
709
+ }
710
+ _initDecorators(length) {
711
+ return $.utils.initList(3, SerializedTypeParameter$1._Decorators, length, this);
712
+ }
713
+ set decorators(value) {
714
+ $.utils.copyFrom(value, $.utils.getPointer(3, this));
715
+ }
716
+ get kind() {
717
+ return $.utils.getUint16(0, this);
718
+ }
719
+ set kind(value) {
720
+ $.utils.setUint16(0, value, this);
721
+ }
722
+ get name() {
723
+ return $.utils.getText(4, this);
724
+ }
725
+ set name(value) {
726
+ $.utils.setText(4, value, this);
727
+ }
728
+ _adoptType(value) {
729
+ $.utils.adopt(value, $.utils.getPointer(5, this));
730
+ }
731
+ _disownType() {
732
+ return $.utils.disown(this.type);
733
+ }
734
+ get type() {
735
+ return $.utils.getStruct(5, SerializedTypeReference$1, this);
736
+ }
737
+ _hasType() {
738
+ return !$.utils.isNull($.utils.getPointer(5, this));
739
+ }
740
+ _initType() {
741
+ return $.utils.initStructAt(5, SerializedTypeReference$1, this);
742
+ }
743
+ set type(value) {
744
+ $.utils.copyFrom(value, $.utils.getPointer(5, this));
745
+ }
746
+ get visibility() {
747
+ return $.utils.getUint16(2, this);
748
+ }
749
+ set visibility(value) {
750
+ $.utils.setUint16(2, value, this);
751
+ }
752
+ get readonly() {
753
+ return $.utils.getBit(32, this);
754
+ }
755
+ set readonly(value) {
756
+ $.utils.setBit(32, value, this);
757
+ }
758
+ get optional() {
759
+ return $.utils.getBit(33, this);
760
+ }
761
+ set optional(value) {
762
+ $.utils.setBit(33, value, this);
763
+ }
764
+ _adoptDefault(value) {
765
+ $.utils.adopt(value, $.utils.getPointer(6, this));
766
+ }
767
+ _disownDefault() {
768
+ return $.utils.disown(this.default);
769
+ }
770
+ get default() {
771
+ return $.utils.getStruct(6, DefaultValueReflection, this);
772
+ }
773
+ _hasDefault() {
774
+ return !$.utils.isNull($.utils.getPointer(6, this));
775
+ }
776
+ _initDefault() {
777
+ return $.utils.initStructAt(6, DefaultValueReflection, this);
778
+ }
779
+ set default(value) {
780
+ $.utils.copyFrom(value, $.utils.getPointer(6, this));
781
+ }
782
+ _adoptTags(value) {
783
+ $.utils.adopt(value, $.utils.getPointer(7, this));
784
+ }
785
+ _disownTags() {
786
+ return $.utils.disown(this.tags);
787
+ }
788
+ get tags() {
789
+ return $.utils.getStruct(7, TagsReflection$1, this);
790
+ }
791
+ _hasTags() {
792
+ return !$.utils.isNull($.utils.getPointer(7, this));
793
+ }
794
+ _initTags() {
795
+ return $.utils.initStructAt(7, TagsReflection$1, this);
796
+ }
797
+ set tags(value) {
798
+ $.utils.copyFrom(value, $.utils.getPointer(7, this));
799
+ }
800
+ toString() {
801
+ return "SerializedTypeParameter_" + super.toString();
802
+ }
803
+ };
804
+ var SerializedTypeMethod$1 = class SerializedTypeMethod$1 extends $.Struct {
805
+ static _capnp = {
806
+ displayName: "SerializedTypeMethod",
807
+ id: "8b5eff6d9ec2fb06",
808
+ size: new $.ObjectSize(8, 8)
809
+ };
810
+ static _TypeArguments;
811
+ static _Decorators;
812
+ static _Parameters;
813
+ get typeName() {
814
+ return $.utils.getText(0, this);
815
+ }
816
+ set typeName(value) {
817
+ $.utils.setText(0, value, this);
818
+ }
819
+ _adoptTypeArguments(value) {
820
+ $.utils.adopt(value, $.utils.getPointer(1, this));
821
+ }
822
+ _disownTypeArguments() {
823
+ return $.utils.disown(this.typeArguments);
824
+ }
825
+ get typeArguments() {
826
+ return $.utils.getList(1, SerializedTypeMethod$1._TypeArguments, this);
827
+ }
828
+ _hasTypeArguments() {
829
+ return !$.utils.isNull($.utils.getPointer(1, this));
830
+ }
831
+ _initTypeArguments(length) {
832
+ return $.utils.initList(1, SerializedTypeMethod$1._TypeArguments, length, this);
833
+ }
834
+ set typeArguments(value) {
835
+ $.utils.copyFrom(value, $.utils.getPointer(1, this));
836
+ }
837
+ _adoptIndexAccessOrigin(value) {
838
+ $.utils.adopt(value, $.utils.getPointer(2, this));
839
+ }
840
+ _disownIndexAccessOrigin() {
841
+ return $.utils.disown(this.indexAccessOrigin);
842
+ }
843
+ get indexAccessOrigin() {
844
+ return $.utils.getStruct(2, IndexAccessOrigin, this);
845
+ }
846
+ _hasIndexAccessOrigin() {
847
+ return !$.utils.isNull($.utils.getPointer(2, this));
848
+ }
849
+ _initIndexAccessOrigin() {
850
+ return $.utils.initStructAt(2, IndexAccessOrigin, this);
851
+ }
852
+ set indexAccessOrigin(value) {
853
+ $.utils.copyFrom(value, $.utils.getPointer(2, this));
854
+ }
855
+ _adoptDecorators(value) {
856
+ $.utils.adopt(value, $.utils.getPointer(3, this));
857
+ }
858
+ _disownDecorators() {
859
+ return $.utils.disown(this.decorators);
860
+ }
861
+ get decorators() {
862
+ return $.utils.getList(3, SerializedTypeMethod$1._Decorators, this);
863
+ }
864
+ _hasDecorators() {
865
+ return !$.utils.isNull($.utils.getPointer(3, this));
866
+ }
867
+ _initDecorators(length) {
868
+ return $.utils.initList(3, SerializedTypeMethod$1._Decorators, length, this);
869
+ }
870
+ set decorators(value) {
871
+ $.utils.copyFrom(value, $.utils.getPointer(3, this));
872
+ }
873
+ get visibility() {
874
+ return $.utils.getUint16(0, this);
875
+ }
876
+ set visibility(value) {
877
+ $.utils.setUint16(0, value, this);
878
+ }
879
+ get abstract() {
880
+ return $.utils.getBit(16, this);
881
+ }
882
+ set abstract(value) {
883
+ $.utils.setBit(16, value, this);
884
+ }
885
+ get optional() {
886
+ return $.utils.getBit(17, this);
887
+ }
888
+ set optional(value) {
889
+ $.utils.setBit(17, value, this);
890
+ }
891
+ get readonly() {
892
+ return $.utils.getBit(18, this);
893
+ }
894
+ set readonly(value) {
895
+ $.utils.setBit(18, value, this);
896
+ }
897
+ _adoptTags(value) {
898
+ $.utils.adopt(value, $.utils.getPointer(4, this));
899
+ }
900
+ _disownTags() {
901
+ return $.utils.disown(this.tags);
902
+ }
903
+ get tags() {
904
+ return $.utils.getStruct(4, TagsReflection$1, this);
905
+ }
906
+ _hasTags() {
907
+ return !$.utils.isNull($.utils.getPointer(4, this));
908
+ }
909
+ _initTags() {
910
+ return $.utils.initStructAt(4, TagsReflection$1, this);
911
+ }
912
+ set tags(value) {
913
+ $.utils.copyFrom(value, $.utils.getPointer(4, this));
914
+ }
915
+ get kind() {
916
+ return $.utils.getUint16(4, this);
917
+ }
918
+ set kind(value) {
919
+ $.utils.setUint16(4, value, this);
920
+ }
921
+ get name() {
922
+ return $.utils.getText(5, this);
923
+ }
924
+ set name(value) {
925
+ $.utils.setText(5, value, this);
926
+ }
927
+ _adoptParameters(value) {
928
+ $.utils.adopt(value, $.utils.getPointer(6, this));
929
+ }
930
+ _disownParameters() {
931
+ return $.utils.disown(this.parameters);
932
+ }
933
+ get parameters() {
934
+ return $.utils.getList(6, SerializedTypeMethod$1._Parameters, this);
935
+ }
936
+ _hasParameters() {
937
+ return !$.utils.isNull($.utils.getPointer(6, this));
938
+ }
939
+ _initParameters(length) {
940
+ return $.utils.initList(6, SerializedTypeMethod$1._Parameters, length, this);
941
+ }
942
+ set parameters(value) {
943
+ $.utils.copyFrom(value, $.utils.getPointer(6, this));
944
+ }
945
+ _adoptReturn(value) {
946
+ $.utils.adopt(value, $.utils.getPointer(7, this));
947
+ }
948
+ _disownReturn() {
949
+ return $.utils.disown(this.return);
950
+ }
951
+ get return() {
952
+ return $.utils.getStruct(7, SerializedTypeReference$1, this);
953
+ }
954
+ _hasReturn() {
955
+ return !$.utils.isNull($.utils.getPointer(7, this));
956
+ }
957
+ _initReturn() {
958
+ return $.utils.initStructAt(7, SerializedTypeReference$1, this);
959
+ }
960
+ set return(value) {
961
+ $.utils.copyFrom(value, $.utils.getPointer(7, this));
962
+ }
963
+ toString() {
964
+ return "SerializedTypeMethod_" + super.toString();
965
+ }
966
+ };
967
+ var SerializedTypeProperty$1 = class SerializedTypeProperty$1 extends $.Struct {
968
+ static _capnp = {
969
+ displayName: "SerializedTypeProperty",
970
+ id: "91d9dbea2037f78b",
971
+ size: new $.ObjectSize(8, 9)
972
+ };
973
+ static _TypeArguments;
974
+ static _Decorators;
975
+ get typeName() {
976
+ return $.utils.getText(0, this);
977
+ }
978
+ set typeName(value) {
979
+ $.utils.setText(0, value, this);
980
+ }
981
+ _adoptTypeArguments(value) {
982
+ $.utils.adopt(value, $.utils.getPointer(1, this));
983
+ }
984
+ _disownTypeArguments() {
985
+ return $.utils.disown(this.typeArguments);
986
+ }
987
+ get typeArguments() {
988
+ return $.utils.getList(1, SerializedTypeProperty$1._TypeArguments, this);
989
+ }
990
+ _hasTypeArguments() {
991
+ return !$.utils.isNull($.utils.getPointer(1, this));
992
+ }
993
+ _initTypeArguments(length) {
994
+ return $.utils.initList(1, SerializedTypeProperty$1._TypeArguments, length, this);
995
+ }
996
+ set typeArguments(value) {
997
+ $.utils.copyFrom(value, $.utils.getPointer(1, this));
998
+ }
999
+ _adoptIndexAccessOrigin(value) {
1000
+ $.utils.adopt(value, $.utils.getPointer(2, this));
1001
+ }
1002
+ _disownIndexAccessOrigin() {
1003
+ return $.utils.disown(this.indexAccessOrigin);
1004
+ }
1005
+ get indexAccessOrigin() {
1006
+ return $.utils.getStruct(2, IndexAccessOrigin, this);
1007
+ }
1008
+ _hasIndexAccessOrigin() {
1009
+ return !$.utils.isNull($.utils.getPointer(2, this));
1010
+ }
1011
+ _initIndexAccessOrigin() {
1012
+ return $.utils.initStructAt(2, IndexAccessOrigin, this);
1013
+ }
1014
+ set indexAccessOrigin(value) {
1015
+ $.utils.copyFrom(value, $.utils.getPointer(2, this));
1016
+ }
1017
+ _adoptDecorators(value) {
1018
+ $.utils.adopt(value, $.utils.getPointer(3, this));
1019
+ }
1020
+ _disownDecorators() {
1021
+ return $.utils.disown(this.decorators);
1022
+ }
1023
+ get decorators() {
1024
+ return $.utils.getList(3, SerializedTypeProperty$1._Decorators, this);
1025
+ }
1026
+ _hasDecorators() {
1027
+ return !$.utils.isNull($.utils.getPointer(3, this));
1028
+ }
1029
+ _initDecorators(length) {
1030
+ return $.utils.initList(3, SerializedTypeProperty$1._Decorators, length, this);
1031
+ }
1032
+ set decorators(value) {
1033
+ $.utils.copyFrom(value, $.utils.getPointer(3, this));
1034
+ }
1035
+ get visibility() {
1036
+ return $.utils.getUint16(0, this);
1037
+ }
1038
+ set visibility(value) {
1039
+ $.utils.setUint16(0, value, this);
1040
+ }
1041
+ get abstract() {
1042
+ return $.utils.getBit(16, this);
1043
+ }
1044
+ set abstract(value) {
1045
+ $.utils.setBit(16, value, this);
1046
+ }
1047
+ get optional() {
1048
+ return $.utils.getBit(17, this);
1049
+ }
1050
+ set optional(value) {
1051
+ $.utils.setBit(17, value, this);
1052
+ }
1053
+ get readonly() {
1054
+ return $.utils.getBit(18, this);
1055
+ }
1056
+ set readonly(value) {
1057
+ $.utils.setBit(18, value, this);
1058
+ }
1059
+ _adoptTags(value) {
1060
+ $.utils.adopt(value, $.utils.getPointer(4, this));
1061
+ }
1062
+ _disownTags() {
1063
+ return $.utils.disown(this.tags);
1064
+ }
1065
+ get tags() {
1066
+ return $.utils.getStruct(4, TagsReflection$1, this);
1067
+ }
1068
+ _hasTags() {
1069
+ return !$.utils.isNull($.utils.getPointer(4, this));
1070
+ }
1071
+ _initTags() {
1072
+ return $.utils.initStructAt(4, TagsReflection$1, this);
1073
+ }
1074
+ set tags(value) {
1075
+ $.utils.copyFrom(value, $.utils.getPointer(4, this));
1076
+ }
1077
+ get kind() {
1078
+ return $.utils.getUint16(4, this);
1079
+ }
1080
+ set kind(value) {
1081
+ $.utils.setUint16(4, value, this);
1082
+ }
1083
+ get name() {
1084
+ return $.utils.getText(5, this);
1085
+ }
1086
+ set name(value) {
1087
+ $.utils.setText(5, value, this);
1088
+ }
1089
+ get description() {
1090
+ return $.utils.getText(6, this);
1091
+ }
1092
+ set description(value) {
1093
+ $.utils.setText(6, value, this);
1094
+ }
1095
+ _adoptType(value) {
1096
+ $.utils.adopt(value, $.utils.getPointer(7, this));
1097
+ }
1098
+ _disownType() {
1099
+ return $.utils.disown(this.type);
1100
+ }
1101
+ get type() {
1102
+ return $.utils.getStruct(7, SerializedTypeReference$1, this);
1103
+ }
1104
+ _hasType() {
1105
+ return !$.utils.isNull($.utils.getPointer(7, this));
1106
+ }
1107
+ _initType() {
1108
+ return $.utils.initStructAt(7, SerializedTypeReference$1, this);
1109
+ }
1110
+ set type(value) {
1111
+ $.utils.copyFrom(value, $.utils.getPointer(7, this));
1112
+ }
1113
+ _adoptDefault(value) {
1114
+ $.utils.adopt(value, $.utils.getPointer(8, this));
1115
+ }
1116
+ _disownDefault() {
1117
+ return $.utils.disown(this.default);
1118
+ }
1119
+ get default() {
1120
+ return $.utils.getStruct(8, DefaultValueReflection, this);
1121
+ }
1122
+ _hasDefault() {
1123
+ return !$.utils.isNull($.utils.getPointer(8, this));
1124
+ }
1125
+ _initDefault() {
1126
+ return $.utils.initStructAt(8, DefaultValueReflection, this);
1127
+ }
1128
+ set default(value) {
1129
+ $.utils.copyFrom(value, $.utils.getPointer(8, this));
1130
+ }
1131
+ toString() {
1132
+ return "SerializedTypeProperty_" + super.toString();
1133
+ }
1134
+ };
1135
+ var SerializedTypeFunction$1 = class SerializedTypeFunction$1 extends $.Struct {
1136
+ static _capnp = {
1137
+ displayName: "SerializedTypeFunction",
1138
+ id: "9130bccd82dfcfd4",
1139
+ size: new $.ObjectSize(8, 8)
1140
+ };
1141
+ static _TypeArguments;
1142
+ static _Decorators;
1143
+ static _Parameters;
1144
+ get typeName() {
1145
+ return $.utils.getText(0, this);
1146
+ }
1147
+ set typeName(value) {
1148
+ $.utils.setText(0, value, this);
1149
+ }
1150
+ _adoptTypeArguments(value) {
1151
+ $.utils.adopt(value, $.utils.getPointer(1, this));
1152
+ }
1153
+ _disownTypeArguments() {
1154
+ return $.utils.disown(this.typeArguments);
1155
+ }
1156
+ get typeArguments() {
1157
+ return $.utils.getList(1, SerializedTypeFunction$1._TypeArguments, this);
1158
+ }
1159
+ _hasTypeArguments() {
1160
+ return !$.utils.isNull($.utils.getPointer(1, this));
1161
+ }
1162
+ _initTypeArguments(length) {
1163
+ return $.utils.initList(1, SerializedTypeFunction$1._TypeArguments, length, this);
1164
+ }
1165
+ set typeArguments(value) {
1166
+ $.utils.copyFrom(value, $.utils.getPointer(1, this));
1167
+ }
1168
+ _adoptIndexAccessOrigin(value) {
1169
+ $.utils.adopt(value, $.utils.getPointer(2, this));
1170
+ }
1171
+ _disownIndexAccessOrigin() {
1172
+ return $.utils.disown(this.indexAccessOrigin);
1173
+ }
1174
+ get indexAccessOrigin() {
1175
+ return $.utils.getStruct(2, IndexAccessOrigin, this);
1176
+ }
1177
+ _hasIndexAccessOrigin() {
1178
+ return !$.utils.isNull($.utils.getPointer(2, this));
1179
+ }
1180
+ _initIndexAccessOrigin() {
1181
+ return $.utils.initStructAt(2, IndexAccessOrigin, this);
1182
+ }
1183
+ set indexAccessOrigin(value) {
1184
+ $.utils.copyFrom(value, $.utils.getPointer(2, this));
1185
+ }
1186
+ _adoptDecorators(value) {
1187
+ $.utils.adopt(value, $.utils.getPointer(3, this));
1188
+ }
1189
+ _disownDecorators() {
1190
+ return $.utils.disown(this.decorators);
1191
+ }
1192
+ get decorators() {
1193
+ return $.utils.getList(3, SerializedTypeFunction$1._Decorators, this);
1194
+ }
1195
+ _hasDecorators() {
1196
+ return !$.utils.isNull($.utils.getPointer(3, this));
1197
+ }
1198
+ _initDecorators(length) {
1199
+ return $.utils.initList(3, SerializedTypeFunction$1._Decorators, length, this);
1200
+ }
1201
+ set decorators(value) {
1202
+ $.utils.copyFrom(value, $.utils.getPointer(3, this));
1203
+ }
1204
+ get visibility() {
1205
+ return $.utils.getUint16(0, this);
1206
+ }
1207
+ set visibility(value) {
1208
+ $.utils.setUint16(0, value, this);
1209
+ }
1210
+ get abstract() {
1211
+ return $.utils.getBit(16, this);
1212
+ }
1213
+ set abstract(value) {
1214
+ $.utils.setBit(16, value, this);
1215
+ }
1216
+ get optional() {
1217
+ return $.utils.getBit(17, this);
1218
+ }
1219
+ set optional(value) {
1220
+ $.utils.setBit(17, value, this);
1221
+ }
1222
+ get readonly() {
1223
+ return $.utils.getBit(18, this);
1224
+ }
1225
+ set readonly(value) {
1226
+ $.utils.setBit(18, value, this);
1227
+ }
1228
+ _adoptTags(value) {
1229
+ $.utils.adopt(value, $.utils.getPointer(4, this));
1230
+ }
1231
+ _disownTags() {
1232
+ return $.utils.disown(this.tags);
1233
+ }
1234
+ get tags() {
1235
+ return $.utils.getStruct(4, TagsReflection$1, this);
1236
+ }
1237
+ _hasTags() {
1238
+ return !$.utils.isNull($.utils.getPointer(4, this));
1239
+ }
1240
+ _initTags() {
1241
+ return $.utils.initStructAt(4, TagsReflection$1, this);
1242
+ }
1243
+ set tags(value) {
1244
+ $.utils.copyFrom(value, $.utils.getPointer(4, this));
1245
+ }
1246
+ get kind() {
1247
+ return $.utils.getUint16(4, this);
1248
+ }
1249
+ set kind(value) {
1250
+ $.utils.setUint16(4, value, this);
1251
+ }
1252
+ get name() {
1253
+ return $.utils.getText(5, this);
1254
+ }
1255
+ set name(value) {
1256
+ $.utils.setText(5, value, this);
1257
+ }
1258
+ _adoptParameters(value) {
1259
+ $.utils.adopt(value, $.utils.getPointer(6, this));
1260
+ }
1261
+ _disownParameters() {
1262
+ return $.utils.disown(this.parameters);
1263
+ }
1264
+ get parameters() {
1265
+ return $.utils.getList(6, SerializedTypeFunction$1._Parameters, this);
1266
+ }
1267
+ _hasParameters() {
1268
+ return !$.utils.isNull($.utils.getPointer(6, this));
1269
+ }
1270
+ _initParameters(length) {
1271
+ return $.utils.initList(6, SerializedTypeFunction$1._Parameters, length, this);
1272
+ }
1273
+ set parameters(value) {
1274
+ $.utils.copyFrom(value, $.utils.getPointer(6, this));
1275
+ }
1276
+ _adoptReturn(value) {
1277
+ $.utils.adopt(value, $.utils.getPointer(7, this));
1278
+ }
1279
+ _disownReturn() {
1280
+ return $.utils.disown(this.return);
1281
+ }
1282
+ get return() {
1283
+ return $.utils.getStruct(7, SerializedTypeReference$1, this);
1284
+ }
1285
+ _hasReturn() {
1286
+ return !$.utils.isNull($.utils.getPointer(7, this));
1287
+ }
1288
+ _initReturn() {
1289
+ return $.utils.initStructAt(7, SerializedTypeReference$1, this);
1290
+ }
1291
+ set return(value) {
1292
+ $.utils.copyFrom(value, $.utils.getPointer(7, this));
1293
+ }
1294
+ toString() {
1295
+ return "SerializedTypeFunction_" + super.toString();
1296
+ }
1297
+ };
1298
+ var SerializedTypePromise = class SerializedTypePromise extends $.Struct {
1299
+ static _capnp = {
1300
+ displayName: "SerializedTypePromise",
1301
+ id: "e9b0cbe936a42398",
1302
+ size: new $.ObjectSize(8, 4)
1303
+ };
1304
+ static _TypeArguments;
1305
+ static _Decorators;
1306
+ get typeName() {
1307
+ return $.utils.getText(0, this);
1308
+ }
1309
+ set typeName(value) {
1310
+ $.utils.setText(0, value, this);
1311
+ }
1312
+ _adoptTypeArguments(value) {
1313
+ $.utils.adopt(value, $.utils.getPointer(1, this));
1314
+ }
1315
+ _disownTypeArguments() {
1316
+ return $.utils.disown(this.typeArguments);
1317
+ }
1318
+ get typeArguments() {
1319
+ return $.utils.getList(1, SerializedTypePromise._TypeArguments, this);
1320
+ }
1321
+ _hasTypeArguments() {
1322
+ return !$.utils.isNull($.utils.getPointer(1, this));
1323
+ }
1324
+ _initTypeArguments(length) {
1325
+ return $.utils.initList(1, SerializedTypePromise._TypeArguments, length, this);
1326
+ }
1327
+ set typeArguments(value) {
1328
+ $.utils.copyFrom(value, $.utils.getPointer(1, this));
1329
+ }
1330
+ _adoptIndexAccessOrigin(value) {
1331
+ $.utils.adopt(value, $.utils.getPointer(2, this));
1332
+ }
1333
+ _disownIndexAccessOrigin() {
1334
+ return $.utils.disown(this.indexAccessOrigin);
1335
+ }
1336
+ get indexAccessOrigin() {
1337
+ return $.utils.getStruct(2, IndexAccessOrigin, this);
1338
+ }
1339
+ _hasIndexAccessOrigin() {
1340
+ return !$.utils.isNull($.utils.getPointer(2, this));
1341
+ }
1342
+ _initIndexAccessOrigin() {
1343
+ return $.utils.initStructAt(2, IndexAccessOrigin, this);
1344
+ }
1345
+ set indexAccessOrigin(value) {
1346
+ $.utils.copyFrom(value, $.utils.getPointer(2, this));
1347
+ }
1348
+ _adoptDecorators(value) {
1349
+ $.utils.adopt(value, $.utils.getPointer(3, this));
1350
+ }
1351
+ _disownDecorators() {
1352
+ return $.utils.disown(this.decorators);
1353
+ }
1354
+ get decorators() {
1355
+ return $.utils.getList(3, SerializedTypePromise._Decorators, this);
1356
+ }
1357
+ _hasDecorators() {
1358
+ return !$.utils.isNull($.utils.getPointer(3, this));
1359
+ }
1360
+ _initDecorators(length) {
1361
+ return $.utils.initList(3, SerializedTypePromise._Decorators, length, this);
1362
+ }
1363
+ set decorators(value) {
1364
+ $.utils.copyFrom(value, $.utils.getPointer(3, this));
1365
+ }
1366
+ get visibility() {
1367
+ return $.utils.getUint16(0, this);
1368
+ }
1369
+ set visibility(value) {
1370
+ $.utils.setUint16(0, value, this);
1371
+ }
1372
+ get abstract() {
1373
+ return $.utils.getBit(16, this);
1374
+ }
1375
+ set abstract(value) {
1376
+ $.utils.setBit(16, value, this);
1377
+ }
1378
+ toString() {
1379
+ return "SerializedTypePromise_" + super.toString();
1380
+ }
1381
+ };
1382
+ var SerializedTypeEnumEntry = class extends $.Struct {
1383
+ static _capnp = {
1384
+ displayName: "SerializedTypeEnumEntry",
1385
+ id: "d5bcb8b7c49ba556",
1386
+ size: new $.ObjectSize(0, 2)
1387
+ };
1388
+ get name() {
1389
+ return $.utils.getText(0, this);
1390
+ }
1391
+ set name(value) {
1392
+ $.utils.setText(0, value, this);
1393
+ }
1394
+ get value() {
1395
+ return $.utils.getText(1, this);
1396
+ }
1397
+ set value(value) {
1398
+ $.utils.setText(1, value, this);
1399
+ }
1400
+ toString() {
1401
+ return "SerializedTypeEnumEntry_" + super.toString();
1402
+ }
1403
+ };
1404
+ var SerializedTypeEnum$1 = class SerializedTypeEnum$1 extends $.Struct {
1405
+ static _capnp = {
1406
+ displayName: "SerializedTypeEnum",
1407
+ id: "d7d36f0ae79e3841",
1408
+ size: new $.ObjectSize(8, 8)
1409
+ };
1410
+ static _TypeArguments;
1411
+ static _Decorators;
1412
+ static _EnumEntries;
1413
+ get typeName() {
1414
+ return $.utils.getText(0, this);
1415
+ }
1416
+ set typeName(value) {
1417
+ $.utils.setText(0, value, this);
1418
+ }
1419
+ _adoptTypeArguments(value) {
1420
+ $.utils.adopt(value, $.utils.getPointer(1, this));
1421
+ }
1422
+ _disownTypeArguments() {
1423
+ return $.utils.disown(this.typeArguments);
1424
+ }
1425
+ get typeArguments() {
1426
+ return $.utils.getList(1, SerializedTypeEnum$1._TypeArguments, this);
1427
+ }
1428
+ _hasTypeArguments() {
1429
+ return !$.utils.isNull($.utils.getPointer(1, this));
1430
+ }
1431
+ _initTypeArguments(length) {
1432
+ return $.utils.initList(1, SerializedTypeEnum$1._TypeArguments, length, this);
1433
+ }
1434
+ set typeArguments(value) {
1435
+ $.utils.copyFrom(value, $.utils.getPointer(1, this));
1436
+ }
1437
+ _adoptIndexAccessOrigin(value) {
1438
+ $.utils.adopt(value, $.utils.getPointer(2, this));
1439
+ }
1440
+ _disownIndexAccessOrigin() {
1441
+ return $.utils.disown(this.indexAccessOrigin);
1442
+ }
1443
+ get indexAccessOrigin() {
1444
+ return $.utils.getStruct(2, IndexAccessOrigin, this);
1445
+ }
1446
+ _hasIndexAccessOrigin() {
1447
+ return !$.utils.isNull($.utils.getPointer(2, this));
1448
+ }
1449
+ _initIndexAccessOrigin() {
1450
+ return $.utils.initStructAt(2, IndexAccessOrigin, this);
1451
+ }
1452
+ set indexAccessOrigin(value) {
1453
+ $.utils.copyFrom(value, $.utils.getPointer(2, this));
1454
+ }
1455
+ _adoptDecorators(value) {
1456
+ $.utils.adopt(value, $.utils.getPointer(3, this));
1457
+ }
1458
+ _disownDecorators() {
1459
+ return $.utils.disown(this.decorators);
1460
+ }
1461
+ get decorators() {
1462
+ return $.utils.getList(3, SerializedTypeEnum$1._Decorators, this);
1463
+ }
1464
+ _hasDecorators() {
1465
+ return !$.utils.isNull($.utils.getPointer(3, this));
1466
+ }
1467
+ _initDecorators(length) {
1468
+ return $.utils.initList(3, SerializedTypeEnum$1._Decorators, length, this);
1469
+ }
1470
+ set decorators(value) {
1471
+ $.utils.copyFrom(value, $.utils.getPointer(3, this));
1472
+ }
1473
+ get kind() {
1474
+ return $.utils.getUint16(0, this);
1475
+ }
1476
+ set kind(value) {
1477
+ $.utils.setUint16(0, value, this);
1478
+ }
1479
+ _adoptEnumEntries(value) {
1480
+ $.utils.adopt(value, $.utils.getPointer(4, this));
1481
+ }
1482
+ _disownEnumEntries() {
1483
+ return $.utils.disown(this.enumEntries);
1484
+ }
1485
+ get enumEntries() {
1486
+ return $.utils.getList(4, SerializedTypeEnum$1._EnumEntries, this);
1487
+ }
1488
+ _hasEnumEntries() {
1489
+ return !$.utils.isNull($.utils.getPointer(4, this));
1490
+ }
1491
+ _initEnumEntries(length) {
1492
+ return $.utils.initList(4, SerializedTypeEnum$1._EnumEntries, length, this);
1493
+ }
1494
+ set enumEntries(value) {
1495
+ $.utils.copyFrom(value, $.utils.getPointer(4, this));
1496
+ }
1497
+ _adoptValues(value) {
1498
+ $.utils.adopt(value, $.utils.getPointer(5, this));
1499
+ }
1500
+ _disownValues() {
1501
+ return $.utils.disown(this.values);
1502
+ }
1503
+ get values() {
1504
+ return $.utils.getList(5, $.TextList, this);
1505
+ }
1506
+ _hasValues() {
1507
+ return !$.utils.isNull($.utils.getPointer(5, this));
1508
+ }
1509
+ _initValues(length) {
1510
+ return $.utils.initList(5, $.TextList, length, this);
1511
+ }
1512
+ set values(value) {
1513
+ $.utils.copyFrom(value, $.utils.getPointer(5, this));
1514
+ }
1515
+ _adoptIndexType(value) {
1516
+ $.utils.adopt(value, $.utils.getPointer(6, this));
1517
+ }
1518
+ _disownIndexType() {
1519
+ return $.utils.disown(this.indexType);
1520
+ }
1521
+ get indexType() {
1522
+ return $.utils.getStruct(6, SerializedTypeReference$1, this);
1523
+ }
1524
+ _hasIndexType() {
1525
+ return !$.utils.isNull($.utils.getPointer(6, this));
1526
+ }
1527
+ _initIndexType() {
1528
+ return $.utils.initStructAt(6, SerializedTypeReference$1, this);
1529
+ }
1530
+ set indexType(value) {
1531
+ $.utils.copyFrom(value, $.utils.getPointer(6, this));
1532
+ }
1533
+ _adoptTags(value) {
1534
+ $.utils.adopt(value, $.utils.getPointer(7, this));
1535
+ }
1536
+ _disownTags() {
1537
+ return $.utils.disown(this.tags);
1538
+ }
1539
+ get tags() {
1540
+ return $.utils.getStruct(7, TagsReflection$1, this);
1541
+ }
1542
+ _hasTags() {
1543
+ return !$.utils.isNull($.utils.getPointer(7, this));
1544
+ }
1545
+ _initTags() {
1546
+ return $.utils.initStructAt(7, TagsReflection$1, this);
1547
+ }
1548
+ set tags(value) {
1549
+ $.utils.copyFrom(value, $.utils.getPointer(7, this));
1550
+ }
1551
+ toString() {
1552
+ return "SerializedTypeEnum_" + super.toString();
1553
+ }
1554
+ };
1555
+ var SerializedTypeUnion$1 = class SerializedTypeUnion$1 extends $.Struct {
1556
+ static _capnp = {
1557
+ displayName: "SerializedTypeUnion",
1558
+ id: "a9ae4c95e41ff4ab",
1559
+ size: new $.ObjectSize(8, 5)
1560
+ };
1561
+ static _TypeArguments;
1562
+ static _Decorators;
1563
+ static _Types;
1564
+ get typeName() {
1565
+ return $.utils.getText(0, this);
1566
+ }
1567
+ set typeName(value) {
1568
+ $.utils.setText(0, value, this);
1569
+ }
1570
+ _adoptTypeArguments(value) {
1571
+ $.utils.adopt(value, $.utils.getPointer(1, this));
1572
+ }
1573
+ _disownTypeArguments() {
1574
+ return $.utils.disown(this.typeArguments);
1575
+ }
1576
+ get typeArguments() {
1577
+ return $.utils.getList(1, SerializedTypeUnion$1._TypeArguments, this);
1578
+ }
1579
+ _hasTypeArguments() {
1580
+ return !$.utils.isNull($.utils.getPointer(1, this));
1581
+ }
1582
+ _initTypeArguments(length) {
1583
+ return $.utils.initList(1, SerializedTypeUnion$1._TypeArguments, length, this);
1584
+ }
1585
+ set typeArguments(value) {
1586
+ $.utils.copyFrom(value, $.utils.getPointer(1, this));
1587
+ }
1588
+ _adoptIndexAccessOrigin(value) {
1589
+ $.utils.adopt(value, $.utils.getPointer(2, this));
1590
+ }
1591
+ _disownIndexAccessOrigin() {
1592
+ return $.utils.disown(this.indexAccessOrigin);
1593
+ }
1594
+ get indexAccessOrigin() {
1595
+ return $.utils.getStruct(2, IndexAccessOrigin, this);
1596
+ }
1597
+ _hasIndexAccessOrigin() {
1598
+ return !$.utils.isNull($.utils.getPointer(2, this));
1599
+ }
1600
+ _initIndexAccessOrigin() {
1601
+ return $.utils.initStructAt(2, IndexAccessOrigin, this);
1602
+ }
1603
+ set indexAccessOrigin(value) {
1604
+ $.utils.copyFrom(value, $.utils.getPointer(2, this));
1605
+ }
1606
+ _adoptDecorators(value) {
1607
+ $.utils.adopt(value, $.utils.getPointer(3, this));
1608
+ }
1609
+ _disownDecorators() {
1610
+ return $.utils.disown(this.decorators);
1611
+ }
1612
+ get decorators() {
1613
+ return $.utils.getList(3, SerializedTypeUnion$1._Decorators, this);
1614
+ }
1615
+ _hasDecorators() {
1616
+ return !$.utils.isNull($.utils.getPointer(3, this));
1617
+ }
1618
+ _initDecorators(length) {
1619
+ return $.utils.initList(3, SerializedTypeUnion$1._Decorators, length, this);
1620
+ }
1621
+ set decorators(value) {
1622
+ $.utils.copyFrom(value, $.utils.getPointer(3, this));
1623
+ }
1624
+ get kind() {
1625
+ return $.utils.getUint16(0, this);
1626
+ }
1627
+ set kind(value) {
1628
+ $.utils.setUint16(0, value, this);
1629
+ }
1630
+ _adoptTypes(value) {
1631
+ $.utils.adopt(value, $.utils.getPointer(4, this));
1632
+ }
1633
+ _disownTypes() {
1634
+ return $.utils.disown(this.types);
1635
+ }
1636
+ get types() {
1637
+ return $.utils.getList(4, SerializedTypeUnion$1._Types, this);
1638
+ }
1639
+ _hasTypes() {
1640
+ return !$.utils.isNull($.utils.getPointer(4, this));
1641
+ }
1642
+ _initTypes(length) {
1643
+ return $.utils.initList(4, SerializedTypeUnion$1._Types, length, this);
1644
+ }
1645
+ set types(value) {
1646
+ $.utils.copyFrom(value, $.utils.getPointer(4, this));
1647
+ }
1648
+ toString() {
1649
+ return "SerializedTypeUnion_" + super.toString();
1650
+ }
1651
+ };
1652
+ var SerializedTypeIntersection$1 = class SerializedTypeIntersection$1 extends $.Struct {
1653
+ static _capnp = {
1654
+ displayName: "SerializedTypeIntersection",
1655
+ id: "9ae42bd17511c09b",
1656
+ size: new $.ObjectSize(8, 5)
1657
+ };
1658
+ static _TypeArguments;
1659
+ static _Decorators;
1660
+ static _Types;
1661
+ get typeName() {
1662
+ return $.utils.getText(0, this);
1663
+ }
1664
+ set typeName(value) {
1665
+ $.utils.setText(0, value, this);
1666
+ }
1667
+ _adoptTypeArguments(value) {
1668
+ $.utils.adopt(value, $.utils.getPointer(1, this));
1669
+ }
1670
+ _disownTypeArguments() {
1671
+ return $.utils.disown(this.typeArguments);
1672
+ }
1673
+ get typeArguments() {
1674
+ return $.utils.getList(1, SerializedTypeIntersection$1._TypeArguments, this);
1675
+ }
1676
+ _hasTypeArguments() {
1677
+ return !$.utils.isNull($.utils.getPointer(1, this));
1678
+ }
1679
+ _initTypeArguments(length) {
1680
+ return $.utils.initList(1, SerializedTypeIntersection$1._TypeArguments, length, this);
1681
+ }
1682
+ set typeArguments(value) {
1683
+ $.utils.copyFrom(value, $.utils.getPointer(1, this));
1684
+ }
1685
+ _adoptIndexAccessOrigin(value) {
1686
+ $.utils.adopt(value, $.utils.getPointer(2, this));
1687
+ }
1688
+ _disownIndexAccessOrigin() {
1689
+ return $.utils.disown(this.indexAccessOrigin);
1690
+ }
1691
+ get indexAccessOrigin() {
1692
+ return $.utils.getStruct(2, IndexAccessOrigin, this);
1693
+ }
1694
+ _hasIndexAccessOrigin() {
1695
+ return !$.utils.isNull($.utils.getPointer(2, this));
1696
+ }
1697
+ _initIndexAccessOrigin() {
1698
+ return $.utils.initStructAt(2, IndexAccessOrigin, this);
1699
+ }
1700
+ set indexAccessOrigin(value) {
1701
+ $.utils.copyFrom(value, $.utils.getPointer(2, this));
1702
+ }
1703
+ _adoptDecorators(value) {
1704
+ $.utils.adopt(value, $.utils.getPointer(3, this));
1705
+ }
1706
+ _disownDecorators() {
1707
+ return $.utils.disown(this.decorators);
1708
+ }
1709
+ get decorators() {
1710
+ return $.utils.getList(3, SerializedTypeIntersection$1._Decorators, this);
1711
+ }
1712
+ _hasDecorators() {
1713
+ return !$.utils.isNull($.utils.getPointer(3, this));
1714
+ }
1715
+ _initDecorators(length) {
1716
+ return $.utils.initList(3, SerializedTypeIntersection$1._Decorators, length, this);
1717
+ }
1718
+ set decorators(value) {
1719
+ $.utils.copyFrom(value, $.utils.getPointer(3, this));
1720
+ }
1721
+ get kind() {
1722
+ return $.utils.getUint16(0, this);
1723
+ }
1724
+ set kind(value) {
1725
+ $.utils.setUint16(0, value, this);
1726
+ }
1727
+ _adoptTypes(value) {
1728
+ $.utils.adopt(value, $.utils.getPointer(4, this));
1729
+ }
1730
+ _disownTypes() {
1731
+ return $.utils.disown(this.types);
1732
+ }
1733
+ get types() {
1734
+ return $.utils.getList(4, SerializedTypeIntersection$1._Types, this);
1735
+ }
1736
+ _hasTypes() {
1737
+ return !$.utils.isNull($.utils.getPointer(4, this));
1738
+ }
1739
+ _initTypes(length) {
1740
+ return $.utils.initList(4, SerializedTypeIntersection$1._Types, length, this);
1741
+ }
1742
+ set types(value) {
1743
+ $.utils.copyFrom(value, $.utils.getPointer(4, this));
1744
+ }
1745
+ toString() {
1746
+ return "SerializedTypeIntersection_" + super.toString();
1747
+ }
1748
+ };
1749
+ var SerializedTypeArray$1 = class SerializedTypeArray$1 extends $.Struct {
1750
+ static _capnp = {
1751
+ displayName: "SerializedTypeArray",
1752
+ id: "97d1d75240151501",
1753
+ size: new $.ObjectSize(8, 6)
1754
+ };
1755
+ static _TypeArguments;
1756
+ static _Decorators;
1757
+ get typeName() {
1758
+ return $.utils.getText(0, this);
1759
+ }
1760
+ set typeName(value) {
1761
+ $.utils.setText(0, value, this);
1762
+ }
1763
+ _adoptTypeArguments(value) {
1764
+ $.utils.adopt(value, $.utils.getPointer(1, this));
1765
+ }
1766
+ _disownTypeArguments() {
1767
+ return $.utils.disown(this.typeArguments);
1768
+ }
1769
+ get typeArguments() {
1770
+ return $.utils.getList(1, SerializedTypeArray$1._TypeArguments, this);
1771
+ }
1772
+ _hasTypeArguments() {
1773
+ return !$.utils.isNull($.utils.getPointer(1, this));
1774
+ }
1775
+ _initTypeArguments(length) {
1776
+ return $.utils.initList(1, SerializedTypeArray$1._TypeArguments, length, this);
1777
+ }
1778
+ set typeArguments(value) {
1779
+ $.utils.copyFrom(value, $.utils.getPointer(1, this));
1780
+ }
1781
+ _adoptIndexAccessOrigin(value) {
1782
+ $.utils.adopt(value, $.utils.getPointer(2, this));
1783
+ }
1784
+ _disownIndexAccessOrigin() {
1785
+ return $.utils.disown(this.indexAccessOrigin);
1786
+ }
1787
+ get indexAccessOrigin() {
1788
+ return $.utils.getStruct(2, IndexAccessOrigin, this);
1789
+ }
1790
+ _hasIndexAccessOrigin() {
1791
+ return !$.utils.isNull($.utils.getPointer(2, this));
1792
+ }
1793
+ _initIndexAccessOrigin() {
1794
+ return $.utils.initStructAt(2, IndexAccessOrigin, this);
1795
+ }
1796
+ set indexAccessOrigin(value) {
1797
+ $.utils.copyFrom(value, $.utils.getPointer(2, this));
1798
+ }
1799
+ _adoptDecorators(value) {
1800
+ $.utils.adopt(value, $.utils.getPointer(3, this));
1801
+ }
1802
+ _disownDecorators() {
1803
+ return $.utils.disown(this.decorators);
1804
+ }
1805
+ get decorators() {
1806
+ return $.utils.getList(3, SerializedTypeArray$1._Decorators, this);
1807
+ }
1808
+ _hasDecorators() {
1809
+ return !$.utils.isNull($.utils.getPointer(3, this));
1810
+ }
1811
+ _initDecorators(length) {
1812
+ return $.utils.initList(3, SerializedTypeArray$1._Decorators, length, this);
1813
+ }
1814
+ set decorators(value) {
1815
+ $.utils.copyFrom(value, $.utils.getPointer(3, this));
1816
+ }
1817
+ get kind() {
1818
+ return $.utils.getUint16(0, this);
1819
+ }
1820
+ set kind(value) {
1821
+ $.utils.setUint16(0, value, this);
1822
+ }
1823
+ _adoptType(value) {
1824
+ $.utils.adopt(value, $.utils.getPointer(4, this));
1825
+ }
1826
+ _disownType() {
1827
+ return $.utils.disown(this.type);
1828
+ }
1829
+ get type() {
1830
+ return $.utils.getStruct(4, SerializedTypeReference$1, this);
1831
+ }
1832
+ _hasType() {
1833
+ return !$.utils.isNull($.utils.getPointer(4, this));
1834
+ }
1835
+ _initType() {
1836
+ return $.utils.initStructAt(4, SerializedTypeReference$1, this);
1837
+ }
1838
+ set type(value) {
1839
+ $.utils.copyFrom(value, $.utils.getPointer(4, this));
1840
+ }
1841
+ _adoptTags(value) {
1842
+ $.utils.adopt(value, $.utils.getPointer(5, this));
1843
+ }
1844
+ _disownTags() {
1845
+ return $.utils.disown(this.tags);
1846
+ }
1847
+ get tags() {
1848
+ return $.utils.getStruct(5, TagsReflection$1, this);
1849
+ }
1850
+ _hasTags() {
1851
+ return !$.utils.isNull($.utils.getPointer(5, this));
1852
+ }
1853
+ _initTags() {
1854
+ return $.utils.initStructAt(5, TagsReflection$1, this);
1855
+ }
1856
+ set tags(value) {
1857
+ $.utils.copyFrom(value, $.utils.getPointer(5, this));
1858
+ }
1859
+ toString() {
1860
+ return "SerializedTypeArray_" + super.toString();
1861
+ }
1862
+ };
1863
+ var SerializedTypeIndexSignature = class SerializedTypeIndexSignature extends $.Struct {
1864
+ static _capnp = {
1865
+ displayName: "SerializedTypeIndexSignature",
1866
+ id: "93e335e2756821d8",
1867
+ size: new $.ObjectSize(8, 6)
1868
+ };
1869
+ static _TypeArguments;
1870
+ static _Decorators;
1871
+ get typeName() {
1872
+ return $.utils.getText(0, this);
1873
+ }
1874
+ set typeName(value) {
1875
+ $.utils.setText(0, value, this);
1876
+ }
1877
+ _adoptTypeArguments(value) {
1878
+ $.utils.adopt(value, $.utils.getPointer(1, this));
1879
+ }
1880
+ _disownTypeArguments() {
1881
+ return $.utils.disown(this.typeArguments);
1882
+ }
1883
+ get typeArguments() {
1884
+ return $.utils.getList(1, SerializedTypeIndexSignature._TypeArguments, this);
1885
+ }
1886
+ _hasTypeArguments() {
1887
+ return !$.utils.isNull($.utils.getPointer(1, this));
1888
+ }
1889
+ _initTypeArguments(length) {
1890
+ return $.utils.initList(1, SerializedTypeIndexSignature._TypeArguments, length, this);
1891
+ }
1892
+ set typeArguments(value) {
1893
+ $.utils.copyFrom(value, $.utils.getPointer(1, this));
1894
+ }
1895
+ _adoptIndexAccessOrigin(value) {
1896
+ $.utils.adopt(value, $.utils.getPointer(2, this));
1897
+ }
1898
+ _disownIndexAccessOrigin() {
1899
+ return $.utils.disown(this.indexAccessOrigin);
1900
+ }
1901
+ get indexAccessOrigin() {
1902
+ return $.utils.getStruct(2, IndexAccessOrigin, this);
1903
+ }
1904
+ _hasIndexAccessOrigin() {
1905
+ return !$.utils.isNull($.utils.getPointer(2, this));
1906
+ }
1907
+ _initIndexAccessOrigin() {
1908
+ return $.utils.initStructAt(2, IndexAccessOrigin, this);
1909
+ }
1910
+ set indexAccessOrigin(value) {
1911
+ $.utils.copyFrom(value, $.utils.getPointer(2, this));
1912
+ }
1913
+ _adoptDecorators(value) {
1914
+ $.utils.adopt(value, $.utils.getPointer(3, this));
1915
+ }
1916
+ _disownDecorators() {
1917
+ return $.utils.disown(this.decorators);
1918
+ }
1919
+ get decorators() {
1920
+ return $.utils.getList(3, SerializedTypeIndexSignature._Decorators, this);
1921
+ }
1922
+ _hasDecorators() {
1923
+ return !$.utils.isNull($.utils.getPointer(3, this));
1924
+ }
1925
+ _initDecorators(length) {
1926
+ return $.utils.initList(3, SerializedTypeIndexSignature._Decorators, length, this);
1927
+ }
1928
+ set decorators(value) {
1929
+ $.utils.copyFrom(value, $.utils.getPointer(3, this));
1930
+ }
1931
+ get kind() {
1932
+ return $.utils.getUint16(0, this);
1933
+ }
1934
+ set kind(value) {
1935
+ $.utils.setUint16(0, value, this);
1936
+ }
1937
+ _adoptIndex(value) {
1938
+ $.utils.adopt(value, $.utils.getPointer(4, this));
1939
+ }
1940
+ _disownIndex() {
1941
+ return $.utils.disown(this.index);
1942
+ }
1943
+ get index() {
1944
+ return $.utils.getStruct(4, SerializedTypeReference$1, this);
1945
+ }
1946
+ _hasIndex() {
1947
+ return !$.utils.isNull($.utils.getPointer(4, this));
1948
+ }
1949
+ _initIndex() {
1950
+ return $.utils.initStructAt(4, SerializedTypeReference$1, this);
1951
+ }
1952
+ set index(value) {
1953
+ $.utils.copyFrom(value, $.utils.getPointer(4, this));
1954
+ }
1955
+ _adoptType(value) {
1956
+ $.utils.adopt(value, $.utils.getPointer(5, this));
1957
+ }
1958
+ _disownType() {
1959
+ return $.utils.disown(this.type);
1960
+ }
1961
+ get type() {
1962
+ return $.utils.getStruct(5, SerializedTypeReference$1, this);
1963
+ }
1964
+ _hasType() {
1965
+ return !$.utils.isNull($.utils.getPointer(5, this));
1966
+ }
1967
+ _initType() {
1968
+ return $.utils.initStructAt(5, SerializedTypeReference$1, this);
1969
+ }
1970
+ set type(value) {
1971
+ $.utils.copyFrom(value, $.utils.getPointer(5, this));
1972
+ }
1973
+ toString() {
1974
+ return "SerializedTypeIndexSignature_" + super.toString();
1975
+ }
1976
+ };
1977
+ var SerializedTypePropertySignature$1 = class SerializedTypePropertySignature$1 extends $.Struct {
1978
+ static _capnp = {
1979
+ displayName: "SerializedTypePropertySignature",
1980
+ id: "9bc1cebd2ca1569a",
1981
+ size: new $.ObjectSize(8, 9)
1982
+ };
1983
+ static _TypeArguments;
1984
+ static _Decorators;
1985
+ get typeName() {
1986
+ return $.utils.getText(0, this);
1987
+ }
1988
+ set typeName(value) {
1989
+ $.utils.setText(0, value, this);
1990
+ }
1991
+ _adoptTypeArguments(value) {
1992
+ $.utils.adopt(value, $.utils.getPointer(1, this));
1993
+ }
1994
+ _disownTypeArguments() {
1995
+ return $.utils.disown(this.typeArguments);
1996
+ }
1997
+ get typeArguments() {
1998
+ return $.utils.getList(1, SerializedTypePropertySignature$1._TypeArguments, this);
1999
+ }
2000
+ _hasTypeArguments() {
2001
+ return !$.utils.isNull($.utils.getPointer(1, this));
2002
+ }
2003
+ _initTypeArguments(length) {
2004
+ return $.utils.initList(1, SerializedTypePropertySignature$1._TypeArguments, length, this);
2005
+ }
2006
+ set typeArguments(value) {
2007
+ $.utils.copyFrom(value, $.utils.getPointer(1, this));
2008
+ }
2009
+ _adoptIndexAccessOrigin(value) {
2010
+ $.utils.adopt(value, $.utils.getPointer(2, this));
2011
+ }
2012
+ _disownIndexAccessOrigin() {
2013
+ return $.utils.disown(this.indexAccessOrigin);
2014
+ }
2015
+ get indexAccessOrigin() {
2016
+ return $.utils.getStruct(2, IndexAccessOrigin, this);
2017
+ }
2018
+ _hasIndexAccessOrigin() {
2019
+ return !$.utils.isNull($.utils.getPointer(2, this));
2020
+ }
2021
+ _initIndexAccessOrigin() {
2022
+ return $.utils.initStructAt(2, IndexAccessOrigin, this);
2023
+ }
2024
+ set indexAccessOrigin(value) {
2025
+ $.utils.copyFrom(value, $.utils.getPointer(2, this));
2026
+ }
2027
+ _adoptDecorators(value) {
2028
+ $.utils.adopt(value, $.utils.getPointer(3, this));
2029
+ }
2030
+ _disownDecorators() {
2031
+ return $.utils.disown(this.decorators);
2032
+ }
2033
+ get decorators() {
2034
+ return $.utils.getList(3, SerializedTypePropertySignature$1._Decorators, this);
2035
+ }
2036
+ _hasDecorators() {
2037
+ return !$.utils.isNull($.utils.getPointer(3, this));
2038
+ }
2039
+ _initDecorators(length) {
2040
+ return $.utils.initList(3, SerializedTypePropertySignature$1._Decorators, length, this);
2041
+ }
2042
+ set decorators(value) {
2043
+ $.utils.copyFrom(value, $.utils.getPointer(3, this));
2044
+ }
2045
+ get kind() {
2046
+ return $.utils.getUint16(0, this);
2047
+ }
2048
+ set kind(value) {
2049
+ $.utils.setUint16(0, value, this);
2050
+ }
2051
+ get name() {
2052
+ return $.utils.getText(4, this);
2053
+ }
2054
+ set name(value) {
2055
+ $.utils.setText(4, value, this);
2056
+ }
2057
+ get optional() {
2058
+ return $.utils.getBit(16, this);
2059
+ }
2060
+ set optional(value) {
2061
+ $.utils.setBit(16, value, this);
2062
+ }
2063
+ get readonly() {
2064
+ return $.utils.getBit(17, this);
2065
+ }
2066
+ set readonly(value) {
2067
+ $.utils.setBit(17, value, this);
2068
+ }
2069
+ get description() {
2070
+ return $.utils.getText(5, this);
2071
+ }
2072
+ set description(value) {
2073
+ $.utils.setText(5, value, this);
2074
+ }
2075
+ _adoptDefault(value) {
2076
+ $.utils.adopt(value, $.utils.getPointer(6, this));
2077
+ }
2078
+ _disownDefault() {
2079
+ return $.utils.disown(this.default);
2080
+ }
2081
+ get default() {
2082
+ return $.utils.getStruct(6, DefaultValueReflection, this);
2083
+ }
2084
+ _hasDefault() {
2085
+ return !$.utils.isNull($.utils.getPointer(6, this));
2086
+ }
2087
+ _initDefault() {
2088
+ return $.utils.initStructAt(6, DefaultValueReflection, this);
2089
+ }
2090
+ set default(value) {
2091
+ $.utils.copyFrom(value, $.utils.getPointer(6, this));
2092
+ }
2093
+ _adoptType(value) {
2094
+ $.utils.adopt(value, $.utils.getPointer(7, this));
2095
+ }
2096
+ _disownType() {
2097
+ return $.utils.disown(this.type);
2098
+ }
2099
+ get type() {
2100
+ return $.utils.getStruct(7, SerializedTypeReference$1, this);
2101
+ }
2102
+ _hasType() {
2103
+ return !$.utils.isNull($.utils.getPointer(7, this));
2104
+ }
2105
+ _initType() {
2106
+ return $.utils.initStructAt(7, SerializedTypeReference$1, this);
2107
+ }
2108
+ set type(value) {
2109
+ $.utils.copyFrom(value, $.utils.getPointer(7, this));
2110
+ }
2111
+ _adoptTags(value) {
2112
+ $.utils.adopt(value, $.utils.getPointer(8, this));
2113
+ }
2114
+ _disownTags() {
2115
+ return $.utils.disown(this.tags);
2116
+ }
2117
+ get tags() {
2118
+ return $.utils.getStruct(8, TagsReflection$1, this);
2119
+ }
2120
+ _hasTags() {
2121
+ return !$.utils.isNull($.utils.getPointer(8, this));
2122
+ }
2123
+ _initTags() {
2124
+ return $.utils.initStructAt(8, TagsReflection$1, this);
2125
+ }
2126
+ set tags(value) {
2127
+ $.utils.copyFrom(value, $.utils.getPointer(8, this));
2128
+ }
2129
+ toString() {
2130
+ return "SerializedTypePropertySignature_" + super.toString();
2131
+ }
2132
+ };
2133
+ var SerializedTypeMethodSignature$1 = class SerializedTypeMethodSignature$1 extends $.Struct {
2134
+ static _capnp = {
2135
+ displayName: "SerializedTypeMethodSignature",
2136
+ id: "e25a2cc39d5930c8",
2137
+ size: new $.ObjectSize(8, 8)
2138
+ };
2139
+ static _TypeArguments;
2140
+ static _Decorators;
2141
+ static _Parameters;
2142
+ get typeName() {
2143
+ return $.utils.getText(0, this);
2144
+ }
2145
+ set typeName(value) {
2146
+ $.utils.setText(0, value, this);
2147
+ }
2148
+ _adoptTypeArguments(value) {
2149
+ $.utils.adopt(value, $.utils.getPointer(1, this));
2150
+ }
2151
+ _disownTypeArguments() {
2152
+ return $.utils.disown(this.typeArguments);
2153
+ }
2154
+ get typeArguments() {
2155
+ return $.utils.getList(1, SerializedTypeMethodSignature$1._TypeArguments, this);
2156
+ }
2157
+ _hasTypeArguments() {
2158
+ return !$.utils.isNull($.utils.getPointer(1, this));
2159
+ }
2160
+ _initTypeArguments(length) {
2161
+ return $.utils.initList(1, SerializedTypeMethodSignature$1._TypeArguments, length, this);
2162
+ }
2163
+ set typeArguments(value) {
2164
+ $.utils.copyFrom(value, $.utils.getPointer(1, this));
2165
+ }
2166
+ _adoptIndexAccessOrigin(value) {
2167
+ $.utils.adopt(value, $.utils.getPointer(2, this));
2168
+ }
2169
+ _disownIndexAccessOrigin() {
2170
+ return $.utils.disown(this.indexAccessOrigin);
2171
+ }
2172
+ get indexAccessOrigin() {
2173
+ return $.utils.getStruct(2, IndexAccessOrigin, this);
2174
+ }
2175
+ _hasIndexAccessOrigin() {
2176
+ return !$.utils.isNull($.utils.getPointer(2, this));
2177
+ }
2178
+ _initIndexAccessOrigin() {
2179
+ return $.utils.initStructAt(2, IndexAccessOrigin, this);
2180
+ }
2181
+ set indexAccessOrigin(value) {
2182
+ $.utils.copyFrom(value, $.utils.getPointer(2, this));
2183
+ }
2184
+ _adoptDecorators(value) {
2185
+ $.utils.adopt(value, $.utils.getPointer(3, this));
2186
+ }
2187
+ _disownDecorators() {
2188
+ return $.utils.disown(this.decorators);
2189
+ }
2190
+ get decorators() {
2191
+ return $.utils.getList(3, SerializedTypeMethodSignature$1._Decorators, this);
2192
+ }
2193
+ _hasDecorators() {
2194
+ return !$.utils.isNull($.utils.getPointer(3, this));
2195
+ }
2196
+ _initDecorators(length) {
2197
+ return $.utils.initList(3, SerializedTypeMethodSignature$1._Decorators, length, this);
2198
+ }
2199
+ set decorators(value) {
2200
+ $.utils.copyFrom(value, $.utils.getPointer(3, this));
2201
+ }
2202
+ get kind() {
2203
+ return $.utils.getUint16(0, this);
2204
+ }
2205
+ set kind(value) {
2206
+ $.utils.setUint16(0, value, this);
2207
+ }
2208
+ get name() {
2209
+ return $.utils.getText(4, this);
2210
+ }
2211
+ set name(value) {
2212
+ $.utils.setText(4, value, this);
2213
+ }
2214
+ get optional() {
2215
+ return $.utils.getBit(16, this);
2216
+ }
2217
+ set optional(value) {
2218
+ $.utils.setBit(16, value, this);
2219
+ }
2220
+ _adoptParameters(value) {
2221
+ $.utils.adopt(value, $.utils.getPointer(5, this));
2222
+ }
2223
+ _disownParameters() {
2224
+ return $.utils.disown(this.parameters);
2225
+ }
2226
+ get parameters() {
2227
+ return $.utils.getList(5, SerializedTypeMethodSignature$1._Parameters, this);
2228
+ }
2229
+ _hasParameters() {
2230
+ return !$.utils.isNull($.utils.getPointer(5, this));
2231
+ }
2232
+ _initParameters(length) {
2233
+ return $.utils.initList(5, SerializedTypeMethodSignature$1._Parameters, length, this);
2234
+ }
2235
+ set parameters(value) {
2236
+ $.utils.copyFrom(value, $.utils.getPointer(5, this));
2237
+ }
2238
+ _adoptReturn(value) {
2239
+ $.utils.adopt(value, $.utils.getPointer(6, this));
2240
+ }
2241
+ _disownReturn() {
2242
+ return $.utils.disown(this.return);
2243
+ }
2244
+ get return() {
2245
+ return $.utils.getStruct(6, SerializedTypeReference$1, this);
2246
+ }
2247
+ _hasReturn() {
2248
+ return !$.utils.isNull($.utils.getPointer(6, this));
2249
+ }
2250
+ _initReturn() {
2251
+ return $.utils.initStructAt(6, SerializedTypeReference$1, this);
2252
+ }
2253
+ set return(value) {
2254
+ $.utils.copyFrom(value, $.utils.getPointer(6, this));
2255
+ }
2256
+ _adoptTags(value) {
2257
+ $.utils.adopt(value, $.utils.getPointer(7, this));
2258
+ }
2259
+ _disownTags() {
2260
+ return $.utils.disown(this.tags);
2261
+ }
2262
+ get tags() {
2263
+ return $.utils.getStruct(7, TagsReflection$1, this);
2264
+ }
2265
+ _hasTags() {
2266
+ return !$.utils.isNull($.utils.getPointer(7, this));
2267
+ }
2268
+ _initTags() {
2269
+ return $.utils.initStructAt(7, TagsReflection$1, this);
2270
+ }
2271
+ set tags(value) {
2272
+ $.utils.copyFrom(value, $.utils.getPointer(7, this));
2273
+ }
2274
+ toString() {
2275
+ return "SerializedTypeMethodSignature_" + super.toString();
2276
+ }
2277
+ };
2278
+ var SerializedTypeTypeParameter = class SerializedTypeTypeParameter extends $.Struct {
2279
+ static _capnp = {
2280
+ displayName: "SerializedTypeTypeParameter",
2281
+ id: "81210361a54d5d71",
2282
+ size: new $.ObjectSize(8, 5)
2283
+ };
2284
+ static _TypeArguments;
2285
+ static _Decorators;
2286
+ get typeName() {
2287
+ return $.utils.getText(0, this);
2288
+ }
2289
+ set typeName(value) {
2290
+ $.utils.setText(0, value, this);
2291
+ }
2292
+ _adoptTypeArguments(value) {
2293
+ $.utils.adopt(value, $.utils.getPointer(1, this));
2294
+ }
2295
+ _disownTypeArguments() {
2296
+ return $.utils.disown(this.typeArguments);
2297
+ }
2298
+ get typeArguments() {
2299
+ return $.utils.getList(1, SerializedTypeTypeParameter._TypeArguments, this);
2300
+ }
2301
+ _hasTypeArguments() {
2302
+ return !$.utils.isNull($.utils.getPointer(1, this));
2303
+ }
2304
+ _initTypeArguments(length) {
2305
+ return $.utils.initList(1, SerializedTypeTypeParameter._TypeArguments, length, this);
2306
+ }
2307
+ set typeArguments(value) {
2308
+ $.utils.copyFrom(value, $.utils.getPointer(1, this));
2309
+ }
2310
+ _adoptIndexAccessOrigin(value) {
2311
+ $.utils.adopt(value, $.utils.getPointer(2, this));
2312
+ }
2313
+ _disownIndexAccessOrigin() {
2314
+ return $.utils.disown(this.indexAccessOrigin);
2315
+ }
2316
+ get indexAccessOrigin() {
2317
+ return $.utils.getStruct(2, IndexAccessOrigin, this);
2318
+ }
2319
+ _hasIndexAccessOrigin() {
2320
+ return !$.utils.isNull($.utils.getPointer(2, this));
2321
+ }
2322
+ _initIndexAccessOrigin() {
2323
+ return $.utils.initStructAt(2, IndexAccessOrigin, this);
2324
+ }
2325
+ set indexAccessOrigin(value) {
2326
+ $.utils.copyFrom(value, $.utils.getPointer(2, this));
2327
+ }
2328
+ _adoptDecorators(value) {
2329
+ $.utils.adopt(value, $.utils.getPointer(3, this));
2330
+ }
2331
+ _disownDecorators() {
2332
+ return $.utils.disown(this.decorators);
2333
+ }
2334
+ get decorators() {
2335
+ return $.utils.getList(3, SerializedTypeTypeParameter._Decorators, this);
2336
+ }
2337
+ _hasDecorators() {
2338
+ return !$.utils.isNull($.utils.getPointer(3, this));
2339
+ }
2340
+ _initDecorators(length) {
2341
+ return $.utils.initList(3, SerializedTypeTypeParameter._Decorators, length, this);
2342
+ }
2343
+ set decorators(value) {
2344
+ $.utils.copyFrom(value, $.utils.getPointer(3, this));
2345
+ }
2346
+ get kind() {
2347
+ return $.utils.getUint16(0, this);
2348
+ }
2349
+ set kind(value) {
2350
+ $.utils.setUint16(0, value, this);
2351
+ }
2352
+ get name() {
2353
+ return $.utils.getText(4, this);
2354
+ }
2355
+ set name(value) {
2356
+ $.utils.setText(4, value, this);
2357
+ }
2358
+ toString() {
2359
+ return "SerializedTypeTypeParameter_" + super.toString();
2360
+ }
2361
+ };
2362
+ var SerializedTypeInfer$1 = class SerializedTypeInfer$1 extends $.Struct {
2363
+ static _capnp = {
2364
+ displayName: "SerializedTypeInfer",
2365
+ id: "91c6dd1e13f2b14d",
2366
+ size: new $.ObjectSize(8, 4)
2367
+ };
2368
+ static _TypeArguments;
2369
+ static _Decorators;
2370
+ get typeName() {
2371
+ return $.utils.getText(0, this);
2372
+ }
2373
+ set typeName(value) {
2374
+ $.utils.setText(0, value, this);
2375
+ }
2376
+ _adoptTypeArguments(value) {
2377
+ $.utils.adopt(value, $.utils.getPointer(1, this));
2378
+ }
2379
+ _disownTypeArguments() {
2380
+ return $.utils.disown(this.typeArguments);
2381
+ }
2382
+ get typeArguments() {
2383
+ return $.utils.getList(1, SerializedTypeInfer$1._TypeArguments, this);
2384
+ }
2385
+ _hasTypeArguments() {
2386
+ return !$.utils.isNull($.utils.getPointer(1, this));
2387
+ }
2388
+ _initTypeArguments(length) {
2389
+ return $.utils.initList(1, SerializedTypeInfer$1._TypeArguments, length, this);
2390
+ }
2391
+ set typeArguments(value) {
2392
+ $.utils.copyFrom(value, $.utils.getPointer(1, this));
2393
+ }
2394
+ _adoptIndexAccessOrigin(value) {
2395
+ $.utils.adopt(value, $.utils.getPointer(2, this));
2396
+ }
2397
+ _disownIndexAccessOrigin() {
2398
+ return $.utils.disown(this.indexAccessOrigin);
2399
+ }
2400
+ get indexAccessOrigin() {
2401
+ return $.utils.getStruct(2, IndexAccessOrigin, this);
2402
+ }
2403
+ _hasIndexAccessOrigin() {
2404
+ return !$.utils.isNull($.utils.getPointer(2, this));
2405
+ }
2406
+ _initIndexAccessOrigin() {
2407
+ return $.utils.initStructAt(2, IndexAccessOrigin, this);
2408
+ }
2409
+ set indexAccessOrigin(value) {
2410
+ $.utils.copyFrom(value, $.utils.getPointer(2, this));
2411
+ }
2412
+ _adoptDecorators(value) {
2413
+ $.utils.adopt(value, $.utils.getPointer(3, this));
2414
+ }
2415
+ _disownDecorators() {
2416
+ return $.utils.disown(this.decorators);
2417
+ }
2418
+ get decorators() {
2419
+ return $.utils.getList(3, SerializedTypeInfer$1._Decorators, this);
2420
+ }
2421
+ _hasDecorators() {
2422
+ return !$.utils.isNull($.utils.getPointer(3, this));
2423
+ }
2424
+ _initDecorators(length) {
2425
+ return $.utils.initList(3, SerializedTypeInfer$1._Decorators, length, this);
2426
+ }
2427
+ set decorators(value) {
2428
+ $.utils.copyFrom(value, $.utils.getPointer(3, this));
2429
+ }
2430
+ get kind() {
2431
+ return $.utils.getUint16(0, this);
2432
+ }
2433
+ set kind(value) {
2434
+ $.utils.setUint16(0, value, this);
2435
+ }
2436
+ toString() {
2437
+ return "SerializedTypeInfer_" + super.toString();
2438
+ }
2439
+ };
2440
+ var SerializedTypeTupleMember$1 = class SerializedTypeTupleMember$1 extends $.Struct {
2441
+ static _capnp = {
2442
+ displayName: "SerializedTypeTupleMember",
2443
+ id: "e21c2a18d0d56fdf",
2444
+ size: new $.ObjectSize(8, 6)
2445
+ };
2446
+ static _TypeArguments;
2447
+ static _Decorators;
2448
+ get typeName() {
2449
+ return $.utils.getText(0, this);
2450
+ }
2451
+ set typeName(value) {
2452
+ $.utils.setText(0, value, this);
2453
+ }
2454
+ _adoptTypeArguments(value) {
2455
+ $.utils.adopt(value, $.utils.getPointer(1, this));
2456
+ }
2457
+ _disownTypeArguments() {
2458
+ return $.utils.disown(this.typeArguments);
2459
+ }
2460
+ get typeArguments() {
2461
+ return $.utils.getList(1, SerializedTypeTupleMember$1._TypeArguments, this);
2462
+ }
2463
+ _hasTypeArguments() {
2464
+ return !$.utils.isNull($.utils.getPointer(1, this));
2465
+ }
2466
+ _initTypeArguments(length) {
2467
+ return $.utils.initList(1, SerializedTypeTupleMember$1._TypeArguments, length, this);
2468
+ }
2469
+ set typeArguments(value) {
2470
+ $.utils.copyFrom(value, $.utils.getPointer(1, this));
2471
+ }
2472
+ _adoptIndexAccessOrigin(value) {
2473
+ $.utils.adopt(value, $.utils.getPointer(2, this));
2474
+ }
2475
+ _disownIndexAccessOrigin() {
2476
+ return $.utils.disown(this.indexAccessOrigin);
2477
+ }
2478
+ get indexAccessOrigin() {
2479
+ return $.utils.getStruct(2, IndexAccessOrigin, this);
2480
+ }
2481
+ _hasIndexAccessOrigin() {
2482
+ return !$.utils.isNull($.utils.getPointer(2, this));
2483
+ }
2484
+ _initIndexAccessOrigin() {
2485
+ return $.utils.initStructAt(2, IndexAccessOrigin, this);
2486
+ }
2487
+ set indexAccessOrigin(value) {
2488
+ $.utils.copyFrom(value, $.utils.getPointer(2, this));
2489
+ }
2490
+ _adoptDecorators(value) {
2491
+ $.utils.adopt(value, $.utils.getPointer(3, this));
2492
+ }
2493
+ _disownDecorators() {
2494
+ return $.utils.disown(this.decorators);
2495
+ }
2496
+ get decorators() {
2497
+ return $.utils.getList(3, SerializedTypeTupleMember$1._Decorators, this);
2498
+ }
2499
+ _hasDecorators() {
2500
+ return !$.utils.isNull($.utils.getPointer(3, this));
2501
+ }
2502
+ _initDecorators(length) {
2503
+ return $.utils.initList(3, SerializedTypeTupleMember$1._Decorators, length, this);
2504
+ }
2505
+ set decorators(value) {
2506
+ $.utils.copyFrom(value, $.utils.getPointer(3, this));
2507
+ }
2508
+ get kind() {
2509
+ return $.utils.getUint16(0, this);
2510
+ }
2511
+ set kind(value) {
2512
+ $.utils.setUint16(0, value, this);
2513
+ }
2514
+ _adoptType(value) {
2515
+ $.utils.adopt(value, $.utils.getPointer(4, this));
2516
+ }
2517
+ _disownType() {
2518
+ return $.utils.disown(this.type);
2519
+ }
2520
+ get type() {
2521
+ return $.utils.getStruct(4, SerializedTypeReference$1, this);
2522
+ }
2523
+ _hasType() {
2524
+ return !$.utils.isNull($.utils.getPointer(4, this));
2525
+ }
2526
+ _initType() {
2527
+ return $.utils.initStructAt(4, SerializedTypeReference$1, this);
2528
+ }
2529
+ set type(value) {
2530
+ $.utils.copyFrom(value, $.utils.getPointer(4, this));
2531
+ }
2532
+ get optional() {
2533
+ return $.utils.getBit(16, this);
2534
+ }
2535
+ set optional(value) {
2536
+ $.utils.setBit(16, value, this);
2537
+ }
2538
+ get name() {
2539
+ return $.utils.getText(5, this);
2540
+ }
2541
+ set name(value) {
2542
+ $.utils.setText(5, value, this);
2543
+ }
2544
+ toString() {
2545
+ return "SerializedTypeTupleMember_" + super.toString();
2546
+ }
2547
+ };
2548
+ var SerializedTypeTuple$1 = class SerializedTypeTuple$1 extends $.Struct {
2549
+ static _capnp = {
2550
+ displayName: "SerializedTypeTuple",
2551
+ id: "eb7501eb1ee4fb6d",
2552
+ size: new $.ObjectSize(8, 5)
2553
+ };
2554
+ static _TypeArguments;
2555
+ static _Decorators;
2556
+ static _Types;
2557
+ get typeName() {
2558
+ return $.utils.getText(0, this);
2559
+ }
2560
+ set typeName(value) {
2561
+ $.utils.setText(0, value, this);
2562
+ }
2563
+ _adoptTypeArguments(value) {
2564
+ $.utils.adopt(value, $.utils.getPointer(1, this));
2565
+ }
2566
+ _disownTypeArguments() {
2567
+ return $.utils.disown(this.typeArguments);
2568
+ }
2569
+ get typeArguments() {
2570
+ return $.utils.getList(1, SerializedTypeTuple$1._TypeArguments, this);
2571
+ }
2572
+ _hasTypeArguments() {
2573
+ return !$.utils.isNull($.utils.getPointer(1, this));
2574
+ }
2575
+ _initTypeArguments(length) {
2576
+ return $.utils.initList(1, SerializedTypeTuple$1._TypeArguments, length, this);
2577
+ }
2578
+ set typeArguments(value) {
2579
+ $.utils.copyFrom(value, $.utils.getPointer(1, this));
2580
+ }
2581
+ _adoptIndexAccessOrigin(value) {
2582
+ $.utils.adopt(value, $.utils.getPointer(2, this));
2583
+ }
2584
+ _disownIndexAccessOrigin() {
2585
+ return $.utils.disown(this.indexAccessOrigin);
2586
+ }
2587
+ get indexAccessOrigin() {
2588
+ return $.utils.getStruct(2, IndexAccessOrigin, this);
2589
+ }
2590
+ _hasIndexAccessOrigin() {
2591
+ return !$.utils.isNull($.utils.getPointer(2, this));
2592
+ }
2593
+ _initIndexAccessOrigin() {
2594
+ return $.utils.initStructAt(2, IndexAccessOrigin, this);
2595
+ }
2596
+ set indexAccessOrigin(value) {
2597
+ $.utils.copyFrom(value, $.utils.getPointer(2, this));
2598
+ }
2599
+ _adoptDecorators(value) {
2600
+ $.utils.adopt(value, $.utils.getPointer(3, this));
2601
+ }
2602
+ _disownDecorators() {
2603
+ return $.utils.disown(this.decorators);
2604
+ }
2605
+ get decorators() {
2606
+ return $.utils.getList(3, SerializedTypeTuple$1._Decorators, this);
2607
+ }
2608
+ _hasDecorators() {
2609
+ return !$.utils.isNull($.utils.getPointer(3, this));
2610
+ }
2611
+ _initDecorators(length) {
2612
+ return $.utils.initList(3, SerializedTypeTuple$1._Decorators, length, this);
2613
+ }
2614
+ set decorators(value) {
2615
+ $.utils.copyFrom(value, $.utils.getPointer(3, this));
2616
+ }
2617
+ get kind() {
2618
+ return $.utils.getUint16(0, this);
2619
+ }
2620
+ set kind(value) {
2621
+ $.utils.setUint16(0, value, this);
2622
+ }
2623
+ _adoptTypes(value) {
2624
+ $.utils.adopt(value, $.utils.getPointer(4, this));
2625
+ }
2626
+ _disownTypes() {
2627
+ return $.utils.disown(this.types);
2628
+ }
2629
+ get types() {
2630
+ return $.utils.getList(4, SerializedTypeTuple$1._Types, this);
2631
+ }
2632
+ _hasTypes() {
2633
+ return !$.utils.isNull($.utils.getPointer(4, this));
2634
+ }
2635
+ _initTypes(length) {
2636
+ return $.utils.initList(4, SerializedTypeTuple$1._Types, length, this);
2637
+ }
2638
+ set types(value) {
2639
+ $.utils.copyFrom(value, $.utils.getPointer(4, this));
2640
+ }
2641
+ toString() {
2642
+ return "SerializedTypeTuple_" + super.toString();
2643
+ }
2644
+ };
2645
+ var SerializedTypeRest = class SerializedTypeRest extends $.Struct {
2646
+ static _capnp = {
2647
+ displayName: "SerializedTypeRest",
2648
+ id: "f9e684a435cce5d1",
2649
+ size: new $.ObjectSize(8, 5)
2650
+ };
2651
+ static _TypeArguments;
2652
+ static _Decorators;
2653
+ get typeName() {
2654
+ return $.utils.getText(0, this);
2655
+ }
2656
+ set typeName(value) {
2657
+ $.utils.setText(0, value, this);
2658
+ }
2659
+ _adoptTypeArguments(value) {
2660
+ $.utils.adopt(value, $.utils.getPointer(1, this));
2661
+ }
2662
+ _disownTypeArguments() {
2663
+ return $.utils.disown(this.typeArguments);
2664
+ }
2665
+ get typeArguments() {
2666
+ return $.utils.getList(1, SerializedTypeRest._TypeArguments, this);
2667
+ }
2668
+ _hasTypeArguments() {
2669
+ return !$.utils.isNull($.utils.getPointer(1, this));
2670
+ }
2671
+ _initTypeArguments(length) {
2672
+ return $.utils.initList(1, SerializedTypeRest._TypeArguments, length, this);
2673
+ }
2674
+ set typeArguments(value) {
2675
+ $.utils.copyFrom(value, $.utils.getPointer(1, this));
2676
+ }
2677
+ _adoptIndexAccessOrigin(value) {
2678
+ $.utils.adopt(value, $.utils.getPointer(2, this));
2679
+ }
2680
+ _disownIndexAccessOrigin() {
2681
+ return $.utils.disown(this.indexAccessOrigin);
2682
+ }
2683
+ get indexAccessOrigin() {
2684
+ return $.utils.getStruct(2, IndexAccessOrigin, this);
2685
+ }
2686
+ _hasIndexAccessOrigin() {
2687
+ return !$.utils.isNull($.utils.getPointer(2, this));
2688
+ }
2689
+ _initIndexAccessOrigin() {
2690
+ return $.utils.initStructAt(2, IndexAccessOrigin, this);
2691
+ }
2692
+ set indexAccessOrigin(value) {
2693
+ $.utils.copyFrom(value, $.utils.getPointer(2, this));
2694
+ }
2695
+ _adoptDecorators(value) {
2696
+ $.utils.adopt(value, $.utils.getPointer(3, this));
2697
+ }
2698
+ _disownDecorators() {
2699
+ return $.utils.disown(this.decorators);
2700
+ }
2701
+ get decorators() {
2702
+ return $.utils.getList(3, SerializedTypeRest._Decorators, this);
2703
+ }
2704
+ _hasDecorators() {
2705
+ return !$.utils.isNull($.utils.getPointer(3, this));
2706
+ }
2707
+ _initDecorators(length) {
2708
+ return $.utils.initList(3, SerializedTypeRest._Decorators, length, this);
2709
+ }
2710
+ set decorators(value) {
2711
+ $.utils.copyFrom(value, $.utils.getPointer(3, this));
2712
+ }
2713
+ get kind() {
2714
+ return $.utils.getUint16(0, this);
2715
+ }
2716
+ set kind(value) {
2717
+ $.utils.setUint16(0, value, this);
2718
+ }
2719
+ _adoptType(value) {
2720
+ $.utils.adopt(value, $.utils.getPointer(4, this));
2721
+ }
2722
+ _disownType() {
2723
+ return $.utils.disown(this.type);
2724
+ }
2725
+ get type() {
2726
+ return $.utils.getStruct(4, SerializedTypeReference$1, this);
2727
+ }
2728
+ _hasType() {
2729
+ return !$.utils.isNull($.utils.getPointer(4, this));
2730
+ }
2731
+ _initType() {
2732
+ return $.utils.initStructAt(4, SerializedTypeReference$1, this);
2733
+ }
2734
+ set type(value) {
2735
+ $.utils.copyFrom(value, $.utils.getPointer(4, this));
2736
+ }
2737
+ toString() {
2738
+ return "SerializedTypeRest_" + super.toString();
2739
+ }
2740
+ };
2741
+ var SimpleSerializedType$1 = class SimpleSerializedType$1 extends $.Struct {
2742
+ static _capnp = {
2743
+ displayName: "SimpleSerializedType",
2744
+ id: "80f983e4b811c3ca",
2745
+ size: new $.ObjectSize(8, 5)
2746
+ };
2747
+ static _TypeArguments;
2748
+ static _Decorators;
2749
+ get typeName() {
2750
+ return $.utils.getText(0, this);
2751
+ }
2752
+ set typeName(value) {
2753
+ $.utils.setText(0, value, this);
2754
+ }
2755
+ _adoptTypeArguments(value) {
2756
+ $.utils.adopt(value, $.utils.getPointer(1, this));
2757
+ }
2758
+ _disownTypeArguments() {
2759
+ return $.utils.disown(this.typeArguments);
2760
+ }
2761
+ get typeArguments() {
2762
+ return $.utils.getList(1, SimpleSerializedType$1._TypeArguments, this);
2763
+ }
2764
+ _hasTypeArguments() {
2765
+ return !$.utils.isNull($.utils.getPointer(1, this));
2766
+ }
2767
+ _initTypeArguments(length) {
2768
+ return $.utils.initList(1, SimpleSerializedType$1._TypeArguments, length, this);
2769
+ }
2770
+ set typeArguments(value) {
2771
+ $.utils.copyFrom(value, $.utils.getPointer(1, this));
2772
+ }
2773
+ _adoptIndexAccessOrigin(value) {
2774
+ $.utils.adopt(value, $.utils.getPointer(2, this));
2775
+ }
2776
+ _disownIndexAccessOrigin() {
2777
+ return $.utils.disown(this.indexAccessOrigin);
2778
+ }
2779
+ get indexAccessOrigin() {
2780
+ return $.utils.getStruct(2, IndexAccessOrigin, this);
2781
+ }
2782
+ _hasIndexAccessOrigin() {
2783
+ return !$.utils.isNull($.utils.getPointer(2, this));
2784
+ }
2785
+ _initIndexAccessOrigin() {
2786
+ return $.utils.initStructAt(2, IndexAccessOrigin, this);
2787
+ }
2788
+ set indexAccessOrigin(value) {
2789
+ $.utils.copyFrom(value, $.utils.getPointer(2, this));
2790
+ }
2791
+ _adoptDecorators(value) {
2792
+ $.utils.adopt(value, $.utils.getPointer(3, this));
2793
+ }
2794
+ _disownDecorators() {
2795
+ return $.utils.disown(this.decorators);
2796
+ }
2797
+ get decorators() {
2798
+ return $.utils.getList(3, SimpleSerializedType$1._Decorators, this);
2799
+ }
2800
+ _hasDecorators() {
2801
+ return !$.utils.isNull($.utils.getPointer(3, this));
2802
+ }
2803
+ _initDecorators(length) {
2804
+ return $.utils.initList(3, SimpleSerializedType$1._Decorators, length, this);
2805
+ }
2806
+ set decorators(value) {
2807
+ $.utils.copyFrom(value, $.utils.getPointer(3, this));
2808
+ }
2809
+ get kind() {
2810
+ return $.utils.getUint16(0, this);
2811
+ }
2812
+ set kind(value) {
2813
+ $.utils.setUint16(0, value, this);
2814
+ }
2815
+ _adoptOrigin(value) {
2816
+ $.utils.adopt(value, $.utils.getPointer(4, this));
2817
+ }
2818
+ _disownOrigin() {
2819
+ return $.utils.disown(this.origin);
2820
+ }
2821
+ get origin() {
2822
+ return $.utils.getStruct(4, SerializedTypeReference$1, this);
2823
+ }
2824
+ _hasOrigin() {
2825
+ return !$.utils.isNull($.utils.getPointer(4, this));
2826
+ }
2827
+ _initOrigin() {
2828
+ return $.utils.initStructAt(4, SerializedTypeReference$1, this);
2829
+ }
2830
+ set origin(value) {
2831
+ $.utils.copyFrom(value, $.utils.getPointer(4, this));
2832
+ }
2833
+ toString() {
2834
+ return "SimpleSerializedType_" + super.toString();
2835
+ }
2836
+ };
2837
+ var SerializedTypeLiteralSymbol = class extends $.Struct {
2838
+ static _capnp = {
2839
+ displayName: "SerializedTypeLiteralSymbol",
2840
+ id: "f3dd6a3c6054bd55",
2841
+ size: new $.ObjectSize(0, 2)
2842
+ };
2843
+ /**
2844
+ * "symbol"
2845
+ *
2846
+ */
2847
+ get type() {
2848
+ return $.utils.getText(0, this);
2849
+ }
2850
+ set type(value) {
2851
+ $.utils.setText(0, value, this);
2852
+ }
2853
+ get name() {
2854
+ return $.utils.getText(1, this);
2855
+ }
2856
+ set name(value) {
2857
+ $.utils.setText(1, value, this);
2858
+ }
2859
+ toString() {
2860
+ return "SerializedTypeLiteralSymbol_" + super.toString();
2861
+ }
2862
+ };
2863
+ var SerializedTypeLiteralBigInt = class extends $.Struct {
2864
+ static _capnp = {
2865
+ displayName: "SerializedTypeLiteralBigInt",
2866
+ id: "821a872d8be30bb2",
2867
+ size: new $.ObjectSize(0, 2)
2868
+ };
2869
+ /**
2870
+ * "bigint"
2871
+ *
2872
+ */
2873
+ get type() {
2874
+ return $.utils.getText(0, this);
2875
+ }
2876
+ set type(value) {
2877
+ $.utils.setText(0, value, this);
2878
+ }
2879
+ get value() {
2880
+ return $.utils.getText(1, this);
2881
+ }
2882
+ set value(value) {
2883
+ $.utils.setText(1, value, this);
2884
+ }
2885
+ toString() {
2886
+ return "SerializedTypeLiteralBigInt_" + super.toString();
2887
+ }
2888
+ };
2889
+ var SerializedTypeLiteralRegex = class extends $.Struct {
2890
+ static _capnp = {
2891
+ displayName: "SerializedTypeLiteralRegex",
2892
+ id: "cc89f97b47927d99",
2893
+ size: new $.ObjectSize(0, 2)
2894
+ };
2895
+ /**
2896
+ * "regex"
2897
+ *
2898
+ */
2899
+ get type() {
2900
+ return $.utils.getText(0, this);
2901
+ }
2902
+ set type(value) {
2903
+ $.utils.setText(0, value, this);
2904
+ }
2905
+ get regex() {
2906
+ return $.utils.getText(1, this);
2907
+ }
2908
+ set regex(value) {
2909
+ $.utils.setText(1, value, this);
2910
+ }
2911
+ toString() {
2912
+ return "SerializedTypeLiteralRegex_" + super.toString();
2913
+ }
2914
+ };
2915
+ const SerializedTypeLiteral_Literal_Which = {
2916
+ SYMBOL: 0,
2917
+ STRING: 1,
2918
+ NUMBER: 2,
2919
+ BOOLEAN: 3,
2920
+ BIGINT: 4,
2921
+ REGEX: 5
2922
+ };
2923
+ var SerializedTypeLiteral_Literal = class extends $.Struct {
2924
+ static SYMBOL = SerializedTypeLiteral_Literal_Which.SYMBOL;
2925
+ static STRING = SerializedTypeLiteral_Literal_Which.STRING;
2926
+ static NUMBER = SerializedTypeLiteral_Literal_Which.NUMBER;
2927
+ static BOOLEAN = SerializedTypeLiteral_Literal_Which.BOOLEAN;
2928
+ static BIGINT = SerializedTypeLiteral_Literal_Which.BIGINT;
2929
+ static REGEX = SerializedTypeLiteral_Literal_Which.REGEX;
2930
+ static _capnp = {
2931
+ displayName: "literal",
2932
+ id: "e4f0538973f3909f",
2933
+ size: new $.ObjectSize(16, 5)
2934
+ };
2935
+ _adoptSymbol(value) {
2936
+ $.utils.setUint16(2, 0, this);
2937
+ $.utils.adopt(value, $.utils.getPointer(4, this));
2938
+ }
2939
+ _disownSymbol() {
2940
+ return $.utils.disown(this.symbol);
2941
+ }
2942
+ get symbol() {
2943
+ $.utils.testWhich("symbol", $.utils.getUint16(2, this), 0, this);
2944
+ return $.utils.getStruct(4, SerializedTypeLiteralSymbol, this);
2945
+ }
2946
+ _hasSymbol() {
2947
+ return !$.utils.isNull($.utils.getPointer(4, this));
2948
+ }
2949
+ _initSymbol() {
2950
+ $.utils.setUint16(2, 0, this);
2951
+ return $.utils.initStructAt(4, SerializedTypeLiteralSymbol, this);
2952
+ }
2953
+ get _isSymbol() {
2954
+ return $.utils.getUint16(2, this) === 0;
2955
+ }
2956
+ set symbol(value) {
2957
+ $.utils.setUint16(2, 0, this);
2958
+ $.utils.copyFrom(value, $.utils.getPointer(4, this));
2959
+ }
2960
+ get string() {
2961
+ $.utils.testWhich("string", $.utils.getUint16(2, this), 1, this);
2962
+ return $.utils.getText(4, this);
2963
+ }
2964
+ get _isString() {
2965
+ return $.utils.getUint16(2, this) === 1;
2966
+ }
2967
+ set string(value) {
2968
+ $.utils.setUint16(2, 1, this);
2969
+ $.utils.setText(4, value, this);
2970
+ }
2971
+ get number() {
2972
+ $.utils.testWhich("number", $.utils.getUint16(2, this), 2, this);
2973
+ return $.utils.getFloat64(8, this);
2974
+ }
2975
+ get _isNumber() {
2976
+ return $.utils.getUint16(2, this) === 2;
2977
+ }
2978
+ set number(value) {
2979
+ $.utils.setUint16(2, 2, this);
2980
+ $.utils.setFloat64(8, value, this);
2981
+ }
2982
+ get boolean() {
2983
+ $.utils.testWhich("boolean", $.utils.getUint16(2, this), 3, this);
2984
+ return $.utils.getBit(64, this);
2985
+ }
2986
+ get _isBoolean() {
2987
+ return $.utils.getUint16(2, this) === 3;
2988
+ }
2989
+ set boolean(value) {
2990
+ $.utils.setUint16(2, 3, this);
2991
+ $.utils.setBit(64, value, this);
2992
+ }
2993
+ _adoptBigint(value) {
2994
+ $.utils.setUint16(2, 4, this);
2995
+ $.utils.adopt(value, $.utils.getPointer(4, this));
2996
+ }
2997
+ _disownBigint() {
2998
+ return $.utils.disown(this.bigint);
2999
+ }
3000
+ get bigint() {
3001
+ $.utils.testWhich("bigint", $.utils.getUint16(2, this), 4, this);
3002
+ return $.utils.getStruct(4, SerializedTypeLiteralBigInt, this);
3003
+ }
3004
+ _hasBigint() {
3005
+ return !$.utils.isNull($.utils.getPointer(4, this));
3006
+ }
3007
+ _initBigint() {
3008
+ $.utils.setUint16(2, 4, this);
3009
+ return $.utils.initStructAt(4, SerializedTypeLiteralBigInt, this);
3010
+ }
3011
+ get _isBigint() {
3012
+ return $.utils.getUint16(2, this) === 4;
3013
+ }
3014
+ set bigint(value) {
3015
+ $.utils.setUint16(2, 4, this);
3016
+ $.utils.copyFrom(value, $.utils.getPointer(4, this));
3017
+ }
3018
+ _adoptRegex(value) {
3019
+ $.utils.setUint16(2, 5, this);
3020
+ $.utils.adopt(value, $.utils.getPointer(4, this));
3021
+ }
3022
+ _disownRegex() {
3023
+ return $.utils.disown(this.regex);
3024
+ }
3025
+ get regex() {
3026
+ $.utils.testWhich("regex", $.utils.getUint16(2, this), 5, this);
3027
+ return $.utils.getStruct(4, SerializedTypeLiteralRegex, this);
3028
+ }
3029
+ _hasRegex() {
3030
+ return !$.utils.isNull($.utils.getPointer(4, this));
3031
+ }
3032
+ _initRegex() {
3033
+ $.utils.setUint16(2, 5, this);
3034
+ return $.utils.initStructAt(4, SerializedTypeLiteralRegex, this);
3035
+ }
3036
+ get _isRegex() {
3037
+ return $.utils.getUint16(2, this) === 5;
3038
+ }
3039
+ set regex(value) {
3040
+ $.utils.setUint16(2, 5, this);
3041
+ $.utils.copyFrom(value, $.utils.getPointer(4, this));
3042
+ }
3043
+ toString() {
3044
+ return "SerializedTypeLiteral_Literal_" + super.toString();
3045
+ }
3046
+ which() {
3047
+ return $.utils.getUint16(2, this);
3048
+ }
3049
+ };
3050
+ var SerializedTypeLiteral$1 = class SerializedTypeLiteral$1 extends $.Struct {
3051
+ static _capnp = {
3052
+ displayName: "SerializedTypeLiteral",
3053
+ id: "b876ba24d27d88c8",
3054
+ size: new $.ObjectSize(16, 5)
3055
+ };
3056
+ static _TypeArguments;
3057
+ static _Decorators;
3058
+ get typeName() {
3059
+ return $.utils.getText(0, this);
3060
+ }
3061
+ set typeName(value) {
3062
+ $.utils.setText(0, value, this);
3063
+ }
3064
+ _adoptTypeArguments(value) {
3065
+ $.utils.adopt(value, $.utils.getPointer(1, this));
3066
+ }
3067
+ _disownTypeArguments() {
3068
+ return $.utils.disown(this.typeArguments);
3069
+ }
3070
+ get typeArguments() {
3071
+ return $.utils.getList(1, SerializedTypeLiteral$1._TypeArguments, this);
3072
+ }
3073
+ _hasTypeArguments() {
3074
+ return !$.utils.isNull($.utils.getPointer(1, this));
3075
+ }
3076
+ _initTypeArguments(length) {
3077
+ return $.utils.initList(1, SerializedTypeLiteral$1._TypeArguments, length, this);
3078
+ }
3079
+ set typeArguments(value) {
3080
+ $.utils.copyFrom(value, $.utils.getPointer(1, this));
3081
+ }
3082
+ _adoptIndexAccessOrigin(value) {
3083
+ $.utils.adopt(value, $.utils.getPointer(2, this));
3084
+ }
3085
+ _disownIndexAccessOrigin() {
3086
+ return $.utils.disown(this.indexAccessOrigin);
3087
+ }
3088
+ get indexAccessOrigin() {
3089
+ return $.utils.getStruct(2, IndexAccessOrigin, this);
3090
+ }
3091
+ _hasIndexAccessOrigin() {
3092
+ return !$.utils.isNull($.utils.getPointer(2, this));
3093
+ }
3094
+ _initIndexAccessOrigin() {
3095
+ return $.utils.initStructAt(2, IndexAccessOrigin, this);
3096
+ }
3097
+ set indexAccessOrigin(value) {
3098
+ $.utils.copyFrom(value, $.utils.getPointer(2, this));
3099
+ }
3100
+ _adoptDecorators(value) {
3101
+ $.utils.adopt(value, $.utils.getPointer(3, this));
3102
+ }
3103
+ _disownDecorators() {
3104
+ return $.utils.disown(this.decorators);
3105
+ }
3106
+ get decorators() {
3107
+ return $.utils.getList(3, SerializedTypeLiteral$1._Decorators, this);
3108
+ }
3109
+ _hasDecorators() {
3110
+ return !$.utils.isNull($.utils.getPointer(3, this));
3111
+ }
3112
+ _initDecorators(length) {
3113
+ return $.utils.initList(3, SerializedTypeLiteral$1._Decorators, length, this);
3114
+ }
3115
+ set decorators(value) {
3116
+ $.utils.copyFrom(value, $.utils.getPointer(3, this));
3117
+ }
3118
+ get kind() {
3119
+ return $.utils.getUint16(0, this);
3120
+ }
3121
+ set kind(value) {
3122
+ $.utils.setUint16(0, value, this);
3123
+ }
3124
+ get literal() {
3125
+ return $.utils.getAs(SerializedTypeLiteral_Literal, this);
3126
+ }
3127
+ _initLiteral() {
3128
+ return $.utils.getAs(SerializedTypeLiteral_Literal, this);
3129
+ }
3130
+ toString() {
3131
+ return "SerializedTypeLiteral_" + super.toString();
3132
+ }
3133
+ };
3134
+ var SerializedTypeTemplateLiteral = class SerializedTypeTemplateLiteral extends $.Struct {
3135
+ static _capnp = {
3136
+ displayName: "SerializedTypeTemplateLiteral",
3137
+ id: "8dd6c284d46cc265",
3138
+ size: new $.ObjectSize(8, 5)
3139
+ };
3140
+ static _TypeArguments;
3141
+ static _Decorators;
3142
+ static _Types;
3143
+ get typeName() {
3144
+ return $.utils.getText(0, this);
3145
+ }
3146
+ set typeName(value) {
3147
+ $.utils.setText(0, value, this);
3148
+ }
3149
+ _adoptTypeArguments(value) {
3150
+ $.utils.adopt(value, $.utils.getPointer(1, this));
3151
+ }
3152
+ _disownTypeArguments() {
3153
+ return $.utils.disown(this.typeArguments);
3154
+ }
3155
+ get typeArguments() {
3156
+ return $.utils.getList(1, SerializedTypeTemplateLiteral._TypeArguments, this);
3157
+ }
3158
+ _hasTypeArguments() {
3159
+ return !$.utils.isNull($.utils.getPointer(1, this));
3160
+ }
3161
+ _initTypeArguments(length) {
3162
+ return $.utils.initList(1, SerializedTypeTemplateLiteral._TypeArguments, length, this);
3163
+ }
3164
+ set typeArguments(value) {
3165
+ $.utils.copyFrom(value, $.utils.getPointer(1, this));
3166
+ }
3167
+ _adoptIndexAccessOrigin(value) {
3168
+ $.utils.adopt(value, $.utils.getPointer(2, this));
3169
+ }
3170
+ _disownIndexAccessOrigin() {
3171
+ return $.utils.disown(this.indexAccessOrigin);
3172
+ }
3173
+ get indexAccessOrigin() {
3174
+ return $.utils.getStruct(2, IndexAccessOrigin, this);
3175
+ }
3176
+ _hasIndexAccessOrigin() {
3177
+ return !$.utils.isNull($.utils.getPointer(2, this));
3178
+ }
3179
+ _initIndexAccessOrigin() {
3180
+ return $.utils.initStructAt(2, IndexAccessOrigin, this);
3181
+ }
3182
+ set indexAccessOrigin(value) {
3183
+ $.utils.copyFrom(value, $.utils.getPointer(2, this));
3184
+ }
3185
+ _adoptDecorators(value) {
3186
+ $.utils.adopt(value, $.utils.getPointer(3, this));
3187
+ }
3188
+ _disownDecorators() {
3189
+ return $.utils.disown(this.decorators);
3190
+ }
3191
+ get decorators() {
3192
+ return $.utils.getList(3, SerializedTypeTemplateLiteral._Decorators, this);
3193
+ }
3194
+ _hasDecorators() {
3195
+ return !$.utils.isNull($.utils.getPointer(3, this));
3196
+ }
3197
+ _initDecorators(length) {
3198
+ return $.utils.initList(3, SerializedTypeTemplateLiteral._Decorators, length, this);
3199
+ }
3200
+ set decorators(value) {
3201
+ $.utils.copyFrom(value, $.utils.getPointer(3, this));
3202
+ }
3203
+ get kind() {
3204
+ return $.utils.getUint16(0, this);
3205
+ }
3206
+ set kind(value) {
3207
+ $.utils.setUint16(0, value, this);
3208
+ }
3209
+ _adoptTypes(value) {
3210
+ $.utils.adopt(value, $.utils.getPointer(4, this));
3211
+ }
3212
+ _disownTypes() {
3213
+ return $.utils.disown(this.types);
3214
+ }
3215
+ get types() {
3216
+ return $.utils.getList(4, SerializedTypeTemplateLiteral._Types, this);
3217
+ }
3218
+ _hasTypes() {
3219
+ return !$.utils.isNull($.utils.getPointer(4, this));
3220
+ }
3221
+ _initTypes(length) {
3222
+ return $.utils.initList(4, SerializedTypeTemplateLiteral._Types, length, this);
3223
+ }
3224
+ set types(value) {
3225
+ $.utils.copyFrom(value, $.utils.getPointer(4, this));
3226
+ }
3227
+ toString() {
3228
+ return "SerializedTypeTemplateLiteral_" + super.toString();
3229
+ }
3230
+ };
3231
+ var SerializedTypeOther = class extends $.Struct {
3232
+ static _capnp = {
3233
+ displayName: "SerializedTypeOther",
3234
+ id: "9e1048a692ff49ce",
3235
+ size: new $.ObjectSize(8, 1)
3236
+ };
3237
+ get typeName() {
3238
+ return $.utils.getText(0, this);
3239
+ }
3240
+ set typeName(value) {
3241
+ $.utils.setText(0, value, this);
3242
+ }
3243
+ get kind() {
3244
+ return $.utils.getUint16(0, this);
3245
+ }
3246
+ set kind(value) {
3247
+ $.utils.setUint16(0, value, this);
3248
+ }
3249
+ toString() {
3250
+ return "SerializedTypeOther_" + super.toString();
3251
+ }
3252
+ };
3253
+ const SerializedType_Type_Which = {
3254
+ SIMPLE: 0,
3255
+ LITERAL: 1,
3256
+ TEMPLATE_LITERAL: 2,
3257
+ PARAMETER: 3,
3258
+ FUNCTION: 4,
3259
+ METHOD: 5,
3260
+ PROPERTY: 6,
3261
+ PROMISE: 7,
3262
+ CLASS_TYPE: 8,
3263
+ ENUM: 9,
3264
+ UNION: 10,
3265
+ INTERSECTION: 11,
3266
+ ARRAY: 12,
3267
+ OBJECT_LITERAL: 13,
3268
+ INDEX_SIGNATURE: 14,
3269
+ PROPERTY_SIGNATURE: 15,
3270
+ METHOD_SIGNATURE: 16,
3271
+ TYPE_PARAMETER: 17,
3272
+ INFER: 18,
3273
+ TUPLE: 19,
3274
+ TUPLE_MEMBER: 20,
3275
+ REST: 21,
3276
+ OTHER: 22
3277
+ };
3278
+ var SerializedType_Type = class extends $.Struct {
3279
+ static SIMPLE = SerializedType_Type_Which.SIMPLE;
3280
+ static LITERAL = SerializedType_Type_Which.LITERAL;
3281
+ static TEMPLATE_LITERAL = SerializedType_Type_Which.TEMPLATE_LITERAL;
3282
+ static PARAMETER = SerializedType_Type_Which.PARAMETER;
3283
+ static FUNCTION = SerializedType_Type_Which.FUNCTION;
3284
+ static METHOD = SerializedType_Type_Which.METHOD;
3285
+ static PROPERTY = SerializedType_Type_Which.PROPERTY;
3286
+ static PROMISE = SerializedType_Type_Which.PROMISE;
3287
+ static CLASS_TYPE = SerializedType_Type_Which.CLASS_TYPE;
3288
+ static ENUM = SerializedType_Type_Which.ENUM;
3289
+ static UNION = SerializedType_Type_Which.UNION;
3290
+ static INTERSECTION = SerializedType_Type_Which.INTERSECTION;
3291
+ static ARRAY = SerializedType_Type_Which.ARRAY;
3292
+ static OBJECT_LITERAL = SerializedType_Type_Which.OBJECT_LITERAL;
3293
+ static INDEX_SIGNATURE = SerializedType_Type_Which.INDEX_SIGNATURE;
3294
+ static PROPERTY_SIGNATURE = SerializedType_Type_Which.PROPERTY_SIGNATURE;
3295
+ static METHOD_SIGNATURE = SerializedType_Type_Which.METHOD_SIGNATURE;
3296
+ static TYPE_PARAMETER = SerializedType_Type_Which.TYPE_PARAMETER;
3297
+ static INFER = SerializedType_Type_Which.INFER;
3298
+ static TUPLE = SerializedType_Type_Which.TUPLE;
3299
+ static TUPLE_MEMBER = SerializedType_Type_Which.TUPLE_MEMBER;
3300
+ static REST = SerializedType_Type_Which.REST;
3301
+ static OTHER = SerializedType_Type_Which.OTHER;
3302
+ static _capnp = {
3303
+ displayName: "type",
3304
+ id: "c677d7ed4a496eab",
3305
+ size: new $.ObjectSize(8, 1)
3306
+ };
3307
+ _adoptSimple(value) {
3308
+ $.utils.setUint16(0, 0, this);
3309
+ $.utils.adopt(value, $.utils.getPointer(0, this));
3310
+ }
3311
+ _disownSimple() {
3312
+ return $.utils.disown(this.simple);
3313
+ }
3314
+ get simple() {
3315
+ $.utils.testWhich("simple", $.utils.getUint16(0, this), 0, this);
3316
+ return $.utils.getStruct(0, SimpleSerializedType$1, this);
3317
+ }
3318
+ _hasSimple() {
3319
+ return !$.utils.isNull($.utils.getPointer(0, this));
3320
+ }
3321
+ _initSimple() {
3322
+ $.utils.setUint16(0, 0, this);
3323
+ return $.utils.initStructAt(0, SimpleSerializedType$1, this);
3324
+ }
3325
+ get _isSimple() {
3326
+ return $.utils.getUint16(0, this) === 0;
3327
+ }
3328
+ set simple(value) {
3329
+ $.utils.setUint16(0, 0, this);
3330
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
3331
+ }
3332
+ _adoptLiteral(value) {
3333
+ $.utils.setUint16(0, 1, this);
3334
+ $.utils.adopt(value, $.utils.getPointer(0, this));
3335
+ }
3336
+ _disownLiteral() {
3337
+ return $.utils.disown(this.literal);
3338
+ }
3339
+ get literal() {
3340
+ $.utils.testWhich("literal", $.utils.getUint16(0, this), 1, this);
3341
+ return $.utils.getStruct(0, SerializedTypeLiteral$1, this);
3342
+ }
3343
+ _hasLiteral() {
3344
+ return !$.utils.isNull($.utils.getPointer(0, this));
3345
+ }
3346
+ _initLiteral() {
3347
+ $.utils.setUint16(0, 1, this);
3348
+ return $.utils.initStructAt(0, SerializedTypeLiteral$1, this);
3349
+ }
3350
+ get _isLiteral() {
3351
+ return $.utils.getUint16(0, this) === 1;
3352
+ }
3353
+ set literal(value) {
3354
+ $.utils.setUint16(0, 1, this);
3355
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
3356
+ }
3357
+ _adoptTemplateLiteral(value) {
3358
+ $.utils.setUint16(0, 2, this);
3359
+ $.utils.adopt(value, $.utils.getPointer(0, this));
3360
+ }
3361
+ _disownTemplateLiteral() {
3362
+ return $.utils.disown(this.templateLiteral);
3363
+ }
3364
+ get templateLiteral() {
3365
+ $.utils.testWhich("templateLiteral", $.utils.getUint16(0, this), 2, this);
3366
+ return $.utils.getStruct(0, SerializedTypeTemplateLiteral, this);
3367
+ }
3368
+ _hasTemplateLiteral() {
3369
+ return !$.utils.isNull($.utils.getPointer(0, this));
3370
+ }
3371
+ _initTemplateLiteral() {
3372
+ $.utils.setUint16(0, 2, this);
3373
+ return $.utils.initStructAt(0, SerializedTypeTemplateLiteral, this);
3374
+ }
3375
+ get _isTemplateLiteral() {
3376
+ return $.utils.getUint16(0, this) === 2;
3377
+ }
3378
+ set templateLiteral(value) {
3379
+ $.utils.setUint16(0, 2, this);
3380
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
3381
+ }
3382
+ _adoptParameter(value) {
3383
+ $.utils.setUint16(0, 3, this);
3384
+ $.utils.adopt(value, $.utils.getPointer(0, this));
3385
+ }
3386
+ _disownParameter() {
3387
+ return $.utils.disown(this.parameter);
3388
+ }
3389
+ get parameter() {
3390
+ $.utils.testWhich("parameter", $.utils.getUint16(0, this), 3, this);
3391
+ return $.utils.getStruct(0, SerializedTypeParameter$1, this);
3392
+ }
3393
+ _hasParameter() {
3394
+ return !$.utils.isNull($.utils.getPointer(0, this));
3395
+ }
3396
+ _initParameter() {
3397
+ $.utils.setUint16(0, 3, this);
3398
+ return $.utils.initStructAt(0, SerializedTypeParameter$1, this);
3399
+ }
3400
+ get _isParameter() {
3401
+ return $.utils.getUint16(0, this) === 3;
3402
+ }
3403
+ set parameter(value) {
3404
+ $.utils.setUint16(0, 3, this);
3405
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
3406
+ }
3407
+ _adoptFunction(value) {
3408
+ $.utils.setUint16(0, 4, this);
3409
+ $.utils.adopt(value, $.utils.getPointer(0, this));
3410
+ }
3411
+ _disownFunction() {
3412
+ return $.utils.disown(this.function);
3413
+ }
3414
+ get function() {
3415
+ $.utils.testWhich("function", $.utils.getUint16(0, this), 4, this);
3416
+ return $.utils.getStruct(0, SerializedTypeFunction$1, this);
3417
+ }
3418
+ _hasFunction() {
3419
+ return !$.utils.isNull($.utils.getPointer(0, this));
3420
+ }
3421
+ _initFunction() {
3422
+ $.utils.setUint16(0, 4, this);
3423
+ return $.utils.initStructAt(0, SerializedTypeFunction$1, this);
3424
+ }
3425
+ get _isFunction() {
3426
+ return $.utils.getUint16(0, this) === 4;
3427
+ }
3428
+ set function(value) {
3429
+ $.utils.setUint16(0, 4, this);
3430
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
3431
+ }
3432
+ _adoptMethod(value) {
3433
+ $.utils.setUint16(0, 5, this);
3434
+ $.utils.adopt(value, $.utils.getPointer(0, this));
3435
+ }
3436
+ _disownMethod() {
3437
+ return $.utils.disown(this.method);
3438
+ }
3439
+ get method() {
3440
+ $.utils.testWhich("method", $.utils.getUint16(0, this), 5, this);
3441
+ return $.utils.getStruct(0, SerializedTypeMethod$1, this);
3442
+ }
3443
+ _hasMethod() {
3444
+ return !$.utils.isNull($.utils.getPointer(0, this));
3445
+ }
3446
+ _initMethod() {
3447
+ $.utils.setUint16(0, 5, this);
3448
+ return $.utils.initStructAt(0, SerializedTypeMethod$1, this);
3449
+ }
3450
+ get _isMethod() {
3451
+ return $.utils.getUint16(0, this) === 5;
3452
+ }
3453
+ set method(value) {
3454
+ $.utils.setUint16(0, 5, this);
3455
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
3456
+ }
3457
+ _adoptProperty(value) {
3458
+ $.utils.setUint16(0, 6, this);
3459
+ $.utils.adopt(value, $.utils.getPointer(0, this));
3460
+ }
3461
+ _disownProperty() {
3462
+ return $.utils.disown(this.property);
3463
+ }
3464
+ get property() {
3465
+ $.utils.testWhich("property", $.utils.getUint16(0, this), 6, this);
3466
+ return $.utils.getStruct(0, SerializedTypeProperty$1, this);
3467
+ }
3468
+ _hasProperty() {
3469
+ return !$.utils.isNull($.utils.getPointer(0, this));
3470
+ }
3471
+ _initProperty() {
3472
+ $.utils.setUint16(0, 6, this);
3473
+ return $.utils.initStructAt(0, SerializedTypeProperty$1, this);
3474
+ }
3475
+ get _isProperty() {
3476
+ return $.utils.getUint16(0, this) === 6;
3477
+ }
3478
+ set property(value) {
3479
+ $.utils.setUint16(0, 6, this);
3480
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
3481
+ }
3482
+ _adoptPromise(value) {
3483
+ $.utils.setUint16(0, 7, this);
3484
+ $.utils.adopt(value, $.utils.getPointer(0, this));
3485
+ }
3486
+ _disownPromise() {
3487
+ return $.utils.disown(this.promise);
3488
+ }
3489
+ get promise() {
3490
+ $.utils.testWhich("promise", $.utils.getUint16(0, this), 7, this);
3491
+ return $.utils.getStruct(0, SerializedTypePromise, this);
3492
+ }
3493
+ _hasPromise() {
3494
+ return !$.utils.isNull($.utils.getPointer(0, this));
3495
+ }
3496
+ _initPromise() {
3497
+ $.utils.setUint16(0, 7, this);
3498
+ return $.utils.initStructAt(0, SerializedTypePromise, this);
3499
+ }
3500
+ get _isPromise() {
3501
+ return $.utils.getUint16(0, this) === 7;
3502
+ }
3503
+ set promise(value) {
3504
+ $.utils.setUint16(0, 7, this);
3505
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
3506
+ }
3507
+ _adoptClassType(value) {
3508
+ $.utils.setUint16(0, 8, this);
3509
+ $.utils.adopt(value, $.utils.getPointer(0, this));
3510
+ }
3511
+ _disownClassType() {
3512
+ return $.utils.disown(this.classType);
3513
+ }
3514
+ get classType() {
3515
+ $.utils.testWhich("classType", $.utils.getUint16(0, this), 8, this);
3516
+ return $.utils.getStruct(0, SerializedTypeClassType$1, this);
3517
+ }
3518
+ _hasClassType() {
3519
+ return !$.utils.isNull($.utils.getPointer(0, this));
3520
+ }
3521
+ _initClassType() {
3522
+ $.utils.setUint16(0, 8, this);
3523
+ return $.utils.initStructAt(0, SerializedTypeClassType$1, this);
3524
+ }
3525
+ get _isClassType() {
3526
+ return $.utils.getUint16(0, this) === 8;
3527
+ }
3528
+ set classType(value) {
3529
+ $.utils.setUint16(0, 8, this);
3530
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
3531
+ }
3532
+ _adoptEnum(value) {
3533
+ $.utils.setUint16(0, 9, this);
3534
+ $.utils.adopt(value, $.utils.getPointer(0, this));
3535
+ }
3536
+ _disownEnum() {
3537
+ return $.utils.disown(this.enum);
3538
+ }
3539
+ get enum() {
3540
+ $.utils.testWhich("enum", $.utils.getUint16(0, this), 9, this);
3541
+ return $.utils.getStruct(0, SerializedTypeEnum$1, this);
3542
+ }
3543
+ _hasEnum() {
3544
+ return !$.utils.isNull($.utils.getPointer(0, this));
3545
+ }
3546
+ _initEnum() {
3547
+ $.utils.setUint16(0, 9, this);
3548
+ return $.utils.initStructAt(0, SerializedTypeEnum$1, this);
3549
+ }
3550
+ get _isEnum() {
3551
+ return $.utils.getUint16(0, this) === 9;
3552
+ }
3553
+ set enum(value) {
3554
+ $.utils.setUint16(0, 9, this);
3555
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
3556
+ }
3557
+ _adoptUnion(value) {
3558
+ $.utils.setUint16(0, 10, this);
3559
+ $.utils.adopt(value, $.utils.getPointer(0, this));
3560
+ }
3561
+ _disownUnion() {
3562
+ return $.utils.disown(this.union);
3563
+ }
3564
+ get union() {
3565
+ $.utils.testWhich("union", $.utils.getUint16(0, this), 10, this);
3566
+ return $.utils.getStruct(0, SerializedTypeUnion$1, this);
3567
+ }
3568
+ _hasUnion() {
3569
+ return !$.utils.isNull($.utils.getPointer(0, this));
3570
+ }
3571
+ _initUnion() {
3572
+ $.utils.setUint16(0, 10, this);
3573
+ return $.utils.initStructAt(0, SerializedTypeUnion$1, this);
3574
+ }
3575
+ get _isUnion() {
3576
+ return $.utils.getUint16(0, this) === 10;
3577
+ }
3578
+ set union(value) {
3579
+ $.utils.setUint16(0, 10, this);
3580
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
3581
+ }
3582
+ _adoptIntersection(value) {
3583
+ $.utils.setUint16(0, 11, this);
3584
+ $.utils.adopt(value, $.utils.getPointer(0, this));
3585
+ }
3586
+ _disownIntersection() {
3587
+ return $.utils.disown(this.intersection);
3588
+ }
3589
+ get intersection() {
3590
+ $.utils.testWhich("intersection", $.utils.getUint16(0, this), 11, this);
3591
+ return $.utils.getStruct(0, SerializedTypeIntersection$1, this);
3592
+ }
3593
+ _hasIntersection() {
3594
+ return !$.utils.isNull($.utils.getPointer(0, this));
3595
+ }
3596
+ _initIntersection() {
3597
+ $.utils.setUint16(0, 11, this);
3598
+ return $.utils.initStructAt(0, SerializedTypeIntersection$1, this);
3599
+ }
3600
+ get _isIntersection() {
3601
+ return $.utils.getUint16(0, this) === 11;
3602
+ }
3603
+ set intersection(value) {
3604
+ $.utils.setUint16(0, 11, this);
3605
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
3606
+ }
3607
+ _adoptArray(value) {
3608
+ $.utils.setUint16(0, 12, this);
3609
+ $.utils.adopt(value, $.utils.getPointer(0, this));
3610
+ }
3611
+ _disownArray() {
3612
+ return $.utils.disown(this.array);
3613
+ }
3614
+ get array() {
3615
+ $.utils.testWhich("array", $.utils.getUint16(0, this), 12, this);
3616
+ return $.utils.getStruct(0, SerializedTypeArray$1, this);
3617
+ }
3618
+ _hasArray() {
3619
+ return !$.utils.isNull($.utils.getPointer(0, this));
3620
+ }
3621
+ _initArray() {
3622
+ $.utils.setUint16(0, 12, this);
3623
+ return $.utils.initStructAt(0, SerializedTypeArray$1, this);
3624
+ }
3625
+ get _isArray() {
3626
+ return $.utils.getUint16(0, this) === 12;
3627
+ }
3628
+ set array(value) {
3629
+ $.utils.setUint16(0, 12, this);
3630
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
3631
+ }
3632
+ _adoptObjectLiteral(value) {
3633
+ $.utils.setUint16(0, 13, this);
3634
+ $.utils.adopt(value, $.utils.getPointer(0, this));
3635
+ }
3636
+ _disownObjectLiteral() {
3637
+ return $.utils.disown(this.objectLiteral);
3638
+ }
3639
+ get objectLiteral() {
3640
+ $.utils.testWhich("objectLiteral", $.utils.getUint16(0, this), 13, this);
3641
+ return $.utils.getStruct(0, SerializedTypeObjectLiteral$1, this);
3642
+ }
3643
+ _hasObjectLiteral() {
3644
+ return !$.utils.isNull($.utils.getPointer(0, this));
3645
+ }
3646
+ _initObjectLiteral() {
3647
+ $.utils.setUint16(0, 13, this);
3648
+ return $.utils.initStructAt(0, SerializedTypeObjectLiteral$1, this);
3649
+ }
3650
+ get _isObjectLiteral() {
3651
+ return $.utils.getUint16(0, this) === 13;
3652
+ }
3653
+ set objectLiteral(value) {
3654
+ $.utils.setUint16(0, 13, this);
3655
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
3656
+ }
3657
+ _adoptIndexSignature(value) {
3658
+ $.utils.setUint16(0, 14, this);
3659
+ $.utils.adopt(value, $.utils.getPointer(0, this));
3660
+ }
3661
+ _disownIndexSignature() {
3662
+ return $.utils.disown(this.indexSignature);
3663
+ }
3664
+ get indexSignature() {
3665
+ $.utils.testWhich("indexSignature", $.utils.getUint16(0, this), 14, this);
3666
+ return $.utils.getStruct(0, SerializedTypeIndexSignature, this);
3667
+ }
3668
+ _hasIndexSignature() {
3669
+ return !$.utils.isNull($.utils.getPointer(0, this));
3670
+ }
3671
+ _initIndexSignature() {
3672
+ $.utils.setUint16(0, 14, this);
3673
+ return $.utils.initStructAt(0, SerializedTypeIndexSignature, this);
3674
+ }
3675
+ get _isIndexSignature() {
3676
+ return $.utils.getUint16(0, this) === 14;
3677
+ }
3678
+ set indexSignature(value) {
3679
+ $.utils.setUint16(0, 14, this);
3680
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
3681
+ }
3682
+ _adoptPropertySignature(value) {
3683
+ $.utils.setUint16(0, 15, this);
3684
+ $.utils.adopt(value, $.utils.getPointer(0, this));
3685
+ }
3686
+ _disownPropertySignature() {
3687
+ return $.utils.disown(this.propertySignature);
3688
+ }
3689
+ get propertySignature() {
3690
+ $.utils.testWhich("propertySignature", $.utils.getUint16(0, this), 15, this);
3691
+ return $.utils.getStruct(0, SerializedTypePropertySignature$1, this);
3692
+ }
3693
+ _hasPropertySignature() {
3694
+ return !$.utils.isNull($.utils.getPointer(0, this));
3695
+ }
3696
+ _initPropertySignature() {
3697
+ $.utils.setUint16(0, 15, this);
3698
+ return $.utils.initStructAt(0, SerializedTypePropertySignature$1, this);
3699
+ }
3700
+ get _isPropertySignature() {
3701
+ return $.utils.getUint16(0, this) === 15;
3702
+ }
3703
+ set propertySignature(value) {
3704
+ $.utils.setUint16(0, 15, this);
3705
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
3706
+ }
3707
+ _adoptMethodSignature(value) {
3708
+ $.utils.setUint16(0, 16, this);
3709
+ $.utils.adopt(value, $.utils.getPointer(0, this));
3710
+ }
3711
+ _disownMethodSignature() {
3712
+ return $.utils.disown(this.methodSignature);
3713
+ }
3714
+ get methodSignature() {
3715
+ $.utils.testWhich("methodSignature", $.utils.getUint16(0, this), 16, this);
3716
+ return $.utils.getStruct(0, SerializedTypeMethodSignature$1, this);
3717
+ }
3718
+ _hasMethodSignature() {
3719
+ return !$.utils.isNull($.utils.getPointer(0, this));
3720
+ }
3721
+ _initMethodSignature() {
3722
+ $.utils.setUint16(0, 16, this);
3723
+ return $.utils.initStructAt(0, SerializedTypeMethodSignature$1, this);
3724
+ }
3725
+ get _isMethodSignature() {
3726
+ return $.utils.getUint16(0, this) === 16;
3727
+ }
3728
+ set methodSignature(value) {
3729
+ $.utils.setUint16(0, 16, this);
3730
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
3731
+ }
3732
+ _adoptTypeParameter(value) {
3733
+ $.utils.setUint16(0, 17, this);
3734
+ $.utils.adopt(value, $.utils.getPointer(0, this));
3735
+ }
3736
+ _disownTypeParameter() {
3737
+ return $.utils.disown(this.typeParameter);
3738
+ }
3739
+ get typeParameter() {
3740
+ $.utils.testWhich("typeParameter", $.utils.getUint16(0, this), 17, this);
3741
+ return $.utils.getStruct(0, SerializedTypeTypeParameter, this);
3742
+ }
3743
+ _hasTypeParameter() {
3744
+ return !$.utils.isNull($.utils.getPointer(0, this));
3745
+ }
3746
+ _initTypeParameter() {
3747
+ $.utils.setUint16(0, 17, this);
3748
+ return $.utils.initStructAt(0, SerializedTypeTypeParameter, this);
3749
+ }
3750
+ get _isTypeParameter() {
3751
+ return $.utils.getUint16(0, this) === 17;
3752
+ }
3753
+ set typeParameter(value) {
3754
+ $.utils.setUint16(0, 17, this);
3755
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
3756
+ }
3757
+ _adoptInfer(value) {
3758
+ $.utils.setUint16(0, 18, this);
3759
+ $.utils.adopt(value, $.utils.getPointer(0, this));
3760
+ }
3761
+ _disownInfer() {
3762
+ return $.utils.disown(this.infer);
3763
+ }
3764
+ get infer() {
3765
+ $.utils.testWhich("infer", $.utils.getUint16(0, this), 18, this);
3766
+ return $.utils.getStruct(0, SerializedTypeInfer$1, this);
3767
+ }
3768
+ _hasInfer() {
3769
+ return !$.utils.isNull($.utils.getPointer(0, this));
3770
+ }
3771
+ _initInfer() {
3772
+ $.utils.setUint16(0, 18, this);
3773
+ return $.utils.initStructAt(0, SerializedTypeInfer$1, this);
3774
+ }
3775
+ get _isInfer() {
3776
+ return $.utils.getUint16(0, this) === 18;
3777
+ }
3778
+ set infer(value) {
3779
+ $.utils.setUint16(0, 18, this);
3780
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
3781
+ }
3782
+ _adoptTuple(value) {
3783
+ $.utils.setUint16(0, 19, this);
3784
+ $.utils.adopt(value, $.utils.getPointer(0, this));
3785
+ }
3786
+ _disownTuple() {
3787
+ return $.utils.disown(this.tuple);
3788
+ }
3789
+ get tuple() {
3790
+ $.utils.testWhich("tuple", $.utils.getUint16(0, this), 19, this);
3791
+ return $.utils.getStruct(0, SerializedTypeTuple$1, this);
3792
+ }
3793
+ _hasTuple() {
3794
+ return !$.utils.isNull($.utils.getPointer(0, this));
3795
+ }
3796
+ _initTuple() {
3797
+ $.utils.setUint16(0, 19, this);
3798
+ return $.utils.initStructAt(0, SerializedTypeTuple$1, this);
3799
+ }
3800
+ get _isTuple() {
3801
+ return $.utils.getUint16(0, this) === 19;
3802
+ }
3803
+ set tuple(value) {
3804
+ $.utils.setUint16(0, 19, this);
3805
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
3806
+ }
3807
+ _adoptTupleMember(value) {
3808
+ $.utils.setUint16(0, 20, this);
3809
+ $.utils.adopt(value, $.utils.getPointer(0, this));
3810
+ }
3811
+ _disownTupleMember() {
3812
+ return $.utils.disown(this.tupleMember);
3813
+ }
3814
+ get tupleMember() {
3815
+ $.utils.testWhich("tupleMember", $.utils.getUint16(0, this), 20, this);
3816
+ return $.utils.getStruct(0, SerializedTypeTupleMember$1, this);
3817
+ }
3818
+ _hasTupleMember() {
3819
+ return !$.utils.isNull($.utils.getPointer(0, this));
3820
+ }
3821
+ _initTupleMember() {
3822
+ $.utils.setUint16(0, 20, this);
3823
+ return $.utils.initStructAt(0, SerializedTypeTupleMember$1, this);
3824
+ }
3825
+ get _isTupleMember() {
3826
+ return $.utils.getUint16(0, this) === 20;
3827
+ }
3828
+ set tupleMember(value) {
3829
+ $.utils.setUint16(0, 20, this);
3830
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
3831
+ }
3832
+ _adoptRest(value) {
3833
+ $.utils.setUint16(0, 21, this);
3834
+ $.utils.adopt(value, $.utils.getPointer(0, this));
3835
+ }
3836
+ _disownRest() {
3837
+ return $.utils.disown(this.rest);
3838
+ }
3839
+ get rest() {
3840
+ $.utils.testWhich("rest", $.utils.getUint16(0, this), 21, this);
3841
+ return $.utils.getStruct(0, SerializedTypeRest, this);
3842
+ }
3843
+ _hasRest() {
3844
+ return !$.utils.isNull($.utils.getPointer(0, this));
3845
+ }
3846
+ _initRest() {
3847
+ $.utils.setUint16(0, 21, this);
3848
+ return $.utils.initStructAt(0, SerializedTypeRest, this);
3849
+ }
3850
+ get _isRest() {
3851
+ return $.utils.getUint16(0, this) === 21;
3852
+ }
3853
+ set rest(value) {
3854
+ $.utils.setUint16(0, 21, this);
3855
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
3856
+ }
3857
+ _adoptOther(value) {
3858
+ $.utils.setUint16(0, 22, this);
3859
+ $.utils.adopt(value, $.utils.getPointer(0, this));
3860
+ }
3861
+ _disownOther() {
3862
+ return $.utils.disown(this.other);
3863
+ }
3864
+ /**
3865
+ * For any other type that is not explicitly defined
3866
+ *
3867
+ */
3868
+ get other() {
3869
+ $.utils.testWhich("other", $.utils.getUint16(0, this), 22, this);
3870
+ return $.utils.getStruct(0, SerializedTypeOther, this);
3871
+ }
3872
+ _hasOther() {
3873
+ return !$.utils.isNull($.utils.getPointer(0, this));
3874
+ }
3875
+ _initOther() {
3876
+ $.utils.setUint16(0, 22, this);
3877
+ return $.utils.initStructAt(0, SerializedTypeOther, this);
3878
+ }
3879
+ get _isOther() {
3880
+ return $.utils.getUint16(0, this) === 22;
3881
+ }
3882
+ set other(value) {
3883
+ $.utils.setUint16(0, 22, this);
3884
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
3885
+ }
3886
+ toString() {
3887
+ return "SerializedType_Type_" + super.toString();
3888
+ }
3889
+ which() {
3890
+ return $.utils.getUint16(0, this);
3891
+ }
3892
+ };
3893
+ var SerializedType$1 = class extends $.Struct {
3894
+ static _capnp = {
3895
+ displayName: "SerializedType",
3896
+ id: "96856dcc2dd3d58f",
3897
+ size: new $.ObjectSize(8, 1)
3898
+ };
3899
+ get type() {
3900
+ return $.utils.getAs(SerializedType_Type, this);
3901
+ }
3902
+ _initType() {
3903
+ return $.utils.getAs(SerializedType_Type, this);
3904
+ }
3905
+ toString() {
3906
+ return "SerializedType_" + super.toString();
3907
+ }
3908
+ };
3909
+ var SerializedTypes$1 = class SerializedTypes$1 extends $.Struct {
3910
+ static _capnp = {
3911
+ displayName: "SerializedTypes",
3912
+ id: "ac55398ab0ef4958",
3913
+ size: new $.ObjectSize(0, 1)
3914
+ };
3915
+ static _Types;
3916
+ _adoptTypes(value) {
3917
+ $.utils.adopt(value, $.utils.getPointer(0, this));
3918
+ }
3919
+ _disownTypes() {
3920
+ return $.utils.disown(this.types);
3921
+ }
3922
+ get types() {
3923
+ return $.utils.getList(0, SerializedTypes$1._Types, this);
3924
+ }
3925
+ _hasTypes() {
3926
+ return !$.utils.isNull($.utils.getPointer(0, this));
3927
+ }
3928
+ _initTypes(length) {
3929
+ return $.utils.initList(0, SerializedTypes$1._Types, length, this);
3930
+ }
3931
+ set types(value) {
3932
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
3933
+ }
3934
+ toString() {
3935
+ return "SerializedTypes_" + super.toString();
3936
+ }
3937
+ };
3938
+ EntityOptions._Indexes = $.CompositeList(EntityOptions_EntityIndexOptions);
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);
3996
+
3997
+ //#endregion
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-BiGNkOmV.mjs.map