Get the text content of a node.
(&self, node: &Node, source: &str)
| 686 | |
| 687 | /// Get the text content of a node. |
| 688 | fn node_text(&self, node: &Node, source: &str) -> String { |
| 689 | let start = node.start_byte(); |
| 690 | let end = node.end_byte(); |
| 691 | if end <= source.len() { |
| 692 | source[start..end].to_string() |
| 693 | } else { |
| 694 | String::new() |
| 695 | } |
| 696 | } |
| 697 | |
| 698 | fn walk_tree_for_calls( |
| 699 | &self, |
no test coverage detected