MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / parse_spec_bool

Method parse_spec_bool

cranelift/isle/isle/src/parser.rs:590–598  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

588 }
589
590 fn parse_spec_bool(&mut self) -> Result<bool> {
591 let pos = self.pos();
592 let s = self.expect_symbol()?;
593 match s.as_str() {
594 "true" => Ok(true),
595 "false" => Ok(false),
596 x => Err(self.error(pos, format!("Not a valid spec boolean: {x}"))),
597 }
598 }
599
600 fn parse_model(&mut self) -> Result<Model> {
601 let pos = self.pos();

Callers 1

parse_spec_exprMethod · 0.80

Calls 5

OkFunction · 0.85
expect_symbolMethod · 0.80
posMethod · 0.45
as_strMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected