(&mut self)
| 127 | } |
| 128 | |
| 129 | fn parse_block_statement(&mut self) -> BlockStatement { |
| 130 | self.next_token(); |
| 131 | |
| 132 | let mut statements = vec![]; |
| 133 | while !self.current_token(Token::RightBrace) && !self.current_token(Token::Eof) { |
| 134 | if let Some(s) = self.parse_statement() { |
| 135 | statements.push(s); |
| 136 | } |
| 137 | self.next_token(); |
| 138 | } |
| 139 | |
| 140 | statements |
| 141 | } |
| 142 | |
| 143 | pub fn parse_anew_expr(&mut self) -> Option<Statement> { |
| 144 | match &self.peek_token { |
no test coverage detected