Get the text content of a node.
(&self, node: &Node, source: &str)
| 555 | |
| 556 | /// Get the text content of a node. |
| 557 | fn node_text(&self, node: &Node, source: &str) -> String { |
| 558 | let start = node.start_byte(); |
| 559 | let end = node.end_byte(); |
| 560 | if end <= source.len() { |
| 561 | source[start..end].to_string() |
| 562 | } else { |
| 563 | String::new() |
| 564 | } |
| 565 | } |
| 566 | |
| 567 | fn walk_tree_for_calls( |
| 568 | &self, |
no test coverage detected