Method
extract_from_tree
(
&mut self,
tree: &tree_sitter::Tree,
source: &str,
file_path: &str,
)
Source from the content-addressed store, hash-verified
| 656 | } |
| 657 | |
| 658 | fn extract_from_tree( |
| 659 | &mut self, |
| 660 | tree: &tree_sitter::Tree, |
| 661 | source: &str, |
| 662 | file_path: &str, |
| 663 | ) -> Vec<Entity> { |
| 664 | let mut entities = Vec::new(); |
| 665 | self.walk_tree(&tree.root_node(), source, file_path, &mut entities, None); |
| 666 | entities |
| 667 | } |
| 668 | |
| 669 | fn extract_references(&mut self, source: &str, file_path: &str) -> Vec<Reference> { |
| 670 | let tree = match self.parser.parse(source, None) { |
Tested by
no test coverage detected