Return the import table (short name → FQN) for a file. Returns the legacy `use_map` which contains all *declared imports from `use` statements, regardless of whether they are actually referenced in the code. This is the correct source for consumers that need the full import table (unused-import detection, import-class code actions, name resolution helpers). For consumers that can resolve names
(&self, uri: &str)
| 1682 | /// For consumers that can resolve names by byte offset, prefer |
| 1683 | /// querying `resolved_names` directly via [`file_context`] instead. |
| 1684 | pub(crate) fn file_use_map(&self, uri: &str) -> std::collections::HashMap<String, String> { |
| 1685 | self.file_imports |
| 1686 | .read() |
| 1687 | .get(uri) |
| 1688 | .cloned() |
| 1689 | .unwrap_or_default() |
| 1690 | } |
| 1691 | |
| 1692 | /// Remove a file's entries from `uri_classes_index`, `use_map`, and `namespace_map`. |
| 1693 | /// |
no test coverage detected