Create a new Java parser.
()
| 29 | impl JavaParser { |
| 30 | /// Create a new Java parser. |
| 31 | pub fn new() -> Self { |
| 32 | let mut parser = Parser::new(); |
| 33 | parser |
| 34 | .set_language(&tree_sitter_java::LANGUAGE.into()) |
| 35 | .expect("Failed to load Java grammar"); |
| 36 | Self { parser } |
| 37 | } |
| 38 | |
| 39 | /// Walk the AST and extract entities. |
| 40 | fn walk_tree( |
nothing calls this directly
no outgoing calls
no test coverage detected