Get the concatenated content of old tokens in a range.
(&self, range: &Range<usize>)
| 420 | |
| 421 | /// Get the concatenated content of old tokens in a range. |
| 422 | pub fn old_content_in_range(&self, range: &Range<usize>) -> String { |
| 423 | self.old_tokens[range.clone()] |
| 424 | .iter() |
| 425 | .map(|t| t.as_str()) |
| 426 | .collect::<Vec<_>>() |
| 427 | .concat() |
| 428 | } |
| 429 | |
| 430 | /// Get the concatenated content of new tokens in a range. |
| 431 | pub fn new_content_in_range(&self, range: &Range<usize>) -> String { |