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

Method parse_fields

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

Source from the content-addressed store, hash-verified

323 }
324
325 fn parse_fields(&mut self) -> Result<Fields> {
326 if self.is_rparen() {
327 Ok(Fields::Unit)
328 } else if self.is_lparen() {
329 Ok(Fields::Struct(self.parse_struct_fields()?))
330 } else {
331 Ok(Fields::Tuple(self.parse_tuple_fields()?))
332 }
333 }
334
335 fn parse_struct_fields(&mut self) -> Result<StructFields> {
336 let pos = self.pos();

Callers 2

parse_typevalueMethod · 0.80
parse_type_variantMethod · 0.80

Calls 6

OkFunction · 0.85
is_rparenMethod · 0.80
is_lparenMethod · 0.80
parse_struct_fieldsMethod · 0.80
parse_tuple_fieldsMethod · 0.80
TupleClass · 0.50

Tested by

no test coverage detected