export enum ImportType { Default = "Default" , Identifier = "Identifier" , Namespace = "Namespace" } export class ImportIdentifierInfo { constructor ( public readonly localName , public readonly sourceName , public readonly moduleName , public readonly type ) { } } export class ImportManager { public readonly idMap : Map < string , ImportIdentifierInfo > = new Map ( ) ; public addImportId ( importId ) { this . idMap . set ( importId . localName , importId ) ; } get ids ( ) { return [ ... this . idMap . values ( ) ] ; } }