(&self, pos: Position<NodeId>)
| 503 | } |
| 504 | |
| 505 | fn find_block(&self, pos: Position<NodeId>) -> Result<GraphNode<NodeId>, PristineError> { |
| 506 | if self.empty || pos == Position::ROOT { |
| 507 | Err(PristineError::BlockNotFound { |
| 508 | change: pos.change.get(), |
| 509 | pos: pos.pos.get(), |
| 510 | }) |
| 511 | } else { |
| 512 | // Return a span for the position |
| 513 | Ok(GraphNode::new( |
| 514 | pos.change, |
| 515 | pos.pos, |
| 516 | ChangePosition::new(pos.pos.get() + 10), |
| 517 | )) |
| 518 | } |
| 519 | } |
| 520 | |
| 521 | fn find_block_end( |
| 522 | &self, |
no test coverage detected