Create a new C++ parser.
()
| 32 | impl CppParser { |
| 33 | /// Create a new C++ parser. |
| 34 | pub fn new() -> Self { |
| 35 | let mut parser = Parser::new(); |
| 36 | parser |
| 37 | .set_language(&tree_sitter_cpp::LANGUAGE.into()) |
| 38 | .expect("Failed to load C++ grammar"); |
| 39 | Self { |
| 40 | parser, |
| 41 | is_c: false, |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | /// Create a new C parser. |
| 46 | pub fn new_c() -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected