MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / expect_float

Method expect_float

crates/hll-to-ir/src/parser.rs:1591–1603  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

1589 }
1590 Some(Token::I16) => {
1591 self.advance();
1592 Ok(Type::Primitive("i16".into()))
1593 }
1594 Some(Token::I32) => {
1595 self.advance();
1596 Ok(Type::Primitive("i32".into()))
1597 }
1598 Some(Token::I64) => {
1599 self.advance();
1600 Ok(Type::Primitive("i64".into()))
1601 }
1602 Some(Token::U8) => {
1603 self.advance();
1604 Ok(Type::Primitive("u8".into()))
1605 }
1606 Some(Token::U16) => {

Callers 1

parse_primaryMethod · 0.80

Calls 4

peekMethod · 0.80
error_with_tokenMethod · 0.80
errorMethod · 0.45
advanceMethod · 0.45

Tested by

no test coverage detected