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

Method parse_pledge_assertion_only

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

Source from the content-addressed store, hash-verified

145 }
146
147 fn parse_pledge_assertion_only(&mut self) -> syn::Result<(Option<ExpressionWithoutId>, AssertionWithoutId)> {
148 let mut reference = None;
149 if self.contains_operator(&self.tokens, "=>") {
150 reference = Some(self.parse_rust_until("=>")?);
151 self.consume_operator("=>");
152 }
153
154 let assertion = self.parse_prusti()?;
155
156 Ok((reference, assertion))
157 }
158
159 /// Parse a prusti expression
160 fn parse_prusti(&mut self) -> syn::Result<AssertionWithoutId> {

Callers 2

parse_pledgeMethod · 0.80

Calls 4

contains_operatorMethod · 0.80
parse_rust_untilMethod · 0.80
consume_operatorMethod · 0.80
parse_prustiMethod · 0.80

Tested by

no test coverage detected