MCPcopy Create free account
hub / github.com/hashintel/hash / resolve_absolute

Method resolve_absolute

libs/@local/hashql/core/src/module/resolver.rs:257–276  ·  view source on GitHub ↗
(
        &self,
        query: impl IntoIterator<Item = Symbol<'heap>>,
    )

Source from the content-addressed store, hash-verified

255 }
256
257 pub(crate) fn resolve_absolute(
258 &self,
259 query: impl IntoIterator<Item = Symbol<'heap>>,
260 ) -> Result<ResolveIter<'heap>, ResolutionError<'heap>> {
261 let mut query = query.into_iter();
262
263 let Some(name) = query.next() else {
264 return Err(ResolutionError::InvalidQueryLength { expected: 2 });
265 };
266
267 let Some(module) = self.registry.find_by_name(name) else {
268 return Err(ResolutionError::PackageNotFound {
269 depth: 0,
270 name,
271 suggestions: self.suggest(|| self.registry.suggestions()),
272 });
273 };
274
275 self.resolve_impl(query, module)
276 }
277
278 fn resolve_import_single(
279 &self,

Callers 15

resolveMethod · 0.45
lookupMethod · 0.45
single_mode_resolve_typeFunction · 0.45
multi_mode_resolutionFunction · 0.45
glob_mode_resolutionFunction · 0.45
glob_mode_first_levelFunction · 0.45
package_not_foundFunction · 0.45

Calls 7

ErrInterface · 0.85
find_by_nameMethod · 0.80
suggestMethod · 0.80
suggestionsMethod · 0.80
resolve_implMethod · 0.80
into_iterMethod · 0.45
nextMethod · 0.45

Tested by 13

single_mode_resolve_typeFunction · 0.36
multi_mode_resolutionFunction · 0.36
glob_mode_resolutionFunction · 0.36
glob_mode_first_levelFunction · 0.36
package_not_foundFunction · 0.36
module_required_errorFunction · 0.36
module_empty_errorFunction · 0.36