import { NumberType , getNumberTypeAsString } from './numbertype' ; /**
 * Class for the labels used for disassembly.
 */ export class DisLabel { public static id = 0 ; public id : number ; public type : NumberType ; public name : string ; public parent : DisLabel ; public references = new Set < number > ( ) ; public calls = new Array < DisLabel > ( ) ; public isEqu = false ; public belongsToInterrupt = false ; public isFixed = false ; /**
     * Constructor: Initializes memory.
     */ constructor ( type ) { this . type = type ; DisLabel . id ++ ; this . id = DisLabel . id ; } /**
     * returns the LabelType enum as string.
     * For debugging.
     */ public getTypeAsString ( ) { return getNumberTypeAsString ( this . type ) ; } returns public getName ( ) { return this . name ; } }