Create a new C parser.
()
| 44 | |
| 45 | /// Create a new C parser. |
| 46 | pub fn new_c() -> Self { |
| 47 | let mut parser = Parser::new(); |
| 48 | parser |
| 49 | .set_language(&tree_sitter_c::LANGUAGE.into()) |
| 50 | .expect("Failed to load C grammar"); |
| 51 | Self { parser, is_c: true } |
| 52 | } |
| 53 | |
| 54 | /// Walk the AST and extract entities. |
| 55 | fn walk_tree( |
nothing calls this directly
no outgoing calls
no test coverage detected