(&self, pos: Position<NodeId>)
| 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, |
no test coverage detected