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

Method extract

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

Source from the content-addressed store, hash-verified

593 }
594
595 fn extract(&mut self, source: &str, file_path: &str) -> Vec<Entity> {
596 let tree = match self.parser.parse(source, None) {
597 Some(t) => t,
598 None => return vec![],
599 };
600
601 self.extract_from_tree(&tree, source, file_path)
602 }
603
604 fn extract_from_tree(
605 &mut self,

Callers 15

test_extract_functionFunction · 0.45
test_extract_structFunction · 0.45
test_extract_enumFunction · 0.45
test_extract_traitFunction · 0.45
test_extract_impl_blockFunction · 0.45
test_extract_trait_implFunction · 0.45
test_extract_type_aliasFunction · 0.45
test_extract_constFunction · 0.45

Calls 2

parseMethod · 0.45
extract_from_treeMethod · 0.45

Tested by 15

test_extract_functionFunction · 0.36
test_extract_structFunction · 0.36
test_extract_enumFunction · 0.36
test_extract_traitFunction · 0.36
test_extract_impl_blockFunction · 0.36
test_extract_trait_implFunction · 0.36
test_extract_type_aliasFunction · 0.36
test_extract_constFunction · 0.36