@stryke/capnp 0.12.56 → 0.12.58

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