Return a function-loader closure from individual file-context components. Useful when the caller does not have a full `FileContext` or needs to use a different use-map / namespace.
(
&'a self,
use_map: &'a HashMap<String, String>,
namespace: &'a Option<String>,
)
| 900 | /// Useful when the caller does not have a full `FileContext` or |
| 901 | /// needs to use a different use-map / namespace. |
| 902 | pub(crate) fn function_loader_with<'a>( |
| 903 | &'a self, |
| 904 | use_map: &'a HashMap<String, String>, |
| 905 | namespace: &'a Option<String>, |
| 906 | ) -> impl Fn(&str) -> Option<FunctionInfo> + 'a { |
| 907 | move |name: &str| self.resolve_function_name(name, use_map, namespace) |
| 908 | } |
| 909 | |
| 910 | /// Return a constant-value-loader closure. |
| 911 | /// |
no test coverage detected