Cached variant of [`resolve_class_fully`]. Identical semantics, but stores and retrieves results from `cache` so that repeated resolutions of the same class within a single request cycle (or across requests between edits) are free. The cache is keyed by the class's fully-qualified name (`namespace\ClassName` or just `ClassName` for the global namespace). Callers that apply post-resolution transf
(
class: &ClassInfo,
class_loader: &dyn Fn(&str) -> Option<Arc<ClassInfo>>,
cache: &ResolvedClassCache,
)
| 671 | /// still call this function for the base resolution and apply the |
| 672 | /// transform to the returned value. |
| 673 | pub fn resolve_class_fully_cached( |
| 674 | class: &ClassInfo, |
| 675 | class_loader: &dyn Fn(&str) -> Option<Arc<ClassInfo>>, |
| 676 | cache: &ResolvedClassCache, |
| 677 | ) -> Arc<ClassInfo> { |
| 678 | resolve_class_fully_inner(class, class_loader, Some(cache), &[]) |
| 679 | } |
| 680 | |
| 681 | /// Resolve a class fully, using the cache when available. |
| 682 | /// |
no test coverage detected