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

Method find_block

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

Source from the content-addressed store, hash-verified

162 }
163
164 fn find_block(&self, pos: Position<NodeId>) -> Result<GraphNode<NodeId>, PristineError> {
165 if self.scoped {
166 if let Some(vertex) = self.find_block_cached(pos) {
167 return Ok(vertex);
168 }
169 if let Some(vertex) = self.inner.find_block_in_inode(self.inode, pos)? {
170 return Ok(vertex);
171 }
172 }
173 self.inner.find_block(pos)
174 }
175
176 fn find_block_end(&self, pos: Position<NodeId>) -> Result<GraphNode<NodeId>, PristineError> {
177 if self.scoped {

Callers

nothing calls this directly

Calls 2

find_block_cachedMethod · 0.80
find_block_in_inodeMethod · 0.45

Tested by

no test coverage detected