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

Function init_parser

dossier-ts/src/function.rs:244–251  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

242 use std::path::Path;
243
244 fn init_parser() -> Parser {
245 let mut parser = Parser::new();
246 parser
247 .set_language(tree_sitter_typescript::language_typescript())
248 .expect("Error loading TypeScript grammar");
249
250 parser
251 }
252
253 fn walk_tree_to_function(cursor: &mut TreeCursor) {
254 assert_eq!(cursor.node().kind(), "program");

Callers 6

fqnsFunction · 0.70
parametersFunction · 0.70
readonly_parameterFunction · 0.70
genericsFunction · 0.70

Calls

no outgoing calls

Tested by 6

fqnsFunction · 0.56
parametersFunction · 0.56
readonly_parameterFunction · 0.56
genericsFunction · 0.56