@stryke/capnp
Version:
A package to assist in running the Cap'n Proto compiler and creating Cap'n Proto serialization protocol schemas.
1,496 lines (1,476 loc) • 93.2 kB
JavaScript
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); var _class; var _class2; var _class3; var _class4; var _class5; var _class6; var _class7; var _class8; var _class9; var _class10; var _class11; var _class12; var _class13; var _class14; var _class15; var _class16; var _class17; var _class18; var _class19; var _class20; var _class21; var _class22; var _class23; var _class24; var _class25; var _class26; var _class27; var _class28; var _class29; var _class30; var _class31; var _class32; var _class33; var _class34; var _class35;
var _chunk3Y2DQ67Zcjs = require('./chunk-3Y2DQ67Z.cjs');
var _chunkUSNT2KNTcjs = require('./chunk-USNT2KNT.cjs');
// schemas/schema.ts
var _capnpFileId = BigInt("0xa93fc509624c72d9");
var Node_Parameter = (_class = class extends _chunk3Y2DQ67Zcjs.Struct {
static {
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Node_Parameter");
}
static __initStatic() {this._capnp = {
displayName: "Parameter",
id: "b9521bccf10fa3b1",
size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(0, 1)
}}
get name() {
return _chunk3Y2DQ67Zcjs.utils.getText(0, this);
}
set name(value) {
_chunk3Y2DQ67Zcjs.utils.setText(0, value, this);
}
toString() {
return "Node_Parameter_" + super.toString();
}
}, _class.__initStatic(), _class);
var Node_NestedNode = (_class2 = class extends _chunk3Y2DQ67Zcjs.Struct {
static {
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Node_NestedNode");
}
static __initStatic2() {this._capnp = {
displayName: "NestedNode",
id: "debf55bbfa0fc242",
size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(8, 1)
}}
/**
* Unqualified symbol name. Unlike Node.displayName, this *can* be used programmatically.
*
* (On Zooko's triangle, this is the node's petname according to its parent scope.)
*
*/
get name() {
return _chunk3Y2DQ67Zcjs.utils.getText(0, this);
}
set name(value) {
_chunk3Y2DQ67Zcjs.utils.setText(0, value, this);
}
/**
* ID of the nested node. Typically, the target node's scopeId points back to this node, but
* robust code should avoid relying on this.
*
*/
get id() {
return _chunk3Y2DQ67Zcjs.utils.getUint64(0, this);
}
set id(value) {
_chunk3Y2DQ67Zcjs.utils.setUint64(0, value, this);
}
toString() {
return "Node_NestedNode_" + super.toString();
}
}, _class2.__initStatic2(), _class2);
var Node_SourceInfo_Member = (_class3 = class extends _chunk3Y2DQ67Zcjs.Struct {
static {
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Node_SourceInfo_Member");
}
static __initStatic3() {this._capnp = {
displayName: "Member",
id: "c2ba9038898e1fa2",
size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(0, 1)
}}
/**
* Doc comment on the member.
*
*/
get docComment() {
return _chunk3Y2DQ67Zcjs.utils.getText(0, this);
}
set docComment(value) {
_chunk3Y2DQ67Zcjs.utils.setText(0, value, this);
}
toString() {
return "Node_SourceInfo_Member_" + super.toString();
}
}, _class3.__initStatic3(), _class3);
var Node_SourceInfo = (_class4 = class _Node_SourceInfo extends _chunk3Y2DQ67Zcjs.Struct {
static {
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Node_SourceInfo");
}
static __initStatic4() {this.Member = Node_SourceInfo_Member}
static __initStatic5() {this._capnp = {
displayName: "SourceInfo",
id: "f38e1de3041357ae",
size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(8, 2)
}}
/**
* ID of the Node which this info describes.
*
*/
get id() {
return _chunk3Y2DQ67Zcjs.utils.getUint64(0, this);
}
set id(value) {
_chunk3Y2DQ67Zcjs.utils.setUint64(0, value, this);
}
/**
* The top-level doc comment for the Node.
*
*/
get docComment() {
return _chunk3Y2DQ67Zcjs.utils.getText(0, this);
}
set docComment(value) {
_chunk3Y2DQ67Zcjs.utils.setText(0, value, this);
}
_adoptMembers(value) {
_chunk3Y2DQ67Zcjs.utils.adopt(value, _chunk3Y2DQ67Zcjs.utils.getPointer(1, this));
}
_disownMembers() {
return _chunk3Y2DQ67Zcjs.utils.disown(this.members);
}
/**
* Information about each member -- i.e. fields (for structs), enumerants (for enums), or
* methods (for interfaces).
*
* This list is the same length and order as the corresponding list in the Node, i.e.
* Node.struct.fields, Node.enum.enumerants, or Node.interface.methods.
*
*/
get members() {
return _chunk3Y2DQ67Zcjs.utils.getList(1, _Node_SourceInfo._Members, this);
}
_hasMembers() {
return !_chunk3Y2DQ67Zcjs.utils.isNull(_chunk3Y2DQ67Zcjs.utils.getPointer(1, this));
}
_initMembers(length) {
return _chunk3Y2DQ67Zcjs.utils.initList(1, _Node_SourceInfo._Members, length, this);
}
set members(value) {
_chunk3Y2DQ67Zcjs.utils.copyFrom(value, _chunk3Y2DQ67Zcjs.utils.getPointer(1, this));
}
toString() {
return "Node_SourceInfo_" + super.toString();
}
}, _class4.__initStatic4(), _class4.__initStatic5(), _class4);
var Node_Struct = (_class5 = class _Node_Struct extends _chunk3Y2DQ67Zcjs.Struct {
static {
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Node_Struct");
}
static __initStatic6() {this._capnp = {
displayName: "struct",
id: "9ea0b19b37fb4435",
size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(40, 6)
}}
/**
* Size of the data section, in words.
*
*/
get dataWordCount() {
return _chunk3Y2DQ67Zcjs.utils.getUint16(14, this);
}
set dataWordCount(value) {
_chunk3Y2DQ67Zcjs.utils.setUint16(14, value, this);
}
/**
* Size of the pointer section, in pointers (which are one word each).
*
*/
get pointerCount() {
return _chunk3Y2DQ67Zcjs.utils.getUint16(24, this);
}
set pointerCount(value) {
_chunk3Y2DQ67Zcjs.utils.setUint16(24, value, this);
}
/**
* The preferred element size to use when encoding a list of this struct. If this is anything
* other than `inlineComposite` then the struct is one word or less in size and is a candidate
* for list packing optimization.
*
*/
get preferredListEncoding() {
return _chunk3Y2DQ67Zcjs.utils.getUint16(26, this);
}
set preferredListEncoding(value) {
_chunk3Y2DQ67Zcjs.utils.setUint16(26, value, this);
}
/**
* If true, then this "struct" node is actually not an independent node, but merely represents
* some named union or group within a particular parent struct. This node's scopeId refers
* to the parent struct, which may itself be a union/group in yet another struct.
*
* All group nodes share the same dataWordCount and pointerCount as the top-level
* struct, and their fields live in the same ordinal and offset spaces as all other fields in
* the struct.
*
* Note that a named union is considered a special kind of group -- in fact, a named union
* is exactly equivalent to a group that contains nothing but an unnamed union.
*
*/
get isGroup() {
return _chunk3Y2DQ67Zcjs.utils.getBit(224, this);
}
set isGroup(value) {
_chunk3Y2DQ67Zcjs.utils.setBit(224, value, this);
}
/**
* Number of fields in this struct which are members of an anonymous union, and thus may
* overlap. If this is non-zero, then a 16-bit discriminant is present indicating which
* of the overlapping fields is active. This can never be 1 -- if it is non-zero, it must be
* two or more.
*
* Note that the fields of an unnamed union are considered fields of the scope containing the
* union -- an unnamed union is not its own group. So, a top-level struct may contain a
* non-zero discriminant count. Named unions, on the other hand, are equivalent to groups
* containing unnamed unions. So, a named union has its own independent schema node, with
* `isGroup` = true.
*
*/
get discriminantCount() {
return _chunk3Y2DQ67Zcjs.utils.getUint16(30, this);
}
set discriminantCount(value) {
_chunk3Y2DQ67Zcjs.utils.setUint16(30, value, this);
}
/**
* If `discriminantCount` is non-zero, this is the offset of the union discriminant, in
* multiples of 16 bits.
*
*/
get discriminantOffset() {
return _chunk3Y2DQ67Zcjs.utils.getUint32(32, this);
}
set discriminantOffset(value) {
_chunk3Y2DQ67Zcjs.utils.setUint32(32, value, this);
}
_adoptFields(value) {
_chunk3Y2DQ67Zcjs.utils.adopt(value, _chunk3Y2DQ67Zcjs.utils.getPointer(3, this));
}
_disownFields() {
return _chunk3Y2DQ67Zcjs.utils.disown(this.fields);
}
/**
* Fields defined within this scope (either the struct's top-level fields, or the fields of
* a particular group; see `isGroup`).
*
* The fields are sorted by ordinal number, but note that because groups share the same
* ordinal space, the field's index in this list is not necessarily exactly its ordinal.
* On the other hand, the field's position in this list does remain the same even as the
* protocol evolves, since it is not possible to insert or remove an earlier ordinal.
* Therefore, for most use cases, if you want to identify a field by number, it may make the
* most sense to use the field's index in this list rather than its ordinal.
*
*/
get fields() {
return _chunk3Y2DQ67Zcjs.utils.getList(3, _Node_Struct._Fields, this);
}
_hasFields() {
return !_chunk3Y2DQ67Zcjs.utils.isNull(_chunk3Y2DQ67Zcjs.utils.getPointer(3, this));
}
_initFields(length) {
return _chunk3Y2DQ67Zcjs.utils.initList(3, _Node_Struct._Fields, length, this);
}
set fields(value) {
_chunk3Y2DQ67Zcjs.utils.copyFrom(value, _chunk3Y2DQ67Zcjs.utils.getPointer(3, this));
}
toString() {
return "Node_Struct_" + super.toString();
}
}, _class5.__initStatic6(), _class5);
var Node_Enum = (_class6 = class _Node_Enum extends _chunk3Y2DQ67Zcjs.Struct {
static {
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Node_Enum");
}
static __initStatic7() {this._capnp = {
displayName: "enum",
id: "b54ab3364333f598",
size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(40, 6)
}}
_adoptEnumerants(value) {
_chunk3Y2DQ67Zcjs.utils.adopt(value, _chunk3Y2DQ67Zcjs.utils.getPointer(3, this));
}
_disownEnumerants() {
return _chunk3Y2DQ67Zcjs.utils.disown(this.enumerants);
}
/**
* Enumerants ordered by numeric value (ordinal).
*
*/
get enumerants() {
return _chunk3Y2DQ67Zcjs.utils.getList(3, _Node_Enum._Enumerants, this);
}
_hasEnumerants() {
return !_chunk3Y2DQ67Zcjs.utils.isNull(_chunk3Y2DQ67Zcjs.utils.getPointer(3, this));
}
_initEnumerants(length) {
return _chunk3Y2DQ67Zcjs.utils.initList(3, _Node_Enum._Enumerants, length, this);
}
set enumerants(value) {
_chunk3Y2DQ67Zcjs.utils.copyFrom(value, _chunk3Y2DQ67Zcjs.utils.getPointer(3, this));
}
toString() {
return "Node_Enum_" + super.toString();
}
}, _class6.__initStatic7(), _class6);
var Node_Interface = (_class7 = class _Node_Interface extends _chunk3Y2DQ67Zcjs.Struct {
static {
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Node_Interface");
}
static __initStatic8() {this._capnp = {
displayName: "interface",
id: "e82753cff0c2218f",
size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(40, 6)
}}
_adoptMethods(value) {
_chunk3Y2DQ67Zcjs.utils.adopt(value, _chunk3Y2DQ67Zcjs.utils.getPointer(3, this));
}
_disownMethods() {
return _chunk3Y2DQ67Zcjs.utils.disown(this.methods);
}
/**
* Methods ordered by ordinal.
*
*/
get methods() {
return _chunk3Y2DQ67Zcjs.utils.getList(3, _Node_Interface._Methods, this);
}
_hasMethods() {
return !_chunk3Y2DQ67Zcjs.utils.isNull(_chunk3Y2DQ67Zcjs.utils.getPointer(3, this));
}
_initMethods(length) {
return _chunk3Y2DQ67Zcjs.utils.initList(3, _Node_Interface._Methods, length, this);
}
set methods(value) {
_chunk3Y2DQ67Zcjs.utils.copyFrom(value, _chunk3Y2DQ67Zcjs.utils.getPointer(3, this));
}
_adoptSuperclasses(value) {
_chunk3Y2DQ67Zcjs.utils.adopt(value, _chunk3Y2DQ67Zcjs.utils.getPointer(4, this));
}
_disownSuperclasses() {
return _chunk3Y2DQ67Zcjs.utils.disown(this.superclasses);
}
/**
* Superclasses of this interface.
*
*/
get superclasses() {
return _chunk3Y2DQ67Zcjs.utils.getList(4, _Node_Interface._Superclasses, this);
}
_hasSuperclasses() {
return !_chunk3Y2DQ67Zcjs.utils.isNull(_chunk3Y2DQ67Zcjs.utils.getPointer(4, this));
}
_initSuperclasses(length) {
return _chunk3Y2DQ67Zcjs.utils.initList(4, _Node_Interface._Superclasses, length, this);
}
set superclasses(value) {
_chunk3Y2DQ67Zcjs.utils.copyFrom(value, _chunk3Y2DQ67Zcjs.utils.getPointer(4, this));
}
toString() {
return "Node_Interface_" + super.toString();
}
}, _class7.__initStatic8(), _class7);
var Node_Const = (_class8 = class extends _chunk3Y2DQ67Zcjs.Struct {
static {
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Node_Const");
}
static __initStatic9() {this._capnp = {
displayName: "const",
id: "b18aa5ac7a0d9420",
size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(40, 6)
}}
_adoptType(value) {
_chunk3Y2DQ67Zcjs.utils.adopt(value, _chunk3Y2DQ67Zcjs.utils.getPointer(3, this));
}
_disownType() {
return _chunk3Y2DQ67Zcjs.utils.disown(this.type);
}
get type() {
return _chunk3Y2DQ67Zcjs.utils.getStruct(3, Type, this);
}
_hasType() {
return !_chunk3Y2DQ67Zcjs.utils.isNull(_chunk3Y2DQ67Zcjs.utils.getPointer(3, this));
}
_initType() {
return _chunk3Y2DQ67Zcjs.utils.initStructAt(3, Type, this);
}
set type(value) {
_chunk3Y2DQ67Zcjs.utils.copyFrom(value, _chunk3Y2DQ67Zcjs.utils.getPointer(3, this));
}
_adoptValue(value) {
_chunk3Y2DQ67Zcjs.utils.adopt(value, _chunk3Y2DQ67Zcjs.utils.getPointer(4, this));
}
_disownValue() {
return _chunk3Y2DQ67Zcjs.utils.disown(this.value);
}
get value() {
return _chunk3Y2DQ67Zcjs.utils.getStruct(4, Value, this);
}
_hasValue() {
return !_chunk3Y2DQ67Zcjs.utils.isNull(_chunk3Y2DQ67Zcjs.utils.getPointer(4, this));
}
_initValue() {
return _chunk3Y2DQ67Zcjs.utils.initStructAt(4, Value, this);
}
set value(value) {
_chunk3Y2DQ67Zcjs.utils.copyFrom(value, _chunk3Y2DQ67Zcjs.utils.getPointer(4, this));
}
toString() {
return "Node_Const_" + super.toString();
}
}, _class8.__initStatic9(), _class8);
var Node_Annotation = (_class9 = class extends _chunk3Y2DQ67Zcjs.Struct {
static {
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Node_Annotation");
}
static __initStatic10() {this._capnp = {
displayName: "annotation",
id: "ec1619d4400a0290",
size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(40, 6)
}}
_adoptType(value) {
_chunk3Y2DQ67Zcjs.utils.adopt(value, _chunk3Y2DQ67Zcjs.utils.getPointer(3, this));
}
_disownType() {
return _chunk3Y2DQ67Zcjs.utils.disown(this.type);
}
get type() {
return _chunk3Y2DQ67Zcjs.utils.getStruct(3, Type, this);
}
_hasType() {
return !_chunk3Y2DQ67Zcjs.utils.isNull(_chunk3Y2DQ67Zcjs.utils.getPointer(3, this));
}
_initType() {
return _chunk3Y2DQ67Zcjs.utils.initStructAt(3, Type, this);
}
set type(value) {
_chunk3Y2DQ67Zcjs.utils.copyFrom(value, _chunk3Y2DQ67Zcjs.utils.getPointer(3, this));
}
get targetsFile() {
return _chunk3Y2DQ67Zcjs.utils.getBit(112, this);
}
set targetsFile(value) {
_chunk3Y2DQ67Zcjs.utils.setBit(112, value, this);
}
get targetsConst() {
return _chunk3Y2DQ67Zcjs.utils.getBit(113, this);
}
set targetsConst(value) {
_chunk3Y2DQ67Zcjs.utils.setBit(113, value, this);
}
get targetsEnum() {
return _chunk3Y2DQ67Zcjs.utils.getBit(114, this);
}
set targetsEnum(value) {
_chunk3Y2DQ67Zcjs.utils.setBit(114, value, this);
}
get targetsEnumerant() {
return _chunk3Y2DQ67Zcjs.utils.getBit(115, this);
}
set targetsEnumerant(value) {
_chunk3Y2DQ67Zcjs.utils.setBit(115, value, this);
}
get targetsStruct() {
return _chunk3Y2DQ67Zcjs.utils.getBit(116, this);
}
set targetsStruct(value) {
_chunk3Y2DQ67Zcjs.utils.setBit(116, value, this);
}
get targetsField() {
return _chunk3Y2DQ67Zcjs.utils.getBit(117, this);
}
set targetsField(value) {
_chunk3Y2DQ67Zcjs.utils.setBit(117, value, this);
}
get targetsUnion() {
return _chunk3Y2DQ67Zcjs.utils.getBit(118, this);
}
set targetsUnion(value) {
_chunk3Y2DQ67Zcjs.utils.setBit(118, value, this);
}
get targetsGroup() {
return _chunk3Y2DQ67Zcjs.utils.getBit(119, this);
}
set targetsGroup(value) {
_chunk3Y2DQ67Zcjs.utils.setBit(119, value, this);
}
get targetsInterface() {
return _chunk3Y2DQ67Zcjs.utils.getBit(120, this);
}
set targetsInterface(value) {
_chunk3Y2DQ67Zcjs.utils.setBit(120, value, this);
}
get targetsMethod() {
return _chunk3Y2DQ67Zcjs.utils.getBit(121, this);
}
set targetsMethod(value) {
_chunk3Y2DQ67Zcjs.utils.setBit(121, value, this);
}
get targetsParam() {
return _chunk3Y2DQ67Zcjs.utils.getBit(122, this);
}
set targetsParam(value) {
_chunk3Y2DQ67Zcjs.utils.setBit(122, value, this);
}
get targetsAnnotation() {
return _chunk3Y2DQ67Zcjs.utils.getBit(123, this);
}
set targetsAnnotation(value) {
_chunk3Y2DQ67Zcjs.utils.setBit(123, value, this);
}
toString() {
return "Node_Annotation_" + super.toString();
}
}, _class9.__initStatic10(), _class9);
var Node_Which = {
FILE: 0,
/**
* Name to present to humans to identify this Node. You should not attempt to parse this. Its
* format could change. It is not guaranteed to be unique.
*
* (On Zooko's triangle, this is the node's nickname.)
*
*/
STRUCT: 1,
/**
* If you want a shorter version of `displayName` (just naming this node, without its surrounding
* scope), chop off this many characters from the beginning of `displayName`.
*
*/
ENUM: 2,
/**
* ID of the lexical parent node. Typically, the scope node will have a NestedNode pointing back
* at this node, but robust code should avoid relying on this (and, in fact, group nodes are not
* listed in the outer struct's nestedNodes, since they are listed in the fields). `scopeId` is
* zero if the node has no parent, which is normally only the case with files, but should be
* allowed for any kind of node (in order to make runtime type generation easier).
*
*/
INTERFACE: 3,
/**
* List of nodes nested within this node, along with the names under which they were declared.
*
*/
CONST: 4,
/**
* Annotations applied to this node.
*
*/
ANNOTATION: 5
};
var Node = (_class10 = class _Node extends _chunk3Y2DQ67Zcjs.Struct {
static {
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Node");
}
static __initStatic11() {this.FILE = Node_Which.FILE}
static __initStatic12() {this.STRUCT = Node_Which.STRUCT}
static __initStatic13() {this.ENUM = Node_Which.ENUM}
static __initStatic14() {this.INTERFACE = Node_Which.INTERFACE}
static __initStatic15() {this.CONST = Node_Which.CONST}
static __initStatic16() {this.ANNOTATION = Node_Which.ANNOTATION}
static __initStatic17() {this.Parameter = Node_Parameter}
static __initStatic18() {this.NestedNode = Node_NestedNode}
static __initStatic19() {this.SourceInfo = Node_SourceInfo}
static __initStatic20() {this._capnp = {
displayName: "Node",
id: "e682ab4cf923a417",
size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(40, 6)
}}
get id() {
return _chunk3Y2DQ67Zcjs.utils.getUint64(0, this);
}
set id(value) {
_chunk3Y2DQ67Zcjs.utils.setUint64(0, value, this);
}
/**
* Name to present to humans to identify this Node. You should not attempt to parse this. Its
* format could change. It is not guaranteed to be unique.
*
* (On Zooko's triangle, this is the node's nickname.)
*
*/
get displayName() {
return _chunk3Y2DQ67Zcjs.utils.getText(0, this);
}
set displayName(value) {
_chunk3Y2DQ67Zcjs.utils.setText(0, value, this);
}
/**
* If you want a shorter version of `displayName` (just naming this node, without its surrounding
* scope), chop off this many characters from the beginning of `displayName`.
*
*/
get displayNamePrefixLength() {
return _chunk3Y2DQ67Zcjs.utils.getUint32(8, this);
}
set displayNamePrefixLength(value) {
_chunk3Y2DQ67Zcjs.utils.setUint32(8, value, this);
}
/**
* ID of the lexical parent node. Typically, the scope node will have a NestedNode pointing back
* at this node, but robust code should avoid relying on this (and, in fact, group nodes are not
* listed in the outer struct's nestedNodes, since they are listed in the fields). `scopeId` is
* zero if the node has no parent, which is normally only the case with files, but should be
* allowed for any kind of node (in order to make runtime type generation easier).
*
*/
get scopeId() {
return _chunk3Y2DQ67Zcjs.utils.getUint64(16, this);
}
set scopeId(value) {
_chunk3Y2DQ67Zcjs.utils.setUint64(16, value, this);
}
_adoptParameters(value) {
_chunk3Y2DQ67Zcjs.utils.adopt(value, _chunk3Y2DQ67Zcjs.utils.getPointer(5, this));
}
_disownParameters() {
return _chunk3Y2DQ67Zcjs.utils.disown(this.parameters);
}
/**
* If this node is parameterized (generic), the list of parameters. Empty for non-generic types.
*
*/
get parameters() {
return _chunk3Y2DQ67Zcjs.utils.getList(5, _Node._Parameters, this);
}
_hasParameters() {
return !_chunk3Y2DQ67Zcjs.utils.isNull(_chunk3Y2DQ67Zcjs.utils.getPointer(5, this));
}
_initParameters(length) {
return _chunk3Y2DQ67Zcjs.utils.initList(5, _Node._Parameters, length, this);
}
set parameters(value) {
_chunk3Y2DQ67Zcjs.utils.copyFrom(value, _chunk3Y2DQ67Zcjs.utils.getPointer(5, this));
}
/**
* True if this node is generic, meaning that it or one of its parent scopes has a non-empty
* `parameters`.
*
*/
get isGeneric() {
return _chunk3Y2DQ67Zcjs.utils.getBit(288, this);
}
set isGeneric(value) {
_chunk3Y2DQ67Zcjs.utils.setBit(288, value, this);
}
_adoptNestedNodes(value) {
_chunk3Y2DQ67Zcjs.utils.adopt(value, _chunk3Y2DQ67Zcjs.utils.getPointer(1, this));
}
_disownNestedNodes() {
return _chunk3Y2DQ67Zcjs.utils.disown(this.nestedNodes);
}
/**
* List of nodes nested within this node, along with the names under which they were declared.
*
*/
get nestedNodes() {
return _chunk3Y2DQ67Zcjs.utils.getList(1, _Node._NestedNodes, this);
}
_hasNestedNodes() {
return !_chunk3Y2DQ67Zcjs.utils.isNull(_chunk3Y2DQ67Zcjs.utils.getPointer(1, this));
}
_initNestedNodes(length) {
return _chunk3Y2DQ67Zcjs.utils.initList(1, _Node._NestedNodes, length, this);
}
set nestedNodes(value) {
_chunk3Y2DQ67Zcjs.utils.copyFrom(value, _chunk3Y2DQ67Zcjs.utils.getPointer(1, this));
}
_adoptAnnotations(value) {
_chunk3Y2DQ67Zcjs.utils.adopt(value, _chunk3Y2DQ67Zcjs.utils.getPointer(2, this));
}
_disownAnnotations() {
return _chunk3Y2DQ67Zcjs.utils.disown(this.annotations);
}
/**
* Annotations applied to this node.
*
*/
get annotations() {
return _chunk3Y2DQ67Zcjs.utils.getList(2, _Node._Annotations, this);
}
_hasAnnotations() {
return !_chunk3Y2DQ67Zcjs.utils.isNull(_chunk3Y2DQ67Zcjs.utils.getPointer(2, this));
}
_initAnnotations(length) {
return _chunk3Y2DQ67Zcjs.utils.initList(2, _Node._Annotations, length, this);
}
set annotations(value) {
_chunk3Y2DQ67Zcjs.utils.copyFrom(value, _chunk3Y2DQ67Zcjs.utils.getPointer(2, this));
}
get _isFile() {
return _chunk3Y2DQ67Zcjs.utils.getUint16(12, this) === 0;
}
set file(_) {
_chunk3Y2DQ67Zcjs.utils.setUint16(12, 0, this);
}
get struct() {
_chunk3Y2DQ67Zcjs.utils.testWhich("struct", _chunk3Y2DQ67Zcjs.utils.getUint16(12, this), 1, this);
return _chunk3Y2DQ67Zcjs.utils.getAs(Node_Struct, this);
}
_initStruct() {
_chunk3Y2DQ67Zcjs.utils.setUint16(12, 1, this);
return _chunk3Y2DQ67Zcjs.utils.getAs(Node_Struct, this);
}
get _isStruct() {
return _chunk3Y2DQ67Zcjs.utils.getUint16(12, this) === 1;
}
set struct(_) {
_chunk3Y2DQ67Zcjs.utils.setUint16(12, 1, this);
}
get enum() {
_chunk3Y2DQ67Zcjs.utils.testWhich("enum", _chunk3Y2DQ67Zcjs.utils.getUint16(12, this), 2, this);
return _chunk3Y2DQ67Zcjs.utils.getAs(Node_Enum, this);
}
_initEnum() {
_chunk3Y2DQ67Zcjs.utils.setUint16(12, 2, this);
return _chunk3Y2DQ67Zcjs.utils.getAs(Node_Enum, this);
}
get _isEnum() {
return _chunk3Y2DQ67Zcjs.utils.getUint16(12, this) === 2;
}
set enum(_) {
_chunk3Y2DQ67Zcjs.utils.setUint16(12, 2, this);
}
get interface() {
_chunk3Y2DQ67Zcjs.utils.testWhich("interface", _chunk3Y2DQ67Zcjs.utils.getUint16(12, this), 3, this);
return _chunk3Y2DQ67Zcjs.utils.getAs(Node_Interface, this);
}
_initInterface() {
_chunk3Y2DQ67Zcjs.utils.setUint16(12, 3, this);
return _chunk3Y2DQ67Zcjs.utils.getAs(Node_Interface, this);
}
get _isInterface() {
return _chunk3Y2DQ67Zcjs.utils.getUint16(12, this) === 3;
}
set interface(_) {
_chunk3Y2DQ67Zcjs.utils.setUint16(12, 3, this);
}
get const() {
_chunk3Y2DQ67Zcjs.utils.testWhich("const", _chunk3Y2DQ67Zcjs.utils.getUint16(12, this), 4, this);
return _chunk3Y2DQ67Zcjs.utils.getAs(Node_Const, this);
}
_initConst() {
_chunk3Y2DQ67Zcjs.utils.setUint16(12, 4, this);
return _chunk3Y2DQ67Zcjs.utils.getAs(Node_Const, this);
}
get _isConst() {
return _chunk3Y2DQ67Zcjs.utils.getUint16(12, this) === 4;
}
set const(_) {
_chunk3Y2DQ67Zcjs.utils.setUint16(12, 4, this);
}
get annotation() {
_chunk3Y2DQ67Zcjs.utils.testWhich("annotation", _chunk3Y2DQ67Zcjs.utils.getUint16(12, this), 5, this);
return _chunk3Y2DQ67Zcjs.utils.getAs(Node_Annotation, this);
}
_initAnnotation() {
_chunk3Y2DQ67Zcjs.utils.setUint16(12, 5, this);
return _chunk3Y2DQ67Zcjs.utils.getAs(Node_Annotation, this);
}
get _isAnnotation() {
return _chunk3Y2DQ67Zcjs.utils.getUint16(12, this) === 5;
}
set annotation(_) {
_chunk3Y2DQ67Zcjs.utils.setUint16(12, 5, this);
}
toString() {
return "Node_" + super.toString();
}
which() {
return _chunk3Y2DQ67Zcjs.utils.getUint16(12, this);
}
}, _class10.__initStatic11(), _class10.__initStatic12(), _class10.__initStatic13(), _class10.__initStatic14(), _class10.__initStatic15(), _class10.__initStatic16(), _class10.__initStatic17(), _class10.__initStatic18(), _class10.__initStatic19(), _class10.__initStatic20(), _class10);
var Field_Slot = (_class11 = class extends _chunk3Y2DQ67Zcjs.Struct {
static {
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Field_Slot");
}
static __initStatic21() {this._capnp = {
displayName: "slot",
id: "c42305476bb4746f",
size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(24, 4)
}}
/**
* Offset, in units of the field's size, from the beginning of the section in which the field
* resides. E.g. for a UInt32 field, multiply this by 4 to get the byte offset from the
* beginning of the data section.
*
*/
get offset() {
return _chunk3Y2DQ67Zcjs.utils.getUint32(4, this);
}
set offset(value) {
_chunk3Y2DQ67Zcjs.utils.setUint32(4, value, this);
}
_adoptType(value) {
_chunk3Y2DQ67Zcjs.utils.adopt(value, _chunk3Y2DQ67Zcjs.utils.getPointer(2, this));
}
_disownType() {
return _chunk3Y2DQ67Zcjs.utils.disown(this.type);
}
get type() {
return _chunk3Y2DQ67Zcjs.utils.getStruct(2, Type, this);
}
_hasType() {
return !_chunk3Y2DQ67Zcjs.utils.isNull(_chunk3Y2DQ67Zcjs.utils.getPointer(2, this));
}
_initType() {
return _chunk3Y2DQ67Zcjs.utils.initStructAt(2, Type, this);
}
set type(value) {
_chunk3Y2DQ67Zcjs.utils.copyFrom(value, _chunk3Y2DQ67Zcjs.utils.getPointer(2, this));
}
_adoptDefaultValue(value) {
_chunk3Y2DQ67Zcjs.utils.adopt(value, _chunk3Y2DQ67Zcjs.utils.getPointer(3, this));
}
_disownDefaultValue() {
return _chunk3Y2DQ67Zcjs.utils.disown(this.defaultValue);
}
get defaultValue() {
return _chunk3Y2DQ67Zcjs.utils.getStruct(3, Value, this);
}
_hasDefaultValue() {
return !_chunk3Y2DQ67Zcjs.utils.isNull(_chunk3Y2DQ67Zcjs.utils.getPointer(3, this));
}
_initDefaultValue() {
return _chunk3Y2DQ67Zcjs.utils.initStructAt(3, Value, this);
}
set defaultValue(value) {
_chunk3Y2DQ67Zcjs.utils.copyFrom(value, _chunk3Y2DQ67Zcjs.utils.getPointer(3, this));
}
/**
* Whether the default value was specified explicitly. Non-explicit default values are always
* zero or empty values. Usually, whether the default value was explicit shouldn't matter.
* The main use case for this flag is for structs representing method parameters:
* explicitly-defaulted parameters may be allowed to be omitted when calling the method.
*
*/
get hadExplicitDefault() {
return _chunk3Y2DQ67Zcjs.utils.getBit(128, this);
}
set hadExplicitDefault(value) {
_chunk3Y2DQ67Zcjs.utils.setBit(128, value, this);
}
toString() {
return "Field_Slot_" + super.toString();
}
}, _class11.__initStatic21(), _class11);
var Field_Group = (_class12 = class extends _chunk3Y2DQ67Zcjs.Struct {
static {
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Field_Group");
}
static __initStatic22() {this._capnp = {
displayName: "group",
id: "cafccddb68db1d11",
size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(24, 4)
}}
/**
* The ID of the group's node.
*
*/
get typeId() {
return _chunk3Y2DQ67Zcjs.utils.getUint64(16, this);
}
set typeId(value) {
_chunk3Y2DQ67Zcjs.utils.setUint64(16, value, this);
}
toString() {
return "Field_Group_" + super.toString();
}
}, _class12.__initStatic22(), _class12);
var Field_Ordinal_Which = {
IMPLICIT: 0,
/**
* The original ordinal number given to the field. You probably should NOT use this; if you need
* a numeric identifier for a field, use its position within the field array for its scope.
* The ordinal is given here mainly just so that the original schema text can be reproduced given
* the compiled version -- i.e. so that `capnp compile -ocapnp` can do its job.
*
*/
EXPLICIT: 1
};
var Field_Ordinal = (_class13 = class extends _chunk3Y2DQ67Zcjs.Struct {
static {
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Field_Ordinal");
}
static __initStatic23() {this.IMPLICIT = Field_Ordinal_Which.IMPLICIT}
static __initStatic24() {this.EXPLICIT = Field_Ordinal_Which.EXPLICIT}
static __initStatic25() {this._capnp = {
displayName: "ordinal",
id: "bb90d5c287870be6",
size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(24, 4)
}}
get _isImplicit() {
return _chunk3Y2DQ67Zcjs.utils.getUint16(10, this) === 0;
}
set implicit(_) {
_chunk3Y2DQ67Zcjs.utils.setUint16(10, 0, this);
}
/**
* The original ordinal number given to the field. You probably should NOT use this; if you need
* a numeric identifier for a field, use its position within the field array for its scope.
* The ordinal is given here mainly just so that the original schema text can be reproduced given
* the compiled version -- i.e. so that `capnp compile -ocapnp` can do its job.
*
*/
get explicit() {
_chunk3Y2DQ67Zcjs.utils.testWhich("explicit", _chunk3Y2DQ67Zcjs.utils.getUint16(10, this), 1, this);
return _chunk3Y2DQ67Zcjs.utils.getUint16(12, this);
}
get _isExplicit() {
return _chunk3Y2DQ67Zcjs.utils.getUint16(10, this) === 1;
}
set explicit(value) {
_chunk3Y2DQ67Zcjs.utils.setUint16(10, 1, this);
_chunk3Y2DQ67Zcjs.utils.setUint16(12, value, this);
}
toString() {
return "Field_Ordinal_" + super.toString();
}
which() {
return _chunk3Y2DQ67Zcjs.utils.getUint16(10, this);
}
}, _class13.__initStatic23(), _class13.__initStatic24(), _class13.__initStatic25(), _class13);
var Field_Which = {
SLOT: 0,
/**
* Indicates where this member appeared in the code, relative to other members.
* Code ordering may have semantic relevance -- programmers tend to place related fields
* together. So, using code ordering makes sense in human-readable formats where ordering is
* otherwise irrelevant, like JSON. The values of codeOrder are tightly-packed, so the maximum
* value is count(members) - 1. Fields that are members of a union are only ordered relative to
* the other members of that union, so the maximum value there is count(union.members).
*
*/
GROUP: 1
};
var Field = (_class14 = class _Field extends _chunk3Y2DQ67Zcjs.Struct {
static {
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Field");
}
static __initStatic26() {this.NO_DISCRIMINANT = 65535}
static __initStatic27() {this.SLOT = Field_Which.SLOT}
static __initStatic28() {this.GROUP = Field_Which.GROUP}
static __initStatic29() {this._capnp = {
displayName: "Field",
id: "9aad50a41f4af45f",
size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(24, 4),
defaultDiscriminantValue: _chunk3Y2DQ67Zcjs.getUint16Mask.call(void 0, 65535)
}}
get name() {
return _chunk3Y2DQ67Zcjs.utils.getText(0, this);
}
set name(value) {
_chunk3Y2DQ67Zcjs.utils.setText(0, value, this);
}
/**
* Indicates where this member appeared in the code, relative to other members.
* Code ordering may have semantic relevance -- programmers tend to place related fields
* together. So, using code ordering makes sense in human-readable formats where ordering is
* otherwise irrelevant, like JSON. The values of codeOrder are tightly-packed, so the maximum
* value is count(members) - 1. Fields that are members of a union are only ordered relative to
* the other members of that union, so the maximum value there is count(union.members).
*
*/
get codeOrder() {
return _chunk3Y2DQ67Zcjs.utils.getUint16(0, this);
}
set codeOrder(value) {
_chunk3Y2DQ67Zcjs.utils.setUint16(0, value, this);
}
_adoptAnnotations(value) {
_chunk3Y2DQ67Zcjs.utils.adopt(value, _chunk3Y2DQ67Zcjs.utils.getPointer(1, this));
}
_disownAnnotations() {
return _chunk3Y2DQ67Zcjs.utils.disown(this.annotations);
}
get annotations() {
return _chunk3Y2DQ67Zcjs.utils.getList(1, _Field._Annotations, this);
}
_hasAnnotations() {
return !_chunk3Y2DQ67Zcjs.utils.isNull(_chunk3Y2DQ67Zcjs.utils.getPointer(1, this));
}
_initAnnotations(length) {
return _chunk3Y2DQ67Zcjs.utils.initList(1, _Field._Annotations, length, this);
}
set annotations(value) {
_chunk3Y2DQ67Zcjs.utils.copyFrom(value, _chunk3Y2DQ67Zcjs.utils.getPointer(1, this));
}
/**
* If the field is in a union, this is the value which the union's discriminant should take when
* the field is active. If the field is not in a union, this is 0xffff.
*
*/
get discriminantValue() {
return _chunk3Y2DQ67Zcjs.utils.getUint16(2, this, _Field._capnp.defaultDiscriminantValue);
}
set discriminantValue(value) {
_chunk3Y2DQ67Zcjs.utils.setUint16(2, value, this, _Field._capnp.defaultDiscriminantValue);
}
/**
* A regular, non-group, non-fixed-list field.
*
*/
get slot() {
_chunk3Y2DQ67Zcjs.utils.testWhich("slot", _chunk3Y2DQ67Zcjs.utils.getUint16(8, this), 0, this);
return _chunk3Y2DQ67Zcjs.utils.getAs(Field_Slot, this);
}
_initSlot() {
_chunk3Y2DQ67Zcjs.utils.setUint16(8, 0, this);
return _chunk3Y2DQ67Zcjs.utils.getAs(Field_Slot, this);
}
get _isSlot() {
return _chunk3Y2DQ67Zcjs.utils.getUint16(8, this) === 0;
}
set slot(_) {
_chunk3Y2DQ67Zcjs.utils.setUint16(8, 0, this);
}
/**
* A group.
*
*/
get group() {
_chunk3Y2DQ67Zcjs.utils.testWhich("group", _chunk3Y2DQ67Zcjs.utils.getUint16(8, this), 1, this);
return _chunk3Y2DQ67Zcjs.utils.getAs(Field_Group, this);
}
_initGroup() {
_chunk3Y2DQ67Zcjs.utils.setUint16(8, 1, this);
return _chunk3Y2DQ67Zcjs.utils.getAs(Field_Group, this);
}
get _isGroup() {
return _chunk3Y2DQ67Zcjs.utils.getUint16(8, this) === 1;
}
set group(_) {
_chunk3Y2DQ67Zcjs.utils.setUint16(8, 1, this);
}
get ordinal() {
return _chunk3Y2DQ67Zcjs.utils.getAs(Field_Ordinal, this);
}
_initOrdinal() {
return _chunk3Y2DQ67Zcjs.utils.getAs(Field_Ordinal, this);
}
toString() {
return "Field_" + super.toString();
}
which() {
return _chunk3Y2DQ67Zcjs.utils.getUint16(8, this);
}
}, _class14.__initStatic26(), _class14.__initStatic27(), _class14.__initStatic28(), _class14.__initStatic29(), _class14);
var Enumerant = (_class15 = class _Enumerant extends _chunk3Y2DQ67Zcjs.Struct {
static {
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Enumerant");
}
static __initStatic30() {this._capnp = {
displayName: "Enumerant",
id: "978a7cebdc549a4d",
size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(8, 2)
}}
get name() {
return _chunk3Y2DQ67Zcjs.utils.getText(0, this);
}
set name(value) {
_chunk3Y2DQ67Zcjs.utils.setText(0, value, this);
}
/**
* Specifies order in which the enumerants were declared in the code.
* Like utils.Field.codeOrder.
*
*/
get codeOrder() {
return _chunk3Y2DQ67Zcjs.utils.getUint16(0, this);
}
set codeOrder(value) {
_chunk3Y2DQ67Zcjs.utils.setUint16(0, value, this);
}
_adoptAnnotations(value) {
_chunk3Y2DQ67Zcjs.utils.adopt(value, _chunk3Y2DQ67Zcjs.utils.getPointer(1, this));
}
_disownAnnotations() {
return _chunk3Y2DQ67Zcjs.utils.disown(this.annotations);
}
get annotations() {
return _chunk3Y2DQ67Zcjs.utils.getList(1, _Enumerant._Annotations, this);
}
_hasAnnotations() {
return !_chunk3Y2DQ67Zcjs.utils.isNull(_chunk3Y2DQ67Zcjs.utils.getPointer(1, this));
}
_initAnnotations(length) {
return _chunk3Y2DQ67Zcjs.utils.initList(1, _Enumerant._Annotations, length, this);
}
set annotations(value) {
_chunk3Y2DQ67Zcjs.utils.copyFrom(value, _chunk3Y2DQ67Zcjs.utils.getPointer(1, this));
}
toString() {
return "Enumerant_" + super.toString();
}
}, _class15.__initStatic30(), _class15);
var Superclass = (_class16 = class extends _chunk3Y2DQ67Zcjs.Struct {
static {
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Superclass");
}
static __initStatic31() {this._capnp = {
displayName: "Superclass",
id: "a9962a9ed0a4d7f8",
size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(8, 1)
}}
get id() {
return _chunk3Y2DQ67Zcjs.utils.getUint64(0, this);
}
set id(value) {
_chunk3Y2DQ67Zcjs.utils.setUint64(0, value, this);
}
_adoptBrand(value) {
_chunk3Y2DQ67Zcjs.utils.adopt(value, _chunk3Y2DQ67Zcjs.utils.getPointer(0, this));
}
_disownBrand() {
return _chunk3Y2DQ67Zcjs.utils.disown(this.brand);
}
get brand() {
return _chunk3Y2DQ67Zcjs.utils.getStruct(0, Brand, this);
}
_hasBrand() {
return !_chunk3Y2DQ67Zcjs.utils.isNull(_chunk3Y2DQ67Zcjs.utils.getPointer(0, this));
}
_initBrand() {
return _chunk3Y2DQ67Zcjs.utils.initStructAt(0, Brand, this);
}
set brand(value) {
_chunk3Y2DQ67Zcjs.utils.copyFrom(value, _chunk3Y2DQ67Zcjs.utils.getPointer(0, this));
}
toString() {
return "Superclass_" + super.toString();
}
}, _class16.__initStatic31(), _class16);
var Method = (_class17 = class _Method extends _chunk3Y2DQ67Zcjs.Struct {
static {
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Method");
}
static __initStatic32() {this._capnp = {
displayName: "Method",
id: "9500cce23b334d80",
size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(24, 5)
}}
get name() {
return _chunk3Y2DQ67Zcjs.utils.getText(0, this);
}
set name(value) {
_chunk3Y2DQ67Zcjs.utils.setText(0, value, this);
}
/**
* Specifies order in which the methods were declared in the code.
* Like utils.Field.codeOrder.
*
*/
get codeOrder() {
return _chunk3Y2DQ67Zcjs.utils.getUint16(0, this);
}
set codeOrder(value) {
_chunk3Y2DQ67Zcjs.utils.setUint16(0, value, this);
}
_adoptImplicitParameters(value) {
_chunk3Y2DQ67Zcjs.utils.adopt(value, _chunk3Y2DQ67Zcjs.utils.getPointer(4, this));
}
_disownImplicitParameters() {
return _chunk3Y2DQ67Zcjs.utils.disown(this.implicitParameters);
}
/**
* The parameters listed in [] (typically, type / generic parameters), whose bindings are intended
* to be inferred rather than specified explicitly, although not all languages support this.
*
*/
get implicitParameters() {
return _chunk3Y2DQ67Zcjs.utils.getList(4, _Method._ImplicitParameters, this);
}
_hasImplicitParameters() {
return !_chunk3Y2DQ67Zcjs.utils.isNull(_chunk3Y2DQ67Zcjs.utils.getPointer(4, this));
}
_initImplicitParameters(length) {
return _chunk3Y2DQ67Zcjs.utils.initList(4, _Method._ImplicitParameters, length, this);
}
set implicitParameters(value) {
_chunk3Y2DQ67Zcjs.utils.copyFrom(value, _chunk3Y2DQ67Zcjs.utils.getPointer(4, this));
}
/**
* ID of the parameter struct type. If a named parameter list was specified in the method
* declaration (rather than a single struct parameter type) then a corresponding struct type is
* auto-generated. Such an auto-generated type will not be listed in the interface's
* `nestedNodes` and its `scopeId` will be zero -- it is completely detached from the namespace.
* (Awkwardly, it does of course inherit generic parameters from the method's scope, which makes
* this a situation where you can't just climb the scope chain to find where a particular
* generic parameter was introduced. Making the `scopeId` zero was a mistake.)
*
*/
get paramStructType() {
return _chunk3Y2DQ67Zcjs.utils.getUint64(8, this);
}
set paramStructType(value) {
_chunk3Y2DQ67Zcjs.utils.setUint64(8, value, this);
}
_adoptParamBrand(value) {
_chunk3Y2DQ67Zcjs.utils.adopt(value, _chunk3Y2DQ67Zcjs.utils.getPointer(2, this));
}
_disownParamBrand() {
return _chunk3Y2DQ67Zcjs.utils.disown(this.paramBrand);
}
/**
* Brand of param struct type.
*
*/
get paramBrand() {
return _chunk3Y2DQ67Zcjs.utils.getStruct(2, Brand, this);
}
_hasParamBrand() {
return !_chunk3Y2DQ67Zcjs.utils.isNull(_chunk3Y2DQ67Zcjs.utils.getPointer(2, this));
}
_initParamBrand() {
return _chunk3Y2DQ67Zcjs.utils.initStructAt(2, Brand, this);
}
set paramBrand(value) {
_chunk3Y2DQ67Zcjs.utils.copyFrom(value, _chunk3Y2DQ67Zcjs.utils.getPointer(2, this));
}
/**
* ID of the return struct type; similar to `paramStructType`.
*
*/
get resultStructType() {
return _chunk3Y2DQ67Zcjs.utils.getUint64(16, this);
}
set resultStructType(value) {
_chunk3Y2DQ67Zcjs.utils.setUint64(16, value, this);
}
_adoptResultBrand(value) {
_chunk3Y2DQ67Zcjs.utils.adopt(value, _chunk3Y2DQ67Zcjs.utils.getPointer(3, this));
}
_disownResultBrand() {
return _chunk3Y2DQ67Zcjs.utils.disown(this.resultBrand);
}
/**
* Brand of result struct type.
*
*/
get resultBrand() {
return _chunk3Y2DQ67Zcjs.utils.getStruct(3, Brand, this);
}
_hasResultBrand() {
return !_chunk3Y2DQ67Zcjs.utils.isNull(_chunk3Y2DQ67Zcjs.utils.getPointer(3, this));
}
_initResultBrand() {
return _chunk3Y2DQ67Zcjs.utils.initStructAt(3, Brand, this);
}
set resultBrand(value) {
_chunk3Y2DQ67Zcjs.utils.copyFrom(value, _chunk3Y2DQ67Zcjs.utils.getPointer(3, this));
}
_adoptAnnotations(value) {
_chunk3Y2DQ67Zcjs.utils.adopt(value, _chunk3Y2DQ67Zcjs.utils.getPointer(1, this));
}
_disownAnnotations() {
return _chunk3Y2DQ67Zcjs.utils.disown(this.annotations);
}
get annotations() {
return _chunk3Y2DQ67Zcjs.utils.getList(1, _Method._Annotations, this);
}
_hasAnnotations() {
return !_chunk3Y2DQ67Zcjs.utils.isNull(_chunk3Y2DQ67Zcjs.utils.getPointer(1, this));
}
_initAnnotations(length) {
return _chunk3Y2DQ67Zcjs.utils.initList(1, _Method._Annotations, length, this);
}
set annotations(value) {
_chunk3Y2DQ67Zcjs.utils.copyFrom(value, _chunk3Y2DQ67Zcjs.utils.getPointer(1, this));
}
toString() {
return "Method_" + super.toString();
}
}, _class17.__initStatic32(), _class17);
var Type_List = (_class18 = class extends _chunk3Y2DQ67Zcjs.Struct {
static {
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Type_List");
}
static __initStatic33() {this._capnp = {
displayName: "list",
id: "87e739250a60ea97",
size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(24, 1)
}}
_adoptElementType(value) {
_chunk3Y2DQ67Zcjs.utils.adopt(value, _chunk3Y2DQ67Zcjs.utils.getPointer(0, this));
}
_disownElementType() {
return _chunk3Y2DQ67Zcjs.utils.disown(this.elementType);
}
get elementType() {
return _chunk3Y2DQ67Zcjs.utils.getStruct(0, Type, this);
}
_hasElementType() {
return !_chunk3Y2DQ67Zcjs.utils.isNull(_chunk3Y2DQ67Zcjs.utils.getPointer(0, this));
}
_initElementType() {
return _chunk3Y2DQ67Zcjs.utils.initStructAt(0, Type, this);
}
set elementType(value) {
_chunk3Y2DQ67Zcjs.utils.copyFrom(value, _chunk3Y2DQ67Zcjs.utils.getPointer(0, this));
}
toString() {
return "Type_List_" + super.toString();
}
}, _class18.__initStatic33(), _class18);
var Type_Enum = (_class19 = class extends _chunk3Y2DQ67Zcjs.Struct {
static {
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Type_Enum");
}
static __initStatic34() {this._capnp = {
displayName: "enum",
id: "9e0e78711a7f87a9",
size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(24, 1)
}}
get typeId() {
return _chunk3Y2DQ67Zcjs.utils.getUint64(8, this);
}
set typeId(value) {
_chunk3Y2DQ67Zcjs.utils.setUint64(8, value, this);
}
_adoptBrand(value) {
_chunk3Y2DQ67Zcjs.utils.adopt(value, _chunk3Y2DQ67Zcjs.utils.getPointer(0, this));
}
_disownBrand() {
return _chunk3Y2DQ67Zcjs.utils.disown(this.brand);
}
get brand() {
return _chunk3Y2DQ67Zcjs.utils.getStruct(0, Brand, this);
}
_hasBrand() {
return !_chunk3Y2DQ67Zcjs.utils.isNull(_chunk3Y2DQ67Zcjs.utils.getPointer(0, this));
}
_initBrand() {
return _chunk3Y2DQ67Zcjs.utils.initStructAt(0, Brand, this);
}
set brand(value) {
_chunk3Y2DQ67Zcjs.utils.copyFrom(value, _chunk3Y2DQ67Zcjs.utils.getPointer(0, this));
}
toString() {
return "Type_Enum_" + super.toString();
}
}, _class19.__initStatic34(), _class19);
var Type_Struct = (_class20 = class extends _chunk3Y2DQ67Zcjs.Struct {
static {
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Type_Struct");
}
static __initStatic35() {this._capnp = {
displayName: "struct",
id: "ac3a6f60ef4cc6d3",
size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(24, 1)
}}
get typeId() {
return _chunk3Y2DQ67Zcjs.utils.getUint64(8, this);
}
set typeId(value) {
_chunk3Y2DQ67Zcjs.utils.setUint64(8, value, this);
}
_adoptBrand(value) {
_chunk3Y2DQ67Zcjs.utils.adopt(value, _chunk3Y2DQ67Zcjs.utils.getPointer(0, this));
}
_disownBrand() {
return _chunk3Y2DQ67Zcjs.utils.disown(this.brand);
}
get brand() {
return _chunk3Y2DQ67Zcjs.utils.getStruct(0, Brand, this);
}
_hasBrand() {
return !_chunk3Y2DQ67Zcjs.utils.isNull(_chunk3Y2DQ67Zcjs.utils.getPointer(0, this));
}
_initBrand() {
return _chunk3Y2DQ67Zcjs.utils.initStructAt(0, Brand, this);
}
set brand(value) {
_chunk3Y2DQ67Zcjs.utils.copyFrom(value, _chunk3Y2DQ67Zcjs.utils.getPointer(0, this));
}
toString() {
return "Type_Struct_" + super.toString();
}
}, _class20.__initStatic35(), _class20);
var Type_Interface = (_class21 = class extends _chunk3Y2DQ67Zcjs.Struct {
static {
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Type_Interface");
}
static __initStatic36() {this._capnp = {
displayName: "interface",
id: "ed8bca69f7fb0cbf",
size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(24, 1)
}}
get typeId() {
return _chunk3Y2DQ67Zcjs.utils.getUint64(8, this);
}
set typeId(value) {
_chunk3Y2DQ67Zcjs.utils.setUint64(8, value, this);
}
_adoptBrand(value) {
_chunk3Y2DQ67Zcjs.utils.adopt(value, _chunk3Y2DQ67Zcjs.utils.getPointer(0, this));
}
_disownBrand() {
return _chunk3Y2DQ67Zcjs.utils.disown(this.brand);
}
get brand() {
return _chunk3Y2DQ67Zcjs.utils.getStruct(0, Brand, this);
}
_hasBrand() {
return !_chunk3Y2DQ67Zcjs.utils.isNull(_chunk3Y2DQ67Zcjs.utils.getPointer(0, this));
}
_initBrand() {
return _chunk3Y2DQ67Zcjs.utils.initStructAt(0, Brand, this);
}
set brand(value) {
_chunk3Y2DQ67Zcjs.utils.copyFrom(value, _chunk3Y2DQ67Zcjs.utils.getPointer(0, this));
}
toString() {
return "Type_Interface_" + super.toString();
}
}, _class21.__initStatic36(), _class21);
var Type_AnyPointer_Unconstrained_Which = {
/**
* truly AnyPointer
*
*/
ANY_KIND: 0,
/**
* AnyStruct
*
*/
STRUCT: 1,
/**
* AnyList
*
*/
LIST: 2,
/**
* Capability
*
*/
CAPABILITY: 3
};
var Type_AnyPointer_Unconstrained = (_class22 = class extends _chunk3Y2DQ67Zcjs.Struct {
static {
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Type_AnyPointer_Unconstrained");
}
static __initStatic37() {this.ANY_KIND = Type_AnyPointer_Unconstrained_Which.ANY_KIND}
static __initStatic38() {this.STRUCT = Type_AnyPointer_Unconstrained_Which.STRUCT}
static __initStatic39() {this.LIST = Type_AnyPointer_Unconstrained_Which.LIST}
static __initStatic40() {this.CAPABILITY = Type_AnyPointer_Unconstrained_Which.CAPABILITY}
static __initStatic41() {this._capnp = {
displayName: "unconstrained",
id: "8e3b5f79fe593656",
size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(24, 1)
}}
get _isAnyKind() {
return _chunk3Y2DQ67Zcjs.utils.getUint16(10, this) === 0;
}
set anyKind(_) {
_chunk3Y2DQ67Zcjs.utils.setUint16(10, 0, this);
}
get _isStruct() {
return _chunk3Y2DQ67Zcjs.utils.getUint16(10, this) === 1;
}
set struct(_) {
_chunk3Y2DQ67Zcjs.utils.setUint16(10, 1, this);
}
get _isList() {
return _chunk3Y2DQ67Zcjs.utils.getUint16(10, this) === 2;
}
set list(_) {
_chunk3Y2DQ67Zcjs.utils.setUint16(10, 2, this);
}
get _isCapability() {
return _chunk3Y2DQ67Zcjs.utils.getUint16(10, this) === 3;
}
set capability(_) {
_chunk3Y2DQ67Zcjs.utils.setUint16(10, 3, this);
}
toString() {
return "Type_AnyPointer_Unconstrained_" + super.toString();
}
which() {
return _chunk3Y2DQ67Zcjs.utils.getUint