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

Method extract_references

atomic-semantic/src/parsers/cpp.rs:790–798  ·  view source on GitHub ↗
(&mut self, source: &str, file_path: &str)

Source from the content-addressed store, hash-verified

788 }
789
790 fn extract_references(&mut self, source: &str, file_path: &str) -> Vec<Reference> {
791 let tree = match self.parser.parse(source, None) {
792 Some(t) => t,
793 None => return vec![],
794 };
795 let mut refs = Vec::new();
796 self.walk_tree_for_calls(&tree.root_node(), source, file_path, &mut refs);
797 refs
798 }
799}
800
801// ═══════════════════════════════════════════════════════════════════════

Callers

nothing calls this directly

Calls 2

parseMethod · 0.45
walk_tree_for_callsMethod · 0.45

Tested by

no test coverage detected