MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / conditional_path

Method conditional_path

atomic-semantic/src/relationships.rs:670–682  ·  view source on GitHub ↗
(&self, path: &str)

Source from the content-addressed store, hash-verified

668 }
669
670 fn conditional_path(&self, path: &str) -> bool {
671 self.placements
672 .get(path)
673 .into_iter()
674 .flatten()
675 .any(|placement| {
676 (1..=placement.module.len()).any(|depth| {
677 self.modules
678 .get(&(placement.root.clone(), placement.module[..depth].to_vec()))
679 .is_some_and(|access| access.conditional)
680 })
681 })
682 }
683}

Callers 1

bind_callsMethod · 0.80

Calls 4

getMethod · 0.65
into_iterMethod · 0.45
lenMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected