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