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