Method
extract_from_tree
(
&mut self,
tree: &tree_sitter::Tree,
source: &str,
file_path: &str,
)
Source from the content-addressed store, hash-verified
| 431 | } |
| 432 | |
| 433 | fn extract_from_tree( |
| 434 | &mut self, |
| 435 | tree: &tree_sitter::Tree, |
| 436 | source: &str, |
| 437 | file_path: &str, |
| 438 | ) -> Vec<Entity> { |
| 439 | let mut entities = Vec::new(); |
| 440 | self.walk_tree(&tree.root_node(), source, file_path, &mut entities, None); |
| 441 | entities |
| 442 | } |
| 443 | |
| 444 | fn extract_references(&mut self, source: &str, file_path: &str) -> Vec<Reference> { |
| 445 | let tree = match self.parser.parse(source, None) { |
Tested by
no test coverage detected