Return a function-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 explicit use-map / namespace values, use [`function_loader_with`](Self::function_loader_with).
(
&'a self,
ctx: &'a FileContext,
)
| 888 | /// explicit use-map / namespace values, use |
| 889 | /// [`function_loader_with`](Self::function_loader_with). |
| 890 | pub(crate) fn function_loader<'a>( |
| 891 | &'a self, |
| 892 | ctx: &'a FileContext, |
| 893 | ) -> impl Fn(&str) -> Option<FunctionInfo> + 'a { |
| 894 | self.function_loader_with(&ctx.use_map, &ctx.namespace) |
| 895 | } |
| 896 | |
| 897 | /// Return a function-loader closure from individual file-context |
| 898 | /// components. |
no test coverage detected