MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / parse_abi_param_list

Method parse_abi_param_list

cranelift/reader/src/parser.rs:1413–1426  ·  view source on GitHub ↗

Parse list of function parameter / return value types. paramlist ::= * param { "," param }

(&mut self)

Source from the content-addressed store, hash-verified

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> {

Callers 1

parse_signatureMethod · 0.80

Calls 5

OkFunction · 0.85
parse_abi_paramMethod · 0.80
optionalMethod · 0.80
newFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected