MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / expect

Method expect

compiler/src/modules/packages/manifest.rs:114–116  ·  view source on GitHub ↗
(&mut self, c: u8, msg: &'static str)

Source from the content-addressed store, hash-verified

112 }
113
114 fn expect(&mut self, c: u8, msg: &'static str) -> Result<(), String> {
115 if self.peek() == Some(c) { self.pos += 1; Ok(()) } else { Err(s!(str msg)) }
116 }
117
118 fn read_string(&mut self) -> Result<String, String> {
119 self.expect(b'"', "expected '\"' starting a string")?;

Callers 15

mainFunction · 0.45
parse_manifestFunction · 0.45
read_stringMethod · 0.45
read_imports_intoMethod · 0.45
skip_valueMethod · 0.45
fused_refMethod · 0.45
const_vals_refMethod · 0.45
getMethod · 0.45
get_mutMethod · 0.45
run_resumeFunction · 0.45
test_casesFunction · 0.45
test_casesFunction · 0.45

Calls 1

peekMethod · 0.45

Tested by 7

test_casesFunction · 0.36
test_casesFunction · 0.36
packages_casesFunction · 0.36
driveFunction · 0.36
test_casesFunction · 0.36
strict_casesFunction · 0.36
cli_suiteFunction · 0.36