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

Method parse_tree

atomic-semantic/src/parser.rs:44–46  ·  view source on GitHub ↗

Parse with the same configured TypeScript/TSX grammar used for extraction.

(&mut self, source: &str)

Source from the content-addressed store, hash-verified

42
43 /// Parse with the same configured TypeScript/TSX grammar used for extraction.
44 pub fn parse_tree(&mut self, source: &str) -> Option<tree_sitter::Tree> {
45 self.parser.parse(source, None)
46 }
47
48 /// Parse source code and extract all entities
49 pub fn extract(&mut self, source: &str, file_path: &str) -> Vec<Entity> {

Callers 2

inspectFunction · 0.45
parseFunction · 0.45

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected