(
&mut self,
)
| 1595 | } |
| 1596 | |
| 1597 | fn parse_dynamic_stack_slot_decl( |
| 1598 | &mut self, |
| 1599 | ) -> ParseResult<(DynamicStackSlot, DynamicStackSlotData)> { |
| 1600 | let dss = self.match_dss("expected stack slot number: dss«n»")?; |
| 1601 | self.match_token(Token::Equal, "expected '=' in stack slot declaration")?; |
| 1602 | let kind = self.match_enum("expected stack slot kind")?; |
| 1603 | let dt = self.match_dt("expected dynamic type")?; |
| 1604 | let data = DynamicStackSlotData::new(kind, dt); |
| 1605 | // Collect any trailing comments. |
| 1606 | self.token(); |
| 1607 | self.claim_gathered_comments(dss); |
| 1608 | |
| 1609 | // TBD: stack-slot-decl ::= StackSlot(ss) "=" stack-slot-kind Bytes * {"," stack-slot-flag} |
| 1610 | Ok((dss, data)) |
| 1611 | } |
| 1612 | |
| 1613 | fn parse_dynamic_type_decl(&mut self) -> ParseResult<(DynamicType, DynamicTypeData)> { |
| 1614 | let dt = self.match_dt("expected dynamic type number: dt«n»")?; |
no test coverage detected