import * as assert from 'assert' ; export const enum NumberType { NONE = 0 , DATA_LBL , PORT_LBL , CODE_LOCAL_LBL , CODE_LOCAL_LOOP , CODE_LBL , CODE_SUB , CODE_RST , RELATIVE_INDEX , NUMBER_BYTE , NUMBER_WORD , NUMBER_WORD_BIG_ENDIAN } /**
 * returns the LabelType enum as string.
 * For debugging.
 */ export function getNumberTypeAsString ( type ) { switch ( type ) { case NumberType . NONE : return "NONE" ; case NumberType . CODE_LOCAL_LBL : return "CODE_RELATIVE_LBL" ; case NumberType . CODE_LOCAL_LOOP : return "CODE_RELATIVE_LOOP" ; case NumberType . CODE_LBL : return "CODE_LBL" ; case NumberType . CODE_SUB : return "CODE_SUB" ; case NumberType . CODE_RST : return "CODE_RST" ; case NumberType . RELATIVE_INDEX : return "RELATIVE_INDEX" ; case NumberType . NUMBER_BYTE : return "NUMBER_BYTE" ; case NumberType . NUMBER_WORD : return "NUMBER_WORD" ; case NumberType . NUMBER_WORD_BIG_ENDIAN : return "NUMBER_WORD_BIG_ENDIAN" ; case NumberType . DATA_LBL : return "DATA_LBL" ; case NumberType . PORT_LBL : return "PORT_LBL" ; } assert ( false , 'getNumberTypeAsString' ) ; return "UNDEFINED" ; }