@stryke/capnp 0.8.3 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/capnpc.cjs +7 -7
- package/bin/capnpc.js +7 -7
- package/dist/{chunk-FEGBNCWN.js → chunk-SYR4C2FT.js} +9 -7
- package/dist/{chunk-R5CS6CYK.cjs → chunk-XQV7WBWM.cjs} +9 -7
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/rpc.cjs +2 -2
- package/dist/rpc.js +1 -1
- package/dts/index.d.ts +4393 -0
- package/package.json +4 -3
- package/schemas/chunk-BQI46ZE5.js +4086 -0
- package/schemas/chunk-GX6VRR3G.cjs +4086 -0
- package/schemas/chunk-SHUYVCID.js +6 -0
- package/schemas/chunk-USNT2KNT.cjs +6 -0
- package/schemas/cpp.cjs +7 -0
- package/schemas/cpp.d.cts +3 -0
- package/schemas/cpp.d.ts +3 -0
- package/schemas/cpp.js +7 -0
- package/schemas/persistent.cjs +171 -0
- package/schemas/persistent.d.cts +147 -0
- package/schemas/persistent.d.ts +147 -0
- package/schemas/persistent.js +171 -0
- package/schemas/rpc-twoparty.cjs +209 -0
- package/schemas/rpc-twoparty.d.cts +171 -0
- package/schemas/rpc-twoparty.d.ts +171 -0
- package/schemas/rpc-twoparty.js +209 -0
- package/schemas/rpc.cjs +2563 -0
- package/schemas/rpc.d.cts +2004 -0
- package/schemas/rpc.d.ts +2004 -0
- package/schemas/rpc.js +2563 -0
- package/schemas/schema.cjs +2718 -0
- package/schemas/schema.d.cts +1454 -0
- package/schemas/schema.d.ts +1454 -0
- package/schemas/schema.js +2718 -0
- package/schemas/ts.cjs +7 -0
- package/schemas/ts.d.cts +3 -0
- package/schemas/ts.d.ts +3 -0
- package/schemas/ts.js +7 -0
|
@@ -0,0 +1,2718 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CompositeList,
|
|
3
|
+
ObjectSize,
|
|
4
|
+
Struct,
|
|
5
|
+
getUint16Mask,
|
|
6
|
+
utils
|
|
7
|
+
} from "./chunk-BQI46ZE5.js";
|
|
8
|
+
import {
|
|
9
|
+
__name
|
|
10
|
+
} from "./chunk-SHUYVCID.js";
|
|
11
|
+
|
|
12
|
+
// schemas/schema.ts
|
|
13
|
+
var _capnpFileId = BigInt("0xa93fc509624c72d9");
|
|
14
|
+
var Node_Parameter = class extends Struct {
|
|
15
|
+
static {
|
|
16
|
+
__name(this, "Node_Parameter");
|
|
17
|
+
}
|
|
18
|
+
static _capnp = {
|
|
19
|
+
displayName: "Parameter",
|
|
20
|
+
id: "b9521bccf10fa3b1",
|
|
21
|
+
size: new ObjectSize(0, 1)
|
|
22
|
+
};
|
|
23
|
+
get name() {
|
|
24
|
+
return utils.getText(0, this);
|
|
25
|
+
}
|
|
26
|
+
set name(value) {
|
|
27
|
+
utils.setText(0, value, this);
|
|
28
|
+
}
|
|
29
|
+
toString() {
|
|
30
|
+
return "Node_Parameter_" + super.toString();
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
var Node_NestedNode = class extends Struct {
|
|
34
|
+
static {
|
|
35
|
+
__name(this, "Node_NestedNode");
|
|
36
|
+
}
|
|
37
|
+
static _capnp = {
|
|
38
|
+
displayName: "NestedNode",
|
|
39
|
+
id: "debf55bbfa0fc242",
|
|
40
|
+
size: new ObjectSize(8, 1)
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Unqualified symbol name. Unlike Node.displayName, this *can* be used programmatically.
|
|
44
|
+
*
|
|
45
|
+
* (On Zooko's triangle, this is the node's petname according to its parent scope.)
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
get name() {
|
|
49
|
+
return utils.getText(0, this);
|
|
50
|
+
}
|
|
51
|
+
set name(value) {
|
|
52
|
+
utils.setText(0, value, this);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* ID of the nested node. Typically, the target node's scopeId points back to this node, but
|
|
56
|
+
* robust code should avoid relying on this.
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
59
|
+
get id() {
|
|
60
|
+
return utils.getUint64(0, this);
|
|
61
|
+
}
|
|
62
|
+
set id(value) {
|
|
63
|
+
utils.setUint64(0, value, this);
|
|
64
|
+
}
|
|
65
|
+
toString() {
|
|
66
|
+
return "Node_NestedNode_" + super.toString();
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
var Node_SourceInfo_Member = class extends Struct {
|
|
70
|
+
static {
|
|
71
|
+
__name(this, "Node_SourceInfo_Member");
|
|
72
|
+
}
|
|
73
|
+
static _capnp = {
|
|
74
|
+
displayName: "Member",
|
|
75
|
+
id: "c2ba9038898e1fa2",
|
|
76
|
+
size: new ObjectSize(0, 1)
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Doc comment on the member.
|
|
80
|
+
*
|
|
81
|
+
*/
|
|
82
|
+
get docComment() {
|
|
83
|
+
return utils.getText(0, this);
|
|
84
|
+
}
|
|
85
|
+
set docComment(value) {
|
|
86
|
+
utils.setText(0, value, this);
|
|
87
|
+
}
|
|
88
|
+
toString() {
|
|
89
|
+
return "Node_SourceInfo_Member_" + super.toString();
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
var Node_SourceInfo = class _Node_SourceInfo extends Struct {
|
|
93
|
+
static {
|
|
94
|
+
__name(this, "Node_SourceInfo");
|
|
95
|
+
}
|
|
96
|
+
static Member = Node_SourceInfo_Member;
|
|
97
|
+
static _capnp = {
|
|
98
|
+
displayName: "SourceInfo",
|
|
99
|
+
id: "f38e1de3041357ae",
|
|
100
|
+
size: new ObjectSize(8, 2)
|
|
101
|
+
};
|
|
102
|
+
static _Members;
|
|
103
|
+
/**
|
|
104
|
+
* ID of the Node which this info describes.
|
|
105
|
+
*
|
|
106
|
+
*/
|
|
107
|
+
get id() {
|
|
108
|
+
return utils.getUint64(0, this);
|
|
109
|
+
}
|
|
110
|
+
set id(value) {
|
|
111
|
+
utils.setUint64(0, value, this);
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* The top-level doc comment for the Node.
|
|
115
|
+
*
|
|
116
|
+
*/
|
|
117
|
+
get docComment() {
|
|
118
|
+
return utils.getText(0, this);
|
|
119
|
+
}
|
|
120
|
+
set docComment(value) {
|
|
121
|
+
utils.setText(0, value, this);
|
|
122
|
+
}
|
|
123
|
+
_adoptMembers(value) {
|
|
124
|
+
utils.adopt(value, utils.getPointer(1, this));
|
|
125
|
+
}
|
|
126
|
+
_disownMembers() {
|
|
127
|
+
return utils.disown(this.members);
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Information about each member -- i.e. fields (for structs), enumerants (for enums), or
|
|
131
|
+
* methods (for interfaces).
|
|
132
|
+
*
|
|
133
|
+
* This list is the same length and order as the corresponding list in the Node, i.e.
|
|
134
|
+
* Node.struct.fields, Node.enum.enumerants, or Node.interface.methods.
|
|
135
|
+
*
|
|
136
|
+
*/
|
|
137
|
+
get members() {
|
|
138
|
+
return utils.getList(1, _Node_SourceInfo._Members, this);
|
|
139
|
+
}
|
|
140
|
+
_hasMembers() {
|
|
141
|
+
return !utils.isNull(utils.getPointer(1, this));
|
|
142
|
+
}
|
|
143
|
+
_initMembers(length) {
|
|
144
|
+
return utils.initList(1, _Node_SourceInfo._Members, length, this);
|
|
145
|
+
}
|
|
146
|
+
set members(value) {
|
|
147
|
+
utils.copyFrom(value, utils.getPointer(1, this));
|
|
148
|
+
}
|
|
149
|
+
toString() {
|
|
150
|
+
return "Node_SourceInfo_" + super.toString();
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
var Node_Struct = class _Node_Struct extends Struct {
|
|
154
|
+
static {
|
|
155
|
+
__name(this, "Node_Struct");
|
|
156
|
+
}
|
|
157
|
+
static _capnp = {
|
|
158
|
+
displayName: "struct",
|
|
159
|
+
id: "9ea0b19b37fb4435",
|
|
160
|
+
size: new ObjectSize(40, 6)
|
|
161
|
+
};
|
|
162
|
+
static _Fields;
|
|
163
|
+
/**
|
|
164
|
+
* Size of the data section, in words.
|
|
165
|
+
*
|
|
166
|
+
*/
|
|
167
|
+
get dataWordCount() {
|
|
168
|
+
return utils.getUint16(14, this);
|
|
169
|
+
}
|
|
170
|
+
set dataWordCount(value) {
|
|
171
|
+
utils.setUint16(14, value, this);
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Size of the pointer section, in pointers (which are one word each).
|
|
175
|
+
*
|
|
176
|
+
*/
|
|
177
|
+
get pointerCount() {
|
|
178
|
+
return utils.getUint16(24, this);
|
|
179
|
+
}
|
|
180
|
+
set pointerCount(value) {
|
|
181
|
+
utils.setUint16(24, value, this);
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* The preferred element size to use when encoding a list of this struct. If this is anything
|
|
185
|
+
* other than `inlineComposite` then the struct is one word or less in size and is a candidate
|
|
186
|
+
* for list packing optimization.
|
|
187
|
+
*
|
|
188
|
+
*/
|
|
189
|
+
get preferredListEncoding() {
|
|
190
|
+
return utils.getUint16(26, this);
|
|
191
|
+
}
|
|
192
|
+
set preferredListEncoding(value) {
|
|
193
|
+
utils.setUint16(26, value, this);
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* If true, then this "struct" node is actually not an independent node, but merely represents
|
|
197
|
+
* some named union or group within a particular parent struct. This node's scopeId refers
|
|
198
|
+
* to the parent struct, which may itself be a union/group in yet another struct.
|
|
199
|
+
*
|
|
200
|
+
* All group nodes share the same dataWordCount and pointerCount as the top-level
|
|
201
|
+
* struct, and their fields live in the same ordinal and offset spaces as all other fields in
|
|
202
|
+
* the struct.
|
|
203
|
+
*
|
|
204
|
+
* Note that a named union is considered a special kind of group -- in fact, a named union
|
|
205
|
+
* is exactly equivalent to a group that contains nothing but an unnamed union.
|
|
206
|
+
*
|
|
207
|
+
*/
|
|
208
|
+
get isGroup() {
|
|
209
|
+
return utils.getBit(224, this);
|
|
210
|
+
}
|
|
211
|
+
set isGroup(value) {
|
|
212
|
+
utils.setBit(224, value, this);
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Number of fields in this struct which are members of an anonymous union, and thus may
|
|
216
|
+
* overlap. If this is non-zero, then a 16-bit discriminant is present indicating which
|
|
217
|
+
* of the overlapping fields is active. This can never be 1 -- if it is non-zero, it must be
|
|
218
|
+
* two or more.
|
|
219
|
+
*
|
|
220
|
+
* Note that the fields of an unnamed union are considered fields of the scope containing the
|
|
221
|
+
* union -- an unnamed union is not its own group. So, a top-level struct may contain a
|
|
222
|
+
* non-zero discriminant count. Named unions, on the other hand, are equivalent to groups
|
|
223
|
+
* containing unnamed unions. So, a named union has its own independent schema node, with
|
|
224
|
+
* `isGroup` = true.
|
|
225
|
+
*
|
|
226
|
+
*/
|
|
227
|
+
get discriminantCount() {
|
|
228
|
+
return utils.getUint16(30, this);
|
|
229
|
+
}
|
|
230
|
+
set discriminantCount(value) {
|
|
231
|
+
utils.setUint16(30, value, this);
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* If `discriminantCount` is non-zero, this is the offset of the union discriminant, in
|
|
235
|
+
* multiples of 16 bits.
|
|
236
|
+
*
|
|
237
|
+
*/
|
|
238
|
+
get discriminantOffset() {
|
|
239
|
+
return utils.getUint32(32, this);
|
|
240
|
+
}
|
|
241
|
+
set discriminantOffset(value) {
|
|
242
|
+
utils.setUint32(32, value, this);
|
|
243
|
+
}
|
|
244
|
+
_adoptFields(value) {
|
|
245
|
+
utils.adopt(value, utils.getPointer(3, this));
|
|
246
|
+
}
|
|
247
|
+
_disownFields() {
|
|
248
|
+
return utils.disown(this.fields);
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Fields defined within this scope (either the struct's top-level fields, or the fields of
|
|
252
|
+
* a particular group; see `isGroup`).
|
|
253
|
+
*
|
|
254
|
+
* The fields are sorted by ordinal number, but note that because groups share the same
|
|
255
|
+
* ordinal space, the field's index in this list is not necessarily exactly its ordinal.
|
|
256
|
+
* On the other hand, the field's position in this list does remain the same even as the
|
|
257
|
+
* protocol evolves, since it is not possible to insert or remove an earlier ordinal.
|
|
258
|
+
* Therefore, for most use cases, if you want to identify a field by number, it may make the
|
|
259
|
+
* most sense to use the field's index in this list rather than its ordinal.
|
|
260
|
+
*
|
|
261
|
+
*/
|
|
262
|
+
get fields() {
|
|
263
|
+
return utils.getList(3, _Node_Struct._Fields, this);
|
|
264
|
+
}
|
|
265
|
+
_hasFields() {
|
|
266
|
+
return !utils.isNull(utils.getPointer(3, this));
|
|
267
|
+
}
|
|
268
|
+
_initFields(length) {
|
|
269
|
+
return utils.initList(3, _Node_Struct._Fields, length, this);
|
|
270
|
+
}
|
|
271
|
+
set fields(value) {
|
|
272
|
+
utils.copyFrom(value, utils.getPointer(3, this));
|
|
273
|
+
}
|
|
274
|
+
toString() {
|
|
275
|
+
return "Node_Struct_" + super.toString();
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
var Node_Enum = class _Node_Enum extends Struct {
|
|
279
|
+
static {
|
|
280
|
+
__name(this, "Node_Enum");
|
|
281
|
+
}
|
|
282
|
+
static _capnp = {
|
|
283
|
+
displayName: "enum",
|
|
284
|
+
id: "b54ab3364333f598",
|
|
285
|
+
size: new ObjectSize(40, 6)
|
|
286
|
+
};
|
|
287
|
+
static _Enumerants;
|
|
288
|
+
_adoptEnumerants(value) {
|
|
289
|
+
utils.adopt(value, utils.getPointer(3, this));
|
|
290
|
+
}
|
|
291
|
+
_disownEnumerants() {
|
|
292
|
+
return utils.disown(this.enumerants);
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Enumerants ordered by numeric value (ordinal).
|
|
296
|
+
*
|
|
297
|
+
*/
|
|
298
|
+
get enumerants() {
|
|
299
|
+
return utils.getList(3, _Node_Enum._Enumerants, this);
|
|
300
|
+
}
|
|
301
|
+
_hasEnumerants() {
|
|
302
|
+
return !utils.isNull(utils.getPointer(3, this));
|
|
303
|
+
}
|
|
304
|
+
_initEnumerants(length) {
|
|
305
|
+
return utils.initList(3, _Node_Enum._Enumerants, length, this);
|
|
306
|
+
}
|
|
307
|
+
set enumerants(value) {
|
|
308
|
+
utils.copyFrom(value, utils.getPointer(3, this));
|
|
309
|
+
}
|
|
310
|
+
toString() {
|
|
311
|
+
return "Node_Enum_" + super.toString();
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
var Node_Interface = class _Node_Interface extends Struct {
|
|
315
|
+
static {
|
|
316
|
+
__name(this, "Node_Interface");
|
|
317
|
+
}
|
|
318
|
+
static _capnp = {
|
|
319
|
+
displayName: "interface",
|
|
320
|
+
id: "e82753cff0c2218f",
|
|
321
|
+
size: new ObjectSize(40, 6)
|
|
322
|
+
};
|
|
323
|
+
static _Methods;
|
|
324
|
+
static _Superclasses;
|
|
325
|
+
_adoptMethods(value) {
|
|
326
|
+
utils.adopt(value, utils.getPointer(3, this));
|
|
327
|
+
}
|
|
328
|
+
_disownMethods() {
|
|
329
|
+
return utils.disown(this.methods);
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Methods ordered by ordinal.
|
|
333
|
+
*
|
|
334
|
+
*/
|
|
335
|
+
get methods() {
|
|
336
|
+
return utils.getList(3, _Node_Interface._Methods, this);
|
|
337
|
+
}
|
|
338
|
+
_hasMethods() {
|
|
339
|
+
return !utils.isNull(utils.getPointer(3, this));
|
|
340
|
+
}
|
|
341
|
+
_initMethods(length) {
|
|
342
|
+
return utils.initList(3, _Node_Interface._Methods, length, this);
|
|
343
|
+
}
|
|
344
|
+
set methods(value) {
|
|
345
|
+
utils.copyFrom(value, utils.getPointer(3, this));
|
|
346
|
+
}
|
|
347
|
+
_adoptSuperclasses(value) {
|
|
348
|
+
utils.adopt(value, utils.getPointer(4, this));
|
|
349
|
+
}
|
|
350
|
+
_disownSuperclasses() {
|
|
351
|
+
return utils.disown(this.superclasses);
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* Superclasses of this interface.
|
|
355
|
+
*
|
|
356
|
+
*/
|
|
357
|
+
get superclasses() {
|
|
358
|
+
return utils.getList(4, _Node_Interface._Superclasses, this);
|
|
359
|
+
}
|
|
360
|
+
_hasSuperclasses() {
|
|
361
|
+
return !utils.isNull(utils.getPointer(4, this));
|
|
362
|
+
}
|
|
363
|
+
_initSuperclasses(length) {
|
|
364
|
+
return utils.initList(4, _Node_Interface._Superclasses, length, this);
|
|
365
|
+
}
|
|
366
|
+
set superclasses(value) {
|
|
367
|
+
utils.copyFrom(value, utils.getPointer(4, this));
|
|
368
|
+
}
|
|
369
|
+
toString() {
|
|
370
|
+
return "Node_Interface_" + super.toString();
|
|
371
|
+
}
|
|
372
|
+
};
|
|
373
|
+
var Node_Const = class extends Struct {
|
|
374
|
+
static {
|
|
375
|
+
__name(this, "Node_Const");
|
|
376
|
+
}
|
|
377
|
+
static _capnp = {
|
|
378
|
+
displayName: "const",
|
|
379
|
+
id: "b18aa5ac7a0d9420",
|
|
380
|
+
size: new ObjectSize(40, 6)
|
|
381
|
+
};
|
|
382
|
+
_adoptType(value) {
|
|
383
|
+
utils.adopt(value, utils.getPointer(3, this));
|
|
384
|
+
}
|
|
385
|
+
_disownType() {
|
|
386
|
+
return utils.disown(this.type);
|
|
387
|
+
}
|
|
388
|
+
get type() {
|
|
389
|
+
return utils.getStruct(3, Type, this);
|
|
390
|
+
}
|
|
391
|
+
_hasType() {
|
|
392
|
+
return !utils.isNull(utils.getPointer(3, this));
|
|
393
|
+
}
|
|
394
|
+
_initType() {
|
|
395
|
+
return utils.initStructAt(3, Type, this);
|
|
396
|
+
}
|
|
397
|
+
set type(value) {
|
|
398
|
+
utils.copyFrom(value, utils.getPointer(3, this));
|
|
399
|
+
}
|
|
400
|
+
_adoptValue(value) {
|
|
401
|
+
utils.adopt(value, utils.getPointer(4, this));
|
|
402
|
+
}
|
|
403
|
+
_disownValue() {
|
|
404
|
+
return utils.disown(this.value);
|
|
405
|
+
}
|
|
406
|
+
get value() {
|
|
407
|
+
return utils.getStruct(4, Value, this);
|
|
408
|
+
}
|
|
409
|
+
_hasValue() {
|
|
410
|
+
return !utils.isNull(utils.getPointer(4, this));
|
|
411
|
+
}
|
|
412
|
+
_initValue() {
|
|
413
|
+
return utils.initStructAt(4, Value, this);
|
|
414
|
+
}
|
|
415
|
+
set value(value) {
|
|
416
|
+
utils.copyFrom(value, utils.getPointer(4, this));
|
|
417
|
+
}
|
|
418
|
+
toString() {
|
|
419
|
+
return "Node_Const_" + super.toString();
|
|
420
|
+
}
|
|
421
|
+
};
|
|
422
|
+
var Node_Annotation = class extends Struct {
|
|
423
|
+
static {
|
|
424
|
+
__name(this, "Node_Annotation");
|
|
425
|
+
}
|
|
426
|
+
static _capnp = {
|
|
427
|
+
displayName: "annotation",
|
|
428
|
+
id: "ec1619d4400a0290",
|
|
429
|
+
size: new ObjectSize(40, 6)
|
|
430
|
+
};
|
|
431
|
+
_adoptType(value) {
|
|
432
|
+
utils.adopt(value, utils.getPointer(3, this));
|
|
433
|
+
}
|
|
434
|
+
_disownType() {
|
|
435
|
+
return utils.disown(this.type);
|
|
436
|
+
}
|
|
437
|
+
get type() {
|
|
438
|
+
return utils.getStruct(3, Type, this);
|
|
439
|
+
}
|
|
440
|
+
_hasType() {
|
|
441
|
+
return !utils.isNull(utils.getPointer(3, this));
|
|
442
|
+
}
|
|
443
|
+
_initType() {
|
|
444
|
+
return utils.initStructAt(3, Type, this);
|
|
445
|
+
}
|
|
446
|
+
set type(value) {
|
|
447
|
+
utils.copyFrom(value, utils.getPointer(3, this));
|
|
448
|
+
}
|
|
449
|
+
get targetsFile() {
|
|
450
|
+
return utils.getBit(112, this);
|
|
451
|
+
}
|
|
452
|
+
set targetsFile(value) {
|
|
453
|
+
utils.setBit(112, value, this);
|
|
454
|
+
}
|
|
455
|
+
get targetsConst() {
|
|
456
|
+
return utils.getBit(113, this);
|
|
457
|
+
}
|
|
458
|
+
set targetsConst(value) {
|
|
459
|
+
utils.setBit(113, value, this);
|
|
460
|
+
}
|
|
461
|
+
get targetsEnum() {
|
|
462
|
+
return utils.getBit(114, this);
|
|
463
|
+
}
|
|
464
|
+
set targetsEnum(value) {
|
|
465
|
+
utils.setBit(114, value, this);
|
|
466
|
+
}
|
|
467
|
+
get targetsEnumerant() {
|
|
468
|
+
return utils.getBit(115, this);
|
|
469
|
+
}
|
|
470
|
+
set targetsEnumerant(value) {
|
|
471
|
+
utils.setBit(115, value, this);
|
|
472
|
+
}
|
|
473
|
+
get targetsStruct() {
|
|
474
|
+
return utils.getBit(116, this);
|
|
475
|
+
}
|
|
476
|
+
set targetsStruct(value) {
|
|
477
|
+
utils.setBit(116, value, this);
|
|
478
|
+
}
|
|
479
|
+
get targetsField() {
|
|
480
|
+
return utils.getBit(117, this);
|
|
481
|
+
}
|
|
482
|
+
set targetsField(value) {
|
|
483
|
+
utils.setBit(117, value, this);
|
|
484
|
+
}
|
|
485
|
+
get targetsUnion() {
|
|
486
|
+
return utils.getBit(118, this);
|
|
487
|
+
}
|
|
488
|
+
set targetsUnion(value) {
|
|
489
|
+
utils.setBit(118, value, this);
|
|
490
|
+
}
|
|
491
|
+
get targetsGroup() {
|
|
492
|
+
return utils.getBit(119, this);
|
|
493
|
+
}
|
|
494
|
+
set targetsGroup(value) {
|
|
495
|
+
utils.setBit(119, value, this);
|
|
496
|
+
}
|
|
497
|
+
get targetsInterface() {
|
|
498
|
+
return utils.getBit(120, this);
|
|
499
|
+
}
|
|
500
|
+
set targetsInterface(value) {
|
|
501
|
+
utils.setBit(120, value, this);
|
|
502
|
+
}
|
|
503
|
+
get targetsMethod() {
|
|
504
|
+
return utils.getBit(121, this);
|
|
505
|
+
}
|
|
506
|
+
set targetsMethod(value) {
|
|
507
|
+
utils.setBit(121, value, this);
|
|
508
|
+
}
|
|
509
|
+
get targetsParam() {
|
|
510
|
+
return utils.getBit(122, this);
|
|
511
|
+
}
|
|
512
|
+
set targetsParam(value) {
|
|
513
|
+
utils.setBit(122, value, this);
|
|
514
|
+
}
|
|
515
|
+
get targetsAnnotation() {
|
|
516
|
+
return utils.getBit(123, this);
|
|
517
|
+
}
|
|
518
|
+
set targetsAnnotation(value) {
|
|
519
|
+
utils.setBit(123, value, this);
|
|
520
|
+
}
|
|
521
|
+
toString() {
|
|
522
|
+
return "Node_Annotation_" + super.toString();
|
|
523
|
+
}
|
|
524
|
+
};
|
|
525
|
+
var Node_Which = {
|
|
526
|
+
FILE: 0,
|
|
527
|
+
/**
|
|
528
|
+
* Name to present to humans to identify this Node. You should not attempt to parse this. Its
|
|
529
|
+
* format could change. It is not guaranteed to be unique.
|
|
530
|
+
*
|
|
531
|
+
* (On Zooko's triangle, this is the node's nickname.)
|
|
532
|
+
*
|
|
533
|
+
*/
|
|
534
|
+
STRUCT: 1,
|
|
535
|
+
/**
|
|
536
|
+
* If you want a shorter version of `displayName` (just naming this node, without its surrounding
|
|
537
|
+
* scope), chop off this many characters from the beginning of `displayName`.
|
|
538
|
+
*
|
|
539
|
+
*/
|
|
540
|
+
ENUM: 2,
|
|
541
|
+
/**
|
|
542
|
+
* ID of the lexical parent node. Typically, the scope node will have a NestedNode pointing back
|
|
543
|
+
* at this node, but robust code should avoid relying on this (and, in fact, group nodes are not
|
|
544
|
+
* listed in the outer struct's nestedNodes, since they are listed in the fields). `scopeId` is
|
|
545
|
+
* zero if the node has no parent, which is normally only the case with files, but should be
|
|
546
|
+
* allowed for any kind of node (in order to make runtime type generation easier).
|
|
547
|
+
*
|
|
548
|
+
*/
|
|
549
|
+
INTERFACE: 3,
|
|
550
|
+
/**
|
|
551
|
+
* List of nodes nested within this node, along with the names under which they were declared.
|
|
552
|
+
*
|
|
553
|
+
*/
|
|
554
|
+
CONST: 4,
|
|
555
|
+
/**
|
|
556
|
+
* Annotations applied to this node.
|
|
557
|
+
*
|
|
558
|
+
*/
|
|
559
|
+
ANNOTATION: 5
|
|
560
|
+
};
|
|
561
|
+
var Node = class _Node extends Struct {
|
|
562
|
+
static {
|
|
563
|
+
__name(this, "Node");
|
|
564
|
+
}
|
|
565
|
+
static FILE = Node_Which.FILE;
|
|
566
|
+
static STRUCT = Node_Which.STRUCT;
|
|
567
|
+
static ENUM = Node_Which.ENUM;
|
|
568
|
+
static INTERFACE = Node_Which.INTERFACE;
|
|
569
|
+
static CONST = Node_Which.CONST;
|
|
570
|
+
static ANNOTATION = Node_Which.ANNOTATION;
|
|
571
|
+
static Parameter = Node_Parameter;
|
|
572
|
+
static NestedNode = Node_NestedNode;
|
|
573
|
+
static SourceInfo = Node_SourceInfo;
|
|
574
|
+
static _capnp = {
|
|
575
|
+
displayName: "Node",
|
|
576
|
+
id: "e682ab4cf923a417",
|
|
577
|
+
size: new ObjectSize(40, 6)
|
|
578
|
+
};
|
|
579
|
+
static _Parameters;
|
|
580
|
+
static _NestedNodes;
|
|
581
|
+
static _Annotations;
|
|
582
|
+
get id() {
|
|
583
|
+
return utils.getUint64(0, this);
|
|
584
|
+
}
|
|
585
|
+
set id(value) {
|
|
586
|
+
utils.setUint64(0, value, this);
|
|
587
|
+
}
|
|
588
|
+
/**
|
|
589
|
+
* Name to present to humans to identify this Node. You should not attempt to parse this. Its
|
|
590
|
+
* format could change. It is not guaranteed to be unique.
|
|
591
|
+
*
|
|
592
|
+
* (On Zooko's triangle, this is the node's nickname.)
|
|
593
|
+
*
|
|
594
|
+
*/
|
|
595
|
+
get displayName() {
|
|
596
|
+
return utils.getText(0, this);
|
|
597
|
+
}
|
|
598
|
+
set displayName(value) {
|
|
599
|
+
utils.setText(0, value, this);
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* If you want a shorter version of `displayName` (just naming this node, without its surrounding
|
|
603
|
+
* scope), chop off this many characters from the beginning of `displayName`.
|
|
604
|
+
*
|
|
605
|
+
*/
|
|
606
|
+
get displayNamePrefixLength() {
|
|
607
|
+
return utils.getUint32(8, this);
|
|
608
|
+
}
|
|
609
|
+
set displayNamePrefixLength(value) {
|
|
610
|
+
utils.setUint32(8, value, this);
|
|
611
|
+
}
|
|
612
|
+
/**
|
|
613
|
+
* ID of the lexical parent node. Typically, the scope node will have a NestedNode pointing back
|
|
614
|
+
* at this node, but robust code should avoid relying on this (and, in fact, group nodes are not
|
|
615
|
+
* listed in the outer struct's nestedNodes, since they are listed in the fields). `scopeId` is
|
|
616
|
+
* zero if the node has no parent, which is normally only the case with files, but should be
|
|
617
|
+
* allowed for any kind of node (in order to make runtime type generation easier).
|
|
618
|
+
*
|
|
619
|
+
*/
|
|
620
|
+
get scopeId() {
|
|
621
|
+
return utils.getUint64(16, this);
|
|
622
|
+
}
|
|
623
|
+
set scopeId(value) {
|
|
624
|
+
utils.setUint64(16, value, this);
|
|
625
|
+
}
|
|
626
|
+
_adoptParameters(value) {
|
|
627
|
+
utils.adopt(value, utils.getPointer(5, this));
|
|
628
|
+
}
|
|
629
|
+
_disownParameters() {
|
|
630
|
+
return utils.disown(this.parameters);
|
|
631
|
+
}
|
|
632
|
+
/**
|
|
633
|
+
* If this node is parameterized (generic), the list of parameters. Empty for non-generic types.
|
|
634
|
+
*
|
|
635
|
+
*/
|
|
636
|
+
get parameters() {
|
|
637
|
+
return utils.getList(5, _Node._Parameters, this);
|
|
638
|
+
}
|
|
639
|
+
_hasParameters() {
|
|
640
|
+
return !utils.isNull(utils.getPointer(5, this));
|
|
641
|
+
}
|
|
642
|
+
_initParameters(length) {
|
|
643
|
+
return utils.initList(5, _Node._Parameters, length, this);
|
|
644
|
+
}
|
|
645
|
+
set parameters(value) {
|
|
646
|
+
utils.copyFrom(value, utils.getPointer(5, this));
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* True if this node is generic, meaning that it or one of its parent scopes has a non-empty
|
|
650
|
+
* `parameters`.
|
|
651
|
+
*
|
|
652
|
+
*/
|
|
653
|
+
get isGeneric() {
|
|
654
|
+
return utils.getBit(288, this);
|
|
655
|
+
}
|
|
656
|
+
set isGeneric(value) {
|
|
657
|
+
utils.setBit(288, value, this);
|
|
658
|
+
}
|
|
659
|
+
_adoptNestedNodes(value) {
|
|
660
|
+
utils.adopt(value, utils.getPointer(1, this));
|
|
661
|
+
}
|
|
662
|
+
_disownNestedNodes() {
|
|
663
|
+
return utils.disown(this.nestedNodes);
|
|
664
|
+
}
|
|
665
|
+
/**
|
|
666
|
+
* List of nodes nested within this node, along with the names under which they were declared.
|
|
667
|
+
*
|
|
668
|
+
*/
|
|
669
|
+
get nestedNodes() {
|
|
670
|
+
return utils.getList(1, _Node._NestedNodes, this);
|
|
671
|
+
}
|
|
672
|
+
_hasNestedNodes() {
|
|
673
|
+
return !utils.isNull(utils.getPointer(1, this));
|
|
674
|
+
}
|
|
675
|
+
_initNestedNodes(length) {
|
|
676
|
+
return utils.initList(1, _Node._NestedNodes, length, this);
|
|
677
|
+
}
|
|
678
|
+
set nestedNodes(value) {
|
|
679
|
+
utils.copyFrom(value, utils.getPointer(1, this));
|
|
680
|
+
}
|
|
681
|
+
_adoptAnnotations(value) {
|
|
682
|
+
utils.adopt(value, utils.getPointer(2, this));
|
|
683
|
+
}
|
|
684
|
+
_disownAnnotations() {
|
|
685
|
+
return utils.disown(this.annotations);
|
|
686
|
+
}
|
|
687
|
+
/**
|
|
688
|
+
* Annotations applied to this node.
|
|
689
|
+
*
|
|
690
|
+
*/
|
|
691
|
+
get annotations() {
|
|
692
|
+
return utils.getList(2, _Node._Annotations, this);
|
|
693
|
+
}
|
|
694
|
+
_hasAnnotations() {
|
|
695
|
+
return !utils.isNull(utils.getPointer(2, this));
|
|
696
|
+
}
|
|
697
|
+
_initAnnotations(length) {
|
|
698
|
+
return utils.initList(2, _Node._Annotations, length, this);
|
|
699
|
+
}
|
|
700
|
+
set annotations(value) {
|
|
701
|
+
utils.copyFrom(value, utils.getPointer(2, this));
|
|
702
|
+
}
|
|
703
|
+
get _isFile() {
|
|
704
|
+
return utils.getUint16(12, this) === 0;
|
|
705
|
+
}
|
|
706
|
+
set file(_) {
|
|
707
|
+
utils.setUint16(12, 0, this);
|
|
708
|
+
}
|
|
709
|
+
get struct() {
|
|
710
|
+
utils.testWhich("struct", utils.getUint16(12, this), 1, this);
|
|
711
|
+
return utils.getAs(Node_Struct, this);
|
|
712
|
+
}
|
|
713
|
+
_initStruct() {
|
|
714
|
+
utils.setUint16(12, 1, this);
|
|
715
|
+
return utils.getAs(Node_Struct, this);
|
|
716
|
+
}
|
|
717
|
+
get _isStruct() {
|
|
718
|
+
return utils.getUint16(12, this) === 1;
|
|
719
|
+
}
|
|
720
|
+
set struct(_) {
|
|
721
|
+
utils.setUint16(12, 1, this);
|
|
722
|
+
}
|
|
723
|
+
get enum() {
|
|
724
|
+
utils.testWhich("enum", utils.getUint16(12, this), 2, this);
|
|
725
|
+
return utils.getAs(Node_Enum, this);
|
|
726
|
+
}
|
|
727
|
+
_initEnum() {
|
|
728
|
+
utils.setUint16(12, 2, this);
|
|
729
|
+
return utils.getAs(Node_Enum, this);
|
|
730
|
+
}
|
|
731
|
+
get _isEnum() {
|
|
732
|
+
return utils.getUint16(12, this) === 2;
|
|
733
|
+
}
|
|
734
|
+
set enum(_) {
|
|
735
|
+
utils.setUint16(12, 2, this);
|
|
736
|
+
}
|
|
737
|
+
get interface() {
|
|
738
|
+
utils.testWhich("interface", utils.getUint16(12, this), 3, this);
|
|
739
|
+
return utils.getAs(Node_Interface, this);
|
|
740
|
+
}
|
|
741
|
+
_initInterface() {
|
|
742
|
+
utils.setUint16(12, 3, this);
|
|
743
|
+
return utils.getAs(Node_Interface, this);
|
|
744
|
+
}
|
|
745
|
+
get _isInterface() {
|
|
746
|
+
return utils.getUint16(12, this) === 3;
|
|
747
|
+
}
|
|
748
|
+
set interface(_) {
|
|
749
|
+
utils.setUint16(12, 3, this);
|
|
750
|
+
}
|
|
751
|
+
get const() {
|
|
752
|
+
utils.testWhich("const", utils.getUint16(12, this), 4, this);
|
|
753
|
+
return utils.getAs(Node_Const, this);
|
|
754
|
+
}
|
|
755
|
+
_initConst() {
|
|
756
|
+
utils.setUint16(12, 4, this);
|
|
757
|
+
return utils.getAs(Node_Const, this);
|
|
758
|
+
}
|
|
759
|
+
get _isConst() {
|
|
760
|
+
return utils.getUint16(12, this) === 4;
|
|
761
|
+
}
|
|
762
|
+
set const(_) {
|
|
763
|
+
utils.setUint16(12, 4, this);
|
|
764
|
+
}
|
|
765
|
+
get annotation() {
|
|
766
|
+
utils.testWhich("annotation", utils.getUint16(12, this), 5, this);
|
|
767
|
+
return utils.getAs(Node_Annotation, this);
|
|
768
|
+
}
|
|
769
|
+
_initAnnotation() {
|
|
770
|
+
utils.setUint16(12, 5, this);
|
|
771
|
+
return utils.getAs(Node_Annotation, this);
|
|
772
|
+
}
|
|
773
|
+
get _isAnnotation() {
|
|
774
|
+
return utils.getUint16(12, this) === 5;
|
|
775
|
+
}
|
|
776
|
+
set annotation(_) {
|
|
777
|
+
utils.setUint16(12, 5, this);
|
|
778
|
+
}
|
|
779
|
+
toString() {
|
|
780
|
+
return "Node_" + super.toString();
|
|
781
|
+
}
|
|
782
|
+
which() {
|
|
783
|
+
return utils.getUint16(12, this);
|
|
784
|
+
}
|
|
785
|
+
};
|
|
786
|
+
var Field_Slot = class extends Struct {
|
|
787
|
+
static {
|
|
788
|
+
__name(this, "Field_Slot");
|
|
789
|
+
}
|
|
790
|
+
static _capnp = {
|
|
791
|
+
displayName: "slot",
|
|
792
|
+
id: "c42305476bb4746f",
|
|
793
|
+
size: new ObjectSize(24, 4)
|
|
794
|
+
};
|
|
795
|
+
/**
|
|
796
|
+
* Offset, in units of the field's size, from the beginning of the section in which the field
|
|
797
|
+
* resides. E.g. for a UInt32 field, multiply this by 4 to get the byte offset from the
|
|
798
|
+
* beginning of the data section.
|
|
799
|
+
*
|
|
800
|
+
*/
|
|
801
|
+
get offset() {
|
|
802
|
+
return utils.getUint32(4, this);
|
|
803
|
+
}
|
|
804
|
+
set offset(value) {
|
|
805
|
+
utils.setUint32(4, value, this);
|
|
806
|
+
}
|
|
807
|
+
_adoptType(value) {
|
|
808
|
+
utils.adopt(value, utils.getPointer(2, this));
|
|
809
|
+
}
|
|
810
|
+
_disownType() {
|
|
811
|
+
return utils.disown(this.type);
|
|
812
|
+
}
|
|
813
|
+
get type() {
|
|
814
|
+
return utils.getStruct(2, Type, this);
|
|
815
|
+
}
|
|
816
|
+
_hasType() {
|
|
817
|
+
return !utils.isNull(utils.getPointer(2, this));
|
|
818
|
+
}
|
|
819
|
+
_initType() {
|
|
820
|
+
return utils.initStructAt(2, Type, this);
|
|
821
|
+
}
|
|
822
|
+
set type(value) {
|
|
823
|
+
utils.copyFrom(value, utils.getPointer(2, this));
|
|
824
|
+
}
|
|
825
|
+
_adoptDefaultValue(value) {
|
|
826
|
+
utils.adopt(value, utils.getPointer(3, this));
|
|
827
|
+
}
|
|
828
|
+
_disownDefaultValue() {
|
|
829
|
+
return utils.disown(this.defaultValue);
|
|
830
|
+
}
|
|
831
|
+
get defaultValue() {
|
|
832
|
+
return utils.getStruct(3, Value, this);
|
|
833
|
+
}
|
|
834
|
+
_hasDefaultValue() {
|
|
835
|
+
return !utils.isNull(utils.getPointer(3, this));
|
|
836
|
+
}
|
|
837
|
+
_initDefaultValue() {
|
|
838
|
+
return utils.initStructAt(3, Value, this);
|
|
839
|
+
}
|
|
840
|
+
set defaultValue(value) {
|
|
841
|
+
utils.copyFrom(value, utils.getPointer(3, this));
|
|
842
|
+
}
|
|
843
|
+
/**
|
|
844
|
+
* Whether the default value was specified explicitly. Non-explicit default values are always
|
|
845
|
+
* zero or empty values. Usually, whether the default value was explicit shouldn't matter.
|
|
846
|
+
* The main use case for this flag is for structs representing method parameters:
|
|
847
|
+
* explicitly-defaulted parameters may be allowed to be omitted when calling the method.
|
|
848
|
+
*
|
|
849
|
+
*/
|
|
850
|
+
get hadExplicitDefault() {
|
|
851
|
+
return utils.getBit(128, this);
|
|
852
|
+
}
|
|
853
|
+
set hadExplicitDefault(value) {
|
|
854
|
+
utils.setBit(128, value, this);
|
|
855
|
+
}
|
|
856
|
+
toString() {
|
|
857
|
+
return "Field_Slot_" + super.toString();
|
|
858
|
+
}
|
|
859
|
+
};
|
|
860
|
+
var Field_Group = class extends Struct {
|
|
861
|
+
static {
|
|
862
|
+
__name(this, "Field_Group");
|
|
863
|
+
}
|
|
864
|
+
static _capnp = {
|
|
865
|
+
displayName: "group",
|
|
866
|
+
id: "cafccddb68db1d11",
|
|
867
|
+
size: new ObjectSize(24, 4)
|
|
868
|
+
};
|
|
869
|
+
/**
|
|
870
|
+
* The ID of the group's node.
|
|
871
|
+
*
|
|
872
|
+
*/
|
|
873
|
+
get typeId() {
|
|
874
|
+
return utils.getUint64(16, this);
|
|
875
|
+
}
|
|
876
|
+
set typeId(value) {
|
|
877
|
+
utils.setUint64(16, value, this);
|
|
878
|
+
}
|
|
879
|
+
toString() {
|
|
880
|
+
return "Field_Group_" + super.toString();
|
|
881
|
+
}
|
|
882
|
+
};
|
|
883
|
+
var Field_Ordinal_Which = {
|
|
884
|
+
IMPLICIT: 0,
|
|
885
|
+
/**
|
|
886
|
+
* The original ordinal number given to the field. You probably should NOT use this; if you need
|
|
887
|
+
* a numeric identifier for a field, use its position within the field array for its scope.
|
|
888
|
+
* The ordinal is given here mainly just so that the original schema text can be reproduced given
|
|
889
|
+
* the compiled version -- i.e. so that `capnp compile -ocapnp` can do its job.
|
|
890
|
+
*
|
|
891
|
+
*/
|
|
892
|
+
EXPLICIT: 1
|
|
893
|
+
};
|
|
894
|
+
var Field_Ordinal = class extends Struct {
|
|
895
|
+
static {
|
|
896
|
+
__name(this, "Field_Ordinal");
|
|
897
|
+
}
|
|
898
|
+
static IMPLICIT = Field_Ordinal_Which.IMPLICIT;
|
|
899
|
+
static EXPLICIT = Field_Ordinal_Which.EXPLICIT;
|
|
900
|
+
static _capnp = {
|
|
901
|
+
displayName: "ordinal",
|
|
902
|
+
id: "bb90d5c287870be6",
|
|
903
|
+
size: new ObjectSize(24, 4)
|
|
904
|
+
};
|
|
905
|
+
get _isImplicit() {
|
|
906
|
+
return utils.getUint16(10, this) === 0;
|
|
907
|
+
}
|
|
908
|
+
set implicit(_) {
|
|
909
|
+
utils.setUint16(10, 0, this);
|
|
910
|
+
}
|
|
911
|
+
/**
|
|
912
|
+
* The original ordinal number given to the field. You probably should NOT use this; if you need
|
|
913
|
+
* a numeric identifier for a field, use its position within the field array for its scope.
|
|
914
|
+
* The ordinal is given here mainly just so that the original schema text can be reproduced given
|
|
915
|
+
* the compiled version -- i.e. so that `capnp compile -ocapnp` can do its job.
|
|
916
|
+
*
|
|
917
|
+
*/
|
|
918
|
+
get explicit() {
|
|
919
|
+
utils.testWhich("explicit", utils.getUint16(10, this), 1, this);
|
|
920
|
+
return utils.getUint16(12, this);
|
|
921
|
+
}
|
|
922
|
+
get _isExplicit() {
|
|
923
|
+
return utils.getUint16(10, this) === 1;
|
|
924
|
+
}
|
|
925
|
+
set explicit(value) {
|
|
926
|
+
utils.setUint16(10, 1, this);
|
|
927
|
+
utils.setUint16(12, value, this);
|
|
928
|
+
}
|
|
929
|
+
toString() {
|
|
930
|
+
return "Field_Ordinal_" + super.toString();
|
|
931
|
+
}
|
|
932
|
+
which() {
|
|
933
|
+
return utils.getUint16(10, this);
|
|
934
|
+
}
|
|
935
|
+
};
|
|
936
|
+
var Field_Which = {
|
|
937
|
+
SLOT: 0,
|
|
938
|
+
/**
|
|
939
|
+
* Indicates where this member appeared in the code, relative to other members.
|
|
940
|
+
* Code ordering may have semantic relevance -- programmers tend to place related fields
|
|
941
|
+
* together. So, using code ordering makes sense in human-readable formats where ordering is
|
|
942
|
+
* otherwise irrelevant, like JSON. The values of codeOrder are tightly-packed, so the maximum
|
|
943
|
+
* value is count(members) - 1. Fields that are members of a union are only ordered relative to
|
|
944
|
+
* the other members of that union, so the maximum value there is count(union.members).
|
|
945
|
+
*
|
|
946
|
+
*/
|
|
947
|
+
GROUP: 1
|
|
948
|
+
};
|
|
949
|
+
var Field = class _Field extends Struct {
|
|
950
|
+
static {
|
|
951
|
+
__name(this, "Field");
|
|
952
|
+
}
|
|
953
|
+
static NO_DISCRIMINANT = 65535;
|
|
954
|
+
static SLOT = Field_Which.SLOT;
|
|
955
|
+
static GROUP = Field_Which.GROUP;
|
|
956
|
+
static _capnp = {
|
|
957
|
+
displayName: "Field",
|
|
958
|
+
id: "9aad50a41f4af45f",
|
|
959
|
+
size: new ObjectSize(24, 4),
|
|
960
|
+
defaultDiscriminantValue: getUint16Mask(65535)
|
|
961
|
+
};
|
|
962
|
+
static _Annotations;
|
|
963
|
+
get name() {
|
|
964
|
+
return utils.getText(0, this);
|
|
965
|
+
}
|
|
966
|
+
set name(value) {
|
|
967
|
+
utils.setText(0, value, this);
|
|
968
|
+
}
|
|
969
|
+
/**
|
|
970
|
+
* Indicates where this member appeared in the code, relative to other members.
|
|
971
|
+
* Code ordering may have semantic relevance -- programmers tend to place related fields
|
|
972
|
+
* together. So, using code ordering makes sense in human-readable formats where ordering is
|
|
973
|
+
* otherwise irrelevant, like JSON. The values of codeOrder are tightly-packed, so the maximum
|
|
974
|
+
* value is count(members) - 1. Fields that are members of a union are only ordered relative to
|
|
975
|
+
* the other members of that union, so the maximum value there is count(union.members).
|
|
976
|
+
*
|
|
977
|
+
*/
|
|
978
|
+
get codeOrder() {
|
|
979
|
+
return utils.getUint16(0, this);
|
|
980
|
+
}
|
|
981
|
+
set codeOrder(value) {
|
|
982
|
+
utils.setUint16(0, value, this);
|
|
983
|
+
}
|
|
984
|
+
_adoptAnnotations(value) {
|
|
985
|
+
utils.adopt(value, utils.getPointer(1, this));
|
|
986
|
+
}
|
|
987
|
+
_disownAnnotations() {
|
|
988
|
+
return utils.disown(this.annotations);
|
|
989
|
+
}
|
|
990
|
+
get annotations() {
|
|
991
|
+
return utils.getList(1, _Field._Annotations, this);
|
|
992
|
+
}
|
|
993
|
+
_hasAnnotations() {
|
|
994
|
+
return !utils.isNull(utils.getPointer(1, this));
|
|
995
|
+
}
|
|
996
|
+
_initAnnotations(length) {
|
|
997
|
+
return utils.initList(1, _Field._Annotations, length, this);
|
|
998
|
+
}
|
|
999
|
+
set annotations(value) {
|
|
1000
|
+
utils.copyFrom(value, utils.getPointer(1, this));
|
|
1001
|
+
}
|
|
1002
|
+
/**
|
|
1003
|
+
* If the field is in a union, this is the value which the union's discriminant should take when
|
|
1004
|
+
* the field is active. If the field is not in a union, this is 0xffff.
|
|
1005
|
+
*
|
|
1006
|
+
*/
|
|
1007
|
+
get discriminantValue() {
|
|
1008
|
+
return utils.getUint16(2, this, _Field._capnp.defaultDiscriminantValue);
|
|
1009
|
+
}
|
|
1010
|
+
set discriminantValue(value) {
|
|
1011
|
+
utils.setUint16(2, value, this, _Field._capnp.defaultDiscriminantValue);
|
|
1012
|
+
}
|
|
1013
|
+
/**
|
|
1014
|
+
* A regular, non-group, non-fixed-list field.
|
|
1015
|
+
*
|
|
1016
|
+
*/
|
|
1017
|
+
get slot() {
|
|
1018
|
+
utils.testWhich("slot", utils.getUint16(8, this), 0, this);
|
|
1019
|
+
return utils.getAs(Field_Slot, this);
|
|
1020
|
+
}
|
|
1021
|
+
_initSlot() {
|
|
1022
|
+
utils.setUint16(8, 0, this);
|
|
1023
|
+
return utils.getAs(Field_Slot, this);
|
|
1024
|
+
}
|
|
1025
|
+
get _isSlot() {
|
|
1026
|
+
return utils.getUint16(8, this) === 0;
|
|
1027
|
+
}
|
|
1028
|
+
set slot(_) {
|
|
1029
|
+
utils.setUint16(8, 0, this);
|
|
1030
|
+
}
|
|
1031
|
+
/**
|
|
1032
|
+
* A group.
|
|
1033
|
+
*
|
|
1034
|
+
*/
|
|
1035
|
+
get group() {
|
|
1036
|
+
utils.testWhich("group", utils.getUint16(8, this), 1, this);
|
|
1037
|
+
return utils.getAs(Field_Group, this);
|
|
1038
|
+
}
|
|
1039
|
+
_initGroup() {
|
|
1040
|
+
utils.setUint16(8, 1, this);
|
|
1041
|
+
return utils.getAs(Field_Group, this);
|
|
1042
|
+
}
|
|
1043
|
+
get _isGroup() {
|
|
1044
|
+
return utils.getUint16(8, this) === 1;
|
|
1045
|
+
}
|
|
1046
|
+
set group(_) {
|
|
1047
|
+
utils.setUint16(8, 1, this);
|
|
1048
|
+
}
|
|
1049
|
+
get ordinal() {
|
|
1050
|
+
return utils.getAs(Field_Ordinal, this);
|
|
1051
|
+
}
|
|
1052
|
+
_initOrdinal() {
|
|
1053
|
+
return utils.getAs(Field_Ordinal, this);
|
|
1054
|
+
}
|
|
1055
|
+
toString() {
|
|
1056
|
+
return "Field_" + super.toString();
|
|
1057
|
+
}
|
|
1058
|
+
which() {
|
|
1059
|
+
return utils.getUint16(8, this);
|
|
1060
|
+
}
|
|
1061
|
+
};
|
|
1062
|
+
var Enumerant = class _Enumerant extends Struct {
|
|
1063
|
+
static {
|
|
1064
|
+
__name(this, "Enumerant");
|
|
1065
|
+
}
|
|
1066
|
+
static _capnp = {
|
|
1067
|
+
displayName: "Enumerant",
|
|
1068
|
+
id: "978a7cebdc549a4d",
|
|
1069
|
+
size: new ObjectSize(8, 2)
|
|
1070
|
+
};
|
|
1071
|
+
static _Annotations;
|
|
1072
|
+
get name() {
|
|
1073
|
+
return utils.getText(0, this);
|
|
1074
|
+
}
|
|
1075
|
+
set name(value) {
|
|
1076
|
+
utils.setText(0, value, this);
|
|
1077
|
+
}
|
|
1078
|
+
/**
|
|
1079
|
+
* Specifies order in which the enumerants were declared in the code.
|
|
1080
|
+
* Like utils.Field.codeOrder.
|
|
1081
|
+
*
|
|
1082
|
+
*/
|
|
1083
|
+
get codeOrder() {
|
|
1084
|
+
return utils.getUint16(0, this);
|
|
1085
|
+
}
|
|
1086
|
+
set codeOrder(value) {
|
|
1087
|
+
utils.setUint16(0, value, this);
|
|
1088
|
+
}
|
|
1089
|
+
_adoptAnnotations(value) {
|
|
1090
|
+
utils.adopt(value, utils.getPointer(1, this));
|
|
1091
|
+
}
|
|
1092
|
+
_disownAnnotations() {
|
|
1093
|
+
return utils.disown(this.annotations);
|
|
1094
|
+
}
|
|
1095
|
+
get annotations() {
|
|
1096
|
+
return utils.getList(1, _Enumerant._Annotations, this);
|
|
1097
|
+
}
|
|
1098
|
+
_hasAnnotations() {
|
|
1099
|
+
return !utils.isNull(utils.getPointer(1, this));
|
|
1100
|
+
}
|
|
1101
|
+
_initAnnotations(length) {
|
|
1102
|
+
return utils.initList(1, _Enumerant._Annotations, length, this);
|
|
1103
|
+
}
|
|
1104
|
+
set annotations(value) {
|
|
1105
|
+
utils.copyFrom(value, utils.getPointer(1, this));
|
|
1106
|
+
}
|
|
1107
|
+
toString() {
|
|
1108
|
+
return "Enumerant_" + super.toString();
|
|
1109
|
+
}
|
|
1110
|
+
};
|
|
1111
|
+
var Superclass = class extends Struct {
|
|
1112
|
+
static {
|
|
1113
|
+
__name(this, "Superclass");
|
|
1114
|
+
}
|
|
1115
|
+
static _capnp = {
|
|
1116
|
+
displayName: "Superclass",
|
|
1117
|
+
id: "a9962a9ed0a4d7f8",
|
|
1118
|
+
size: new ObjectSize(8, 1)
|
|
1119
|
+
};
|
|
1120
|
+
get id() {
|
|
1121
|
+
return utils.getUint64(0, this);
|
|
1122
|
+
}
|
|
1123
|
+
set id(value) {
|
|
1124
|
+
utils.setUint64(0, value, this);
|
|
1125
|
+
}
|
|
1126
|
+
_adoptBrand(value) {
|
|
1127
|
+
utils.adopt(value, utils.getPointer(0, this));
|
|
1128
|
+
}
|
|
1129
|
+
_disownBrand() {
|
|
1130
|
+
return utils.disown(this.brand);
|
|
1131
|
+
}
|
|
1132
|
+
get brand() {
|
|
1133
|
+
return utils.getStruct(0, Brand, this);
|
|
1134
|
+
}
|
|
1135
|
+
_hasBrand() {
|
|
1136
|
+
return !utils.isNull(utils.getPointer(0, this));
|
|
1137
|
+
}
|
|
1138
|
+
_initBrand() {
|
|
1139
|
+
return utils.initStructAt(0, Brand, this);
|
|
1140
|
+
}
|
|
1141
|
+
set brand(value) {
|
|
1142
|
+
utils.copyFrom(value, utils.getPointer(0, this));
|
|
1143
|
+
}
|
|
1144
|
+
toString() {
|
|
1145
|
+
return "Superclass_" + super.toString();
|
|
1146
|
+
}
|
|
1147
|
+
};
|
|
1148
|
+
var Method = class _Method extends Struct {
|
|
1149
|
+
static {
|
|
1150
|
+
__name(this, "Method");
|
|
1151
|
+
}
|
|
1152
|
+
static _capnp = {
|
|
1153
|
+
displayName: "Method",
|
|
1154
|
+
id: "9500cce23b334d80",
|
|
1155
|
+
size: new ObjectSize(24, 5)
|
|
1156
|
+
};
|
|
1157
|
+
static _ImplicitParameters;
|
|
1158
|
+
static _Annotations;
|
|
1159
|
+
get name() {
|
|
1160
|
+
return utils.getText(0, this);
|
|
1161
|
+
}
|
|
1162
|
+
set name(value) {
|
|
1163
|
+
utils.setText(0, value, this);
|
|
1164
|
+
}
|
|
1165
|
+
/**
|
|
1166
|
+
* Specifies order in which the methods were declared in the code.
|
|
1167
|
+
* Like utils.Field.codeOrder.
|
|
1168
|
+
*
|
|
1169
|
+
*/
|
|
1170
|
+
get codeOrder() {
|
|
1171
|
+
return utils.getUint16(0, this);
|
|
1172
|
+
}
|
|
1173
|
+
set codeOrder(value) {
|
|
1174
|
+
utils.setUint16(0, value, this);
|
|
1175
|
+
}
|
|
1176
|
+
_adoptImplicitParameters(value) {
|
|
1177
|
+
utils.adopt(value, utils.getPointer(4, this));
|
|
1178
|
+
}
|
|
1179
|
+
_disownImplicitParameters() {
|
|
1180
|
+
return utils.disown(this.implicitParameters);
|
|
1181
|
+
}
|
|
1182
|
+
/**
|
|
1183
|
+
* The parameters listed in [] (typically, type / generic parameters), whose bindings are intended
|
|
1184
|
+
* to be inferred rather than specified explicitly, although not all languages support this.
|
|
1185
|
+
*
|
|
1186
|
+
*/
|
|
1187
|
+
get implicitParameters() {
|
|
1188
|
+
return utils.getList(4, _Method._ImplicitParameters, this);
|
|
1189
|
+
}
|
|
1190
|
+
_hasImplicitParameters() {
|
|
1191
|
+
return !utils.isNull(utils.getPointer(4, this));
|
|
1192
|
+
}
|
|
1193
|
+
_initImplicitParameters(length) {
|
|
1194
|
+
return utils.initList(4, _Method._ImplicitParameters, length, this);
|
|
1195
|
+
}
|
|
1196
|
+
set implicitParameters(value) {
|
|
1197
|
+
utils.copyFrom(value, utils.getPointer(4, this));
|
|
1198
|
+
}
|
|
1199
|
+
/**
|
|
1200
|
+
* ID of the parameter struct type. If a named parameter list was specified in the method
|
|
1201
|
+
* declaration (rather than a single struct parameter type) then a corresponding struct type is
|
|
1202
|
+
* auto-generated. Such an auto-generated type will not be listed in the interface's
|
|
1203
|
+
* `nestedNodes` and its `scopeId` will be zero -- it is completely detached from the namespace.
|
|
1204
|
+
* (Awkwardly, it does of course inherit generic parameters from the method's scope, which makes
|
|
1205
|
+
* this a situation where you can't just climb the scope chain to find where a particular
|
|
1206
|
+
* generic parameter was introduced. Making the `scopeId` zero was a mistake.)
|
|
1207
|
+
*
|
|
1208
|
+
*/
|
|
1209
|
+
get paramStructType() {
|
|
1210
|
+
return utils.getUint64(8, this);
|
|
1211
|
+
}
|
|
1212
|
+
set paramStructType(value) {
|
|
1213
|
+
utils.setUint64(8, value, this);
|
|
1214
|
+
}
|
|
1215
|
+
_adoptParamBrand(value) {
|
|
1216
|
+
utils.adopt(value, utils.getPointer(2, this));
|
|
1217
|
+
}
|
|
1218
|
+
_disownParamBrand() {
|
|
1219
|
+
return utils.disown(this.paramBrand);
|
|
1220
|
+
}
|
|
1221
|
+
/**
|
|
1222
|
+
* Brand of param struct type.
|
|
1223
|
+
*
|
|
1224
|
+
*/
|
|
1225
|
+
get paramBrand() {
|
|
1226
|
+
return utils.getStruct(2, Brand, this);
|
|
1227
|
+
}
|
|
1228
|
+
_hasParamBrand() {
|
|
1229
|
+
return !utils.isNull(utils.getPointer(2, this));
|
|
1230
|
+
}
|
|
1231
|
+
_initParamBrand() {
|
|
1232
|
+
return utils.initStructAt(2, Brand, this);
|
|
1233
|
+
}
|
|
1234
|
+
set paramBrand(value) {
|
|
1235
|
+
utils.copyFrom(value, utils.getPointer(2, this));
|
|
1236
|
+
}
|
|
1237
|
+
/**
|
|
1238
|
+
* ID of the return struct type; similar to `paramStructType`.
|
|
1239
|
+
*
|
|
1240
|
+
*/
|
|
1241
|
+
get resultStructType() {
|
|
1242
|
+
return utils.getUint64(16, this);
|
|
1243
|
+
}
|
|
1244
|
+
set resultStructType(value) {
|
|
1245
|
+
utils.setUint64(16, value, this);
|
|
1246
|
+
}
|
|
1247
|
+
_adoptResultBrand(value) {
|
|
1248
|
+
utils.adopt(value, utils.getPointer(3, this));
|
|
1249
|
+
}
|
|
1250
|
+
_disownResultBrand() {
|
|
1251
|
+
return utils.disown(this.resultBrand);
|
|
1252
|
+
}
|
|
1253
|
+
/**
|
|
1254
|
+
* Brand of result struct type.
|
|
1255
|
+
*
|
|
1256
|
+
*/
|
|
1257
|
+
get resultBrand() {
|
|
1258
|
+
return utils.getStruct(3, Brand, this);
|
|
1259
|
+
}
|
|
1260
|
+
_hasResultBrand() {
|
|
1261
|
+
return !utils.isNull(utils.getPointer(3, this));
|
|
1262
|
+
}
|
|
1263
|
+
_initResultBrand() {
|
|
1264
|
+
return utils.initStructAt(3, Brand, this);
|
|
1265
|
+
}
|
|
1266
|
+
set resultBrand(value) {
|
|
1267
|
+
utils.copyFrom(value, utils.getPointer(3, this));
|
|
1268
|
+
}
|
|
1269
|
+
_adoptAnnotations(value) {
|
|
1270
|
+
utils.adopt(value, utils.getPointer(1, this));
|
|
1271
|
+
}
|
|
1272
|
+
_disownAnnotations() {
|
|
1273
|
+
return utils.disown(this.annotations);
|
|
1274
|
+
}
|
|
1275
|
+
get annotations() {
|
|
1276
|
+
return utils.getList(1, _Method._Annotations, this);
|
|
1277
|
+
}
|
|
1278
|
+
_hasAnnotations() {
|
|
1279
|
+
return !utils.isNull(utils.getPointer(1, this));
|
|
1280
|
+
}
|
|
1281
|
+
_initAnnotations(length) {
|
|
1282
|
+
return utils.initList(1, _Method._Annotations, length, this);
|
|
1283
|
+
}
|
|
1284
|
+
set annotations(value) {
|
|
1285
|
+
utils.copyFrom(value, utils.getPointer(1, this));
|
|
1286
|
+
}
|
|
1287
|
+
toString() {
|
|
1288
|
+
return "Method_" + super.toString();
|
|
1289
|
+
}
|
|
1290
|
+
};
|
|
1291
|
+
var Type_List = class extends Struct {
|
|
1292
|
+
static {
|
|
1293
|
+
__name(this, "Type_List");
|
|
1294
|
+
}
|
|
1295
|
+
static _capnp = {
|
|
1296
|
+
displayName: "list",
|
|
1297
|
+
id: "87e739250a60ea97",
|
|
1298
|
+
size: new ObjectSize(24, 1)
|
|
1299
|
+
};
|
|
1300
|
+
_adoptElementType(value) {
|
|
1301
|
+
utils.adopt(value, utils.getPointer(0, this));
|
|
1302
|
+
}
|
|
1303
|
+
_disownElementType() {
|
|
1304
|
+
return utils.disown(this.elementType);
|
|
1305
|
+
}
|
|
1306
|
+
get elementType() {
|
|
1307
|
+
return utils.getStruct(0, Type, this);
|
|
1308
|
+
}
|
|
1309
|
+
_hasElementType() {
|
|
1310
|
+
return !utils.isNull(utils.getPointer(0, this));
|
|
1311
|
+
}
|
|
1312
|
+
_initElementType() {
|
|
1313
|
+
return utils.initStructAt(0, Type, this);
|
|
1314
|
+
}
|
|
1315
|
+
set elementType(value) {
|
|
1316
|
+
utils.copyFrom(value, utils.getPointer(0, this));
|
|
1317
|
+
}
|
|
1318
|
+
toString() {
|
|
1319
|
+
return "Type_List_" + super.toString();
|
|
1320
|
+
}
|
|
1321
|
+
};
|
|
1322
|
+
var Type_Enum = class extends Struct {
|
|
1323
|
+
static {
|
|
1324
|
+
__name(this, "Type_Enum");
|
|
1325
|
+
}
|
|
1326
|
+
static _capnp = {
|
|
1327
|
+
displayName: "enum",
|
|
1328
|
+
id: "9e0e78711a7f87a9",
|
|
1329
|
+
size: new ObjectSize(24, 1)
|
|
1330
|
+
};
|
|
1331
|
+
get typeId() {
|
|
1332
|
+
return utils.getUint64(8, this);
|
|
1333
|
+
}
|
|
1334
|
+
set typeId(value) {
|
|
1335
|
+
utils.setUint64(8, value, this);
|
|
1336
|
+
}
|
|
1337
|
+
_adoptBrand(value) {
|
|
1338
|
+
utils.adopt(value, utils.getPointer(0, this));
|
|
1339
|
+
}
|
|
1340
|
+
_disownBrand() {
|
|
1341
|
+
return utils.disown(this.brand);
|
|
1342
|
+
}
|
|
1343
|
+
get brand() {
|
|
1344
|
+
return utils.getStruct(0, Brand, this);
|
|
1345
|
+
}
|
|
1346
|
+
_hasBrand() {
|
|
1347
|
+
return !utils.isNull(utils.getPointer(0, this));
|
|
1348
|
+
}
|
|
1349
|
+
_initBrand() {
|
|
1350
|
+
return utils.initStructAt(0, Brand, this);
|
|
1351
|
+
}
|
|
1352
|
+
set brand(value) {
|
|
1353
|
+
utils.copyFrom(value, utils.getPointer(0, this));
|
|
1354
|
+
}
|
|
1355
|
+
toString() {
|
|
1356
|
+
return "Type_Enum_" + super.toString();
|
|
1357
|
+
}
|
|
1358
|
+
};
|
|
1359
|
+
var Type_Struct = class extends Struct {
|
|
1360
|
+
static {
|
|
1361
|
+
__name(this, "Type_Struct");
|
|
1362
|
+
}
|
|
1363
|
+
static _capnp = {
|
|
1364
|
+
displayName: "struct",
|
|
1365
|
+
id: "ac3a6f60ef4cc6d3",
|
|
1366
|
+
size: new ObjectSize(24, 1)
|
|
1367
|
+
};
|
|
1368
|
+
get typeId() {
|
|
1369
|
+
return utils.getUint64(8, this);
|
|
1370
|
+
}
|
|
1371
|
+
set typeId(value) {
|
|
1372
|
+
utils.setUint64(8, value, this);
|
|
1373
|
+
}
|
|
1374
|
+
_adoptBrand(value) {
|
|
1375
|
+
utils.adopt(value, utils.getPointer(0, this));
|
|
1376
|
+
}
|
|
1377
|
+
_disownBrand() {
|
|
1378
|
+
return utils.disown(this.brand);
|
|
1379
|
+
}
|
|
1380
|
+
get brand() {
|
|
1381
|
+
return utils.getStruct(0, Brand, this);
|
|
1382
|
+
}
|
|
1383
|
+
_hasBrand() {
|
|
1384
|
+
return !utils.isNull(utils.getPointer(0, this));
|
|
1385
|
+
}
|
|
1386
|
+
_initBrand() {
|
|
1387
|
+
return utils.initStructAt(0, Brand, this);
|
|
1388
|
+
}
|
|
1389
|
+
set brand(value) {
|
|
1390
|
+
utils.copyFrom(value, utils.getPointer(0, this));
|
|
1391
|
+
}
|
|
1392
|
+
toString() {
|
|
1393
|
+
return "Type_Struct_" + super.toString();
|
|
1394
|
+
}
|
|
1395
|
+
};
|
|
1396
|
+
var Type_Interface = class extends Struct {
|
|
1397
|
+
static {
|
|
1398
|
+
__name(this, "Type_Interface");
|
|
1399
|
+
}
|
|
1400
|
+
static _capnp = {
|
|
1401
|
+
displayName: "interface",
|
|
1402
|
+
id: "ed8bca69f7fb0cbf",
|
|
1403
|
+
size: new ObjectSize(24, 1)
|
|
1404
|
+
};
|
|
1405
|
+
get typeId() {
|
|
1406
|
+
return utils.getUint64(8, this);
|
|
1407
|
+
}
|
|
1408
|
+
set typeId(value) {
|
|
1409
|
+
utils.setUint64(8, value, this);
|
|
1410
|
+
}
|
|
1411
|
+
_adoptBrand(value) {
|
|
1412
|
+
utils.adopt(value, utils.getPointer(0, this));
|
|
1413
|
+
}
|
|
1414
|
+
_disownBrand() {
|
|
1415
|
+
return utils.disown(this.brand);
|
|
1416
|
+
}
|
|
1417
|
+
get brand() {
|
|
1418
|
+
return utils.getStruct(0, Brand, this);
|
|
1419
|
+
}
|
|
1420
|
+
_hasBrand() {
|
|
1421
|
+
return !utils.isNull(utils.getPointer(0, this));
|
|
1422
|
+
}
|
|
1423
|
+
_initBrand() {
|
|
1424
|
+
return utils.initStructAt(0, Brand, this);
|
|
1425
|
+
}
|
|
1426
|
+
set brand(value) {
|
|
1427
|
+
utils.copyFrom(value, utils.getPointer(0, this));
|
|
1428
|
+
}
|
|
1429
|
+
toString() {
|
|
1430
|
+
return "Type_Interface_" + super.toString();
|
|
1431
|
+
}
|
|
1432
|
+
};
|
|
1433
|
+
var Type_AnyPointer_Unconstrained_Which = {
|
|
1434
|
+
/**
|
|
1435
|
+
* truly AnyPointer
|
|
1436
|
+
*
|
|
1437
|
+
*/
|
|
1438
|
+
ANY_KIND: 0,
|
|
1439
|
+
/**
|
|
1440
|
+
* AnyStruct
|
|
1441
|
+
*
|
|
1442
|
+
*/
|
|
1443
|
+
STRUCT: 1,
|
|
1444
|
+
/**
|
|
1445
|
+
* AnyList
|
|
1446
|
+
*
|
|
1447
|
+
*/
|
|
1448
|
+
LIST: 2,
|
|
1449
|
+
/**
|
|
1450
|
+
* Capability
|
|
1451
|
+
*
|
|
1452
|
+
*/
|
|
1453
|
+
CAPABILITY: 3
|
|
1454
|
+
};
|
|
1455
|
+
var Type_AnyPointer_Unconstrained = class extends Struct {
|
|
1456
|
+
static {
|
|
1457
|
+
__name(this, "Type_AnyPointer_Unconstrained");
|
|
1458
|
+
}
|
|
1459
|
+
static ANY_KIND = Type_AnyPointer_Unconstrained_Which.ANY_KIND;
|
|
1460
|
+
static STRUCT = Type_AnyPointer_Unconstrained_Which.STRUCT;
|
|
1461
|
+
static LIST = Type_AnyPointer_Unconstrained_Which.LIST;
|
|
1462
|
+
static CAPABILITY = Type_AnyPointer_Unconstrained_Which.CAPABILITY;
|
|
1463
|
+
static _capnp = {
|
|
1464
|
+
displayName: "unconstrained",
|
|
1465
|
+
id: "8e3b5f79fe593656",
|
|
1466
|
+
size: new ObjectSize(24, 1)
|
|
1467
|
+
};
|
|
1468
|
+
get _isAnyKind() {
|
|
1469
|
+
return utils.getUint16(10, this) === 0;
|
|
1470
|
+
}
|
|
1471
|
+
set anyKind(_) {
|
|
1472
|
+
utils.setUint16(10, 0, this);
|
|
1473
|
+
}
|
|
1474
|
+
get _isStruct() {
|
|
1475
|
+
return utils.getUint16(10, this) === 1;
|
|
1476
|
+
}
|
|
1477
|
+
set struct(_) {
|
|
1478
|
+
utils.setUint16(10, 1, this);
|
|
1479
|
+
}
|
|
1480
|
+
get _isList() {
|
|
1481
|
+
return utils.getUint16(10, this) === 2;
|
|
1482
|
+
}
|
|
1483
|
+
set list(_) {
|
|
1484
|
+
utils.setUint16(10, 2, this);
|
|
1485
|
+
}
|
|
1486
|
+
get _isCapability() {
|
|
1487
|
+
return utils.getUint16(10, this) === 3;
|
|
1488
|
+
}
|
|
1489
|
+
set capability(_) {
|
|
1490
|
+
utils.setUint16(10, 3, this);
|
|
1491
|
+
}
|
|
1492
|
+
toString() {
|
|
1493
|
+
return "Type_AnyPointer_Unconstrained_" + super.toString();
|
|
1494
|
+
}
|
|
1495
|
+
which() {
|
|
1496
|
+
return utils.getUint16(10, this);
|
|
1497
|
+
}
|
|
1498
|
+
};
|
|
1499
|
+
var Type_AnyPointer_Parameter = class extends Struct {
|
|
1500
|
+
static {
|
|
1501
|
+
__name(this, "Type_AnyPointer_Parameter");
|
|
1502
|
+
}
|
|
1503
|
+
static _capnp = {
|
|
1504
|
+
displayName: "parameter",
|
|
1505
|
+
id: "9dd1f724f4614a85",
|
|
1506
|
+
size: new ObjectSize(24, 1)
|
|
1507
|
+
};
|
|
1508
|
+
/**
|
|
1509
|
+
* ID of the generic type whose parameter we're referencing. This should be a parent of the
|
|
1510
|
+
* current scope.
|
|
1511
|
+
*
|
|
1512
|
+
*/
|
|
1513
|
+
get scopeId() {
|
|
1514
|
+
return utils.getUint64(16, this);
|
|
1515
|
+
}
|
|
1516
|
+
set scopeId(value) {
|
|
1517
|
+
utils.setUint64(16, value, this);
|
|
1518
|
+
}
|
|
1519
|
+
/**
|
|
1520
|
+
* Index of the parameter within the generic type's parameter list.
|
|
1521
|
+
*
|
|
1522
|
+
*/
|
|
1523
|
+
get parameterIndex() {
|
|
1524
|
+
return utils.getUint16(10, this);
|
|
1525
|
+
}
|
|
1526
|
+
set parameterIndex(value) {
|
|
1527
|
+
utils.setUint16(10, value, this);
|
|
1528
|
+
}
|
|
1529
|
+
toString() {
|
|
1530
|
+
return "Type_AnyPointer_Parameter_" + super.toString();
|
|
1531
|
+
}
|
|
1532
|
+
};
|
|
1533
|
+
var Type_AnyPointer_ImplicitMethodParameter = class extends Struct {
|
|
1534
|
+
static {
|
|
1535
|
+
__name(this, "Type_AnyPointer_ImplicitMethodParameter");
|
|
1536
|
+
}
|
|
1537
|
+
static _capnp = {
|
|
1538
|
+
displayName: "implicitMethodParameter",
|
|
1539
|
+
id: "baefc9120c56e274",
|
|
1540
|
+
size: new ObjectSize(24, 1)
|
|
1541
|
+
};
|
|
1542
|
+
get parameterIndex() {
|
|
1543
|
+
return utils.getUint16(10, this);
|
|
1544
|
+
}
|
|
1545
|
+
set parameterIndex(value) {
|
|
1546
|
+
utils.setUint16(10, value, this);
|
|
1547
|
+
}
|
|
1548
|
+
toString() {
|
|
1549
|
+
return "Type_AnyPointer_ImplicitMethodParameter_" + super.toString();
|
|
1550
|
+
}
|
|
1551
|
+
};
|
|
1552
|
+
var Type_AnyPointer_Which = {
|
|
1553
|
+
/**
|
|
1554
|
+
* A regular AnyPointer.
|
|
1555
|
+
*
|
|
1556
|
+
* The name "unconstrained" means as opposed to constraining it to match a type parameter.
|
|
1557
|
+
* In retrospect this name is probably a poor choice given that it may still be constrained
|
|
1558
|
+
* to be a struct, list, or capability.
|
|
1559
|
+
*
|
|
1560
|
+
*/
|
|
1561
|
+
UNCONSTRAINED: 0,
|
|
1562
|
+
/**
|
|
1563
|
+
* This is actually a reference to a type parameter defined within this scope.
|
|
1564
|
+
*
|
|
1565
|
+
*/
|
|
1566
|
+
PARAMETER: 1,
|
|
1567
|
+
/**
|
|
1568
|
+
* This is actually a reference to an implicit (generic) parameter of a method. The only
|
|
1569
|
+
* legal context for this type to appear is inside Method.paramBrand or Method.resultBrand.
|
|
1570
|
+
*
|
|
1571
|
+
*/
|
|
1572
|
+
IMPLICIT_METHOD_PARAMETER: 2
|
|
1573
|
+
};
|
|
1574
|
+
var Type_AnyPointer = class extends Struct {
|
|
1575
|
+
static {
|
|
1576
|
+
__name(this, "Type_AnyPointer");
|
|
1577
|
+
}
|
|
1578
|
+
static UNCONSTRAINED = Type_AnyPointer_Which.UNCONSTRAINED;
|
|
1579
|
+
static PARAMETER = Type_AnyPointer_Which.PARAMETER;
|
|
1580
|
+
static IMPLICIT_METHOD_PARAMETER = Type_AnyPointer_Which.IMPLICIT_METHOD_PARAMETER;
|
|
1581
|
+
static _capnp = {
|
|
1582
|
+
displayName: "anyPointer",
|
|
1583
|
+
id: "c2573fe8a23e49f1",
|
|
1584
|
+
size: new ObjectSize(24, 1)
|
|
1585
|
+
};
|
|
1586
|
+
/**
|
|
1587
|
+
* A regular AnyPointer.
|
|
1588
|
+
*
|
|
1589
|
+
* The name "unconstrained" means as opposed to constraining it to match a type parameter.
|
|
1590
|
+
* In retrospect this name is probably a poor choice given that it may still be constrained
|
|
1591
|
+
* to be a struct, list, or capability.
|
|
1592
|
+
*
|
|
1593
|
+
*/
|
|
1594
|
+
get unconstrained() {
|
|
1595
|
+
utils.testWhich("unconstrained", utils.getUint16(8, this), 0, this);
|
|
1596
|
+
return utils.getAs(Type_AnyPointer_Unconstrained, this);
|
|
1597
|
+
}
|
|
1598
|
+
_initUnconstrained() {
|
|
1599
|
+
utils.setUint16(8, 0, this);
|
|
1600
|
+
return utils.getAs(Type_AnyPointer_Unconstrained, this);
|
|
1601
|
+
}
|
|
1602
|
+
get _isUnconstrained() {
|
|
1603
|
+
return utils.getUint16(8, this) === 0;
|
|
1604
|
+
}
|
|
1605
|
+
set unconstrained(_) {
|
|
1606
|
+
utils.setUint16(8, 0, this);
|
|
1607
|
+
}
|
|
1608
|
+
/**
|
|
1609
|
+
* This is actually a reference to a type parameter defined within this scope.
|
|
1610
|
+
*
|
|
1611
|
+
*/
|
|
1612
|
+
get parameter() {
|
|
1613
|
+
utils.testWhich("parameter", utils.getUint16(8, this), 1, this);
|
|
1614
|
+
return utils.getAs(Type_AnyPointer_Parameter, this);
|
|
1615
|
+
}
|
|
1616
|
+
_initParameter() {
|
|
1617
|
+
utils.setUint16(8, 1, this);
|
|
1618
|
+
return utils.getAs(Type_AnyPointer_Parameter, this);
|
|
1619
|
+
}
|
|
1620
|
+
get _isParameter() {
|
|
1621
|
+
return utils.getUint16(8, this) === 1;
|
|
1622
|
+
}
|
|
1623
|
+
set parameter(_) {
|
|
1624
|
+
utils.setUint16(8, 1, this);
|
|
1625
|
+
}
|
|
1626
|
+
/**
|
|
1627
|
+
* This is actually a reference to an implicit (generic) parameter of a method. The only
|
|
1628
|
+
* legal context for this type to appear is inside Method.paramBrand or Method.resultBrand.
|
|
1629
|
+
*
|
|
1630
|
+
*/
|
|
1631
|
+
get implicitMethodParameter() {
|
|
1632
|
+
utils.testWhich("implicitMethodParameter", utils.getUint16(8, this), 2, this);
|
|
1633
|
+
return utils.getAs(Type_AnyPointer_ImplicitMethodParameter, this);
|
|
1634
|
+
}
|
|
1635
|
+
_initImplicitMethodParameter() {
|
|
1636
|
+
utils.setUint16(8, 2, this);
|
|
1637
|
+
return utils.getAs(Type_AnyPointer_ImplicitMethodParameter, this);
|
|
1638
|
+
}
|
|
1639
|
+
get _isImplicitMethodParameter() {
|
|
1640
|
+
return utils.getUint16(8, this) === 2;
|
|
1641
|
+
}
|
|
1642
|
+
set implicitMethodParameter(_) {
|
|
1643
|
+
utils.setUint16(8, 2, this);
|
|
1644
|
+
}
|
|
1645
|
+
toString() {
|
|
1646
|
+
return "Type_AnyPointer_" + super.toString();
|
|
1647
|
+
}
|
|
1648
|
+
which() {
|
|
1649
|
+
return utils.getUint16(8, this);
|
|
1650
|
+
}
|
|
1651
|
+
};
|
|
1652
|
+
var Type_Which = {
|
|
1653
|
+
VOID: 0,
|
|
1654
|
+
BOOL: 1,
|
|
1655
|
+
INT8: 2,
|
|
1656
|
+
INT16: 3,
|
|
1657
|
+
INT32: 4,
|
|
1658
|
+
INT64: 5,
|
|
1659
|
+
UINT8: 6,
|
|
1660
|
+
UINT16: 7,
|
|
1661
|
+
UINT32: 8,
|
|
1662
|
+
UINT64: 9,
|
|
1663
|
+
FLOAT32: 10,
|
|
1664
|
+
FLOAT64: 11,
|
|
1665
|
+
TEXT: 12,
|
|
1666
|
+
DATA: 13,
|
|
1667
|
+
LIST: 14,
|
|
1668
|
+
ENUM: 15,
|
|
1669
|
+
STRUCT: 16,
|
|
1670
|
+
INTERFACE: 17,
|
|
1671
|
+
ANY_POINTER: 18
|
|
1672
|
+
};
|
|
1673
|
+
var Type = class extends Struct {
|
|
1674
|
+
static {
|
|
1675
|
+
__name(this, "Type");
|
|
1676
|
+
}
|
|
1677
|
+
static VOID = Type_Which.VOID;
|
|
1678
|
+
static BOOL = Type_Which.BOOL;
|
|
1679
|
+
static INT8 = Type_Which.INT8;
|
|
1680
|
+
static INT16 = Type_Which.INT16;
|
|
1681
|
+
static INT32 = Type_Which.INT32;
|
|
1682
|
+
static INT64 = Type_Which.INT64;
|
|
1683
|
+
static UINT8 = Type_Which.UINT8;
|
|
1684
|
+
static UINT16 = Type_Which.UINT16;
|
|
1685
|
+
static UINT32 = Type_Which.UINT32;
|
|
1686
|
+
static UINT64 = Type_Which.UINT64;
|
|
1687
|
+
static FLOAT32 = Type_Which.FLOAT32;
|
|
1688
|
+
static FLOAT64 = Type_Which.FLOAT64;
|
|
1689
|
+
static TEXT = Type_Which.TEXT;
|
|
1690
|
+
static DATA = Type_Which.DATA;
|
|
1691
|
+
static LIST = Type_Which.LIST;
|
|
1692
|
+
static ENUM = Type_Which.ENUM;
|
|
1693
|
+
static STRUCT = Type_Which.STRUCT;
|
|
1694
|
+
static INTERFACE = Type_Which.INTERFACE;
|
|
1695
|
+
static ANY_POINTER = Type_Which.ANY_POINTER;
|
|
1696
|
+
static _capnp = {
|
|
1697
|
+
displayName: "Type",
|
|
1698
|
+
id: "d07378ede1f9cc60",
|
|
1699
|
+
size: new ObjectSize(24, 1)
|
|
1700
|
+
};
|
|
1701
|
+
get _isVoid() {
|
|
1702
|
+
return utils.getUint16(0, this) === 0;
|
|
1703
|
+
}
|
|
1704
|
+
set void(_) {
|
|
1705
|
+
utils.setUint16(0, 0, this);
|
|
1706
|
+
}
|
|
1707
|
+
get _isBool() {
|
|
1708
|
+
return utils.getUint16(0, this) === 1;
|
|
1709
|
+
}
|
|
1710
|
+
set bool(_) {
|
|
1711
|
+
utils.setUint16(0, 1, this);
|
|
1712
|
+
}
|
|
1713
|
+
get _isInt8() {
|
|
1714
|
+
return utils.getUint16(0, this) === 2;
|
|
1715
|
+
}
|
|
1716
|
+
set int8(_) {
|
|
1717
|
+
utils.setUint16(0, 2, this);
|
|
1718
|
+
}
|
|
1719
|
+
get _isInt16() {
|
|
1720
|
+
return utils.getUint16(0, this) === 3;
|
|
1721
|
+
}
|
|
1722
|
+
set int16(_) {
|
|
1723
|
+
utils.setUint16(0, 3, this);
|
|
1724
|
+
}
|
|
1725
|
+
get _isInt32() {
|
|
1726
|
+
return utils.getUint16(0, this) === 4;
|
|
1727
|
+
}
|
|
1728
|
+
set int32(_) {
|
|
1729
|
+
utils.setUint16(0, 4, this);
|
|
1730
|
+
}
|
|
1731
|
+
get _isInt64() {
|
|
1732
|
+
return utils.getUint16(0, this) === 5;
|
|
1733
|
+
}
|
|
1734
|
+
set int64(_) {
|
|
1735
|
+
utils.setUint16(0, 5, this);
|
|
1736
|
+
}
|
|
1737
|
+
get _isUint8() {
|
|
1738
|
+
return utils.getUint16(0, this) === 6;
|
|
1739
|
+
}
|
|
1740
|
+
set uint8(_) {
|
|
1741
|
+
utils.setUint16(0, 6, this);
|
|
1742
|
+
}
|
|
1743
|
+
get _isUint16() {
|
|
1744
|
+
return utils.getUint16(0, this) === 7;
|
|
1745
|
+
}
|
|
1746
|
+
set uint16(_) {
|
|
1747
|
+
utils.setUint16(0, 7, this);
|
|
1748
|
+
}
|
|
1749
|
+
get _isUint32() {
|
|
1750
|
+
return utils.getUint16(0, this) === 8;
|
|
1751
|
+
}
|
|
1752
|
+
set uint32(_) {
|
|
1753
|
+
utils.setUint16(0, 8, this);
|
|
1754
|
+
}
|
|
1755
|
+
get _isUint64() {
|
|
1756
|
+
return utils.getUint16(0, this) === 9;
|
|
1757
|
+
}
|
|
1758
|
+
set uint64(_) {
|
|
1759
|
+
utils.setUint16(0, 9, this);
|
|
1760
|
+
}
|
|
1761
|
+
get _isFloat32() {
|
|
1762
|
+
return utils.getUint16(0, this) === 10;
|
|
1763
|
+
}
|
|
1764
|
+
set float32(_) {
|
|
1765
|
+
utils.setUint16(0, 10, this);
|
|
1766
|
+
}
|
|
1767
|
+
get _isFloat64() {
|
|
1768
|
+
return utils.getUint16(0, this) === 11;
|
|
1769
|
+
}
|
|
1770
|
+
set float64(_) {
|
|
1771
|
+
utils.setUint16(0, 11, this);
|
|
1772
|
+
}
|
|
1773
|
+
get _isText() {
|
|
1774
|
+
return utils.getUint16(0, this) === 12;
|
|
1775
|
+
}
|
|
1776
|
+
set text(_) {
|
|
1777
|
+
utils.setUint16(0, 12, this);
|
|
1778
|
+
}
|
|
1779
|
+
get _isData() {
|
|
1780
|
+
return utils.getUint16(0, this) === 13;
|
|
1781
|
+
}
|
|
1782
|
+
set data(_) {
|
|
1783
|
+
utils.setUint16(0, 13, this);
|
|
1784
|
+
}
|
|
1785
|
+
get list() {
|
|
1786
|
+
utils.testWhich("list", utils.getUint16(0, this), 14, this);
|
|
1787
|
+
return utils.getAs(Type_List, this);
|
|
1788
|
+
}
|
|
1789
|
+
_initList() {
|
|
1790
|
+
utils.setUint16(0, 14, this);
|
|
1791
|
+
return utils.getAs(Type_List, this);
|
|
1792
|
+
}
|
|
1793
|
+
get _isList() {
|
|
1794
|
+
return utils.getUint16(0, this) === 14;
|
|
1795
|
+
}
|
|
1796
|
+
set list(_) {
|
|
1797
|
+
utils.setUint16(0, 14, this);
|
|
1798
|
+
}
|
|
1799
|
+
get enum() {
|
|
1800
|
+
utils.testWhich("enum", utils.getUint16(0, this), 15, this);
|
|
1801
|
+
return utils.getAs(Type_Enum, this);
|
|
1802
|
+
}
|
|
1803
|
+
_initEnum() {
|
|
1804
|
+
utils.setUint16(0, 15, this);
|
|
1805
|
+
return utils.getAs(Type_Enum, this);
|
|
1806
|
+
}
|
|
1807
|
+
get _isEnum() {
|
|
1808
|
+
return utils.getUint16(0, this) === 15;
|
|
1809
|
+
}
|
|
1810
|
+
set enum(_) {
|
|
1811
|
+
utils.setUint16(0, 15, this);
|
|
1812
|
+
}
|
|
1813
|
+
get struct() {
|
|
1814
|
+
utils.testWhich("struct", utils.getUint16(0, this), 16, this);
|
|
1815
|
+
return utils.getAs(Type_Struct, this);
|
|
1816
|
+
}
|
|
1817
|
+
_initStruct() {
|
|
1818
|
+
utils.setUint16(0, 16, this);
|
|
1819
|
+
return utils.getAs(Type_Struct, this);
|
|
1820
|
+
}
|
|
1821
|
+
get _isStruct() {
|
|
1822
|
+
return utils.getUint16(0, this) === 16;
|
|
1823
|
+
}
|
|
1824
|
+
set struct(_) {
|
|
1825
|
+
utils.setUint16(0, 16, this);
|
|
1826
|
+
}
|
|
1827
|
+
get interface() {
|
|
1828
|
+
utils.testWhich("interface", utils.getUint16(0, this), 17, this);
|
|
1829
|
+
return utils.getAs(Type_Interface, this);
|
|
1830
|
+
}
|
|
1831
|
+
_initInterface() {
|
|
1832
|
+
utils.setUint16(0, 17, this);
|
|
1833
|
+
return utils.getAs(Type_Interface, this);
|
|
1834
|
+
}
|
|
1835
|
+
get _isInterface() {
|
|
1836
|
+
return utils.getUint16(0, this) === 17;
|
|
1837
|
+
}
|
|
1838
|
+
set interface(_) {
|
|
1839
|
+
utils.setUint16(0, 17, this);
|
|
1840
|
+
}
|
|
1841
|
+
get anyPointer() {
|
|
1842
|
+
utils.testWhich("anyPointer", utils.getUint16(0, this), 18, this);
|
|
1843
|
+
return utils.getAs(Type_AnyPointer, this);
|
|
1844
|
+
}
|
|
1845
|
+
_initAnyPointer() {
|
|
1846
|
+
utils.setUint16(0, 18, this);
|
|
1847
|
+
return utils.getAs(Type_AnyPointer, this);
|
|
1848
|
+
}
|
|
1849
|
+
get _isAnyPointer() {
|
|
1850
|
+
return utils.getUint16(0, this) === 18;
|
|
1851
|
+
}
|
|
1852
|
+
set anyPointer(_) {
|
|
1853
|
+
utils.setUint16(0, 18, this);
|
|
1854
|
+
}
|
|
1855
|
+
toString() {
|
|
1856
|
+
return "Type_" + super.toString();
|
|
1857
|
+
}
|
|
1858
|
+
which() {
|
|
1859
|
+
return utils.getUint16(0, this);
|
|
1860
|
+
}
|
|
1861
|
+
};
|
|
1862
|
+
var Brand_Scope_Which = {
|
|
1863
|
+
/**
|
|
1864
|
+
* ID of the scope to which these params apply.
|
|
1865
|
+
*
|
|
1866
|
+
*/
|
|
1867
|
+
BIND: 0,
|
|
1868
|
+
/**
|
|
1869
|
+
* List of parameter bindings.
|
|
1870
|
+
*
|
|
1871
|
+
*/
|
|
1872
|
+
INHERIT: 1
|
|
1873
|
+
};
|
|
1874
|
+
var Brand_Scope = class _Brand_Scope extends Struct {
|
|
1875
|
+
static {
|
|
1876
|
+
__name(this, "Brand_Scope");
|
|
1877
|
+
}
|
|
1878
|
+
static BIND = Brand_Scope_Which.BIND;
|
|
1879
|
+
static INHERIT = Brand_Scope_Which.INHERIT;
|
|
1880
|
+
static _capnp = {
|
|
1881
|
+
displayName: "Scope",
|
|
1882
|
+
id: "abd73485a9636bc9",
|
|
1883
|
+
size: new ObjectSize(16, 1)
|
|
1884
|
+
};
|
|
1885
|
+
static _Bind;
|
|
1886
|
+
/**
|
|
1887
|
+
* ID of the scope to which these params apply.
|
|
1888
|
+
*
|
|
1889
|
+
*/
|
|
1890
|
+
get scopeId() {
|
|
1891
|
+
return utils.getUint64(0, this);
|
|
1892
|
+
}
|
|
1893
|
+
set scopeId(value) {
|
|
1894
|
+
utils.setUint64(0, value, this);
|
|
1895
|
+
}
|
|
1896
|
+
_adoptBind(value) {
|
|
1897
|
+
utils.setUint16(8, 0, this);
|
|
1898
|
+
utils.adopt(value, utils.getPointer(0, this));
|
|
1899
|
+
}
|
|
1900
|
+
_disownBind() {
|
|
1901
|
+
return utils.disown(this.bind);
|
|
1902
|
+
}
|
|
1903
|
+
/**
|
|
1904
|
+
* List of parameter bindings.
|
|
1905
|
+
*
|
|
1906
|
+
*/
|
|
1907
|
+
get bind() {
|
|
1908
|
+
utils.testWhich("bind", utils.getUint16(8, this), 0, this);
|
|
1909
|
+
return utils.getList(0, _Brand_Scope._Bind, this);
|
|
1910
|
+
}
|
|
1911
|
+
_hasBind() {
|
|
1912
|
+
return !utils.isNull(utils.getPointer(0, this));
|
|
1913
|
+
}
|
|
1914
|
+
_initBind(length) {
|
|
1915
|
+
utils.setUint16(8, 0, this);
|
|
1916
|
+
return utils.initList(0, _Brand_Scope._Bind, length, this);
|
|
1917
|
+
}
|
|
1918
|
+
get _isBind() {
|
|
1919
|
+
return utils.getUint16(8, this) === 0;
|
|
1920
|
+
}
|
|
1921
|
+
set bind(value) {
|
|
1922
|
+
utils.setUint16(8, 0, this);
|
|
1923
|
+
utils.copyFrom(value, utils.getPointer(0, this));
|
|
1924
|
+
}
|
|
1925
|
+
get _isInherit() {
|
|
1926
|
+
return utils.getUint16(8, this) === 1;
|
|
1927
|
+
}
|
|
1928
|
+
set inherit(_) {
|
|
1929
|
+
utils.setUint16(8, 1, this);
|
|
1930
|
+
}
|
|
1931
|
+
toString() {
|
|
1932
|
+
return "Brand_Scope_" + super.toString();
|
|
1933
|
+
}
|
|
1934
|
+
which() {
|
|
1935
|
+
return utils.getUint16(8, this);
|
|
1936
|
+
}
|
|
1937
|
+
};
|
|
1938
|
+
var Brand_Binding_Which = {
|
|
1939
|
+
UNBOUND: 0,
|
|
1940
|
+
TYPE: 1
|
|
1941
|
+
};
|
|
1942
|
+
var Brand_Binding = class extends Struct {
|
|
1943
|
+
static {
|
|
1944
|
+
__name(this, "Brand_Binding");
|
|
1945
|
+
}
|
|
1946
|
+
static UNBOUND = Brand_Binding_Which.UNBOUND;
|
|
1947
|
+
static TYPE = Brand_Binding_Which.TYPE;
|
|
1948
|
+
static _capnp = {
|
|
1949
|
+
displayName: "Binding",
|
|
1950
|
+
id: "c863cd16969ee7fc",
|
|
1951
|
+
size: new ObjectSize(8, 1)
|
|
1952
|
+
};
|
|
1953
|
+
get _isUnbound() {
|
|
1954
|
+
return utils.getUint16(0, this) === 0;
|
|
1955
|
+
}
|
|
1956
|
+
set unbound(_) {
|
|
1957
|
+
utils.setUint16(0, 0, this);
|
|
1958
|
+
}
|
|
1959
|
+
_adoptType(value) {
|
|
1960
|
+
utils.setUint16(0, 1, this);
|
|
1961
|
+
utils.adopt(value, utils.getPointer(0, this));
|
|
1962
|
+
}
|
|
1963
|
+
_disownType() {
|
|
1964
|
+
return utils.disown(this.type);
|
|
1965
|
+
}
|
|
1966
|
+
get type() {
|
|
1967
|
+
utils.testWhich("type", utils.getUint16(0, this), 1, this);
|
|
1968
|
+
return utils.getStruct(0, Type, this);
|
|
1969
|
+
}
|
|
1970
|
+
_hasType() {
|
|
1971
|
+
return !utils.isNull(utils.getPointer(0, this));
|
|
1972
|
+
}
|
|
1973
|
+
_initType() {
|
|
1974
|
+
utils.setUint16(0, 1, this);
|
|
1975
|
+
return utils.initStructAt(0, Type, this);
|
|
1976
|
+
}
|
|
1977
|
+
get _isType() {
|
|
1978
|
+
return utils.getUint16(0, this) === 1;
|
|
1979
|
+
}
|
|
1980
|
+
set type(value) {
|
|
1981
|
+
utils.setUint16(0, 1, this);
|
|
1982
|
+
utils.copyFrom(value, utils.getPointer(0, this));
|
|
1983
|
+
}
|
|
1984
|
+
toString() {
|
|
1985
|
+
return "Brand_Binding_" + super.toString();
|
|
1986
|
+
}
|
|
1987
|
+
which() {
|
|
1988
|
+
return utils.getUint16(0, this);
|
|
1989
|
+
}
|
|
1990
|
+
};
|
|
1991
|
+
var Brand = class _Brand extends Struct {
|
|
1992
|
+
static {
|
|
1993
|
+
__name(this, "Brand");
|
|
1994
|
+
}
|
|
1995
|
+
static Scope = Brand_Scope;
|
|
1996
|
+
static Binding = Brand_Binding;
|
|
1997
|
+
static _capnp = {
|
|
1998
|
+
displayName: "Brand",
|
|
1999
|
+
id: "903455f06065422b",
|
|
2000
|
+
size: new ObjectSize(0, 1)
|
|
2001
|
+
};
|
|
2002
|
+
static _Scopes;
|
|
2003
|
+
_adoptScopes(value) {
|
|
2004
|
+
utils.adopt(value, utils.getPointer(0, this));
|
|
2005
|
+
}
|
|
2006
|
+
_disownScopes() {
|
|
2007
|
+
return utils.disown(this.scopes);
|
|
2008
|
+
}
|
|
2009
|
+
/**
|
|
2010
|
+
* For each of the target type and each of its parent scopes, a parameterization may be included
|
|
2011
|
+
* in this list. If no parameterization is included for a particular relevant scope, then either
|
|
2012
|
+
* that scope has no parameters or all parameters should be considered to be `AnyPointer`.
|
|
2013
|
+
*
|
|
2014
|
+
*/
|
|
2015
|
+
get scopes() {
|
|
2016
|
+
return utils.getList(0, _Brand._Scopes, this);
|
|
2017
|
+
}
|
|
2018
|
+
_hasScopes() {
|
|
2019
|
+
return !utils.isNull(utils.getPointer(0, this));
|
|
2020
|
+
}
|
|
2021
|
+
_initScopes(length) {
|
|
2022
|
+
return utils.initList(0, _Brand._Scopes, length, this);
|
|
2023
|
+
}
|
|
2024
|
+
set scopes(value) {
|
|
2025
|
+
utils.copyFrom(value, utils.getPointer(0, this));
|
|
2026
|
+
}
|
|
2027
|
+
toString() {
|
|
2028
|
+
return "Brand_" + super.toString();
|
|
2029
|
+
}
|
|
2030
|
+
};
|
|
2031
|
+
var Value_Which = {
|
|
2032
|
+
VOID: 0,
|
|
2033
|
+
BOOL: 1,
|
|
2034
|
+
INT8: 2,
|
|
2035
|
+
INT16: 3,
|
|
2036
|
+
INT32: 4,
|
|
2037
|
+
INT64: 5,
|
|
2038
|
+
UINT8: 6,
|
|
2039
|
+
UINT16: 7,
|
|
2040
|
+
UINT32: 8,
|
|
2041
|
+
UINT64: 9,
|
|
2042
|
+
FLOAT32: 10,
|
|
2043
|
+
FLOAT64: 11,
|
|
2044
|
+
TEXT: 12,
|
|
2045
|
+
DATA: 13,
|
|
2046
|
+
LIST: 14,
|
|
2047
|
+
ENUM: 15,
|
|
2048
|
+
STRUCT: 16,
|
|
2049
|
+
/**
|
|
2050
|
+
* The only interface value that can be represented statically is "null", whose methods always
|
|
2051
|
+
* throw exceptions.
|
|
2052
|
+
*
|
|
2053
|
+
*/
|
|
2054
|
+
INTERFACE: 17,
|
|
2055
|
+
ANY_POINTER: 18
|
|
2056
|
+
};
|
|
2057
|
+
var Value = class extends Struct {
|
|
2058
|
+
static {
|
|
2059
|
+
__name(this, "Value");
|
|
2060
|
+
}
|
|
2061
|
+
static VOID = Value_Which.VOID;
|
|
2062
|
+
static BOOL = Value_Which.BOOL;
|
|
2063
|
+
static INT8 = Value_Which.INT8;
|
|
2064
|
+
static INT16 = Value_Which.INT16;
|
|
2065
|
+
static INT32 = Value_Which.INT32;
|
|
2066
|
+
static INT64 = Value_Which.INT64;
|
|
2067
|
+
static UINT8 = Value_Which.UINT8;
|
|
2068
|
+
static UINT16 = Value_Which.UINT16;
|
|
2069
|
+
static UINT32 = Value_Which.UINT32;
|
|
2070
|
+
static UINT64 = Value_Which.UINT64;
|
|
2071
|
+
static FLOAT32 = Value_Which.FLOAT32;
|
|
2072
|
+
static FLOAT64 = Value_Which.FLOAT64;
|
|
2073
|
+
static TEXT = Value_Which.TEXT;
|
|
2074
|
+
static DATA = Value_Which.DATA;
|
|
2075
|
+
static LIST = Value_Which.LIST;
|
|
2076
|
+
static ENUM = Value_Which.ENUM;
|
|
2077
|
+
static STRUCT = Value_Which.STRUCT;
|
|
2078
|
+
static INTERFACE = Value_Which.INTERFACE;
|
|
2079
|
+
static ANY_POINTER = Value_Which.ANY_POINTER;
|
|
2080
|
+
static _capnp = {
|
|
2081
|
+
displayName: "Value",
|
|
2082
|
+
id: "ce23dcd2d7b00c9b",
|
|
2083
|
+
size: new ObjectSize(16, 1)
|
|
2084
|
+
};
|
|
2085
|
+
get _isVoid() {
|
|
2086
|
+
return utils.getUint16(0, this) === 0;
|
|
2087
|
+
}
|
|
2088
|
+
set void(_) {
|
|
2089
|
+
utils.setUint16(0, 0, this);
|
|
2090
|
+
}
|
|
2091
|
+
get bool() {
|
|
2092
|
+
utils.testWhich("bool", utils.getUint16(0, this), 1, this);
|
|
2093
|
+
return utils.getBit(16, this);
|
|
2094
|
+
}
|
|
2095
|
+
get _isBool() {
|
|
2096
|
+
return utils.getUint16(0, this) === 1;
|
|
2097
|
+
}
|
|
2098
|
+
set bool(value) {
|
|
2099
|
+
utils.setUint16(0, 1, this);
|
|
2100
|
+
utils.setBit(16, value, this);
|
|
2101
|
+
}
|
|
2102
|
+
get int8() {
|
|
2103
|
+
utils.testWhich("int8", utils.getUint16(0, this), 2, this);
|
|
2104
|
+
return utils.getInt8(2, this);
|
|
2105
|
+
}
|
|
2106
|
+
get _isInt8() {
|
|
2107
|
+
return utils.getUint16(0, this) === 2;
|
|
2108
|
+
}
|
|
2109
|
+
set int8(value) {
|
|
2110
|
+
utils.setUint16(0, 2, this);
|
|
2111
|
+
utils.setInt8(2, value, this);
|
|
2112
|
+
}
|
|
2113
|
+
get int16() {
|
|
2114
|
+
utils.testWhich("int16", utils.getUint16(0, this), 3, this);
|
|
2115
|
+
return utils.getInt16(2, this);
|
|
2116
|
+
}
|
|
2117
|
+
get _isInt16() {
|
|
2118
|
+
return utils.getUint16(0, this) === 3;
|
|
2119
|
+
}
|
|
2120
|
+
set int16(value) {
|
|
2121
|
+
utils.setUint16(0, 3, this);
|
|
2122
|
+
utils.setInt16(2, value, this);
|
|
2123
|
+
}
|
|
2124
|
+
get int32() {
|
|
2125
|
+
utils.testWhich("int32", utils.getUint16(0, this), 4, this);
|
|
2126
|
+
return utils.getInt32(4, this);
|
|
2127
|
+
}
|
|
2128
|
+
get _isInt32() {
|
|
2129
|
+
return utils.getUint16(0, this) === 4;
|
|
2130
|
+
}
|
|
2131
|
+
set int32(value) {
|
|
2132
|
+
utils.setUint16(0, 4, this);
|
|
2133
|
+
utils.setInt32(4, value, this);
|
|
2134
|
+
}
|
|
2135
|
+
get int64() {
|
|
2136
|
+
utils.testWhich("int64", utils.getUint16(0, this), 5, this);
|
|
2137
|
+
return utils.getInt64(8, this);
|
|
2138
|
+
}
|
|
2139
|
+
get _isInt64() {
|
|
2140
|
+
return utils.getUint16(0, this) === 5;
|
|
2141
|
+
}
|
|
2142
|
+
set int64(value) {
|
|
2143
|
+
utils.setUint16(0, 5, this);
|
|
2144
|
+
utils.setInt64(8, value, this);
|
|
2145
|
+
}
|
|
2146
|
+
get uint8() {
|
|
2147
|
+
utils.testWhich("uint8", utils.getUint16(0, this), 6, this);
|
|
2148
|
+
return utils.getUint8(2, this);
|
|
2149
|
+
}
|
|
2150
|
+
get _isUint8() {
|
|
2151
|
+
return utils.getUint16(0, this) === 6;
|
|
2152
|
+
}
|
|
2153
|
+
set uint8(value) {
|
|
2154
|
+
utils.setUint16(0, 6, this);
|
|
2155
|
+
utils.setUint8(2, value, this);
|
|
2156
|
+
}
|
|
2157
|
+
get uint16() {
|
|
2158
|
+
utils.testWhich("uint16", utils.getUint16(0, this), 7, this);
|
|
2159
|
+
return utils.getUint16(2, this);
|
|
2160
|
+
}
|
|
2161
|
+
get _isUint16() {
|
|
2162
|
+
return utils.getUint16(0, this) === 7;
|
|
2163
|
+
}
|
|
2164
|
+
set uint16(value) {
|
|
2165
|
+
utils.setUint16(0, 7, this);
|
|
2166
|
+
utils.setUint16(2, value, this);
|
|
2167
|
+
}
|
|
2168
|
+
get uint32() {
|
|
2169
|
+
utils.testWhich("uint32", utils.getUint16(0, this), 8, this);
|
|
2170
|
+
return utils.getUint32(4, this);
|
|
2171
|
+
}
|
|
2172
|
+
get _isUint32() {
|
|
2173
|
+
return utils.getUint16(0, this) === 8;
|
|
2174
|
+
}
|
|
2175
|
+
set uint32(value) {
|
|
2176
|
+
utils.setUint16(0, 8, this);
|
|
2177
|
+
utils.setUint32(4, value, this);
|
|
2178
|
+
}
|
|
2179
|
+
get uint64() {
|
|
2180
|
+
utils.testWhich("uint64", utils.getUint16(0, this), 9, this);
|
|
2181
|
+
return utils.getUint64(8, this);
|
|
2182
|
+
}
|
|
2183
|
+
get _isUint64() {
|
|
2184
|
+
return utils.getUint16(0, this) === 9;
|
|
2185
|
+
}
|
|
2186
|
+
set uint64(value) {
|
|
2187
|
+
utils.setUint16(0, 9, this);
|
|
2188
|
+
utils.setUint64(8, value, this);
|
|
2189
|
+
}
|
|
2190
|
+
get float32() {
|
|
2191
|
+
utils.testWhich("float32", utils.getUint16(0, this), 10, this);
|
|
2192
|
+
return utils.getFloat32(4, this);
|
|
2193
|
+
}
|
|
2194
|
+
get _isFloat32() {
|
|
2195
|
+
return utils.getUint16(0, this) === 10;
|
|
2196
|
+
}
|
|
2197
|
+
set float32(value) {
|
|
2198
|
+
utils.setUint16(0, 10, this);
|
|
2199
|
+
utils.setFloat32(4, value, this);
|
|
2200
|
+
}
|
|
2201
|
+
get float64() {
|
|
2202
|
+
utils.testWhich("float64", utils.getUint16(0, this), 11, this);
|
|
2203
|
+
return utils.getFloat64(8, this);
|
|
2204
|
+
}
|
|
2205
|
+
get _isFloat64() {
|
|
2206
|
+
return utils.getUint16(0, this) === 11;
|
|
2207
|
+
}
|
|
2208
|
+
set float64(value) {
|
|
2209
|
+
utils.setUint16(0, 11, this);
|
|
2210
|
+
utils.setFloat64(8, value, this);
|
|
2211
|
+
}
|
|
2212
|
+
get text() {
|
|
2213
|
+
utils.testWhich("text", utils.getUint16(0, this), 12, this);
|
|
2214
|
+
return utils.getText(0, this);
|
|
2215
|
+
}
|
|
2216
|
+
get _isText() {
|
|
2217
|
+
return utils.getUint16(0, this) === 12;
|
|
2218
|
+
}
|
|
2219
|
+
set text(value) {
|
|
2220
|
+
utils.setUint16(0, 12, this);
|
|
2221
|
+
utils.setText(0, value, this);
|
|
2222
|
+
}
|
|
2223
|
+
_adoptData(value) {
|
|
2224
|
+
utils.setUint16(0, 13, this);
|
|
2225
|
+
utils.adopt(value, utils.getPointer(0, this));
|
|
2226
|
+
}
|
|
2227
|
+
_disownData() {
|
|
2228
|
+
return utils.disown(this.data);
|
|
2229
|
+
}
|
|
2230
|
+
get data() {
|
|
2231
|
+
utils.testWhich("data", utils.getUint16(0, this), 13, this);
|
|
2232
|
+
return utils.getData(0, this);
|
|
2233
|
+
}
|
|
2234
|
+
_hasData() {
|
|
2235
|
+
return !utils.isNull(utils.getPointer(0, this));
|
|
2236
|
+
}
|
|
2237
|
+
_initData(length) {
|
|
2238
|
+
utils.setUint16(0, 13, this);
|
|
2239
|
+
return utils.initData(0, length, this);
|
|
2240
|
+
}
|
|
2241
|
+
get _isData() {
|
|
2242
|
+
return utils.getUint16(0, this) === 13;
|
|
2243
|
+
}
|
|
2244
|
+
set data(value) {
|
|
2245
|
+
utils.setUint16(0, 13, this);
|
|
2246
|
+
utils.copyFrom(value, utils.getPointer(0, this));
|
|
2247
|
+
}
|
|
2248
|
+
_adoptList(value) {
|
|
2249
|
+
utils.setUint16(0, 14, this);
|
|
2250
|
+
utils.adopt(value, utils.getPointer(0, this));
|
|
2251
|
+
}
|
|
2252
|
+
_disownList() {
|
|
2253
|
+
return utils.disown(this.list);
|
|
2254
|
+
}
|
|
2255
|
+
get list() {
|
|
2256
|
+
utils.testWhich("list", utils.getUint16(0, this), 14, this);
|
|
2257
|
+
return utils.getPointer(0, this);
|
|
2258
|
+
}
|
|
2259
|
+
_hasList() {
|
|
2260
|
+
return !utils.isNull(utils.getPointer(0, this));
|
|
2261
|
+
}
|
|
2262
|
+
get _isList() {
|
|
2263
|
+
return utils.getUint16(0, this) === 14;
|
|
2264
|
+
}
|
|
2265
|
+
set list(value) {
|
|
2266
|
+
utils.setUint16(0, 14, this);
|
|
2267
|
+
utils.copyFrom(value, utils.getPointer(0, this));
|
|
2268
|
+
}
|
|
2269
|
+
get enum() {
|
|
2270
|
+
utils.testWhich("enum", utils.getUint16(0, this), 15, this);
|
|
2271
|
+
return utils.getUint16(2, this);
|
|
2272
|
+
}
|
|
2273
|
+
get _isEnum() {
|
|
2274
|
+
return utils.getUint16(0, this) === 15;
|
|
2275
|
+
}
|
|
2276
|
+
set enum(value) {
|
|
2277
|
+
utils.setUint16(0, 15, this);
|
|
2278
|
+
utils.setUint16(2, value, this);
|
|
2279
|
+
}
|
|
2280
|
+
_adoptStruct(value) {
|
|
2281
|
+
utils.setUint16(0, 16, this);
|
|
2282
|
+
utils.adopt(value, utils.getPointer(0, this));
|
|
2283
|
+
}
|
|
2284
|
+
_disownStruct() {
|
|
2285
|
+
return utils.disown(this.struct);
|
|
2286
|
+
}
|
|
2287
|
+
get struct() {
|
|
2288
|
+
utils.testWhich("struct", utils.getUint16(0, this), 16, this);
|
|
2289
|
+
return utils.getPointer(0, this);
|
|
2290
|
+
}
|
|
2291
|
+
_hasStruct() {
|
|
2292
|
+
return !utils.isNull(utils.getPointer(0, this));
|
|
2293
|
+
}
|
|
2294
|
+
get _isStruct() {
|
|
2295
|
+
return utils.getUint16(0, this) === 16;
|
|
2296
|
+
}
|
|
2297
|
+
set struct(value) {
|
|
2298
|
+
utils.setUint16(0, 16, this);
|
|
2299
|
+
utils.copyFrom(value, utils.getPointer(0, this));
|
|
2300
|
+
}
|
|
2301
|
+
get _isInterface() {
|
|
2302
|
+
return utils.getUint16(0, this) === 17;
|
|
2303
|
+
}
|
|
2304
|
+
set interface(_) {
|
|
2305
|
+
utils.setUint16(0, 17, this);
|
|
2306
|
+
}
|
|
2307
|
+
_adoptAnyPointer(value) {
|
|
2308
|
+
utils.setUint16(0, 18, this);
|
|
2309
|
+
utils.adopt(value, utils.getPointer(0, this));
|
|
2310
|
+
}
|
|
2311
|
+
_disownAnyPointer() {
|
|
2312
|
+
return utils.disown(this.anyPointer);
|
|
2313
|
+
}
|
|
2314
|
+
get anyPointer() {
|
|
2315
|
+
utils.testWhich("anyPointer", utils.getUint16(0, this), 18, this);
|
|
2316
|
+
return utils.getPointer(0, this);
|
|
2317
|
+
}
|
|
2318
|
+
_hasAnyPointer() {
|
|
2319
|
+
return !utils.isNull(utils.getPointer(0, this));
|
|
2320
|
+
}
|
|
2321
|
+
get _isAnyPointer() {
|
|
2322
|
+
return utils.getUint16(0, this) === 18;
|
|
2323
|
+
}
|
|
2324
|
+
set anyPointer(value) {
|
|
2325
|
+
utils.setUint16(0, 18, this);
|
|
2326
|
+
utils.copyFrom(value, utils.getPointer(0, this));
|
|
2327
|
+
}
|
|
2328
|
+
toString() {
|
|
2329
|
+
return "Value_" + super.toString();
|
|
2330
|
+
}
|
|
2331
|
+
which() {
|
|
2332
|
+
return utils.getUint16(0, this);
|
|
2333
|
+
}
|
|
2334
|
+
};
|
|
2335
|
+
var Annotation = class extends Struct {
|
|
2336
|
+
static {
|
|
2337
|
+
__name(this, "Annotation");
|
|
2338
|
+
}
|
|
2339
|
+
static _capnp = {
|
|
2340
|
+
displayName: "Annotation",
|
|
2341
|
+
id: "f1c8950dab257542",
|
|
2342
|
+
size: new ObjectSize(8, 2)
|
|
2343
|
+
};
|
|
2344
|
+
/**
|
|
2345
|
+
* ID of the annotation node.
|
|
2346
|
+
*
|
|
2347
|
+
*/
|
|
2348
|
+
get id() {
|
|
2349
|
+
return utils.getUint64(0, this);
|
|
2350
|
+
}
|
|
2351
|
+
set id(value) {
|
|
2352
|
+
utils.setUint64(0, value, this);
|
|
2353
|
+
}
|
|
2354
|
+
_adoptBrand(value) {
|
|
2355
|
+
utils.adopt(value, utils.getPointer(1, this));
|
|
2356
|
+
}
|
|
2357
|
+
_disownBrand() {
|
|
2358
|
+
return utils.disown(this.brand);
|
|
2359
|
+
}
|
|
2360
|
+
/**
|
|
2361
|
+
* Brand of the annotation.
|
|
2362
|
+
*
|
|
2363
|
+
* Note that the annotation itself is not allowed to be parameterized, but its scope might be.
|
|
2364
|
+
*
|
|
2365
|
+
*/
|
|
2366
|
+
get brand() {
|
|
2367
|
+
return utils.getStruct(1, Brand, this);
|
|
2368
|
+
}
|
|
2369
|
+
_hasBrand() {
|
|
2370
|
+
return !utils.isNull(utils.getPointer(1, this));
|
|
2371
|
+
}
|
|
2372
|
+
_initBrand() {
|
|
2373
|
+
return utils.initStructAt(1, Brand, this);
|
|
2374
|
+
}
|
|
2375
|
+
set brand(value) {
|
|
2376
|
+
utils.copyFrom(value, utils.getPointer(1, this));
|
|
2377
|
+
}
|
|
2378
|
+
_adoptValue(value) {
|
|
2379
|
+
utils.adopt(value, utils.getPointer(0, this));
|
|
2380
|
+
}
|
|
2381
|
+
_disownValue() {
|
|
2382
|
+
return utils.disown(this.value);
|
|
2383
|
+
}
|
|
2384
|
+
get value() {
|
|
2385
|
+
return utils.getStruct(0, Value, this);
|
|
2386
|
+
}
|
|
2387
|
+
_hasValue() {
|
|
2388
|
+
return !utils.isNull(utils.getPointer(0, this));
|
|
2389
|
+
}
|
|
2390
|
+
_initValue() {
|
|
2391
|
+
return utils.initStructAt(0, Value, this);
|
|
2392
|
+
}
|
|
2393
|
+
set value(value) {
|
|
2394
|
+
utils.copyFrom(value, utils.getPointer(0, this));
|
|
2395
|
+
}
|
|
2396
|
+
toString() {
|
|
2397
|
+
return "Annotation_" + super.toString();
|
|
2398
|
+
}
|
|
2399
|
+
};
|
|
2400
|
+
var ElementSize = {
|
|
2401
|
+
/**
|
|
2402
|
+
* aka "void", but that's a keyword.
|
|
2403
|
+
*
|
|
2404
|
+
*/
|
|
2405
|
+
EMPTY: 0,
|
|
2406
|
+
BIT: 1,
|
|
2407
|
+
BYTE: 2,
|
|
2408
|
+
TWO_BYTES: 3,
|
|
2409
|
+
FOUR_BYTES: 4,
|
|
2410
|
+
EIGHT_BYTES: 5,
|
|
2411
|
+
POINTER: 6,
|
|
2412
|
+
INLINE_COMPOSITE: 7
|
|
2413
|
+
};
|
|
2414
|
+
var CapnpVersion = class extends Struct {
|
|
2415
|
+
static {
|
|
2416
|
+
__name(this, "CapnpVersion");
|
|
2417
|
+
}
|
|
2418
|
+
static _capnp = {
|
|
2419
|
+
displayName: "CapnpVersion",
|
|
2420
|
+
id: "d85d305b7d839963",
|
|
2421
|
+
size: new ObjectSize(8, 0)
|
|
2422
|
+
};
|
|
2423
|
+
get major() {
|
|
2424
|
+
return utils.getUint16(0, this);
|
|
2425
|
+
}
|
|
2426
|
+
set major(value) {
|
|
2427
|
+
utils.setUint16(0, value, this);
|
|
2428
|
+
}
|
|
2429
|
+
get minor() {
|
|
2430
|
+
return utils.getUint8(2, this);
|
|
2431
|
+
}
|
|
2432
|
+
set minor(value) {
|
|
2433
|
+
utils.setUint8(2, value, this);
|
|
2434
|
+
}
|
|
2435
|
+
get micro() {
|
|
2436
|
+
return utils.getUint8(3, this);
|
|
2437
|
+
}
|
|
2438
|
+
set micro(value) {
|
|
2439
|
+
utils.setUint8(3, value, this);
|
|
2440
|
+
}
|
|
2441
|
+
toString() {
|
|
2442
|
+
return "CapnpVersion_" + super.toString();
|
|
2443
|
+
}
|
|
2444
|
+
};
|
|
2445
|
+
var CodeGeneratorRequest_RequestedFile_Import = class extends Struct {
|
|
2446
|
+
static {
|
|
2447
|
+
__name(this, "CodeGeneratorRequest_RequestedFile_Import");
|
|
2448
|
+
}
|
|
2449
|
+
static _capnp = {
|
|
2450
|
+
displayName: "Import",
|
|
2451
|
+
id: "ae504193122357e5",
|
|
2452
|
+
size: new ObjectSize(8, 1)
|
|
2453
|
+
};
|
|
2454
|
+
/**
|
|
2455
|
+
* ID of the imported file.
|
|
2456
|
+
*
|
|
2457
|
+
*/
|
|
2458
|
+
get id() {
|
|
2459
|
+
return utils.getUint64(0, this);
|
|
2460
|
+
}
|
|
2461
|
+
set id(value) {
|
|
2462
|
+
utils.setUint64(0, value, this);
|
|
2463
|
+
}
|
|
2464
|
+
/**
|
|
2465
|
+
* Name which *this* file used to refer to the foreign file. This may be a relative name.
|
|
2466
|
+
* This information is provided because it might be useful for code generation, e.g. to
|
|
2467
|
+
* generate #include directives in C++. We don't put this in Node.file because this
|
|
2468
|
+
* information is only meaningful at compile time anyway.
|
|
2469
|
+
*
|
|
2470
|
+
* (On Zooko's triangle, this is the import's petname according to the importing file.)
|
|
2471
|
+
*
|
|
2472
|
+
*/
|
|
2473
|
+
get name() {
|
|
2474
|
+
return utils.getText(0, this);
|
|
2475
|
+
}
|
|
2476
|
+
set name(value) {
|
|
2477
|
+
utils.setText(0, value, this);
|
|
2478
|
+
}
|
|
2479
|
+
toString() {
|
|
2480
|
+
return "CodeGeneratorRequest_RequestedFile_Import_" + super.toString();
|
|
2481
|
+
}
|
|
2482
|
+
};
|
|
2483
|
+
var CodeGeneratorRequest_RequestedFile = class _CodeGeneratorRequest_RequestedFile extends Struct {
|
|
2484
|
+
static {
|
|
2485
|
+
__name(this, "CodeGeneratorRequest_RequestedFile");
|
|
2486
|
+
}
|
|
2487
|
+
static Import = CodeGeneratorRequest_RequestedFile_Import;
|
|
2488
|
+
static _capnp = {
|
|
2489
|
+
displayName: "RequestedFile",
|
|
2490
|
+
id: "cfea0eb02e810062",
|
|
2491
|
+
size: new ObjectSize(8, 2)
|
|
2492
|
+
};
|
|
2493
|
+
static _Imports;
|
|
2494
|
+
/**
|
|
2495
|
+
* ID of the file.
|
|
2496
|
+
*
|
|
2497
|
+
*/
|
|
2498
|
+
get id() {
|
|
2499
|
+
return utils.getUint64(0, this);
|
|
2500
|
+
}
|
|
2501
|
+
set id(value) {
|
|
2502
|
+
utils.setUint64(0, value, this);
|
|
2503
|
+
}
|
|
2504
|
+
/**
|
|
2505
|
+
* Name of the file as it appeared on the command-line (minus the src-prefix). You may use
|
|
2506
|
+
* this to decide where to write the output.
|
|
2507
|
+
*
|
|
2508
|
+
*/
|
|
2509
|
+
get filename() {
|
|
2510
|
+
return utils.getText(0, this);
|
|
2511
|
+
}
|
|
2512
|
+
set filename(value) {
|
|
2513
|
+
utils.setText(0, value, this);
|
|
2514
|
+
}
|
|
2515
|
+
_adoptImports(value) {
|
|
2516
|
+
utils.adopt(value, utils.getPointer(1, this));
|
|
2517
|
+
}
|
|
2518
|
+
_disownImports() {
|
|
2519
|
+
return utils.disown(this.imports);
|
|
2520
|
+
}
|
|
2521
|
+
/**
|
|
2522
|
+
* List of all imported paths seen in this file.
|
|
2523
|
+
*
|
|
2524
|
+
*/
|
|
2525
|
+
get imports() {
|
|
2526
|
+
return utils.getList(1, _CodeGeneratorRequest_RequestedFile._Imports, this);
|
|
2527
|
+
}
|
|
2528
|
+
_hasImports() {
|
|
2529
|
+
return !utils.isNull(utils.getPointer(1, this));
|
|
2530
|
+
}
|
|
2531
|
+
_initImports(length) {
|
|
2532
|
+
return utils.initList(1, _CodeGeneratorRequest_RequestedFile._Imports, length, this);
|
|
2533
|
+
}
|
|
2534
|
+
set imports(value) {
|
|
2535
|
+
utils.copyFrom(value, utils.getPointer(1, this));
|
|
2536
|
+
}
|
|
2537
|
+
toString() {
|
|
2538
|
+
return "CodeGeneratorRequest_RequestedFile_" + super.toString();
|
|
2539
|
+
}
|
|
2540
|
+
};
|
|
2541
|
+
var CodeGeneratorRequest = class _CodeGeneratorRequest extends Struct {
|
|
2542
|
+
static {
|
|
2543
|
+
__name(this, "CodeGeneratorRequest");
|
|
2544
|
+
}
|
|
2545
|
+
static RequestedFile = CodeGeneratorRequest_RequestedFile;
|
|
2546
|
+
static _capnp = {
|
|
2547
|
+
displayName: "CodeGeneratorRequest",
|
|
2548
|
+
id: "bfc546f6210ad7ce",
|
|
2549
|
+
size: new ObjectSize(0, 4)
|
|
2550
|
+
};
|
|
2551
|
+
static _Nodes;
|
|
2552
|
+
static _SourceInfo;
|
|
2553
|
+
static _RequestedFiles;
|
|
2554
|
+
_adoptCapnpVersion(value) {
|
|
2555
|
+
utils.adopt(value, utils.getPointer(2, this));
|
|
2556
|
+
}
|
|
2557
|
+
_disownCapnpVersion() {
|
|
2558
|
+
return utils.disown(this.capnpVersion);
|
|
2559
|
+
}
|
|
2560
|
+
/**
|
|
2561
|
+
* Version of the `capnp` executable. Generally, code generators should ignore this, but the code
|
|
2562
|
+
* generators that ship with `capnp` itself will print a warning if this mismatches since that
|
|
2563
|
+
* probably indicates something is misconfigured.
|
|
2564
|
+
*
|
|
2565
|
+
* The first version of 'capnp' to set this was 0.6.0. So, if it's missing, the compiler version
|
|
2566
|
+
* is older than that.
|
|
2567
|
+
*
|
|
2568
|
+
*/
|
|
2569
|
+
get capnpVersion() {
|
|
2570
|
+
return utils.getStruct(2, CapnpVersion, this);
|
|
2571
|
+
}
|
|
2572
|
+
_hasCapnpVersion() {
|
|
2573
|
+
return !utils.isNull(utils.getPointer(2, this));
|
|
2574
|
+
}
|
|
2575
|
+
_initCapnpVersion() {
|
|
2576
|
+
return utils.initStructAt(2, CapnpVersion, this);
|
|
2577
|
+
}
|
|
2578
|
+
set capnpVersion(value) {
|
|
2579
|
+
utils.copyFrom(value, utils.getPointer(2, this));
|
|
2580
|
+
}
|
|
2581
|
+
_adoptNodes(value) {
|
|
2582
|
+
utils.adopt(value, utils.getPointer(0, this));
|
|
2583
|
+
}
|
|
2584
|
+
_disownNodes() {
|
|
2585
|
+
return utils.disown(this.nodes);
|
|
2586
|
+
}
|
|
2587
|
+
/**
|
|
2588
|
+
* All nodes parsed by the compiler, including for the files on the command line and their
|
|
2589
|
+
* imports.
|
|
2590
|
+
*
|
|
2591
|
+
*/
|
|
2592
|
+
get nodes() {
|
|
2593
|
+
return utils.getList(0, _CodeGeneratorRequest._Nodes, this);
|
|
2594
|
+
}
|
|
2595
|
+
_hasNodes() {
|
|
2596
|
+
return !utils.isNull(utils.getPointer(0, this));
|
|
2597
|
+
}
|
|
2598
|
+
_initNodes(length) {
|
|
2599
|
+
return utils.initList(0, _CodeGeneratorRequest._Nodes, length, this);
|
|
2600
|
+
}
|
|
2601
|
+
set nodes(value) {
|
|
2602
|
+
utils.copyFrom(value, utils.getPointer(0, this));
|
|
2603
|
+
}
|
|
2604
|
+
_adoptSourceInfo(value) {
|
|
2605
|
+
utils.adopt(value, utils.getPointer(3, this));
|
|
2606
|
+
}
|
|
2607
|
+
_disownSourceInfo() {
|
|
2608
|
+
return utils.disown(this.sourceInfo);
|
|
2609
|
+
}
|
|
2610
|
+
/**
|
|
2611
|
+
* Information about the original source code for each node, where available. This array may be
|
|
2612
|
+
* omitted or may be missing some nodes if no info is available for them.
|
|
2613
|
+
*
|
|
2614
|
+
*/
|
|
2615
|
+
get sourceInfo() {
|
|
2616
|
+
return utils.getList(3, _CodeGeneratorRequest._SourceInfo, this);
|
|
2617
|
+
}
|
|
2618
|
+
_hasSourceInfo() {
|
|
2619
|
+
return !utils.isNull(utils.getPointer(3, this));
|
|
2620
|
+
}
|
|
2621
|
+
_initSourceInfo(length) {
|
|
2622
|
+
return utils.initList(3, _CodeGeneratorRequest._SourceInfo, length, this);
|
|
2623
|
+
}
|
|
2624
|
+
set sourceInfo(value) {
|
|
2625
|
+
utils.copyFrom(value, utils.getPointer(3, this));
|
|
2626
|
+
}
|
|
2627
|
+
_adoptRequestedFiles(value) {
|
|
2628
|
+
utils.adopt(value, utils.getPointer(1, this));
|
|
2629
|
+
}
|
|
2630
|
+
_disownRequestedFiles() {
|
|
2631
|
+
return utils.disown(this.requestedFiles);
|
|
2632
|
+
}
|
|
2633
|
+
/**
|
|
2634
|
+
* Files which were listed on the command line.
|
|
2635
|
+
*
|
|
2636
|
+
*/
|
|
2637
|
+
get requestedFiles() {
|
|
2638
|
+
return utils.getList(1, _CodeGeneratorRequest._RequestedFiles, this);
|
|
2639
|
+
}
|
|
2640
|
+
_hasRequestedFiles() {
|
|
2641
|
+
return !utils.isNull(utils.getPointer(1, this));
|
|
2642
|
+
}
|
|
2643
|
+
_initRequestedFiles(length) {
|
|
2644
|
+
return utils.initList(1, _CodeGeneratorRequest._RequestedFiles, length, this);
|
|
2645
|
+
}
|
|
2646
|
+
set requestedFiles(value) {
|
|
2647
|
+
utils.copyFrom(value, utils.getPointer(1, this));
|
|
2648
|
+
}
|
|
2649
|
+
toString() {
|
|
2650
|
+
return "CodeGeneratorRequest_" + super.toString();
|
|
2651
|
+
}
|
|
2652
|
+
};
|
|
2653
|
+
Node_SourceInfo._Members = CompositeList(Node_SourceInfo_Member);
|
|
2654
|
+
Node_Struct._Fields = CompositeList(Field);
|
|
2655
|
+
Node_Enum._Enumerants = CompositeList(Enumerant);
|
|
2656
|
+
Node_Interface._Methods = CompositeList(Method);
|
|
2657
|
+
Node_Interface._Superclasses = CompositeList(Superclass);
|
|
2658
|
+
Node._Parameters = CompositeList(Node_Parameter);
|
|
2659
|
+
Node._NestedNodes = CompositeList(Node_NestedNode);
|
|
2660
|
+
Node._Annotations = CompositeList(Annotation);
|
|
2661
|
+
Field._Annotations = CompositeList(Annotation);
|
|
2662
|
+
Enumerant._Annotations = CompositeList(Annotation);
|
|
2663
|
+
Method._ImplicitParameters = CompositeList(Node_Parameter);
|
|
2664
|
+
Method._Annotations = CompositeList(Annotation);
|
|
2665
|
+
Brand_Scope._Bind = CompositeList(Brand_Binding);
|
|
2666
|
+
Brand._Scopes = CompositeList(Brand_Scope);
|
|
2667
|
+
CodeGeneratorRequest_RequestedFile._Imports = CompositeList(CodeGeneratorRequest_RequestedFile_Import);
|
|
2668
|
+
CodeGeneratorRequest._Nodes = CompositeList(Node);
|
|
2669
|
+
CodeGeneratorRequest._SourceInfo = CompositeList(Node_SourceInfo);
|
|
2670
|
+
CodeGeneratorRequest._RequestedFiles = CompositeList(CodeGeneratorRequest_RequestedFile);
|
|
2671
|
+
export {
|
|
2672
|
+
Annotation,
|
|
2673
|
+
Brand,
|
|
2674
|
+
Brand_Binding,
|
|
2675
|
+
Brand_Binding_Which,
|
|
2676
|
+
Brand_Scope,
|
|
2677
|
+
Brand_Scope_Which,
|
|
2678
|
+
CapnpVersion,
|
|
2679
|
+
CodeGeneratorRequest,
|
|
2680
|
+
CodeGeneratorRequest_RequestedFile,
|
|
2681
|
+
CodeGeneratorRequest_RequestedFile_Import,
|
|
2682
|
+
ElementSize,
|
|
2683
|
+
Enumerant,
|
|
2684
|
+
Field,
|
|
2685
|
+
Field_Group,
|
|
2686
|
+
Field_Ordinal,
|
|
2687
|
+
Field_Ordinal_Which,
|
|
2688
|
+
Field_Slot,
|
|
2689
|
+
Field_Which,
|
|
2690
|
+
Method,
|
|
2691
|
+
Node,
|
|
2692
|
+
Node_Annotation,
|
|
2693
|
+
Node_Const,
|
|
2694
|
+
Node_Enum,
|
|
2695
|
+
Node_Interface,
|
|
2696
|
+
Node_NestedNode,
|
|
2697
|
+
Node_Parameter,
|
|
2698
|
+
Node_SourceInfo,
|
|
2699
|
+
Node_SourceInfo_Member,
|
|
2700
|
+
Node_Struct,
|
|
2701
|
+
Node_Which,
|
|
2702
|
+
Superclass,
|
|
2703
|
+
Type,
|
|
2704
|
+
Type_AnyPointer,
|
|
2705
|
+
Type_AnyPointer_ImplicitMethodParameter,
|
|
2706
|
+
Type_AnyPointer_Parameter,
|
|
2707
|
+
Type_AnyPointer_Unconstrained,
|
|
2708
|
+
Type_AnyPointer_Unconstrained_Which,
|
|
2709
|
+
Type_AnyPointer_Which,
|
|
2710
|
+
Type_Enum,
|
|
2711
|
+
Type_Interface,
|
|
2712
|
+
Type_List,
|
|
2713
|
+
Type_Struct,
|
|
2714
|
+
Type_Which,
|
|
2715
|
+
Value,
|
|
2716
|
+
Value_Which,
|
|
2717
|
+
_capnpFileId
|
|
2718
|
+
};
|