(moduleSpecifier: string)
| 333 | constructor(private readonly namespaceAliasConflicts: ReadonlySet<string> = new Set()) {} |
| 334 | |
| 335 | addImport(moduleSpecifier: string): string { |
| 336 | let alias = this.imports.get(moduleSpecifier); |
| 337 | if (alias === undefined) { |
| 338 | alias = allocateNamespaceAlias(this.nextIndex++, this.namespaceAliasConflicts); |
| 339 | this.imports.set(moduleSpecifier, alias); |
| 340 | } |
| 341 | return alias; |
| 342 | } |
| 343 | |
| 344 | generateImportStatements(): string { |
| 345 | let result = ''; |
no test coverage detected