MCPcopy Index your code
hub / github.com/meteor/meteor / findImportedModuleIdentifiers

Method findImportedModuleIdentifiers

tools/isobuild/import-scanner.ts:967–985  ·  view source on GitHub ↗
(
    file: File,
  )

Source from the content-addressed store, hash-verified

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,

Callers 1

scanFileMethod · 0.95

Calls 5

getDataStringMethod · 0.95
hasMethod · 0.45
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected