( importDeclarations: ts.ImportDeclaration[], name: string, )
| 332 | * symbol. |
| 333 | */ |
| 334 | export function nonCollidingImportName( |
| 335 | importDeclarations: ts.ImportDeclaration[], |
| 336 | name: string, |
| 337 | ): string { |
| 338 | const possibleNames = suggestAlternativeSymbolNames(name); |
| 339 | while (importCollisionExists(importDeclarations, name)) { |
| 340 | name = possibleNames.next().value; |
| 341 | } |
| 342 | return name; |
| 343 | } |
| 344 | |
| 345 | /** |
| 346 | * If the provided trait is standalone, just return it. Otherwise, returns the owning ngModule. |
no test coverage detected