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

Method extract

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

Source from the content-addressed store, hash-verified

775 }
776
777 fn extract(&mut self, source: &str, file_path: &str) -> Vec<Entity> {
778 let tree = match self.parser.parse(source, None) {
779 Some(t) => t,
780 None => return vec![],
781 };
782
783 self.extract_from_tree(&tree, source, file_path)
784 }
785
786 fn extract_from_tree(
787 &mut self,

Callers 15

test_extract_functionFunction · 0.45
test_extract_classFunction · 0.45
test_extract_structFunction · 0.45
test_extract_namespaceFunction · 0.45
test_extract_enumFunction · 0.45
test_extract_includeFunction · 0.45
test_extract_defineFunction · 0.45
test_extract_type_aliasFunction · 0.45
test_extract_typedefFunction · 0.45

Calls 2

parseMethod · 0.45
extract_from_treeMethod · 0.45

Tested by 15

test_extract_functionFunction · 0.36
test_extract_classFunction · 0.36
test_extract_structFunction · 0.36
test_extract_namespaceFunction · 0.36
test_extract_enumFunction · 0.36
test_extract_includeFunction · 0.36
test_extract_defineFunction · 0.36
test_extract_type_aliasFunction · 0.36
test_extract_typedefFunction · 0.36