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