MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / extract_from_tree

Method extract_from_tree

atomic-semantic/src/parsers/python.rs:433–442  ·  view source on GitHub ↗
(
        &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) {

Callers 1

extractMethod · 0.45

Calls 1

walk_treeMethod · 0.45

Tested by

no test coverage detected