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

Method find_block_end

atomic-core/src/pristine/inode_graph/scoped.rs:176–183  ·  view source on GitHub ↗
(&self, pos: Position<NodeId>)

Source from the content-addressed store, hash-verified

174 }
175
176 fn find_block_end(&self, pos: Position<NodeId>) -> Result<GraphNode<NodeId>, PristineError> {
177 if self.scoped {
178 if let Some(vertex) = self.inner.find_block_end_in_inode(self.inode, pos)? {
179 return Ok(vertex);
180 }
181 }
182 self.inner.find_block_end(pos)
183 }
184
185 fn has_vertex(&self, node: GraphNode<NodeId>) -> Result<bool, PristineError> {
186 if self.scoped && self.adjacency.contains_key(&node) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected