(&mut self)
| 2308 | } |
| 2309 | |
| 2310 | fn parse_csr_connection_reference(&mut self) -> Result<CsrConnection<Raw>, ParserError> { |
| 2311 | self.expect_keyword(CONNECTION)?; |
| 2312 | let connection = self.parse_raw_name()?; |
| 2313 | |
| 2314 | let options = if self.consume_token(&Token::LParen) { |
| 2315 | let options = self.parse_comma_separated(Parser::parse_csr_config_option)?; |
| 2316 | self.expect_token(&Token::RParen)?; |
| 2317 | options |
| 2318 | } else { |
| 2319 | vec![] |
| 2320 | }; |
| 2321 | |
| 2322 | Ok(CsrConnection { |
| 2323 | connection, |
| 2324 | options, |
| 2325 | }) |
| 2326 | } |
| 2327 | |
| 2328 | fn parse_csr_config_option(&mut self) -> Result<CsrConfigOption<Raw>, ParserError> { |
| 2329 | let name = match self.expect_one_of_keywords(&[AVRO, NULL, KEY, VALUE, DOC])? { |
no test coverage detected