Get the text content of a node.
(&self, node: &Node, source: &str)
| 319 | |
| 320 | /// Get the text content of a node. |
| 321 | fn node_text(&self, node: &Node, source: &str) -> String { |
| 322 | let start = node.start_byte(); |
| 323 | let end = node.end_byte(); |
| 324 | if end <= source.len() { |
| 325 | source[start..end].to_string() |
| 326 | } else { |
| 327 | String::new() |
| 328 | } |
| 329 | } |
| 330 | |
| 331 | fn walk_tree_for_calls( |
| 332 | &self, |
no test coverage detected