import Color , { IColor } from '../colors/color' ; interface VariableLocation { fileName : string ; line : number ; position ? : number ; } class Variable implements IColor { public name : string ; public color : Color ; public location : VariableLocation ; public id : number ; public type : string ; public constructor ( name , color , location , type ) { this . name = name ; this . color = color ; this . location = location ; this . type = type ; } returns { string } public memberOf public toRgbString ( ) { return this . color . toRgbString ( ) ; } public update ( color ) { this . color = color ; } } export default Variable ; export { VariableLocation } ;