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

Method extract_from_tree

atomic-semantic/src/parsers/mod.rs:482–490  ·  view source on GitHub ↗
(
                &mut self,
                tree: &tree_sitter::Tree,
                source: &str,
                path: &str,
            )

Source from the content-addressed store, hash-verified

480 panic!("shared source analysis must not reparse through extract")
481 }
482 fn extract_from_tree(
483 &mut self,
484 tree: &tree_sitter::Tree,
485 source: &str,
486 path: &str,
487 ) -> Vec<Entity> {
488 self.entities.fetch_add(1, Ordering::Relaxed);
489 self.inner.extract_from_tree(tree, source, path)
490 }
491 fn extract_references(&mut self, _: &str, _: &str) -> Vec<Reference> {
492 panic!("shared references must not reparse")
493 }

Callers 2

analyze_sourceMethod · 0.45
extract_referencesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected