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

Method expect_int

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

Source from the content-addressed store, hash-verified

162 }
163
164 fn expect_int(&mut self) -> Result<i128> {
165 match self.expect(Token::is_int)? {
166 Token::Int(i) => Ok(i),
167 _ => unreachable!(),
168 }
169 }
170
171 fn parse_defs(mut self) -> Result<Vec<Def>> {
172 let mut defs = vec![];

Callers 5

parse_spec_exprMethod · 0.80
parse_model_typeMethod · 0.80
parse_ruleMethod · 0.80
parse_patternMethod · 0.80
parse_exprMethod · 0.80

Calls 2

OkFunction · 0.85
expectMethod · 0.45

Tested by

no test coverage detected