@stryke/capnp 0.12.96 → 0.12.98
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 +405 -304
- package/bin/capnpc.d.cts +909 -4
- package/bin/capnpc.d.cts.map +1 -1
- package/bin/capnpc.d.mts +909 -4
- package/bin/capnpc.d.mts.map +1 -1
- package/bin/capnpc.mjs +368 -268
- package/bin/capnpc.mjs.map +1 -1
- package/dist/capnp-es.BHkXHvyK-B3-d8RNu.d.mts +2991 -0
- package/dist/capnp-es.BHkXHvyK-B3-d8RNu.d.mts.map +1 -0
- package/dist/capnp-es.BHkXHvyK-CQWXOqvU.d.cts +2991 -0
- package/dist/capnp-es.BHkXHvyK-CQWXOqvU.d.cts.map +1 -0
- package/dist/{capnp-es.GpvEvMIK-C4q8I6qy.mjs → capnp-es.GpvEvMIK-CH8kq1KS.mjs} +13 -6
- package/dist/{capnp-es.GpvEvMIK-C4q8I6qy.mjs.map → capnp-es.GpvEvMIK-CH8kq1KS.mjs.map} +1 -1
- package/dist/{capnp-es.GpvEvMIK-BcYm5JyH.cjs → capnp-es.GpvEvMIK-CZ5ZimCD.cjs} +12 -5
- package/dist/{compile-Cx88xgqJ.mjs → compile-D_BOc0dD.mjs} +109 -15
- package/dist/compile-D_BOc0dD.mjs.map +1 -0
- package/dist/{compile-SmxAaHxW.cjs → compile-Yq1zhccM.cjs} +113 -19
- package/dist/compile.cjs +2 -2
- package/dist/compile.d.cts +38 -3
- package/dist/compile.d.cts.map +1 -0
- package/dist/compile.d.mts +38 -3
- package/dist/compile.d.mts.map +1 -0
- package/dist/compile.mjs +1 -2
- package/dist/{dist-BlvFBzSi.mjs → dist-DQ7xmzRT.mjs} +385 -16
- package/dist/dist-DQ7xmzRT.mjs.map +1 -0
- package/dist/{dist-YywzZL3Q.cjs → dist-VMGxvENY.cjs} +381 -12
- package/dist/{helpers-BoYAadSB.mjs → helpers-2TldkyGG.mjs} +136 -137
- package/dist/helpers-2TldkyGG.mjs.map +1 -0
- package/dist/{helpers-gxlsFdP8.cjs → helpers-Dn4nWOb7.cjs} +164 -165
- package/dist/helpers.cjs +2 -1
- package/dist/helpers.d.cts +1 -2
- package/dist/helpers.d.cts.map +1 -1
- package/dist/helpers.d.mts +1 -2
- package/dist/helpers.d.mts.map +1 -1
- package/dist/helpers.mjs +1 -1
- package/dist/index-63Za7yNc.d.cts +736 -0
- package/dist/index-63Za7yNc.d.cts.map +1 -0
- package/dist/index-LYXu6eWz.d.mts +736 -0
- package/dist/index-LYXu6eWz.d.mts.map +1 -0
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +5 -4
- package/dist/index.d.mts +5 -4
- package/dist/index.mjs +4 -5
- package/dist/rpc-helpers.cjs +4 -3
- package/dist/rpc-helpers.d.cts +3 -4
- package/dist/rpc-helpers.d.cts.map +1 -1
- package/dist/rpc-helpers.d.mts +3 -4
- package/dist/rpc-helpers.d.mts.map +1 -1
- package/dist/rpc-helpers.mjs +2 -2
- package/dist/types-BjCOVfgj.d.cts +1506 -0
- package/dist/types-BjCOVfgj.d.cts.map +1 -0
- package/dist/types-CVzMn-TI.d.mts +1506 -0
- package/dist/types-CVzMn-TI.d.mts.map +1 -0
- package/dist/types.cjs +8 -2
- package/dist/types.d.cts +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/types.mjs +7 -2
- package/dist/types.mjs.map +1 -0
- package/package.json +5 -5
- package/schemas/cpp.cjs +1 -0
- package/schemas/cpp.d.cts.map +1 -1
- package/schemas/cpp.d.mts.map +1 -1
- package/schemas/index-BB47pUzp.d.cts +742 -0
- package/schemas/index-BB47pUzp.d.cts.map +1 -0
- package/schemas/index-DprjZUdT.d.mts +742 -0
- package/schemas/index-DprjZUdT.d.mts.map +1 -0
- package/schemas/persistent.cjs +2 -1
- package/schemas/persistent.d.cts +48 -21
- package/schemas/persistent.d.cts.map +1 -1
- package/schemas/persistent.d.mts +48 -21
- package/schemas/persistent.d.mts.map +1 -1
- package/schemas/persistent.mjs +1 -1
- package/schemas/persistent.mjs.map +1 -1
- package/schemas/rpc-twoparty.cjs +20 -1
- package/schemas/rpc-twoparty.d.cts +17 -17
- package/schemas/rpc-twoparty.d.cts.map +1 -1
- package/schemas/rpc-twoparty.d.mts +17 -17
- package/schemas/rpc-twoparty.d.mts.map +1 -1
- package/schemas/rpc-twoparty.mjs +19 -1
- package/schemas/rpc-twoparty.mjs.map +1 -1
- package/schemas/rpc.cjs +371 -1
- package/schemas/rpc.d.cts +141 -141
- package/schemas/rpc.d.cts.map +1 -1
- package/schemas/rpc.d.mts +141 -141
- package/schemas/rpc.d.mts.map +1 -1
- package/schemas/rpc.mjs +370 -1
- package/schemas/rpc.mjs.map +1 -1
- package/schemas/schema.cjs +96 -1
- package/schemas/schema.d.cts +286 -228
- package/schemas/schema.d.cts.map +1 -1
- package/schemas/schema.d.mts +286 -228
- package/schemas/schema.d.mts.map +1 -1
- package/schemas/schema.mjs +95 -1
- package/schemas/schema.mjs.map +1 -1
- package/schemas/{src-2eLj6yCr.cjs → src-B6FhDNiV.cjs} +19 -12
- package/schemas/{src-s2pCu2mc.mjs → src-B97sIXSw.mjs} +19 -13
- package/schemas/src-B97sIXSw.mjs.map +1 -0
- package/schemas/ts.cjs +1 -0
- package/schemas/ts.d.cts.map +1 -1
- package/schemas/ts.d.mts.map +1 -1
- package/dist/compile-Cx88xgqJ.mjs.map +0 -1
- package/dist/compile-DccxA7WZ.d.cts +0 -40
- package/dist/compile-DccxA7WZ.d.cts.map +0 -1
- package/dist/compile-UkKIpqrK.d.mts +0 -40
- package/dist/compile-UkKIpqrK.d.mts.map +0 -1
- package/dist/dist-BlvFBzSi.mjs.map +0 -1
- package/dist/helpers-BoYAadSB.mjs.map +0 -1
- package/dist/types-Cuj2daUE.mjs +0 -8
- package/dist/types-Cuj2daUE.mjs.map +0 -1
- package/dist/types-D03SjfBL.d.mts +0 -55
- package/dist/types-D03SjfBL.d.mts.map +0 -1
- package/dist/types-D52qMMoK.d.cts +0 -55
- package/dist/types-D52qMMoK.d.cts.map +0 -1
- package/dist/types-DHrjS-69.cjs +0 -13
- package/schemas/index-BAJMwFip.d.mts +0 -96
- package/schemas/index-BAJMwFip.d.mts.map +0 -1
- package/schemas/index-b7dam4EA.d.cts +0 -96
- package/schemas/index-b7dam4EA.d.cts.map +0 -1
- package/schemas/src-s2pCu2mc.mjs.map +0 -1
package/schemas/schema.d.mts
CHANGED
|
@@ -1,26 +1,84 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as List, c as ObjectSize, d as Pointer, l as Orphan, o as ListCtor, p as Struct } from "./index-DprjZUdT.mjs";
|
|
2
2
|
|
|
3
|
+
//#region ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@6.0.3/node_modules/capnp-es/dist/shared/capnp-es.BHkXHvyK.d.mts
|
|
4
|
+
/**
|
|
5
|
+
* A generic blob of bytes. Can be converted to a DataView or Uint8Array to access its contents using `toDataView()` and
|
|
6
|
+
* `toUint8Array()`. Use `copyBuffer()` to copy an entire buffer at once.
|
|
7
|
+
*/
|
|
8
|
+
declare class Data extends List<number> {
|
|
9
|
+
static fromPointer(pointer: Pointer): Data;
|
|
10
|
+
protected static _fromPointerUnchecked(pointer: Pointer): Data;
|
|
11
|
+
/**
|
|
12
|
+
* Copy the contents of `src` into this Data pointer. If `src` is smaller than the length of this pointer then the
|
|
13
|
+
* remaining bytes will be zeroed out. Extra bytes in `src` are ignored.
|
|
14
|
+
*
|
|
15
|
+
* @param src The source buffer.
|
|
16
|
+
*/
|
|
17
|
+
copyBuffer(src: ArrayBuffer | ArrayBufferView): void;
|
|
18
|
+
/**
|
|
19
|
+
* Read a byte from the specified offset.
|
|
20
|
+
*
|
|
21
|
+
* @param byteOffset The byte offset to read.
|
|
22
|
+
* @returns The byte value.
|
|
23
|
+
*/
|
|
24
|
+
get(byteOffset: number): number;
|
|
25
|
+
/**
|
|
26
|
+
* Write a byte at the specified offset.
|
|
27
|
+
*
|
|
28
|
+
* @param byteOffset The byte offset to set.
|
|
29
|
+
* @param value The byte value to set.
|
|
30
|
+
*/
|
|
31
|
+
set(byteOffset: number, value: number): void;
|
|
32
|
+
/**
|
|
33
|
+
* Creates a **copy** of the underlying buffer data and returns it as an ArrayBuffer.
|
|
34
|
+
*
|
|
35
|
+
* To obtain a reference to the underlying buffer instead, use `toUint8Array()` or `toDataView()`.
|
|
36
|
+
*
|
|
37
|
+
* @returns A copy of this data buffer.
|
|
38
|
+
*/
|
|
39
|
+
toArrayBuffer(): ArrayBuffer;
|
|
40
|
+
/**
|
|
41
|
+
* Convert this Data pointer to a DataView representing the pointer's contents.
|
|
42
|
+
*
|
|
43
|
+
* WARNING: The DataView references memory from a message segment, so do not venture outside the bounds of the
|
|
44
|
+
* DataView or else BAD THINGS.
|
|
45
|
+
*
|
|
46
|
+
* @returns A live reference to the underlying buffer.
|
|
47
|
+
*/
|
|
48
|
+
toDataView(): DataView;
|
|
49
|
+
[Symbol.toStringTag](): string;
|
|
50
|
+
/**
|
|
51
|
+
* Convert this Data pointer to a Uint8Array representing the pointer's contents.
|
|
52
|
+
*
|
|
53
|
+
* WARNING: The Uint8Array references memory from a message segment, so do not venture outside the bounds of the
|
|
54
|
+
* Uint8Array or else BAD THINGS.
|
|
55
|
+
*
|
|
56
|
+
* @returns A live reference to the underlying buffer.
|
|
57
|
+
*/
|
|
58
|
+
toUint8Array(): Uint8Array;
|
|
59
|
+
}
|
|
60
|
+
//#endregion
|
|
3
61
|
//#region schemas/schema.d.ts
|
|
4
62
|
declare const _capnpFileId: bigint;
|
|
5
63
|
/**
|
|
6
64
|
* Information about one of the node's parameters.
|
|
7
65
|
*
|
|
8
66
|
*/
|
|
9
|
-
declare class Node_Parameter extends
|
|
67
|
+
declare class Node_Parameter extends Struct {
|
|
10
68
|
static readonly _capnp: {
|
|
11
69
|
displayName: string;
|
|
12
70
|
id: string;
|
|
13
|
-
size:
|
|
71
|
+
size: ObjectSize;
|
|
14
72
|
};
|
|
15
73
|
get name(): string;
|
|
16
74
|
set name(value: string);
|
|
17
75
|
toString(): string;
|
|
18
76
|
}
|
|
19
|
-
declare class Node_NestedNode extends
|
|
77
|
+
declare class Node_NestedNode extends Struct {
|
|
20
78
|
static readonly _capnp: {
|
|
21
79
|
displayName: string;
|
|
22
80
|
id: string;
|
|
23
|
-
size:
|
|
81
|
+
size: ObjectSize;
|
|
24
82
|
};
|
|
25
83
|
/**
|
|
26
84
|
* Unqualified symbol name. Unlike Node.displayName, this *can* be used programmatically.
|
|
@@ -39,11 +97,11 @@ declare class Node_NestedNode extends index_d_exports.Struct {
|
|
|
39
97
|
set id(value: bigint);
|
|
40
98
|
toString(): string;
|
|
41
99
|
}
|
|
42
|
-
declare class Node_SourceInfo_Member extends
|
|
100
|
+
declare class Node_SourceInfo_Member extends Struct {
|
|
43
101
|
static readonly _capnp: {
|
|
44
102
|
displayName: string;
|
|
45
103
|
id: string;
|
|
46
|
-
size:
|
|
104
|
+
size: ObjectSize;
|
|
47
105
|
};
|
|
48
106
|
/**
|
|
49
107
|
* Doc comment on the member.
|
|
@@ -60,14 +118,14 @@ declare class Node_SourceInfo_Member extends index_d_exports.Struct {
|
|
|
60
118
|
* `CodeGeneratorRequest` includes this information in a separate array.
|
|
61
119
|
*
|
|
62
120
|
*/
|
|
63
|
-
declare class Node_SourceInfo extends
|
|
121
|
+
declare class Node_SourceInfo extends Struct {
|
|
64
122
|
static readonly Member: typeof Node_SourceInfo_Member;
|
|
65
123
|
static readonly _capnp: {
|
|
66
124
|
displayName: string;
|
|
67
125
|
id: string;
|
|
68
|
-
size:
|
|
126
|
+
size: ObjectSize;
|
|
69
127
|
};
|
|
70
|
-
static _Members:
|
|
128
|
+
static _Members: ListCtor<Node_SourceInfo_Member>;
|
|
71
129
|
/**
|
|
72
130
|
* ID of the Node which this info describes.
|
|
73
131
|
*
|
|
@@ -80,8 +138,8 @@ declare class Node_SourceInfo extends index_d_exports.Struct {
|
|
|
80
138
|
*/
|
|
81
139
|
get docComment(): string;
|
|
82
140
|
set docComment(value: string);
|
|
83
|
-
_adoptMembers(value:
|
|
84
|
-
_disownMembers():
|
|
141
|
+
_adoptMembers(value: Orphan<List<Node_SourceInfo_Member>>): void;
|
|
142
|
+
_disownMembers(): Orphan<List<Node_SourceInfo_Member>>;
|
|
85
143
|
/**
|
|
86
144
|
* Information about each member -- i.e. fields (for structs), enumerants (for enums), or
|
|
87
145
|
* methods (for interfaces).
|
|
@@ -90,19 +148,19 @@ declare class Node_SourceInfo extends index_d_exports.Struct {
|
|
|
90
148
|
* Node.struct.fields, Node.enum.enumerants, or Node.interface.methods.
|
|
91
149
|
*
|
|
92
150
|
*/
|
|
93
|
-
get members():
|
|
151
|
+
get members(): List<Node_SourceInfo_Member>;
|
|
94
152
|
_hasMembers(): boolean;
|
|
95
|
-
_initMembers(length: number):
|
|
96
|
-
set members(value:
|
|
153
|
+
_initMembers(length: number): List<Node_SourceInfo_Member>;
|
|
154
|
+
set members(value: List<Node_SourceInfo_Member>);
|
|
97
155
|
toString(): string;
|
|
98
156
|
}
|
|
99
|
-
declare class Node_Struct extends
|
|
157
|
+
declare class Node_Struct extends Struct {
|
|
100
158
|
static readonly _capnp: {
|
|
101
159
|
displayName: string;
|
|
102
160
|
id: string;
|
|
103
|
-
size:
|
|
161
|
+
size: ObjectSize;
|
|
104
162
|
};
|
|
105
|
-
static _Fields:
|
|
163
|
+
static _Fields: ListCtor<Field>;
|
|
106
164
|
/**
|
|
107
165
|
* Size of the data section, in words.
|
|
108
166
|
*
|
|
@@ -160,8 +218,8 @@ declare class Node_Struct extends index_d_exports.Struct {
|
|
|
160
218
|
*/
|
|
161
219
|
get discriminantOffset(): number;
|
|
162
220
|
set discriminantOffset(value: number);
|
|
163
|
-
_adoptFields(value:
|
|
164
|
-
_disownFields():
|
|
221
|
+
_adoptFields(value: Orphan<List<Field>>): void;
|
|
222
|
+
_disownFields(): Orphan<List<Field>>;
|
|
165
223
|
/**
|
|
166
224
|
* Fields defined within this scope (either the struct's top-level fields, or the fields of
|
|
167
225
|
* a particular group; see `isGroup`).
|
|
@@ -174,89 +232,89 @@ declare class Node_Struct extends index_d_exports.Struct {
|
|
|
174
232
|
* most sense to use the field's index in this list rather than its ordinal.
|
|
175
233
|
*
|
|
176
234
|
*/
|
|
177
|
-
get fields():
|
|
235
|
+
get fields(): List<Field>;
|
|
178
236
|
_hasFields(): boolean;
|
|
179
|
-
_initFields(length: number):
|
|
180
|
-
set fields(value:
|
|
237
|
+
_initFields(length: number): List<Field>;
|
|
238
|
+
set fields(value: List<Field>);
|
|
181
239
|
toString(): string;
|
|
182
240
|
}
|
|
183
|
-
declare class Node_Enum extends
|
|
241
|
+
declare class Node_Enum extends Struct {
|
|
184
242
|
static readonly _capnp: {
|
|
185
243
|
displayName: string;
|
|
186
244
|
id: string;
|
|
187
|
-
size:
|
|
245
|
+
size: ObjectSize;
|
|
188
246
|
};
|
|
189
|
-
static _Enumerants:
|
|
190
|
-
_adoptEnumerants(value:
|
|
191
|
-
_disownEnumerants():
|
|
247
|
+
static _Enumerants: ListCtor<Enumerant>;
|
|
248
|
+
_adoptEnumerants(value: Orphan<List<Enumerant>>): void;
|
|
249
|
+
_disownEnumerants(): Orphan<List<Enumerant>>;
|
|
192
250
|
/**
|
|
193
251
|
* Enumerants ordered by numeric value (ordinal).
|
|
194
252
|
*
|
|
195
253
|
*/
|
|
196
|
-
get enumerants():
|
|
254
|
+
get enumerants(): List<Enumerant>;
|
|
197
255
|
_hasEnumerants(): boolean;
|
|
198
|
-
_initEnumerants(length: number):
|
|
199
|
-
set enumerants(value:
|
|
256
|
+
_initEnumerants(length: number): List<Enumerant>;
|
|
257
|
+
set enumerants(value: List<Enumerant>);
|
|
200
258
|
toString(): string;
|
|
201
259
|
}
|
|
202
|
-
declare class Node_Interface extends
|
|
260
|
+
declare class Node_Interface extends Struct {
|
|
203
261
|
static readonly _capnp: {
|
|
204
262
|
displayName: string;
|
|
205
263
|
id: string;
|
|
206
|
-
size:
|
|
264
|
+
size: ObjectSize;
|
|
207
265
|
};
|
|
208
|
-
static _Methods:
|
|
209
|
-
static _Superclasses:
|
|
210
|
-
_adoptMethods(value:
|
|
211
|
-
_disownMethods():
|
|
266
|
+
static _Methods: ListCtor<Method>;
|
|
267
|
+
static _Superclasses: ListCtor<Superclass>;
|
|
268
|
+
_adoptMethods(value: Orphan<List<Method>>): void;
|
|
269
|
+
_disownMethods(): Orphan<List<Method>>;
|
|
212
270
|
/**
|
|
213
271
|
* Methods ordered by ordinal.
|
|
214
272
|
*
|
|
215
273
|
*/
|
|
216
|
-
get methods():
|
|
274
|
+
get methods(): List<Method>;
|
|
217
275
|
_hasMethods(): boolean;
|
|
218
|
-
_initMethods(length: number):
|
|
219
|
-
set methods(value:
|
|
220
|
-
_adoptSuperclasses(value:
|
|
221
|
-
_disownSuperclasses():
|
|
276
|
+
_initMethods(length: number): List<Method>;
|
|
277
|
+
set methods(value: List<Method>);
|
|
278
|
+
_adoptSuperclasses(value: Orphan<List<Superclass>>): void;
|
|
279
|
+
_disownSuperclasses(): Orphan<List<Superclass>>;
|
|
222
280
|
/**
|
|
223
281
|
* Superclasses of this interface.
|
|
224
282
|
*
|
|
225
283
|
*/
|
|
226
|
-
get superclasses():
|
|
284
|
+
get superclasses(): List<Superclass>;
|
|
227
285
|
_hasSuperclasses(): boolean;
|
|
228
|
-
_initSuperclasses(length: number):
|
|
229
|
-
set superclasses(value:
|
|
286
|
+
_initSuperclasses(length: number): List<Superclass>;
|
|
287
|
+
set superclasses(value: List<Superclass>);
|
|
230
288
|
toString(): string;
|
|
231
289
|
}
|
|
232
|
-
declare class Node_Const extends
|
|
290
|
+
declare class Node_Const extends Struct {
|
|
233
291
|
static readonly _capnp: {
|
|
234
292
|
displayName: string;
|
|
235
293
|
id: string;
|
|
236
|
-
size:
|
|
294
|
+
size: ObjectSize;
|
|
237
295
|
};
|
|
238
|
-
_adoptType(value:
|
|
239
|
-
_disownType():
|
|
296
|
+
_adoptType(value: Orphan<Type>): void;
|
|
297
|
+
_disownType(): Orphan<Type>;
|
|
240
298
|
get type(): Type;
|
|
241
299
|
_hasType(): boolean;
|
|
242
300
|
_initType(): Type;
|
|
243
301
|
set type(value: Type);
|
|
244
|
-
_adoptValue(value:
|
|
245
|
-
_disownValue():
|
|
302
|
+
_adoptValue(value: Orphan<Value>): void;
|
|
303
|
+
_disownValue(): Orphan<Value>;
|
|
246
304
|
get value(): Value;
|
|
247
305
|
_hasValue(): boolean;
|
|
248
306
|
_initValue(): Value;
|
|
249
307
|
set value(value: Value);
|
|
250
308
|
toString(): string;
|
|
251
309
|
}
|
|
252
|
-
declare class Node_Annotation extends
|
|
310
|
+
declare class Node_Annotation extends Struct {
|
|
253
311
|
static readonly _capnp: {
|
|
254
312
|
displayName: string;
|
|
255
313
|
id: string;
|
|
256
|
-
size:
|
|
314
|
+
size: ObjectSize;
|
|
257
315
|
};
|
|
258
|
-
_adoptType(value:
|
|
259
|
-
_disownType():
|
|
316
|
+
_adoptType(value: Orphan<Type>): void;
|
|
317
|
+
_disownType(): Orphan<Type>;
|
|
260
318
|
get type(): Type;
|
|
261
319
|
_hasType(): boolean;
|
|
262
320
|
_initType(): Type;
|
|
@@ -324,7 +382,7 @@ declare const Node_Which: {
|
|
|
324
382
|
readonly ANNOTATION: 5;
|
|
325
383
|
};
|
|
326
384
|
type Node_Which = (typeof Node_Which)[keyof typeof Node_Which];
|
|
327
|
-
declare class Node extends
|
|
385
|
+
declare class Node extends Struct {
|
|
328
386
|
static readonly FILE: 0;
|
|
329
387
|
static readonly STRUCT: 1;
|
|
330
388
|
static readonly ENUM: 2;
|
|
@@ -337,11 +395,11 @@ declare class Node extends index_d_exports.Struct {
|
|
|
337
395
|
static readonly _capnp: {
|
|
338
396
|
displayName: string;
|
|
339
397
|
id: string;
|
|
340
|
-
size:
|
|
398
|
+
size: ObjectSize;
|
|
341
399
|
};
|
|
342
|
-
static _Parameters:
|
|
343
|
-
static _NestedNodes:
|
|
344
|
-
static _Annotations:
|
|
400
|
+
static _Parameters: ListCtor<Node_Parameter>;
|
|
401
|
+
static _NestedNodes: ListCtor<Node_NestedNode>;
|
|
402
|
+
static _Annotations: ListCtor<Annotation>;
|
|
345
403
|
get id(): bigint;
|
|
346
404
|
set id(value: bigint);
|
|
347
405
|
/**
|
|
@@ -370,16 +428,16 @@ declare class Node extends index_d_exports.Struct {
|
|
|
370
428
|
*/
|
|
371
429
|
get scopeId(): bigint;
|
|
372
430
|
set scopeId(value: bigint);
|
|
373
|
-
_adoptParameters(value:
|
|
374
|
-
_disownParameters():
|
|
431
|
+
_adoptParameters(value: Orphan<List<Node_Parameter>>): void;
|
|
432
|
+
_disownParameters(): Orphan<List<Node_Parameter>>;
|
|
375
433
|
/**
|
|
376
434
|
* If this node is parameterized (generic), the list of parameters. Empty for non-generic types.
|
|
377
435
|
*
|
|
378
436
|
*/
|
|
379
|
-
get parameters():
|
|
437
|
+
get parameters(): List<Node_Parameter>;
|
|
380
438
|
_hasParameters(): boolean;
|
|
381
|
-
_initParameters(length: number):
|
|
382
|
-
set parameters(value:
|
|
439
|
+
_initParameters(length: number): List<Node_Parameter>;
|
|
440
|
+
set parameters(value: List<Node_Parameter>);
|
|
383
441
|
/**
|
|
384
442
|
* True if this node is generic, meaning that it or one of its parent scopes has a non-empty
|
|
385
443
|
* `parameters`.
|
|
@@ -387,26 +445,26 @@ declare class Node extends index_d_exports.Struct {
|
|
|
387
445
|
*/
|
|
388
446
|
get isGeneric(): boolean;
|
|
389
447
|
set isGeneric(value: boolean);
|
|
390
|
-
_adoptNestedNodes(value:
|
|
391
|
-
_disownNestedNodes():
|
|
448
|
+
_adoptNestedNodes(value: Orphan<List<Node_NestedNode>>): void;
|
|
449
|
+
_disownNestedNodes(): Orphan<List<Node_NestedNode>>;
|
|
392
450
|
/**
|
|
393
451
|
* List of nodes nested within this node, along with the names under which they were declared.
|
|
394
452
|
*
|
|
395
453
|
*/
|
|
396
|
-
get nestedNodes():
|
|
454
|
+
get nestedNodes(): List<Node_NestedNode>;
|
|
397
455
|
_hasNestedNodes(): boolean;
|
|
398
|
-
_initNestedNodes(length: number):
|
|
399
|
-
set nestedNodes(value:
|
|
400
|
-
_adoptAnnotations(value:
|
|
401
|
-
_disownAnnotations():
|
|
456
|
+
_initNestedNodes(length: number): List<Node_NestedNode>;
|
|
457
|
+
set nestedNodes(value: List<Node_NestedNode>);
|
|
458
|
+
_adoptAnnotations(value: Orphan<List<Annotation>>): void;
|
|
459
|
+
_disownAnnotations(): Orphan<List<Annotation>>;
|
|
402
460
|
/**
|
|
403
461
|
* Annotations applied to this node.
|
|
404
462
|
*
|
|
405
463
|
*/
|
|
406
|
-
get annotations():
|
|
464
|
+
get annotations(): List<Annotation>;
|
|
407
465
|
_hasAnnotations(): boolean;
|
|
408
|
-
_initAnnotations(length: number):
|
|
409
|
-
set annotations(value:
|
|
466
|
+
_initAnnotations(length: number): List<Annotation>;
|
|
467
|
+
set annotations(value: List<Annotation>);
|
|
410
468
|
get _isFile(): boolean;
|
|
411
469
|
set file(_: true);
|
|
412
470
|
get struct(): Node_Struct;
|
|
@@ -436,11 +494,11 @@ declare class Node extends index_d_exports.Struct {
|
|
|
436
494
|
* A regular, non-group, non-fixed-list field.
|
|
437
495
|
*
|
|
438
496
|
*/
|
|
439
|
-
declare class Field_Slot extends
|
|
497
|
+
declare class Field_Slot extends Struct {
|
|
440
498
|
static readonly _capnp: {
|
|
441
499
|
displayName: string;
|
|
442
500
|
id: string;
|
|
443
|
-
size:
|
|
501
|
+
size: ObjectSize;
|
|
444
502
|
};
|
|
445
503
|
/**
|
|
446
504
|
* Offset, in units of the field's size, from the beginning of the section in which the field
|
|
@@ -450,14 +508,14 @@ declare class Field_Slot extends index_d_exports.Struct {
|
|
|
450
508
|
*/
|
|
451
509
|
get offset(): number;
|
|
452
510
|
set offset(value: number);
|
|
453
|
-
_adoptType(value:
|
|
454
|
-
_disownType():
|
|
511
|
+
_adoptType(value: Orphan<Type>): void;
|
|
512
|
+
_disownType(): Orphan<Type>;
|
|
455
513
|
get type(): Type;
|
|
456
514
|
_hasType(): boolean;
|
|
457
515
|
_initType(): Type;
|
|
458
516
|
set type(value: Type);
|
|
459
|
-
_adoptDefaultValue(value:
|
|
460
|
-
_disownDefaultValue():
|
|
517
|
+
_adoptDefaultValue(value: Orphan<Value>): void;
|
|
518
|
+
_disownDefaultValue(): Orphan<Value>;
|
|
461
519
|
get defaultValue(): Value;
|
|
462
520
|
_hasDefaultValue(): boolean;
|
|
463
521
|
_initDefaultValue(): Value;
|
|
@@ -477,11 +535,11 @@ declare class Field_Slot extends index_d_exports.Struct {
|
|
|
477
535
|
* A group.
|
|
478
536
|
*
|
|
479
537
|
*/
|
|
480
|
-
declare class Field_Group extends
|
|
538
|
+
declare class Field_Group extends Struct {
|
|
481
539
|
static readonly _capnp: {
|
|
482
540
|
displayName: string;
|
|
483
541
|
id: string;
|
|
484
|
-
size:
|
|
542
|
+
size: ObjectSize;
|
|
485
543
|
};
|
|
486
544
|
/**
|
|
487
545
|
* The ID of the group's node.
|
|
@@ -503,13 +561,13 @@ declare const Field_Ordinal_Which: {
|
|
|
503
561
|
readonly EXPLICIT: 1;
|
|
504
562
|
};
|
|
505
563
|
type Field_Ordinal_Which = (typeof Field_Ordinal_Which)[keyof typeof Field_Ordinal_Which];
|
|
506
|
-
declare class Field_Ordinal extends
|
|
564
|
+
declare class Field_Ordinal extends Struct {
|
|
507
565
|
static readonly IMPLICIT: 0;
|
|
508
566
|
static readonly EXPLICIT: 1;
|
|
509
567
|
static readonly _capnp: {
|
|
510
568
|
displayName: string;
|
|
511
569
|
id: string;
|
|
512
|
-
size:
|
|
570
|
+
size: ObjectSize;
|
|
513
571
|
};
|
|
514
572
|
get _isImplicit(): boolean;
|
|
515
573
|
set implicit(_: true);
|
|
@@ -544,17 +602,17 @@ type Field_Which = (typeof Field_Which)[keyof typeof Field_Which];
|
|
|
544
602
|
* Schema for a field of a struct.
|
|
545
603
|
*
|
|
546
604
|
*/
|
|
547
|
-
declare class Field extends
|
|
605
|
+
declare class Field extends Struct {
|
|
548
606
|
static readonly NO_DISCRIMINANT = 65535;
|
|
549
607
|
static readonly SLOT: 0;
|
|
550
608
|
static readonly GROUP: 1;
|
|
551
609
|
static readonly _capnp: {
|
|
552
610
|
displayName: string;
|
|
553
611
|
id: string;
|
|
554
|
-
size:
|
|
612
|
+
size: ObjectSize;
|
|
555
613
|
defaultDiscriminantValue: DataView<ArrayBufferLike>;
|
|
556
614
|
};
|
|
557
|
-
static _Annotations:
|
|
615
|
+
static _Annotations: ListCtor<Annotation>;
|
|
558
616
|
get name(): string;
|
|
559
617
|
set name(value: string);
|
|
560
618
|
/**
|
|
@@ -568,12 +626,12 @@ declare class Field extends index_d_exports.Struct {
|
|
|
568
626
|
*/
|
|
569
627
|
get codeOrder(): number;
|
|
570
628
|
set codeOrder(value: number);
|
|
571
|
-
_adoptAnnotations(value:
|
|
572
|
-
_disownAnnotations():
|
|
573
|
-
get annotations():
|
|
629
|
+
_adoptAnnotations(value: Orphan<List<Annotation>>): void;
|
|
630
|
+
_disownAnnotations(): Orphan<List<Annotation>>;
|
|
631
|
+
get annotations(): List<Annotation>;
|
|
574
632
|
_hasAnnotations(): boolean;
|
|
575
|
-
_initAnnotations(length: number):
|
|
576
|
-
set annotations(value:
|
|
633
|
+
_initAnnotations(length: number): List<Annotation>;
|
|
634
|
+
set annotations(value: List<Annotation>);
|
|
577
635
|
/**
|
|
578
636
|
* If the field is in a union, this is the value which the union's discriminant should take when
|
|
579
637
|
* the field is active. If the field is not in a union, this is 0xffff.
|
|
@@ -606,13 +664,13 @@ declare class Field extends index_d_exports.Struct {
|
|
|
606
664
|
* Schema for member of an enum.
|
|
607
665
|
*
|
|
608
666
|
*/
|
|
609
|
-
declare class Enumerant extends
|
|
667
|
+
declare class Enumerant extends Struct {
|
|
610
668
|
static readonly _capnp: {
|
|
611
669
|
displayName: string;
|
|
612
670
|
id: string;
|
|
613
|
-
size:
|
|
671
|
+
size: ObjectSize;
|
|
614
672
|
};
|
|
615
|
-
static _Annotations:
|
|
673
|
+
static _Annotations: ListCtor<Annotation>;
|
|
616
674
|
get name(): string;
|
|
617
675
|
set name(value: string);
|
|
618
676
|
/**
|
|
@@ -622,24 +680,24 @@ declare class Enumerant extends index_d_exports.Struct {
|
|
|
622
680
|
*/
|
|
623
681
|
get codeOrder(): number;
|
|
624
682
|
set codeOrder(value: number);
|
|
625
|
-
_adoptAnnotations(value:
|
|
626
|
-
_disownAnnotations():
|
|
627
|
-
get annotations():
|
|
683
|
+
_adoptAnnotations(value: Orphan<List<Annotation>>): void;
|
|
684
|
+
_disownAnnotations(): Orphan<List<Annotation>>;
|
|
685
|
+
get annotations(): List<Annotation>;
|
|
628
686
|
_hasAnnotations(): boolean;
|
|
629
|
-
_initAnnotations(length: number):
|
|
630
|
-
set annotations(value:
|
|
687
|
+
_initAnnotations(length: number): List<Annotation>;
|
|
688
|
+
set annotations(value: List<Annotation>);
|
|
631
689
|
toString(): string;
|
|
632
690
|
}
|
|
633
|
-
declare class Superclass extends
|
|
691
|
+
declare class Superclass extends Struct {
|
|
634
692
|
static readonly _capnp: {
|
|
635
693
|
displayName: string;
|
|
636
694
|
id: string;
|
|
637
|
-
size:
|
|
695
|
+
size: ObjectSize;
|
|
638
696
|
};
|
|
639
697
|
get id(): bigint;
|
|
640
698
|
set id(value: bigint);
|
|
641
|
-
_adoptBrand(value:
|
|
642
|
-
_disownBrand():
|
|
699
|
+
_adoptBrand(value: Orphan<Brand>): void;
|
|
700
|
+
_disownBrand(): Orphan<Brand>;
|
|
643
701
|
get brand(): Brand;
|
|
644
702
|
_hasBrand(): boolean;
|
|
645
703
|
_initBrand(): Brand;
|
|
@@ -650,14 +708,14 @@ declare class Superclass extends index_d_exports.Struct {
|
|
|
650
708
|
* Schema for method of an interface.
|
|
651
709
|
*
|
|
652
710
|
*/
|
|
653
|
-
declare class Method extends
|
|
711
|
+
declare class Method extends Struct {
|
|
654
712
|
static readonly _capnp: {
|
|
655
713
|
displayName: string;
|
|
656
714
|
id: string;
|
|
657
|
-
size:
|
|
715
|
+
size: ObjectSize;
|
|
658
716
|
};
|
|
659
|
-
static _ImplicitParameters:
|
|
660
|
-
static _Annotations:
|
|
717
|
+
static _ImplicitParameters: ListCtor<Node_Parameter>;
|
|
718
|
+
static _Annotations: ListCtor<Annotation>;
|
|
661
719
|
get name(): string;
|
|
662
720
|
set name(value: string);
|
|
663
721
|
/**
|
|
@@ -667,17 +725,17 @@ declare class Method extends index_d_exports.Struct {
|
|
|
667
725
|
*/
|
|
668
726
|
get codeOrder(): number;
|
|
669
727
|
set codeOrder(value: number);
|
|
670
|
-
_adoptImplicitParameters(value:
|
|
671
|
-
_disownImplicitParameters():
|
|
728
|
+
_adoptImplicitParameters(value: Orphan<List<Node_Parameter>>): void;
|
|
729
|
+
_disownImplicitParameters(): Orphan<List<Node_Parameter>>;
|
|
672
730
|
/**
|
|
673
731
|
* The parameters listed in [] (typically, type / generic parameters), whose bindings are intended
|
|
674
732
|
* to be inferred rather than specified explicitly, although not all languages support this.
|
|
675
733
|
*
|
|
676
734
|
*/
|
|
677
|
-
get implicitParameters():
|
|
735
|
+
get implicitParameters(): List<Node_Parameter>;
|
|
678
736
|
_hasImplicitParameters(): boolean;
|
|
679
|
-
_initImplicitParameters(length: number):
|
|
680
|
-
set implicitParameters(value:
|
|
737
|
+
_initImplicitParameters(length: number): List<Node_Parameter>;
|
|
738
|
+
set implicitParameters(value: List<Node_Parameter>);
|
|
681
739
|
/**
|
|
682
740
|
* ID of the parameter struct type. If a named parameter list was specified in the method
|
|
683
741
|
* declaration (rather than a single struct parameter type) then a corresponding struct type is
|
|
@@ -690,8 +748,8 @@ declare class Method extends index_d_exports.Struct {
|
|
|
690
748
|
*/
|
|
691
749
|
get paramStructType(): bigint;
|
|
692
750
|
set paramStructType(value: bigint);
|
|
693
|
-
_adoptParamBrand(value:
|
|
694
|
-
_disownParamBrand():
|
|
751
|
+
_adoptParamBrand(value: Orphan<Brand>): void;
|
|
752
|
+
_disownParamBrand(): Orphan<Brand>;
|
|
695
753
|
/**
|
|
696
754
|
* Brand of param struct type.
|
|
697
755
|
*
|
|
@@ -706,8 +764,8 @@ declare class Method extends index_d_exports.Struct {
|
|
|
706
764
|
*/
|
|
707
765
|
get resultStructType(): bigint;
|
|
708
766
|
set resultStructType(value: bigint);
|
|
709
|
-
_adoptResultBrand(value:
|
|
710
|
-
_disownResultBrand():
|
|
767
|
+
_adoptResultBrand(value: Orphan<Brand>): void;
|
|
768
|
+
_disownResultBrand(): Orphan<Brand>;
|
|
711
769
|
/**
|
|
712
770
|
* Brand of result struct type.
|
|
713
771
|
*
|
|
@@ -716,70 +774,70 @@ declare class Method extends index_d_exports.Struct {
|
|
|
716
774
|
_hasResultBrand(): boolean;
|
|
717
775
|
_initResultBrand(): Brand;
|
|
718
776
|
set resultBrand(value: Brand);
|
|
719
|
-
_adoptAnnotations(value:
|
|
720
|
-
_disownAnnotations():
|
|
721
|
-
get annotations():
|
|
777
|
+
_adoptAnnotations(value: Orphan<List<Annotation>>): void;
|
|
778
|
+
_disownAnnotations(): Orphan<List<Annotation>>;
|
|
779
|
+
get annotations(): List<Annotation>;
|
|
722
780
|
_hasAnnotations(): boolean;
|
|
723
|
-
_initAnnotations(length: number):
|
|
724
|
-
set annotations(value:
|
|
781
|
+
_initAnnotations(length: number): List<Annotation>;
|
|
782
|
+
set annotations(value: List<Annotation>);
|
|
725
783
|
toString(): string;
|
|
726
784
|
}
|
|
727
|
-
declare class Type_List extends
|
|
785
|
+
declare class Type_List extends Struct {
|
|
728
786
|
static readonly _capnp: {
|
|
729
787
|
displayName: string;
|
|
730
788
|
id: string;
|
|
731
|
-
size:
|
|
789
|
+
size: ObjectSize;
|
|
732
790
|
};
|
|
733
|
-
_adoptElementType(value:
|
|
734
|
-
_disownElementType():
|
|
791
|
+
_adoptElementType(value: Orphan<Type>): void;
|
|
792
|
+
_disownElementType(): Orphan<Type>;
|
|
735
793
|
get elementType(): Type;
|
|
736
794
|
_hasElementType(): boolean;
|
|
737
795
|
_initElementType(): Type;
|
|
738
796
|
set elementType(value: Type);
|
|
739
797
|
toString(): string;
|
|
740
798
|
}
|
|
741
|
-
declare class Type_Enum extends
|
|
799
|
+
declare class Type_Enum extends Struct {
|
|
742
800
|
static readonly _capnp: {
|
|
743
801
|
displayName: string;
|
|
744
802
|
id: string;
|
|
745
|
-
size:
|
|
803
|
+
size: ObjectSize;
|
|
746
804
|
};
|
|
747
805
|
get typeId(): bigint;
|
|
748
806
|
set typeId(value: bigint);
|
|
749
|
-
_adoptBrand(value:
|
|
750
|
-
_disownBrand():
|
|
807
|
+
_adoptBrand(value: Orphan<Brand>): void;
|
|
808
|
+
_disownBrand(): Orphan<Brand>;
|
|
751
809
|
get brand(): Brand;
|
|
752
810
|
_hasBrand(): boolean;
|
|
753
811
|
_initBrand(): Brand;
|
|
754
812
|
set brand(value: Brand);
|
|
755
813
|
toString(): string;
|
|
756
814
|
}
|
|
757
|
-
declare class Type_Struct extends
|
|
815
|
+
declare class Type_Struct extends Struct {
|
|
758
816
|
static readonly _capnp: {
|
|
759
817
|
displayName: string;
|
|
760
818
|
id: string;
|
|
761
|
-
size:
|
|
819
|
+
size: ObjectSize;
|
|
762
820
|
};
|
|
763
821
|
get typeId(): bigint;
|
|
764
822
|
set typeId(value: bigint);
|
|
765
|
-
_adoptBrand(value:
|
|
766
|
-
_disownBrand():
|
|
823
|
+
_adoptBrand(value: Orphan<Brand>): void;
|
|
824
|
+
_disownBrand(): Orphan<Brand>;
|
|
767
825
|
get brand(): Brand;
|
|
768
826
|
_hasBrand(): boolean;
|
|
769
827
|
_initBrand(): Brand;
|
|
770
828
|
set brand(value: Brand);
|
|
771
829
|
toString(): string;
|
|
772
830
|
}
|
|
773
|
-
declare class Type_Interface extends
|
|
831
|
+
declare class Type_Interface extends Struct {
|
|
774
832
|
static readonly _capnp: {
|
|
775
833
|
displayName: string;
|
|
776
834
|
id: string;
|
|
777
|
-
size:
|
|
835
|
+
size: ObjectSize;
|
|
778
836
|
};
|
|
779
837
|
get typeId(): bigint;
|
|
780
838
|
set typeId(value: bigint);
|
|
781
|
-
_adoptBrand(value:
|
|
782
|
-
_disownBrand():
|
|
839
|
+
_adoptBrand(value: Orphan<Brand>): void;
|
|
840
|
+
_disownBrand(): Orphan<Brand>;
|
|
783
841
|
get brand(): Brand;
|
|
784
842
|
_hasBrand(): boolean;
|
|
785
843
|
_initBrand(): Brand;
|
|
@@ -817,7 +875,7 @@ type Type_AnyPointer_Unconstrained_Which = (typeof Type_AnyPointer_Unconstrained
|
|
|
817
875
|
* to be a struct, list, or capability.
|
|
818
876
|
*
|
|
819
877
|
*/
|
|
820
|
-
declare class Type_AnyPointer_Unconstrained extends
|
|
878
|
+
declare class Type_AnyPointer_Unconstrained extends Struct {
|
|
821
879
|
static readonly ANY_KIND: 0;
|
|
822
880
|
static readonly STRUCT: 1;
|
|
823
881
|
static readonly LIST: 2;
|
|
@@ -825,7 +883,7 @@ declare class Type_AnyPointer_Unconstrained extends index_d_exports.Struct {
|
|
|
825
883
|
static readonly _capnp: {
|
|
826
884
|
displayName: string;
|
|
827
885
|
id: string;
|
|
828
|
-
size:
|
|
886
|
+
size: ObjectSize;
|
|
829
887
|
};
|
|
830
888
|
get _isAnyKind(): boolean;
|
|
831
889
|
set anyKind(_: true);
|
|
@@ -842,11 +900,11 @@ declare class Type_AnyPointer_Unconstrained extends index_d_exports.Struct {
|
|
|
842
900
|
* This is actually a reference to a type parameter defined within this scope.
|
|
843
901
|
*
|
|
844
902
|
*/
|
|
845
|
-
declare class Type_AnyPointer_Parameter extends
|
|
903
|
+
declare class Type_AnyPointer_Parameter extends Struct {
|
|
846
904
|
static readonly _capnp: {
|
|
847
905
|
displayName: string;
|
|
848
906
|
id: string;
|
|
849
|
-
size:
|
|
907
|
+
size: ObjectSize;
|
|
850
908
|
};
|
|
851
909
|
/**
|
|
852
910
|
* ID of the generic type whose parameter we're referencing. This should be a parent of the
|
|
@@ -868,11 +926,11 @@ declare class Type_AnyPointer_Parameter extends index_d_exports.Struct {
|
|
|
868
926
|
* legal context for this type to appear is inside Method.paramBrand or Method.resultBrand.
|
|
869
927
|
*
|
|
870
928
|
*/
|
|
871
|
-
declare class Type_AnyPointer_ImplicitMethodParameter extends
|
|
929
|
+
declare class Type_AnyPointer_ImplicitMethodParameter extends Struct {
|
|
872
930
|
static readonly _capnp: {
|
|
873
931
|
displayName: string;
|
|
874
932
|
id: string;
|
|
875
|
-
size:
|
|
933
|
+
size: ObjectSize;
|
|
876
934
|
};
|
|
877
935
|
get parameterIndex(): number;
|
|
878
936
|
set parameterIndex(value: number);
|
|
@@ -901,14 +959,14 @@ declare const Type_AnyPointer_Which: {
|
|
|
901
959
|
readonly IMPLICIT_METHOD_PARAMETER: 2;
|
|
902
960
|
};
|
|
903
961
|
type Type_AnyPointer_Which = (typeof Type_AnyPointer_Which)[keyof typeof Type_AnyPointer_Which];
|
|
904
|
-
declare class Type_AnyPointer extends
|
|
962
|
+
declare class Type_AnyPointer extends Struct {
|
|
905
963
|
static readonly UNCONSTRAINED: 0;
|
|
906
964
|
static readonly PARAMETER: 1;
|
|
907
965
|
static readonly IMPLICIT_METHOD_PARAMETER: 2;
|
|
908
966
|
static readonly _capnp: {
|
|
909
967
|
displayName: string;
|
|
910
968
|
id: string;
|
|
911
|
-
size:
|
|
969
|
+
size: ObjectSize;
|
|
912
970
|
};
|
|
913
971
|
/**
|
|
914
972
|
* A regular AnyPointer.
|
|
@@ -968,7 +1026,7 @@ type Type_Which = (typeof Type_Which)[keyof typeof Type_Which];
|
|
|
968
1026
|
* Represents a type expression.
|
|
969
1027
|
*
|
|
970
1028
|
*/
|
|
971
|
-
declare class Type extends
|
|
1029
|
+
declare class Type extends Struct {
|
|
972
1030
|
static readonly VOID: 0;
|
|
973
1031
|
static readonly BOOL: 1;
|
|
974
1032
|
static readonly INT8: 2;
|
|
@@ -991,7 +1049,7 @@ declare class Type extends index_d_exports.Struct {
|
|
|
991
1049
|
static readonly _capnp: {
|
|
992
1050
|
displayName: string;
|
|
993
1051
|
id: string;
|
|
994
|
-
size:
|
|
1052
|
+
size: ObjectSize;
|
|
995
1053
|
};
|
|
996
1054
|
get _isVoid(): boolean;
|
|
997
1055
|
set void(_: true);
|
|
@@ -1057,32 +1115,32 @@ declare const Brand_Scope_Which: {
|
|
|
1057
1115
|
readonly INHERIT: 1;
|
|
1058
1116
|
};
|
|
1059
1117
|
type Brand_Scope_Which = (typeof Brand_Scope_Which)[keyof typeof Brand_Scope_Which];
|
|
1060
|
-
declare class Brand_Scope extends
|
|
1118
|
+
declare class Brand_Scope extends Struct {
|
|
1061
1119
|
static readonly BIND: 0;
|
|
1062
1120
|
static readonly INHERIT: 1;
|
|
1063
1121
|
static readonly _capnp: {
|
|
1064
1122
|
displayName: string;
|
|
1065
1123
|
id: string;
|
|
1066
|
-
size:
|
|
1124
|
+
size: ObjectSize;
|
|
1067
1125
|
};
|
|
1068
|
-
static _Bind:
|
|
1126
|
+
static _Bind: ListCtor<Brand_Binding>;
|
|
1069
1127
|
/**
|
|
1070
1128
|
* ID of the scope to which these params apply.
|
|
1071
1129
|
*
|
|
1072
1130
|
*/
|
|
1073
1131
|
get scopeId(): bigint;
|
|
1074
1132
|
set scopeId(value: bigint);
|
|
1075
|
-
_adoptBind(value:
|
|
1076
|
-
_disownBind():
|
|
1133
|
+
_adoptBind(value: Orphan<List<Brand_Binding>>): void;
|
|
1134
|
+
_disownBind(): Orphan<List<Brand_Binding>>;
|
|
1077
1135
|
/**
|
|
1078
1136
|
* List of parameter bindings.
|
|
1079
1137
|
*
|
|
1080
1138
|
*/
|
|
1081
|
-
get bind():
|
|
1139
|
+
get bind(): List<Brand_Binding>;
|
|
1082
1140
|
_hasBind(): boolean;
|
|
1083
|
-
_initBind(length: number):
|
|
1141
|
+
_initBind(length: number): List<Brand_Binding>;
|
|
1084
1142
|
get _isBind(): boolean;
|
|
1085
|
-
set bind(value:
|
|
1143
|
+
set bind(value: List<Brand_Binding>);
|
|
1086
1144
|
get _isInherit(): boolean;
|
|
1087
1145
|
set inherit(_: true);
|
|
1088
1146
|
toString(): string;
|
|
@@ -1093,18 +1151,18 @@ declare const Brand_Binding_Which: {
|
|
|
1093
1151
|
readonly TYPE: 1;
|
|
1094
1152
|
};
|
|
1095
1153
|
type Brand_Binding_Which = (typeof Brand_Binding_Which)[keyof typeof Brand_Binding_Which];
|
|
1096
|
-
declare class Brand_Binding extends
|
|
1154
|
+
declare class Brand_Binding extends Struct {
|
|
1097
1155
|
static readonly UNBOUND: 0;
|
|
1098
1156
|
static readonly TYPE: 1;
|
|
1099
1157
|
static readonly _capnp: {
|
|
1100
1158
|
displayName: string;
|
|
1101
1159
|
id: string;
|
|
1102
|
-
size:
|
|
1160
|
+
size: ObjectSize;
|
|
1103
1161
|
};
|
|
1104
1162
|
get _isUnbound(): boolean;
|
|
1105
1163
|
set unbound(_: true);
|
|
1106
|
-
_adoptType(value:
|
|
1107
|
-
_disownType():
|
|
1164
|
+
_adoptType(value: Orphan<Type>): void;
|
|
1165
|
+
_disownType(): Orphan<Type>;
|
|
1108
1166
|
get type(): Type;
|
|
1109
1167
|
_hasType(): boolean;
|
|
1110
1168
|
_initType(): Type;
|
|
@@ -1118,27 +1176,27 @@ declare class Brand_Binding extends index_d_exports.Struct {
|
|
|
1118
1176
|
* non-generic, we call it the "brand".
|
|
1119
1177
|
*
|
|
1120
1178
|
*/
|
|
1121
|
-
declare class Brand extends
|
|
1179
|
+
declare class Brand extends Struct {
|
|
1122
1180
|
static readonly Scope: typeof Brand_Scope;
|
|
1123
1181
|
static readonly Binding: typeof Brand_Binding;
|
|
1124
1182
|
static readonly _capnp: {
|
|
1125
1183
|
displayName: string;
|
|
1126
1184
|
id: string;
|
|
1127
|
-
size:
|
|
1185
|
+
size: ObjectSize;
|
|
1128
1186
|
};
|
|
1129
|
-
static _Scopes:
|
|
1130
|
-
_adoptScopes(value:
|
|
1131
|
-
_disownScopes():
|
|
1187
|
+
static _Scopes: ListCtor<Brand_Scope>;
|
|
1188
|
+
_adoptScopes(value: Orphan<List<Brand_Scope>>): void;
|
|
1189
|
+
_disownScopes(): Orphan<List<Brand_Scope>>;
|
|
1132
1190
|
/**
|
|
1133
1191
|
* For each of the target type and each of its parent scopes, a parameterization may be included
|
|
1134
1192
|
* in this list. If no parameterization is included for a particular relevant scope, then either
|
|
1135
1193
|
* that scope has no parameters or all parameters should be considered to be `AnyPointer`.
|
|
1136
1194
|
*
|
|
1137
1195
|
*/
|
|
1138
|
-
get scopes():
|
|
1196
|
+
get scopes(): List<Brand_Scope>;
|
|
1139
1197
|
_hasScopes(): boolean;
|
|
1140
|
-
_initScopes(length: number):
|
|
1141
|
-
set scopes(value:
|
|
1198
|
+
_initScopes(length: number): List<Brand_Scope>;
|
|
1199
|
+
set scopes(value: List<Brand_Scope>);
|
|
1142
1200
|
toString(): string;
|
|
1143
1201
|
}
|
|
1144
1202
|
declare const Value_Which: {
|
|
@@ -1172,7 +1230,7 @@ type Value_Which = (typeof Value_Which)[keyof typeof Value_Which];
|
|
|
1172
1230
|
* Represents a value, e.g. a field default value, constant value, or annotation value.
|
|
1173
1231
|
*
|
|
1174
1232
|
*/
|
|
1175
|
-
declare class Value extends
|
|
1233
|
+
declare class Value extends Struct {
|
|
1176
1234
|
static readonly VOID: 0;
|
|
1177
1235
|
static readonly BOOL: 1;
|
|
1178
1236
|
static readonly INT8: 2;
|
|
@@ -1195,7 +1253,7 @@ declare class Value extends index_d_exports.Struct {
|
|
|
1195
1253
|
static readonly _capnp: {
|
|
1196
1254
|
displayName: string;
|
|
1197
1255
|
id: string;
|
|
1198
|
-
size:
|
|
1256
|
+
size: ObjectSize;
|
|
1199
1257
|
};
|
|
1200
1258
|
get _isVoid(): boolean;
|
|
1201
1259
|
set void(_: true);
|
|
@@ -1235,36 +1293,36 @@ declare class Value extends index_d_exports.Struct {
|
|
|
1235
1293
|
get text(): string;
|
|
1236
1294
|
get _isText(): boolean;
|
|
1237
1295
|
set text(value: string);
|
|
1238
|
-
_adoptData(value:
|
|
1239
|
-
_disownData():
|
|
1240
|
-
get data():
|
|
1296
|
+
_adoptData(value: Orphan<Data>): void;
|
|
1297
|
+
_disownData(): Orphan<Data>;
|
|
1298
|
+
get data(): Data;
|
|
1241
1299
|
_hasData(): boolean;
|
|
1242
|
-
_initData(length: number):
|
|
1300
|
+
_initData(length: number): Data;
|
|
1243
1301
|
get _isData(): boolean;
|
|
1244
|
-
set data(value:
|
|
1245
|
-
_adoptList(value:
|
|
1246
|
-
_disownList():
|
|
1247
|
-
get list():
|
|
1302
|
+
set data(value: Data);
|
|
1303
|
+
_adoptList(value: Orphan<Pointer>): void;
|
|
1304
|
+
_disownList(): Orphan<Pointer>;
|
|
1305
|
+
get list(): Pointer;
|
|
1248
1306
|
_hasList(): boolean;
|
|
1249
1307
|
get _isList(): boolean;
|
|
1250
|
-
set list(value:
|
|
1308
|
+
set list(value: Pointer);
|
|
1251
1309
|
get enum(): number;
|
|
1252
1310
|
get _isEnum(): boolean;
|
|
1253
1311
|
set enum(value: number);
|
|
1254
|
-
_adoptStruct(value:
|
|
1255
|
-
_disownStruct():
|
|
1256
|
-
get struct():
|
|
1312
|
+
_adoptStruct(value: Orphan<Pointer>): void;
|
|
1313
|
+
_disownStruct(): Orphan<Pointer>;
|
|
1314
|
+
get struct(): Pointer;
|
|
1257
1315
|
_hasStruct(): boolean;
|
|
1258
1316
|
get _isStruct(): boolean;
|
|
1259
|
-
set struct(value:
|
|
1317
|
+
set struct(value: Pointer);
|
|
1260
1318
|
get _isInterface(): boolean;
|
|
1261
1319
|
set interface(_: true);
|
|
1262
|
-
_adoptAnyPointer(value:
|
|
1263
|
-
_disownAnyPointer():
|
|
1264
|
-
get anyPointer():
|
|
1320
|
+
_adoptAnyPointer(value: Orphan<Pointer>): void;
|
|
1321
|
+
_disownAnyPointer(): Orphan<Pointer>;
|
|
1322
|
+
get anyPointer(): Pointer;
|
|
1265
1323
|
_hasAnyPointer(): boolean;
|
|
1266
1324
|
get _isAnyPointer(): boolean;
|
|
1267
|
-
set anyPointer(value:
|
|
1325
|
+
set anyPointer(value: Pointer);
|
|
1268
1326
|
toString(): string;
|
|
1269
1327
|
which(): Value_Which;
|
|
1270
1328
|
}
|
|
@@ -1273,11 +1331,11 @@ declare class Value extends index_d_exports.Struct {
|
|
|
1273
1331
|
* annotation's declaration, while this describes a use of the annotation.
|
|
1274
1332
|
*
|
|
1275
1333
|
*/
|
|
1276
|
-
declare class Annotation extends
|
|
1334
|
+
declare class Annotation extends Struct {
|
|
1277
1335
|
static readonly _capnp: {
|
|
1278
1336
|
displayName: string;
|
|
1279
1337
|
id: string;
|
|
1280
|
-
size:
|
|
1338
|
+
size: ObjectSize;
|
|
1281
1339
|
};
|
|
1282
1340
|
/**
|
|
1283
1341
|
* ID of the annotation node.
|
|
@@ -1285,8 +1343,8 @@ declare class Annotation extends index_d_exports.Struct {
|
|
|
1285
1343
|
*/
|
|
1286
1344
|
get id(): bigint;
|
|
1287
1345
|
set id(value: bigint);
|
|
1288
|
-
_adoptBrand(value:
|
|
1289
|
-
_disownBrand():
|
|
1346
|
+
_adoptBrand(value: Orphan<Brand>): void;
|
|
1347
|
+
_disownBrand(): Orphan<Brand>;
|
|
1290
1348
|
/**
|
|
1291
1349
|
* Brand of the annotation.
|
|
1292
1350
|
*
|
|
@@ -1297,8 +1355,8 @@ declare class Annotation extends index_d_exports.Struct {
|
|
|
1297
1355
|
_hasBrand(): boolean;
|
|
1298
1356
|
_initBrand(): Brand;
|
|
1299
1357
|
set brand(value: Brand);
|
|
1300
|
-
_adoptValue(value:
|
|
1301
|
-
_disownValue():
|
|
1358
|
+
_adoptValue(value: Orphan<Value>): void;
|
|
1359
|
+
_disownValue(): Orphan<Value>;
|
|
1302
1360
|
get value(): Value;
|
|
1303
1361
|
_hasValue(): boolean;
|
|
1304
1362
|
_initValue(): Value;
|
|
@@ -1320,11 +1378,11 @@ declare const ElementSize: {
|
|
|
1320
1378
|
readonly INLINE_COMPOSITE: 7;
|
|
1321
1379
|
};
|
|
1322
1380
|
type ElementSize = (typeof ElementSize)[keyof typeof ElementSize];
|
|
1323
|
-
declare class CapnpVersion extends
|
|
1381
|
+
declare class CapnpVersion extends Struct {
|
|
1324
1382
|
static readonly _capnp: {
|
|
1325
1383
|
displayName: string;
|
|
1326
1384
|
id: string;
|
|
1327
|
-
size:
|
|
1385
|
+
size: ObjectSize;
|
|
1328
1386
|
};
|
|
1329
1387
|
get major(): number;
|
|
1330
1388
|
set major(value: number);
|
|
@@ -1334,11 +1392,11 @@ declare class CapnpVersion extends index_d_exports.Struct {
|
|
|
1334
1392
|
set micro(value: number);
|
|
1335
1393
|
toString(): string;
|
|
1336
1394
|
}
|
|
1337
|
-
declare class CodeGeneratorRequest_RequestedFile_Import extends
|
|
1395
|
+
declare class CodeGeneratorRequest_RequestedFile_Import extends Struct {
|
|
1338
1396
|
static readonly _capnp: {
|
|
1339
1397
|
displayName: string;
|
|
1340
1398
|
id: string;
|
|
1341
|
-
size:
|
|
1399
|
+
size: ObjectSize;
|
|
1342
1400
|
};
|
|
1343
1401
|
/**
|
|
1344
1402
|
* ID of the imported file.
|
|
@@ -1359,14 +1417,14 @@ declare class CodeGeneratorRequest_RequestedFile_Import extends index_d_exports.
|
|
|
1359
1417
|
set name(value: string);
|
|
1360
1418
|
toString(): string;
|
|
1361
1419
|
}
|
|
1362
|
-
declare class CodeGeneratorRequest_RequestedFile extends
|
|
1420
|
+
declare class CodeGeneratorRequest_RequestedFile extends Struct {
|
|
1363
1421
|
static readonly Import: typeof CodeGeneratorRequest_RequestedFile_Import;
|
|
1364
1422
|
static readonly _capnp: {
|
|
1365
1423
|
displayName: string;
|
|
1366
1424
|
id: string;
|
|
1367
|
-
size:
|
|
1425
|
+
size: ObjectSize;
|
|
1368
1426
|
};
|
|
1369
|
-
static _Imports:
|
|
1427
|
+
static _Imports: ListCtor<CodeGeneratorRequest_RequestedFile_Import>;
|
|
1370
1428
|
/**
|
|
1371
1429
|
* ID of the file.
|
|
1372
1430
|
*
|
|
@@ -1380,30 +1438,30 @@ declare class CodeGeneratorRequest_RequestedFile extends index_d_exports.Struct
|
|
|
1380
1438
|
*/
|
|
1381
1439
|
get filename(): string;
|
|
1382
1440
|
set filename(value: string);
|
|
1383
|
-
_adoptImports(value:
|
|
1384
|
-
_disownImports():
|
|
1441
|
+
_adoptImports(value: Orphan<List<CodeGeneratorRequest_RequestedFile_Import>>): void;
|
|
1442
|
+
_disownImports(): Orphan<List<CodeGeneratorRequest_RequestedFile_Import>>;
|
|
1385
1443
|
/**
|
|
1386
1444
|
* List of all imported paths seen in this file.
|
|
1387
1445
|
*
|
|
1388
1446
|
*/
|
|
1389
|
-
get imports():
|
|
1447
|
+
get imports(): List<CodeGeneratorRequest_RequestedFile_Import>;
|
|
1390
1448
|
_hasImports(): boolean;
|
|
1391
|
-
_initImports(length: number):
|
|
1392
|
-
set imports(value:
|
|
1449
|
+
_initImports(length: number): List<CodeGeneratorRequest_RequestedFile_Import>;
|
|
1450
|
+
set imports(value: List<CodeGeneratorRequest_RequestedFile_Import>);
|
|
1393
1451
|
toString(): string;
|
|
1394
1452
|
}
|
|
1395
|
-
declare class CodeGeneratorRequest extends
|
|
1453
|
+
declare class CodeGeneratorRequest extends Struct {
|
|
1396
1454
|
static readonly RequestedFile: typeof CodeGeneratorRequest_RequestedFile;
|
|
1397
1455
|
static readonly _capnp: {
|
|
1398
1456
|
displayName: string;
|
|
1399
1457
|
id: string;
|
|
1400
|
-
size:
|
|
1458
|
+
size: ObjectSize;
|
|
1401
1459
|
};
|
|
1402
|
-
static _Nodes:
|
|
1403
|
-
static _SourceInfo:
|
|
1404
|
-
static _RequestedFiles:
|
|
1405
|
-
_adoptCapnpVersion(value:
|
|
1406
|
-
_disownCapnpVersion():
|
|
1460
|
+
static _Nodes: ListCtor<Node>;
|
|
1461
|
+
static _SourceInfo: ListCtor<Node_SourceInfo>;
|
|
1462
|
+
static _RequestedFiles: ListCtor<CodeGeneratorRequest_RequestedFile>;
|
|
1463
|
+
_adoptCapnpVersion(value: Orphan<CapnpVersion>): void;
|
|
1464
|
+
_disownCapnpVersion(): Orphan<CapnpVersion>;
|
|
1407
1465
|
/**
|
|
1408
1466
|
* Version of the `capnp` executable. Generally, code generators should ignore this, but the code
|
|
1409
1467
|
* generators that ship with `capnp` itself will print a warning if this mismatches since that
|
|
@@ -1417,38 +1475,38 @@ declare class CodeGeneratorRequest extends index_d_exports.Struct {
|
|
|
1417
1475
|
_hasCapnpVersion(): boolean;
|
|
1418
1476
|
_initCapnpVersion(): CapnpVersion;
|
|
1419
1477
|
set capnpVersion(value: CapnpVersion);
|
|
1420
|
-
_adoptNodes(value:
|
|
1421
|
-
_disownNodes():
|
|
1478
|
+
_adoptNodes(value: Orphan<List<Node>>): void;
|
|
1479
|
+
_disownNodes(): Orphan<List<Node>>;
|
|
1422
1480
|
/**
|
|
1423
1481
|
* All nodes parsed by the compiler, including for the files on the command line and their
|
|
1424
1482
|
* imports.
|
|
1425
1483
|
*
|
|
1426
1484
|
*/
|
|
1427
|
-
get nodes():
|
|
1485
|
+
get nodes(): List<Node>;
|
|
1428
1486
|
_hasNodes(): boolean;
|
|
1429
|
-
_initNodes(length: number):
|
|
1430
|
-
set nodes(value:
|
|
1431
|
-
_adoptSourceInfo(value:
|
|
1432
|
-
_disownSourceInfo():
|
|
1487
|
+
_initNodes(length: number): List<Node>;
|
|
1488
|
+
set nodes(value: List<Node>);
|
|
1489
|
+
_adoptSourceInfo(value: Orphan<List<Node_SourceInfo>>): void;
|
|
1490
|
+
_disownSourceInfo(): Orphan<List<Node_SourceInfo>>;
|
|
1433
1491
|
/**
|
|
1434
1492
|
* Information about the original source code for each node, where available. This array may be
|
|
1435
1493
|
* omitted or may be missing some nodes if no info is available for them.
|
|
1436
1494
|
*
|
|
1437
1495
|
*/
|
|
1438
|
-
get sourceInfo():
|
|
1496
|
+
get sourceInfo(): List<Node_SourceInfo>;
|
|
1439
1497
|
_hasSourceInfo(): boolean;
|
|
1440
|
-
_initSourceInfo(length: number):
|
|
1441
|
-
set sourceInfo(value:
|
|
1442
|
-
_adoptRequestedFiles(value:
|
|
1443
|
-
_disownRequestedFiles():
|
|
1498
|
+
_initSourceInfo(length: number): List<Node_SourceInfo>;
|
|
1499
|
+
set sourceInfo(value: List<Node_SourceInfo>);
|
|
1500
|
+
_adoptRequestedFiles(value: Orphan<List<CodeGeneratorRequest_RequestedFile>>): void;
|
|
1501
|
+
_disownRequestedFiles(): Orphan<List<CodeGeneratorRequest_RequestedFile>>;
|
|
1444
1502
|
/**
|
|
1445
1503
|
* Files which were listed on the command line.
|
|
1446
1504
|
*
|
|
1447
1505
|
*/
|
|
1448
|
-
get requestedFiles():
|
|
1506
|
+
get requestedFiles(): List<CodeGeneratorRequest_RequestedFile>;
|
|
1449
1507
|
_hasRequestedFiles(): boolean;
|
|
1450
|
-
_initRequestedFiles(length: number):
|
|
1451
|
-
set requestedFiles(value:
|
|
1508
|
+
_initRequestedFiles(length: number): List<CodeGeneratorRequest_RequestedFile>;
|
|
1509
|
+
set requestedFiles(value: List<CodeGeneratorRequest_RequestedFile>);
|
|
1452
1510
|
toString(): string;
|
|
1453
1511
|
}
|
|
1454
1512
|
//#endregion
|