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

Method file_position

atomic-core/src/pristine/span_patch_storage/legacy.rs:25–27  ·  view source on GitHub ↗
(&self, ordinal: u32)

Source from the content-addressed store, hash-verified

23 .any(|(file, position, raw)| *file == owner && *position == pos && *raw != actual.get())
24 }
25 pub(super) fn file_position(&self, ordinal: u32) -> Option<u64> {
26 self.files.get(ordinal as usize).copied()
27 }
28 pub(super) fn contains(&self, owner: Hash, pos: u64, start: u64, end: u64) -> bool {
29 self.ranges.contains(&(owner, pos, start, end))
30 }

Callers 1

prepare_legacy_filesFunction · 0.80

Calls 1

getMethod · 0.65

Tested by

no test coverage detected