Return a class-loader closure bound to a [`FileContext`]. This is the convenience wrapper for the common case where the caller already has a `FileContext`. For situations that need a different class list (e.g. patched/effective classes after error recovery), use [`class_loader_with`](Self::class_loader_with).
(
&'a self,
ctx: &'a FileContext,
)
| 818 | /// different class list (e.g. patched/effective classes after error |
| 819 | /// recovery), use [`class_loader_with`](Self::class_loader_with). |
| 820 | pub(crate) fn class_loader<'a>( |
| 821 | &'a self, |
| 822 | ctx: &'a FileContext, |
| 823 | ) -> impl Fn(&str) -> Option<Arc<ClassInfo>> + 'a { |
| 824 | self.class_loader_with(&ctx.classes, &ctx.use_map, &ctx.namespace) |
| 825 | } |
| 826 | |
| 827 | /// Return a class-loader closure from individual file-context |
| 828 | /// components. |