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

Method find_block_end

atomic-core/src/pristine/span_index.rs:52–54  ·  view source on GitHub ↗

Resolve the span ending at `target` (or, failing that, containing it), preferring an empty marker at exactly `target`, if this change is loaded.

(&self, change_id: u64, target: u64)

Source from the content-addressed store, hash-verified

50 /// Resolve the span ending at `target` (or, failing that, containing it),
51 /// preferring an empty marker at exactly `target`, if this change is loaded.
52 pub(crate) fn find_block_end(&self, change_id: u64, target: u64) -> Option<(u64, u64)> {
53 block_end(self.spans.get(&change_id)?, target)
54 }
55}
56
57/// `find_block` query against a loaded span set.

Callers 2

walk_through_deadFunction · 0.45

Calls 2

block_endFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected