author jdiaz5513
  import * as s from "capnp-ts/src/std/schema.capnp.js" ; import initTrace from "debug" ; import ts , { factory as f } from "typescript" ; const trace = initTrace ( "capnpc:constants" ) ; trace ( "load" ) ; /** undefined */ export const __ = undefined ; /** BigInt */ export const BIGINT = f . createIdentifier ( "BigInt" ) ; /** boolean */ export const BOOLEAN_TYPE = f . createTypeReferenceNode ( "boolean" , __ ) ; /** capnp */ export const CAPNP = f . createIdentifier ( "capnp" ) ; /** A Mapping of various types to their list type constructor. */ export const ConcreteListType = { [ s . Type . ANY_POINTER ] : "capnp.AnyPointerList" , [ s . Type . BOOL ] : "capnp.BoolList" , [ s . Type . DATA ] : "capnp.DataList" , [ s . Type . ENUM ] : "capnp.Uint16List" , [ s . Type . FLOAT32 ] : "capnp.Float32List" , [ s . Type . FLOAT64 ] : "capnp.Float64List" , [ s . Type . INT16 ] : "capnp.Int16List" , [ s . Type . INT32 ] : "capnp.Int32List" , [ s . Type . INT64 ] : "capnp.Int64List" , [ s . Type . INT8 ] : "capnp.Int8List" , [ s . Type . INTERFACE ] : "capnp.InterfaceList" , [ s . Type . LIST ] : "capnp.PointerList" , [ s . Type . STRUCT ] : "capnp.CompositeList" , [ s . Type . TEXT ] : "capnp.TextList" , [ s . Type . UINT16 ] : "capnp.Uint16List" , [ s . Type . UINT32 ] : "capnp.Uint32List" , [ s . Type . UINT64 ] : "capnp.Uint64List" , [ s . Type . UINT8 ] : "capnp.Uint8List" , [ s . Type . VOID ] : "capnp.VoidList" , } ; /** export */ export const EXPORT = f . createToken ( ts . SyntaxKind . ExportKeyword ) ; /** length */ export const LENGTH = f . createIdentifier ( "length" ) ; /** Some data used to help generate code for primitive struct fields. */ export const Primitive = { [ s . Type . BOOL ] : { byteLength : 1 , getter : "getBit" , mask : "getBitMask" , setter : "setBit" , } , [ s . Type . ENUM ] : { byteLength : 2 , getter : "getUint16" , mask : "getUint16Mask" , setter : "setUint16" , } , [ s . Type . FLOAT32 ] : { byteLength : 4 , getter : "getFloat32" , mask : "getFloat32Mask" , setter : "setFloat32" , } , [ s . Type . FLOAT64 ] : { byteLength : 8 , getter : "getFloat64" , mask : "getFloat64Mask" , setter : "setFloat64" , } , [ s . Type . INT16 ] : { byteLength : 2 , getter : "getInt16" , mask : "getInt16Mask" , setter : "setInt16" , } , [ s . Type . INT32 ] : { byteLength : 4 , getter : "getInt32" , mask : "getInt32Mask" , setter : "setInt32" , } , [ s . Type . INT64 ] : { byteLength : 8 , getter : "getInt64" , mask : "getInt64Mask" , setter : "setInt64" , } , [ s . Type . INT8 ] : { byteLength : 1 , getter : "getInt8" , mask : "getInt8Mask" , setter : "setInt8" , } , [ s . Type . UINT16 ] : { byteLength : 2 , getter : "getUint16" , mask : "getUint16Mask" , setter : "setUint16" , } , [ s . Type . UINT32 ] : { byteLength : 4 , getter : "getUint32" , mask : "getUint32Mask" , setter : "setUint32" , } , [ s . Type . UINT64 ] : { byteLength : 8 , getter : "getUint64" , mask : "getUint64Mask" , setter : "setUint64" , } , [ s . Type . UINT8 ] : { byteLength : 1 , getter : "getUint8" , mask : "getUint8Mask" , setter : "setUint8" , } , [ s . Type . VOID ] : { byteLength : 0 , getter : "getVoid" , mask : "getVoidMask" , setter : "setVoid" , } , } ; /** number */ export const NUMBER_TYPE = f . createTypeReferenceNode ( "number" , __ ) ; /** __O */ export const OBJECT_SIZE = f . createIdentifier ( "__O" ) ; /** readonly */ export const READONLY = f . createToken ( ts . SyntaxKind . ReadonlyKeyword ) ; /** No... comment? */ export const SOURCE_COMMENT = `/* tslint:disable */

/**
 * This file has been automatically generated by the [capnpc-ts utility](https://github.com/jdiaz5513/capnp-ts).
 */

` ; /** static */ export const STATIC = f . createToken ( ts . SyntaxKind . StaticKeyword ) ; /** string */ export const STRING_TYPE = f . createTypeReferenceNode ( "string" , __ ) ; /** __S */ export const STRUCT = ts . createIdentifier ( "__S" ) ; /** this */ export const THIS = f . createThis ( ) ; /**
 * Used to look up the ts.capnp file by its ID.
 *
 * NOTE: The file ID should never change.
 */ export const TS_FILE_ID = "e37ded525a68a7c9" ; /** value */ export const VALUE = f . createIdentifier ( "value" ) ; /** void */ export const VOID_TYPE = f . createTypeReferenceNode ( "void" , __ ) ;