(
string_pool: Arc<StringPool>,
bump: &'bump GrowableBump<'bump>,
tokens: &'a Tokens<'a>,
)
| 25 | { |
| 26 | pub fn parse( |
| 27 | string_pool: Arc<StringPool>, |
| 28 | bump: &'bump GrowableBump<'bump>, |
| 29 | tokens: &'bump Tokens<'a, 'bump>, |
| 30 | ) -> Result<Vec<Stmt<'a, 'bump>>, DiagnosticError<'a>> { |
| 31 | let mut parser = DescentParser { |
| 32 | cursor: Cursor::new(tokens, 0), |
| 33 | string_pool, |
| 34 | bump, |
| 35 | diag: ParserDiagnosticsContext::new(true), |
| 36 | pending_close_angle: 0, |
| 37 | }; |
| 38 | |
| 39 | parser.parse_toplevel() |
| 40 | } |
| 41 | |
| 42 | fn parse_toplevel(&mut self) -> Result<Vec<Stmt<'a, 'bump>>, DiagnosticError<'a>> { |
| 43 | let mut stmts = Vec::new(); |
nothing calls this directly
no test coverage detected