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

Method parse_struct_field

cranelift/isle/isle/src/parser.rs:344–351  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

342 }
343
344 fn parse_struct_field(&mut self) -> Result<StructField> {
345 let pos = self.pos();
346 self.expect_lparen()?;
347 let name = self.parse_ident()?;
348 let ty = self.parse_ident()?;
349 self.expect_rparen()?;
350 Ok(StructField { name, ty, pos })
351 }
352
353 fn parse_tuple_fields(&mut self) -> Result<TupleFields> {
354 let pos = self.pos();

Callers 1

parse_struct_fieldsMethod · 0.80

Calls 5

OkFunction · 0.85
expect_lparenMethod · 0.80
parse_identMethod · 0.80
expect_rparenMethod · 0.80
posMethod · 0.45

Tested by

no test coverage detected