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

Method find_block

atomic-core/src/record/workflow/retrieve.rs:525–539  ·  view source on GitHub ↗
(&self, pos: Position<NodeId>)

Source from the content-addressed store, hash-verified

523 }
524
525 fn find_block(&self, pos: Position<NodeId>) -> Result<GraphNode<NodeId>, PristineError> {
526 if self.empty || pos == Position::ROOT {
527 Err(PristineError::BlockNotFound {
528 change: pos.change.get(),
529 pos: pos.pos.get(),
530 })
531 } else {
532 // Return a span for the position
533 Ok(GraphNode::new(
534 pos.change,
535 pos.pos,
536 ChangePosition::new(pos.pos.get() + 10),
537 ))
538 }
539 }
540
541 fn find_block_end(
542 &self,

Callers 1

Calls 1

getMethod · 0.65

Tested by

no test coverage detected