MCPcopy Create free account
hub / github.com/PLSysSec/wave / parse_pledge

Method parse_pledge

tools/fuzz-gen/src/specifications/preparser.rs:133–145  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

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;

Callers 1

extract_pledgeMethod · 0.45

Calls 4

consume_operatorMethod · 0.80
parse_prustiMethod · 0.80
error_expectedMethod · 0.80

Tested by

no test coverage detected