(&mut self)
| 594 | |
| 595 | // Parse an impl block; function members desugar to flat `Type_name` |
| 596 | // functions, `const`/`type` members become one `AssociatedItems` node. |
| 597 | fn parse_impl_block(&mut self, exported: bool) -> Result<Vec<Declaration>, ParserError> { |
| 598 | self.advance(); // `impl` |
| 599 | let type_name = self.expect_ident()?; |
| 600 | let (owner_generics, owner_bounds) = self.parse_generic_params_with_bounds()?; |
| 601 | self.expect_lbrace()?; |
| 602 | self.consume_terminators(); |
| 603 | |
| 604 | let mut methods = Vec::new(); |
no test coverage detected