Get the text content of a node.
(&self, node: &Node, source: &str)
| 344 | |
| 345 | /// Get the text content of a node. |
| 346 | fn node_text(&self, node: &Node, source: &str) -> String { |
| 347 | let start = node.start_byte(); |
| 348 | let end = node.end_byte(); |
| 349 | if end <= source.len() { |
| 350 | source[start..end].to_string() |
| 351 | } else { |
| 352 | String::new() |
| 353 | } |
| 354 | } |
| 355 | |
| 356 | fn walk_tree_for_calls( |
| 357 | &self, |
no test coverage detected