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

Method extract

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

Source from the content-addressed store, hash-verified

647 }
648
649 fn extract(&mut self, source: &str, file_path: &str) -> Vec<Entity> {
650 let tree = match self.parser.parse(source, None) {
651 Some(t) => t,
652 None => return vec![],
653 };
654
655 self.extract_from_tree(&tree, source, file_path)
656 }
657
658 fn extract_from_tree(
659 &mut self,

Callers 15

test_extract_classFunction · 0.45
test_extract_methodsFunction · 0.45
test_extract_constructorFunction · 0.45
test_extract_interfaceFunction · 0.45
test_extract_enumFunction · 0.45
test_extract_fieldsFunction · 0.45
test_extract_importsFunction · 0.45
test_empty_sourceFunction · 0.45
test_package_onlyFunction · 0.45

Calls 2

parseMethod · 0.45
extract_from_treeMethod · 0.45

Tested by 15

test_extract_classFunction · 0.36
test_extract_methodsFunction · 0.36
test_extract_constructorFunction · 0.36
test_extract_interfaceFunction · 0.36
test_extract_enumFunction · 0.36
test_extract_fieldsFunction · 0.36
test_extract_importsFunction · 0.36
test_empty_sourceFunction · 0.36
test_package_onlyFunction · 0.36