Create a new Rust parser.
()
| 34 | impl RustParser { |
| 35 | /// Create a new Rust parser. |
| 36 | pub fn new() -> Self { |
| 37 | let mut parser = Parser::new(); |
| 38 | parser |
| 39 | .set_language(&tree_sitter_rust::LANGUAGE.into()) |
| 40 | .expect("Failed to load Rust grammar"); |
| 41 | Self { parser } |
| 42 | } |
| 43 | |
| 44 | /// Walk the AST and extract entities. |
| 45 | fn walk_tree( |
nothing calls this directly
no outgoing calls
no test coverage detected