(
file: File,
)
| 965 | } |
| 966 | |
| 967 | private findImportedModuleIdentifiers( |
| 968 | file: File, |
| 969 | ): Record<string, ImportInfo> { |
| 970 | if (IMPORT_SCANNER_CACHE.has(file.hash)) { |
| 971 | return IMPORT_SCANNER_CACHE.get(file.hash); |
| 972 | } |
| 973 | |
| 974 | const result = findImportedModuleIdentifiers( |
| 975 | this.getDataString(file), |
| 976 | file.hash, |
| 977 | ); |
| 978 | |
| 979 | // there should always be file.hash, but better safe than sorry |
| 980 | if (file.hash) { |
| 981 | IMPORT_SCANNER_CACHE.set(file.hash, result); |
| 982 | } |
| 983 | |
| 984 | return result; |
| 985 | } |
| 986 | |
| 987 | private resolve( |
| 988 | parentFile: File, |
no test coverage detected