Create a new Go parser.
()
| 28 | impl GoParser { |
| 29 | /// Create a new Go parser. |
| 30 | pub fn new() -> Self { |
| 31 | let mut parser = Parser::new(); |
| 32 | parser |
| 33 | .set_language(&tree_sitter_go::LANGUAGE.into()) |
| 34 | .expect("Failed to load Go grammar"); |
| 35 | Self { parser } |
| 36 | } |
| 37 | |
| 38 | /// Walk the AST and extract entities. |
| 39 | fn walk_tree(&self, node: &Node, source: &str, file_path: &str, entities: &mut Vec<Entity>) { |
nothing calls this directly
no outgoing calls
no test coverage detected