Parse list of function parameter / return value types. paramlist ::= * param { "," param }
(&mut self)
| 1411 | // paramlist ::= * param { "," param } |
| 1412 | // |
| 1413 | fn parse_abi_param_list(&mut self) -> ParseResult<Vec<AbiParam>> { |
| 1414 | let mut list = Vec::new(); |
| 1415 | |
| 1416 | // abi-param-list ::= * abi-param { "," abi-param } |
| 1417 | list.push(self.parse_abi_param()?); |
| 1418 | |
| 1419 | // abi-param-list ::= abi-param * { "," abi-param } |
| 1420 | while self.optional(Token::Comma) { |
| 1421 | // abi-param-list ::= abi-param { "," * abi-param } |
| 1422 | list.push(self.parse_abi_param()?); |
| 1423 | } |
| 1424 | |
| 1425 | Ok(list) |
| 1426 | } |
| 1427 | |
| 1428 | // Parse a single argument type with flags. |
| 1429 | fn parse_abi_param(&mut self) -> ParseResult<AbiParam> { |
no test coverage detected