MCPcopy Create free account
hub / github.com/Doctave/dossier / init_parser

Function init_parser

dossier-ts/src/interface.rs:212–219  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

210 use std::path::Path;
211
212 fn init_parser() -> Parser {
213 let mut parser = Parser::new();
214 parser
215 .set_language(tree_sitter_typescript::language_typescript())
216 .expect("Error loading TypeScript grammar");
217
218 parser
219 }
220
221 fn walk_tree_to_interface(cursor: &mut TreeCursor) {
222 assert_eq!(cursor.node().kind(), "program");

Callers 5

documentationFunction · 0.70
exportedFunction · 0.70
genericsFunction · 0.70
method_signaturesFunction · 0.70
extends_syntaxFunction · 0.70

Calls

no outgoing calls

Tested by 5

documentationFunction · 0.56
exportedFunction · 0.56
genericsFunction · 0.56
method_signaturesFunction · 0.56
extends_syntaxFunction · 0.56