(specifier: t.ImportSpecifier)
| 12 | } |
| 13 | |
| 14 | function getImportKey(specifier: t.ImportSpecifier): string { |
| 15 | const importedName = getImportedName(specifier); |
| 16 | const localName = specifier.local?.name ?? importedName; |
| 17 | const importKind = specifier.importKind ?? 'value'; |
| 18 | return `${importKind}:${importedName}:${localName}`; |
| 19 | } |
| 20 | |
| 21 | function getImportDeclarationKey(node: t.ImportDeclaration): string { |
| 22 | return (node.importKind ?? 'value') + ':' + node.source.value; |
no test coverage detected