Replaces a token's content (preserving its ID for blame).
(&mut self, _leaf_id: LeafId, new_content: &[u8])
| 87 | |
| 88 | /// Replaces a token's content (preserving its ID for blame). |
| 89 | pub fn replace_token(&mut self, _leaf_id: LeafId, new_content: &[u8]) { |
| 90 | let _ = self.append_content(new_content); |
| 91 | self.stats.tokens_replaced += 1; |
| 92 | } |
| 93 | } |