Distinct sources a file imports `name` from, at any scope (`from a import x` → `a:x`).
(name: string, filePath: string, context: ResolutionContext)
| 602 | |
| 603 | /** Distinct sources a file imports `name` from, at any scope (`from a import x` → `a:x`). */ |
| 604 | function pythonImportKeys(name: string, filePath: string, context: ResolutionContext): Set<string> { |
| 605 | return pythonNameScan(context, `imports\0${filePath}\0${name}`, () => scanPythonImportKeys(name, filePath, context)); |
| 606 | } |
| 607 | |
| 608 | const PYTHON_NAME_SCANS = new WeakMap<ResolutionContext, Map<string, unknown>>(); |
| 609 | /** Per-file, per-name scans are shared by every ref in the file; cleared with the other memos on sync. */ |
no test coverage detected