(&mut self)
| 308 | } |
| 309 | |
| 310 | fn try_parse_grouping(&mut self) -> Result<Grouping, PromqlError> { |
| 311 | if self.try_keyword("by") { |
| 312 | return Ok(Grouping::By(self.parse_label_list()?)); |
| 313 | } |
| 314 | if self.try_keyword("without") { |
| 315 | return Ok(Grouping::Without(self.parse_label_list()?)); |
| 316 | } |
| 317 | Ok(Grouping::None) |
| 318 | } |
| 319 | |
| 320 | fn parse_label_list(&mut self) -> Result<Vec<String>, PromqlError> { |
| 321 | self.expect(&Token::LParen)?; |
no test coverage detected