Parse one or more simple one-word identifiers separated by a '.'
(&mut self)
| 7344 | |
| 7345 | ///Parse one or more simple one-word identifiers separated by a '.' |
| 7346 | fn parse_identifiers(&mut self) -> Result<Vec<Ident>, ParserError> { |
| 7347 | let mut idents = vec![]; |
| 7348 | loop { |
| 7349 | idents.push(self.parse_identifier()?); |
| 7350 | if !self.consume_token(&Token::Dot) { |
| 7351 | break; |
| 7352 | } |
| 7353 | } |
| 7354 | Ok(idents) |
| 7355 | } |
| 7356 | |
| 7357 | /// Parse a simple one-word identifier (possibly quoted, possibly a keyword) |
| 7358 | fn parse_identifier(&mut self) -> Result<Ident, ParserError> { |
no test coverage detected