Get tokens for a new range. # Panics Panics if the range is out of bounds.
(&self, range: &Range<usize>)
| 415 | /// |
| 416 | /// Panics if the range is out of bounds. |
| 417 | pub fn new_tokens_in_range(&self, range: &Range<usize>) -> &[Token<'a>] { |
| 418 | &self.new_tokens[range.clone()] |
| 419 | } |
| 420 | |
| 421 | /// Get the concatenated content of old tokens in a range. |
| 422 | pub fn old_content_in_range(&self, range: &Range<usize>) -> String { |