UNPKG

capnp-js-plugin

Version:

Capnproto implementation for Javascript

921 lines 92.4 kB
var builder = require('capnp-js/builder/index'); var reader = require('capnp-js/reader/index'); var scope = require('./bScope'); var readers = require('./readers'); var builders = { _READER: readers }; (function(types, parentScope) { var Structure = types["0xe682ab4cf923a417"]; Structure._PARENT = parentScope; (function(types, parentScope) { var Structure = types["0xb9521bccf10fa3b1"]; Structure._PARENT = parentScope; Structure.prototype._pointerDefaults = Structure._READER.prototype._pointerDefaults; (function(types, parentScope) { parentScope.prototype._pointerDefaults = parentScope._READER.prototype._pointerDefaults; parentScope.prototype._floatDefaults = parentScope._READER.prototype._floatDefaults; var f0 = builder.Text._FIELD; parentScope.prototype.adoptName = f0.adopt(0); parentScope.prototype.getName = f0.get(0, 0); parentScope.prototype.hasName = f0.has(0); parentScope.prototype.initName = f0.init(0); parentScope.prototype.disownName = f0.disown(0); parentScope.prototype.disownReadOnlyName = f0.disownReader(0); parentScope.prototype.setName = f0.set(0); })(types, Structure); parentScope.Parameter = Structure; })(types, Structure); (function(types, parentScope) { var Structure = types["0xdebf55bbfa0fc242"]; Structure._PARENT = parentScope; Structure.prototype._pointerDefaults = Structure._READER.prototype._pointerDefaults; (function(types, parentScope) { parentScope.prototype._pointerDefaults = parentScope._READER.prototype._pointerDefaults; parentScope.prototype._floatDefaults = parentScope._READER.prototype._floatDefaults; var f0 = builder.Text._FIELD; parentScope.prototype.adoptName = f0.adopt(0); parentScope.prototype.getName = f0.get(0, 0); parentScope.prototype.hasName = f0.has(0); parentScope.prototype.initName = f0.init(0); parentScope.prototype.disownName = f0.disown(0); parentScope.prototype.disownReadOnlyName = f0.disownReader(0); parentScope.prototype.setName = f0.set(0); parentScope.prototype.getId = function() { var position = this._dataSection + 0; return reader.fields.uint64([ 0, 0 ], this._segment, position); }; parentScope.prototype.setId = function(value) { builder.fields.uint64(value, [ 0, 0 ], this._segment, this._dataSection + 0); }; })(types, Structure); parentScope.NestedNode = Structure; })(types, Structure); Structure.prototype._pointerDefaults = Structure._READER.prototype._pointerDefaults; (function(types, parentScope) { parentScope.prototype._pointerDefaults = parentScope._READER.prototype._pointerDefaults; parentScope.prototype._floatDefaults = parentScope._READER.prototype._floatDefaults; parentScope.prototype.which = function() { return reader.primitives.uint16(this._segment, this._dataSection + 12); }; parentScope.prototype._setWhich = function(discr) { this._maskData(28, 254); this._zeroData(14, 2); this._zeroData(24, 4); this._zeroData(30, 6); builder.zero.pointer(this._arena, { segment: this._segment, position: this._pointersSection + 32 }); builder.zero.pointer(this._arena, { segment: this._segment, position: this._pointersSection + 24 }); var position = this._dataSection + 12; builder.primitives.uint16(discr, this._segment, position); }; parentScope.prototype.getId = function() { var position = this._dataSection + 0; return reader.fields.uint64([ 0, 0 ], this._segment, position); }; parentScope.prototype.setId = function(value) { builder.fields.uint64(value, [ 0, 0 ], this._segment, this._dataSection + 0); }; var f1 = builder.Text._FIELD; parentScope.prototype.adoptDisplayName = f1.adopt(0); parentScope.prototype.getDisplayName = f1.get(0, 0); parentScope.prototype.hasDisplayName = f1.has(0); parentScope.prototype.initDisplayName = f1.init(0); parentScope.prototype.disownDisplayName = f1.disown(0); parentScope.prototype.disownReadOnlyDisplayName = f1.disownReader(0); parentScope.prototype.setDisplayName = f1.set(0); parentScope.prototype.getDisplayNamePrefixLength = function() { var position = this._dataSection + 8; return reader.fields.uint32(0, this._segment, position); }; parentScope.prototype.setDisplayNamePrefixLength = function(value) { builder.fields.uint32(value, 0, this._segment, this._dataSection + 8); }; parentScope.prototype.getScopeId = function() { var position = this._dataSection + 16; return reader.fields.uint64([ 0, 0 ], this._segment, position); }; parentScope.prototype.setScopeId = function(value) { builder.fields.uint64(value, [ 0, 0 ], this._segment, this._dataSection + 16); }; var f4 = builder.lists.struct(types["0xdebf55bbfa0fc242"])._FIELD; parentScope.prototype.adoptNestedNodes = f4.adopt(8); parentScope.prototype.getNestedNodes = f4.get(8, 1); parentScope.prototype.hasNestedNodes = f4.has(8); parentScope.prototype.initNestedNodes = f4.init(8); parentScope.prototype.disownNestedNodes = f4.disown(8); parentScope.prototype.disownReadOnlyNestedNodes = f4.disownReader(8); parentScope.prototype.setNestedNodes = f4.set(8); var f5 = builder.lists.struct(types["0xf1c8950dab257542"])._FIELD; parentScope.prototype.adoptAnnotations = f5.adopt(16); parentScope.prototype.getAnnotations = f5.get(16, 2); parentScope.prototype.hasAnnotations = f5.has(16); parentScope.prototype.initAnnotations = f5.init(16); parentScope.prototype.disownAnnotations = f5.disown(16); parentScope.prototype.disownReadOnlyAnnotations = f5.disownReader(16); parentScope.prototype.setAnnotations = f5.set(16); parentScope.prototype.isFile = function() { return this.which() === 0; }; parentScope.FILE = parentScope.prototype.FILE = 0; parentScope.prototype.getFile = function() { if (!this.isFile()) { throw new Error("Attempted to access an inactive union member"); } return null; }; parentScope.prototype.setFile = function() { this._setWhich(0); }; parentScope.prototype.isStruct = function() { return this.which() === 1; }; parentScope.STRUCT = parentScope.prototype.STRUCT = 1; var G7 = builder.group(parentScope._READER.struct); parentScope.struct = G7; G7.prototype._pointerDefaults = parentScope.prototype._pointerDefaults; (function(types, parentScope) { parentScope.prototype._pointerDefaults = parentScope._READER.prototype._pointerDefaults; parentScope.prototype._floatDefaults = parentScope._READER.prototype._floatDefaults; parentScope.prototype.getDataWordCount = function() { var position = this._dataSection + 14; return reader.fields.uint16(0, this._segment, position); }; parentScope.prototype.setDataWordCount = function(value) { builder.fields.uint16(value, 0, this._segment, this._dataSection + 14); }; parentScope.prototype.getPointerCount = function() { var position = this._dataSection + 24; return reader.fields.uint16(0, this._segment, position); }; parentScope.prototype.setPointerCount = function(value) { builder.fields.uint16(value, 0, this._segment, this._dataSection + 24); }; parentScope.prototype.getPreferredListEncoding = function() { var position = this._dataSection + 26; return reader.fields.uint16(0, this._segment, position); }; parentScope.prototype.setPreferredListEncoding = function(value) { builder.fields.uint16(value, 0, this._segment, this._dataSection + 26); }; parentScope.prototype.getIsGroup = function() { return reader.fields.bool(0, this._segment, this._dataSection + 28, 0); }; parentScope.prototype.setIsGroup = function(value) { builder.fields.bool(value, 0, this._segment, this._dataSection + 28, 0); }; parentScope.prototype.getDiscriminantCount = function() { var position = this._dataSection + 30; return reader.fields.uint16(0, this._segment, position); }; parentScope.prototype.setDiscriminantCount = function(value) { builder.fields.uint16(value, 0, this._segment, this._dataSection + 30); }; parentScope.prototype.getDiscriminantOffset = function() { var position = this._dataSection + 32; return reader.fields.uint32(0, this._segment, position); }; parentScope.prototype.setDiscriminantOffset = function(value) { builder.fields.uint32(value, 0, this._segment, this._dataSection + 32); }; var f6 = builder.lists.struct(types["0x9aad50a41f4af45f"])._FIELD; parentScope.prototype.adoptFields = f6.adopt(24); parentScope.prototype.getFields = f6.get(24, 3); parentScope.prototype.hasFields = f6.has(24); parentScope.prototype.initFields = f6.init(24); parentScope.prototype.disownFields = f6.disown(24); parentScope.prototype.disownReadOnlyFields = f6.disownReader(24); parentScope.prototype.setFields = f6.set(24); })(types, G7); parentScope.prototype.getStruct = function() { if (!this.isStruct()) { throw new Error("Attempted to access an inactive union member"); } return new G7(this); }; parentScope.prototype.initStruct = function() { this._setWhich(1); return new G7(this); }; parentScope.prototype.isEnum = function() { return this.which() === 2; }; parentScope.ENUM = parentScope.prototype.ENUM = 2; var G8 = builder.group(parentScope._READER.enum); parentScope.enum = G8; G8.prototype._pointerDefaults = parentScope.prototype._pointerDefaults; (function(types, parentScope) { parentScope.prototype._pointerDefaults = parentScope._READER.prototype._pointerDefaults; parentScope.prototype._floatDefaults = parentScope._READER.prototype._floatDefaults; var f0 = builder.lists.struct(types["0x978a7cebdc549a4d"])._FIELD; parentScope.prototype.adoptEnumerants = f0.adopt(24); parentScope.prototype.getEnumerants = f0.get(24, 3); parentScope.prototype.hasEnumerants = f0.has(24); parentScope.prototype.initEnumerants = f0.init(24); parentScope.prototype.disownEnumerants = f0.disown(24); parentScope.prototype.disownReadOnlyEnumerants = f0.disownReader(24); parentScope.prototype.setEnumerants = f0.set(24); })(types, G8); parentScope.prototype.getEnum = function() { if (!this.isEnum()) { throw new Error("Attempted to access an inactive union member"); } return new G8(this); }; parentScope.prototype.initEnum = function() { this._setWhich(2); return new G8(this); }; parentScope.prototype.isInterface = function() { return this.which() === 3; }; parentScope.INTERFACE = parentScope.prototype.INTERFACE = 3; var G9 = builder.group(parentScope._READER.interface); parentScope.interface = G9; G9.prototype._pointerDefaults = parentScope.prototype._pointerDefaults; (function(types, parentScope) { parentScope.prototype._pointerDefaults = parentScope._READER.prototype._pointerDefaults; parentScope.prototype._floatDefaults = parentScope._READER.prototype._floatDefaults; var f0 = builder.lists.struct(types["0x9500cce23b334d80"])._FIELD; parentScope.prototype.adoptMethods = f0.adopt(24); parentScope.prototype.getMethods = f0.get(24, 3); parentScope.prototype.hasMethods = f0.has(24); parentScope.prototype.initMethods = f0.init(24); parentScope.prototype.disownMethods = f0.disown(24); parentScope.prototype.disownReadOnlyMethods = f0.disownReader(24); parentScope.prototype.setMethods = f0.set(24); var f1 = builder.lists.struct(types["0xa9962a9ed0a4d7f8"])._FIELD; parentScope.prototype.adoptSuperclasses = f1.adopt(32); parentScope.prototype.getSuperclasses = f1.get(32, 4); parentScope.prototype.hasSuperclasses = f1.has(32); parentScope.prototype.initSuperclasses = f1.init(32); parentScope.prototype.disownSuperclasses = f1.disown(32); parentScope.prototype.disownReadOnlySuperclasses = f1.disownReader(32); parentScope.prototype.setSuperclasses = f1.set(32); })(types, G9); parentScope.prototype.getInterface = function() { if (!this.isInterface()) { throw new Error("Attempted to access an inactive union member"); } return new G9(this); }; parentScope.prototype.initInterface = function() { this._setWhich(3); return new G9(this); }; parentScope.prototype.isConst = function() { return this.which() === 4; }; parentScope.CONST = parentScope.prototype.CONST = 4; var G10 = builder.group(parentScope._READER.const); parentScope.const = G10; G10.prototype._pointerDefaults = parentScope.prototype._pointerDefaults; (function(types, parentScope) { parentScope.prototype._pointerDefaults = parentScope._READER.prototype._pointerDefaults; parentScope.prototype._floatDefaults = parentScope._READER.prototype._floatDefaults; var f0 = types["0xd07378ede1f9cc60"]._FIELD; parentScope.prototype.adoptType = f0.adopt(24); parentScope.prototype.getType = f0.get(24, 3); parentScope.prototype.hasType = f0.has(24); parentScope.prototype.initType = f0.init(24); parentScope.prototype.disownType = f0.disown(24); parentScope.prototype.disownReadOnlyType = f0.disownReader(24); parentScope.prototype.setType = f0.set(24); var f1 = types["0xce23dcd2d7b00c9b"]._FIELD; parentScope.prototype.adoptValue = f1.adopt(32); parentScope.prototype.getValue = f1.get(32, 4); parentScope.prototype.hasValue = f1.has(32); parentScope.prototype.initValue = f1.init(32); parentScope.prototype.disownValue = f1.disown(32); parentScope.prototype.disownReadOnlyValue = f1.disownReader(32); parentScope.prototype.setValue = f1.set(32); })(types, G10); parentScope.prototype.getConst = function() { if (!this.isConst()) { throw new Error("Attempted to access an inactive union member"); } return new G10(this); }; parentScope.prototype.initConst = function() { this._setWhich(4); return new G10(this); }; parentScope.prototype.isAnnotation = function() { return this.which() === 5; }; parentScope.ANNOTATION = parentScope.prototype.ANNOTATION = 5; var G11 = builder.group(parentScope._READER.annotation); parentScope.annotation = G11; G11.prototype._pointerDefaults = parentScope.prototype._pointerDefaults; (function(types, parentScope) { parentScope.prototype._pointerDefaults = parentScope._READER.prototype._pointerDefaults; parentScope.prototype._floatDefaults = parentScope._READER.prototype._floatDefaults; var f0 = types["0xd07378ede1f9cc60"]._FIELD; parentScope.prototype.adoptType = f0.adopt(24); parentScope.prototype.getType = f0.get(24, 3); parentScope.prototype.hasType = f0.has(24); parentScope.prototype.initType = f0.init(24); parentScope.prototype.disownType = f0.disown(24); parentScope.prototype.disownReadOnlyType = f0.disownReader(24); parentScope.prototype.setType = f0.set(24); parentScope.prototype.getTargetsFile = function() { return reader.fields.bool(0, this._segment, this._dataSection + 14, 0); }; parentScope.prototype.setTargetsFile = function(value) { builder.fields.bool(value, 0, this._segment, this._dataSection + 14, 0); }; parentScope.prototype.getTargetsConst = function() { return reader.fields.bool(0, this._segment, this._dataSection + 14, 1); }; parentScope.prototype.setTargetsConst = function(value) { builder.fields.bool(value, 0, this._segment, this._dataSection + 14, 1); }; parentScope.prototype.getTargetsEnum = function() { return reader.fields.bool(0, this._segment, this._dataSection + 14, 2); }; parentScope.prototype.setTargetsEnum = function(value) { builder.fields.bool(value, 0, this._segment, this._dataSection + 14, 2); }; parentScope.prototype.getTargetsEnumerant = function() { return reader.fields.bool(0, this._segment, this._dataSection + 14, 3); }; parentScope.prototype.setTargetsEnumerant = function(value) { builder.fields.bool(value, 0, this._segment, this._dataSection + 14, 3); }; parentScope.prototype.getTargetsStruct = function() { return reader.fields.bool(0, this._segment, this._dataSection + 14, 4); }; parentScope.prototype.setTargetsStruct = function(value) { builder.fields.bool(value, 0, this._segment, this._dataSection + 14, 4); }; parentScope.prototype.getTargetsField = function() { return reader.fields.bool(0, this._segment, this._dataSection + 14, 5); }; parentScope.prototype.setTargetsField = function(value) { builder.fields.bool(value, 0, this._segment, this._dataSection + 14, 5); }; parentScope.prototype.getTargetsUnion = function() { return reader.fields.bool(0, this._segment, this._dataSection + 14, 6); }; parentScope.prototype.setTargetsUnion = function(value) { builder.fields.bool(value, 0, this._segment, this._dataSection + 14, 6); }; parentScope.prototype.getTargetsGroup = function() { return reader.fields.bool(0, this._segment, this._dataSection + 14, 7); }; parentScope.prototype.setTargetsGroup = function(value) { builder.fields.bool(value, 0, this._segment, this._dataSection + 14, 7); }; parentScope.prototype.getTargetsInterface = function() { return reader.fields.bool(0, this._segment, this._dataSection + 15, 0); }; parentScope.prototype.setTargetsInterface = function(value) { builder.fields.bool(value, 0, this._segment, this._dataSection + 15, 0); }; parentScope.prototype.getTargetsMethod = function() { return reader.fields.bool(0, this._segment, this._dataSection + 15, 1); }; parentScope.prototype.setTargetsMethod = function(value) { builder.fields.bool(value, 0, this._segment, this._dataSection + 15, 1); }; parentScope.prototype.getTargetsParam = function() { return reader.fields.bool(0, this._segment, this._dataSection + 15, 2); }; parentScope.prototype.setTargetsParam = function(value) { builder.fields.bool(value, 0, this._segment, this._dataSection + 15, 2); }; parentScope.prototype.getTargetsAnnotation = function() { return reader.fields.bool(0, this._segment, this._dataSection + 15, 3); }; parentScope.prototype.setTargetsAnnotation = function(value) { builder.fields.bool(value, 0, this._segment, this._dataSection + 15, 3); }; })(types, G11); parentScope.prototype.getAnnotation = function() { if (!this.isAnnotation()) { throw new Error("Attempted to access an inactive union member"); } return new G11(this); }; parentScope.prototype.initAnnotation = function() { this._setWhich(5); return new G11(this); }; var f12 = builder.lists.struct(types["0xb9521bccf10fa3b1"])._FIELD; parentScope.prototype.adoptParameters = f12.adopt(40); parentScope.prototype.getParameters = f12.get(40, 5); parentScope.prototype.hasParameters = f12.has(40); parentScope.prototype.initParameters = f12.init(40); parentScope.prototype.disownParameters = f12.disown(40); parentScope.prototype.disownReadOnlyParameters = f12.disownReader(40); parentScope.prototype.setParameters = f12.set(40); parentScope.prototype.getIsGeneric = function() { return reader.fields.bool(0, this._segment, this._dataSection + 36, 0); }; parentScope.prototype.setIsGeneric = function(value) { builder.fields.bool(value, 0, this._segment, this._dataSection + 36, 0); }; })(types, Structure); parentScope.Node = Structure; })(scope, builders); (function(types, parentScope) { var Structure = types["0x9aad50a41f4af45f"]; Structure._PARENT = parentScope; (function(types, parentScope) { parentScope.NO_DISCRIMINANT = parentScope.prototype.NO_DISCRIMINANT = parentScope._READER.NO_DISCRIMINANT; })(types, Structure); Structure.prototype._pointerDefaults = Structure._READER.prototype._pointerDefaults; (function(types, parentScope) { parentScope.prototype._pointerDefaults = parentScope._READER.prototype._pointerDefaults; parentScope.prototype._floatDefaults = parentScope._READER.prototype._floatDefaults; parentScope.prototype.which = function() { return reader.primitives.uint16(this._segment, this._dataSection + 8); }; parentScope.prototype._setWhich = function(discr) { this._zeroData(4, 4); this._zeroData(16, 8); builder.zero.pointer(this._arena, { segment: this._segment, position: this._pointersSection + 24 }); builder.zero.pointer(this._arena, { segment: this._segment, position: this._pointersSection + 16 }); var position = this._dataSection + 8; builder.primitives.uint16(discr, this._segment, position); }; var f0 = builder.Text._FIELD; parentScope.prototype.adoptName = f0.adopt(0); parentScope.prototype.getName = f0.get(0, 0); parentScope.prototype.hasName = f0.has(0); parentScope.prototype.initName = f0.init(0); parentScope.prototype.disownName = f0.disown(0); parentScope.prototype.disownReadOnlyName = f0.disownReader(0); parentScope.prototype.setName = f0.set(0); parentScope.prototype.getCodeOrder = function() { var position = this._dataSection + 0; return reader.fields.uint16(0, this._segment, position); }; parentScope.prototype.setCodeOrder = function(value) { builder.fields.uint16(value, 0, this._segment, this._dataSection + 0); }; var f2 = builder.lists.struct(types["0xf1c8950dab257542"])._FIELD; parentScope.prototype.adoptAnnotations = f2.adopt(8); parentScope.prototype.getAnnotations = f2.get(8, 1); parentScope.prototype.hasAnnotations = f2.has(8); parentScope.prototype.initAnnotations = f2.init(8); parentScope.prototype.disownAnnotations = f2.disown(8); parentScope.prototype.disownReadOnlyAnnotations = f2.disownReader(8); parentScope.prototype.setAnnotations = f2.set(8); parentScope.prototype.getDiscriminantValue = function() { var position = this._dataSection + 2; return reader.fields.uint16(65535, this._segment, position); }; parentScope.prototype.setDiscriminantValue = function(value) { builder.fields.uint16(value, 65535, this._segment, this._dataSection + 2); }; parentScope.prototype.isSlot = function() { return this.which() === 0; }; parentScope.SLOT = parentScope.prototype.SLOT = 0; var G4 = builder.group(parentScope._READER.slot); parentScope.slot = G4; G4.prototype._pointerDefaults = parentScope.prototype._pointerDefaults; (function(types, parentScope) { parentScope.prototype._pointerDefaults = parentScope._READER.prototype._pointerDefaults; parentScope.prototype._floatDefaults = parentScope._READER.prototype._floatDefaults; parentScope.prototype.getOffset = function() { var position = this._dataSection + 4; return reader.fields.uint32(0, this._segment, position); }; parentScope.prototype.setOffset = function(value) { builder.fields.uint32(value, 0, this._segment, this._dataSection + 4); }; var f1 = types["0xd07378ede1f9cc60"]._FIELD; parentScope.prototype.adoptType = f1.adopt(16); parentScope.prototype.getType = f1.get(16, 2); parentScope.prototype.hasType = f1.has(16); parentScope.prototype.initType = f1.init(16); parentScope.prototype.disownType = f1.disown(16); parentScope.prototype.disownReadOnlyType = f1.disownReader(16); parentScope.prototype.setType = f1.set(16); var f2 = types["0xce23dcd2d7b00c9b"]._FIELD; parentScope.prototype.adoptDefaultValue = f2.adopt(24); parentScope.prototype.getDefaultValue = f2.get(24, 3); parentScope.prototype.hasDefaultValue = f2.has(24); parentScope.prototype.initDefaultValue = f2.init(24); parentScope.prototype.disownDefaultValue = f2.disown(24); parentScope.prototype.disownReadOnlyDefaultValue = f2.disownReader(24); parentScope.prototype.setDefaultValue = f2.set(24); parentScope.prototype.getHadExplicitDefault = function() { return reader.fields.bool(0, this._segment, this._dataSection + 16, 0); }; parentScope.prototype.setHadExplicitDefault = function(value) { builder.fields.bool(value, 0, this._segment, this._dataSection + 16, 0); }; })(types, G4); parentScope.prototype.getSlot = function() { if (!this.isSlot()) { throw new Error("Attempted to access an inactive union member"); } return new G4(this); }; parentScope.prototype.initSlot = function() { this._setWhich(0); return new G4(this); }; parentScope.prototype.isGroup = function() { return this.which() === 1; }; parentScope.GROUP = parentScope.prototype.GROUP = 1; var G5 = builder.group(parentScope._READER.group); parentScope.group = G5; G5.prototype._pointerDefaults = parentScope.prototype._pointerDefaults; (function(types, parentScope) { parentScope.prototype._pointerDefaults = parentScope._READER.prototype._pointerDefaults; parentScope.prototype._floatDefaults = parentScope._READER.prototype._floatDefaults; parentScope.prototype.getTypeId = function() { var position = this._dataSection + 16; return reader.fields.uint64([ 0, 0 ], this._segment, position); }; parentScope.prototype.setTypeId = function(value) { builder.fields.uint64(value, [ 0, 0 ], this._segment, this._dataSection + 16); }; })(types, G5); parentScope.prototype.getGroup = function() { if (!this.isGroup()) { throw new Error("Attempted to access an inactive union member"); } return new G5(this); }; parentScope.prototype.initGroup = function() { this._setWhich(1); return new G5(this); }; var G6 = builder.group(parentScope._READER.ordinal); parentScope.ordinal = G6; G6.prototype._pointerDefaults = parentScope.prototype._pointerDefaults; (function(types, parentScope) { parentScope.prototype._pointerDefaults = parentScope._READER.prototype._pointerDefaults; parentScope.prototype._floatDefaults = parentScope._READER.prototype._floatDefaults; parentScope.prototype.which = function() { return reader.primitives.uint16(this._segment, this._dataSection + 10); }; parentScope.prototype._setWhich = function(discr) { this._zeroData(12, 2); var position = this._dataSection + 10; builder.primitives.uint16(discr, this._segment, position); }; parentScope.prototype.isImplicit = function() { return this.which() === 0; }; parentScope.IMPLICIT = parentScope.prototype.IMPLICIT = 0; parentScope.prototype.getImplicit = function() { if (!this.isImplicit()) { throw new Error("Attempted to access an inactive union member"); } return null; }; parentScope.prototype.setImplicit = function() { this._setWhich(0); }; parentScope.prototype.isExplicit = function() { return this.which() === 1; }; parentScope.EXPLICIT = parentScope.prototype.EXPLICIT = 1; parentScope.prototype.getExplicit = function() { if (!this.isExplicit()) { throw new Error("Attempted to access an inactive union member"); } var position = this._dataSection + 12; return reader.fields.uint16(0, this._segment, position); }; parentScope.prototype.setExplicit = function(value) { this._setWhich(1); builder.fields.uint16(value, 0, this._segment, this._dataSection + 12); }; })(types, G6); parentScope.prototype.getOrdinal = function() { return new G6(this); }; parentScope.prototype.initOrdinal = function() { return new G6(this); }; })(types, Structure); parentScope.Field = Structure; })(scope, builders); (function(types, parentScope) { var Structure = types["0x978a7cebdc549a4d"]; Structure._PARENT = parentScope; Structure.prototype._pointerDefaults = Structure._READER.prototype._pointerDefaults; (function(types, parentScope) { parentScope.prototype._pointerDefaults = parentScope._READER.prototype._pointerDefaults; parentScope.prototype._floatDefaults = parentScope._READER.prototype._floatDefaults; var f0 = builder.Text._FIELD; parentScope.prototype.adoptName = f0.adopt(0); parentScope.prototype.getName = f0.get(0, 0); parentScope.prototype.hasName = f0.has(0); parentScope.prototype.initName = f0.init(0); parentScope.prototype.disownName = f0.disown(0); parentScope.prototype.disownReadOnlyName = f0.disownReader(0); parentScope.prototype.setName = f0.set(0); parentScope.prototype.getCodeOrder = function() { var position = this._dataSection + 0; return reader.fields.uint16(0, this._segment, position); }; parentScope.prototype.setCodeOrder = function(value) { builder.fields.uint16(value, 0, this._segment, this._dataSection + 0); }; var f2 = builder.lists.struct(types["0xf1c8950dab257542"])._FIELD; parentScope.prototype.adoptAnnotations = f2.adopt(8); parentScope.prototype.getAnnotations = f2.get(8, 1); parentScope.prototype.hasAnnotations = f2.has(8); parentScope.prototype.initAnnotations = f2.init(8); parentScope.prototype.disownAnnotations = f2.disown(8); parentScope.prototype.disownReadOnlyAnnotations = f2.disownReader(8); parentScope.prototype.setAnnotations = f2.set(8); })(types, Structure); parentScope.Enumerant = Structure; })(scope, builders); (function(types, parentScope) { var Structure = types["0xa9962a9ed0a4d7f8"]; Structure._PARENT = parentScope; Structure.prototype._pointerDefaults = Structure._READER.prototype._pointerDefaults; (function(types, parentScope) { parentScope.prototype._pointerDefaults = parentScope._READER.prototype._pointerDefaults; parentScope.prototype._floatDefaults = parentScope._READER.prototype._floatDefaults; parentScope.prototype.getId = function() { var position = this._dataSection + 0; return reader.fields.uint64([ 0, 0 ], this._segment, position); }; parentScope.prototype.setId = function(value) { builder.fields.uint64(value, [ 0, 0 ], this._segment, this._dataSection + 0); }; var f1 = types["0x903455f06065422b"]._FIELD; parentScope.prototype.adoptBrand = f1.adopt(0); parentScope.prototype.getBrand = f1.get(0, 0); parentScope.prototype.hasBrand = f1.has(0); parentScope.prototype.initBrand = f1.init(0); parentScope.prototype.disownBrand = f1.disown(0); parentScope.prototype.disownReadOnlyBrand = f1.disownReader(0); parentScope.prototype.setBrand = f1.set(0); })(types, Structure); parentScope.Superclass = Structure; })(scope, builders); (function(types, parentScope) { var Structure = types["0x9500cce23b334d80"]; Structure._PARENT = parentScope; Structure.prototype._pointerDefaults = Structure._READER.prototype._pointerDefaults; (function(types, parentScope) { parentScope.prototype._pointerDefaults = parentScope._READER.prototype._pointerDefaults; parentScope.prototype._floatDefaults = parentScope._READER.prototype._floatDefaults; var f0 = builder.Text._FIELD; parentScope.prototype.adoptName = f0.adopt(0); parentScope.prototype.getName = f0.get(0, 0); parentScope.prototype.hasName = f0.has(0); parentScope.prototype.initName = f0.init(0); parentScope.prototype.disownName = f0.disown(0); parentScope.prototype.disownReadOnlyName = f0.disownReader(0); parentScope.prototype.setName = f0.set(0); parentScope.prototype.getCodeOrder = function() { var position = this._dataSection + 0; return reader.fields.uint16(0, this._segment, position); }; parentScope.prototype.setCodeOrder = function(value) { builder.fields.uint16(value, 0, this._segment, this._dataSection + 0); }; parentScope.prototype.getParamStructType = function() { var position = this._dataSection + 8; return reader.fields.uint64([ 0, 0 ], this._segment, position); }; parentScope.prototype.setParamStructType = function(value) { builder.fields.uint64(value, [ 0, 0 ], this._segment, this._dataSection + 8); }; parentScope.prototype.getResultStructType = function() { var position = this._dataSection + 16; return reader.fields.uint64([ 0, 0 ], this._segment, position); }; parentScope.prototype.setResultStructType = function(value) { builder.fields.uint64(value, [ 0, 0 ], this._segment, this._dataSection + 16); }; var f4 = builder.lists.struct(types["0xf1c8950dab257542"])._FIELD; parentScope.prototype.adoptAnnotations = f4.adopt(8); parentScope.prototype.getAnnotations = f4.get(8, 1); parentScope.prototype.hasAnnotations = f4.has(8); parentScope.prototype.initAnnotations = f4.init(8); parentScope.prototype.disownAnnotations = f4.disown(8); parentScope.prototype.disownReadOnlyAnnotations = f4.disownReader(8); parentScope.prototype.setAnnotations = f4.set(8); var f5 = types["0x903455f06065422b"]._FIELD; parentScope.prototype.adoptParamBrand = f5.adopt(16); parentScope.prototype.getParamBrand = f5.get(16, 2); parentScope.prototype.hasParamBrand = f5.has(16); parentScope.prototype.initParamBrand = f5.init(16); parentScope.prototype.disownParamBrand = f5.disown(16); parentScope.prototype.disownReadOnlyParamBrand = f5.disownReader(16); parentScope.prototype.setParamBrand = f5.set(16); var f6 = types["0x903455f06065422b"]._FIELD; parentScope.prototype.adoptResultBrand = f6.adopt(24); parentScope.prototype.getResultBrand = f6.get(24, 3); parentScope.prototype.hasResultBrand = f6.has(24); parentScope.prototype.initResultBrand = f6.init(24); parentScope.prototype.disownResultBrand = f6.disown(24); parentScope.prototype.disownReadOnlyResultBrand = f6.disownReader(24); parentScope.prototype.setResultBrand = f6.set(24); var f7 = builder.lists.struct(types["0xb9521bccf10fa3b1"])._FIELD; parentScope.prototype.adoptImplicitParameters = f7.adopt(32); parentScope.prototype.getImplicitParameters = f7.get(32, 4); parentScope.prototype.hasImplicitParameters = f7.has(32); parentScope.prototype.initImplicitParameters = f7.init(32); parentScope.prototype.disownImplicitParameters = f7.disown(32); parentScope.prototype.disownReadOnlyImplicitParameters = f7.disownReader(32); parentScope.prototype.setImplicitParameters = f7.set(32); })(types, Structure); parentScope.Method = Structure; })(scope, builders); (function(types, parentScope) { var Structure = types["0xd07378ede1f9cc60"]; Structure._PARENT = parentScope; Structure.prototype._pointerDefaults = Structure._READER.prototype._pointerDefaults; (function(types, parentScope) { parentScope.prototype._pointerDefaults = parentScope._READER.prototype._pointerDefaults; parentScope.prototype._floatDefaults = parentScope._READER.prototype._floatDefaults; parentScope.prototype.which = function() { return reader.primitives.uint16(this._segment, this._dataSection + 0); }; parentScope.prototype._setWhich = function(discr) { this._zeroData(8, 16); builder.zero.pointer(this._arena, { segment: this._segment, position: this._pointersSection + 0 }); var position = this._dataSection + 0; builder.primitives.uint16(discr, this._segment, position); }; parentScope.prototype.isVoid = function() { return this.which() === 0; }; parentScope.VOID = parentScope.prototype.VOID = 0; parentScope.prototype.getVoid = function() { if (!this.isVoid()) { throw new Error("Attempted to access an inactive union member"); } return null; }; parentScope.prototype.setVoid = function() { this._setWhich(0); }; parentScope.prototype.isBool = function() { return this.which() === 1; }; parentScope.BOOL = parentScope.prototype.BOOL = 1; parentScope.prototype.getBool = function() { if (!this.isBool()) { throw new Error("Attempted to access an inactive union member"); } return null; }; parentScope.prototype.setBool = function() { this._setWhich(1); }; parentScope.prototype.isInt8 = function() { return this.which() === 2; }; parentScope.INT8 = parentScope.prototype.INT8 = 2; parentScope.prototype.getInt8 = function() { if (!this.isInt8()) { throw new Error("Attempted to access an inactive union member"); } return null; }; parentScope.prototype.setInt8 = function() { this._setWhich(2); }; parentScope.prototype.isInt16 = function() { return this.which() === 3; }; parentScope.INT16 = parentScope.prototype.INT16 = 3; parentScope.prototype.getInt16 = function() { if (!this.isInt16()) { throw new Error("Attempted to access an inactive union member"); } return null; }; parentScope.prototype.setInt16 = function() { this._setWhich(3); }; parentScope.prototype.isInt32 = function() { return this.which() === 4; }; parentScope.INT32 = parentScope.prototype.INT32 = 4; parentScope.prototype.getInt32 = function() { if (!this.isInt32()) { throw new Error("Attempted to access an inactive union member"); } return null; }; parentScope.prototype.setInt32 = function() { this._setWhich(4); }; parentScope.prototype.isInt64 = function() { return this.which() === 5; }; parentScope.INT64 = parentScope.prototype.INT64 = 5; parentScope.prototype.getInt64 = function() { if (!this.isInt64()) { throw new Error("Attempted to access an inactive union member"); } return null; }; parentScope.prototype.setInt64 = function() { this._setWhich(5); }; parentScope.prototype.isUint8 = function() { return this.which() === 6; }; parentScope.UINT8 = parentScope.prototype.UINT8 = 6; parentScope.prototype.getUint8 = function() { if (!this.isUint8()) { throw new Error("Attempted to access an inactive union member"); } return null; }; parentScope.prototype.setUint8 = function() { this._setWhich(6); }; parentScope.prototype.isUint16 = function() { return this.which() === 7; }; parentScope.UINT16 = parentScope.prototype.UINT16 = 7; parentScope.prototype.getUint16 = function() { if (!this.isUint16()) { throw new Error("Attempted to access an inactive union member"); } return null; }; parentScope.prototype.setUint16 = function() { this._setWhich(7); }; parentScope.prototype.isUint32 = function() { return this.which() === 8; }; parentScope.UINT32 = parentScope.prototype.UINT32 = 8; parentScope.prototype.getUint32 = function() { if (!this.isUint32()) { throw new Error("Attempted to access an inactive union member"); } return null; }; parentScope.prototype.setUint32 = function() { this._setWhich(8); }; parentScope.prototype.isUint64 = function() { return this.which() === 9; }; parentScope.UINT64 = parentScope.prototype.UINT64 = 9; parentScope.prototype.getUint64 = function() { if (!this.isUint64()) { throw new Error("Attempted to access an inactive union member"); } return null; }; parentScope.prototype.setUint64 = function() { this._setWhich(9); }; parentScope.prototype.isFloat32 = function() { return this.which() === 10; }; parentScope.FLOAT32 = parentScope.prototype.FLOAT32 = 10; parentScope.prototype.getFloat32 = function() { if (!this.isFloat32()) { throw new Error("Attempted to access an inactive union member"); } return null; }; parentScope.prototype.setFloat32 = function() { this._setWhich(10); }; parentScope.prototype.isFloat64 = function() { return this.which() === 11; }; parentScope.FLOAT64 = parentScope.prototype.FLOAT64 = 11; parentScope.prototype.getFloat64 = function() { if (!this.isFloat64()) { throw new Error("Attempted to access an inactive union member"); } return null; }; parentScope.prototype.setFloat64 = function() { this._setWhich(11); }; parentScope.prototype.isText = function() { return this.which() === 12; }; parentScope.TEXT = parentScope.prototype.TEXT = 12; parentScope.p