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

Method absolute_path

libs/@local/hashql/core/src/module/item.rs:97–108  ·  view source on GitHub ↗
(
        &self,
        registry: &ModuleRegistry<'heap>,
    )

Source from the content-addressed store, hash-verified

95 }
96
97 pub fn absolute_path(
98 &self,
99 registry: &ModuleRegistry<'heap>,
100 ) -> impl Iterator<Item = Symbol<'heap>> {
101 let mut modules: Vec<_> = self.ancestors(registry).into_iter().collect();
102 modules.reverse();
103
104 modules
105 .into_iter()
106 .map(|module| module.name)
107 .chain(iter::once(self.name))
108 }
109}

Callers 2

visit_pathMethod · 0.80
format_absolute_pathFunction · 0.80

Calls 5

collectMethod · 0.80
into_iterMethod · 0.45
ancestorsMethod · 0.45
reverseMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected