https://docs.python.org/3/reference/simple_stmts.html#grammar-token-python-grammar-stmt-list
(&mut self)
| 1149 | |
| 1150 | // https://docs.python.org/3/reference/simple_stmts.html#grammar-token-python-grammar-stmt-list |
| 1151 | fn parse_statement_list(&mut self) -> Result<Vec<Statement>, ParsingError> { |
| 1152 | let mut stmts = vec![]; |
| 1153 | let stmt = self.parse_simple_statement()?; |
| 1154 | stmts.push(stmt); |
| 1155 | while self.eat(Kind::SemiColon) { |
| 1156 | let stmt = self.parse_simple_statement()?; |
| 1157 | stmts.push(stmt); |
| 1158 | } |
| 1159 | Ok(stmts) |
| 1160 | } |
| 1161 | |
| 1162 | fn parse_del_statement(&mut self) -> Result<Statement, ParsingError> { |
| 1163 | let node = self.start_node(); |
no test coverage detected