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

Method extract_from_tree

atomic-semantic/src/parsers/cpp.rs:786–802  ·  view source on GitHub ↗
(
        &mut self,
        tree: &tree_sitter::Tree,
        source: &str,
        file_path: &str,
    )

Source from the content-addressed store, hash-verified

784 }
785
786 fn extract_from_tree(
787 &mut self,
788 tree: &tree_sitter::Tree,
789 source: &str,
790 file_path: &str,
791 ) -> Vec<Entity> {
792 let mut entities = Vec::new();
793 self.walk_tree(
794 &tree.root_node(),
795 source,
796 file_path,
797 &mut entities,
798 None,
799 false,
800 );
801 entities
802 }
803
804 fn extract_references(&mut self, source: &str, file_path: &str) -> Vec<Reference> {
805 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