(&mut self)
| 131 | } |
| 132 | |
| 133 | fn parse_pledge(&mut self) -> syn::Result<PledgeWithoutId> { |
| 134 | let (reference, assertion) = self.parse_pledge_assertion_only()?; |
| 135 | if self.consume_operator(",") { |
| 136 | let rhs = self.parse_prusti()?; |
| 137 | Ok(PledgeWithoutId { |
| 138 | reference, |
| 139 | lhs: Some(assertion), |
| 140 | rhs, |
| 141 | }) |
| 142 | } else { |
| 143 | Err(self.error_expected("`,`")) |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | fn parse_pledge_assertion_only(&mut self) -> syn::Result<(Option<ExpressionWithoutId>, AssertionWithoutId)> { |
| 148 | let mut reference = None; |
no test coverage detected