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

Method expect_string_literal

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

Source from the content-addressed store, hash-verified

2263 matches!(self.peek(), Some(Token::If))
2264 }
2265
2266 fn check_lbrace(&self) -> bool {
2267 matches!(self.peek(), Some(Token::LBrace))
2268 }
2269
2270 fn check_rbrace(&self) -> bool {
2271 matches!(self.peek(), Some(Token::RBrace))
2272 }
2273
2274 fn check_rparen(&self) -> bool {
2275 matches!(self.peek(), Some(Token::RParen))
2276 }
2277
2278 fn check_rbracket(&self) -> bool {
2279 matches!(self.peek(), Some(Token::RBracket))
2280 }
2281

Callers 1

parse_import_callMethod · 0.80

Calls 4

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

Tested by

no test coverage detected