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

Method new

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

Create a new TypeScript extractor

()

Source from the content-addressed store, hash-verified

24impl TypeScriptExtractor {
25 /// Create a new TypeScript extractor
26 pub fn new() -> Self {
27 let mut parser = Parser::new();
28 parser
29 .set_language(&tree_sitter_typescript::LANGUAGE_TYPESCRIPT.into())
30 .expect("Failed to load TypeScript grammar");
31 Self { parser }
32 }
33
34 /// Create a new TSX extractor (TypeScript with JSX)
35 pub fn new_tsx() -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected