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

Method expect_while

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

Source from the content-addressed store, hash-verified

1675 }
1676
1677 // Consume the closing bracket
1678 if self.pending_gt_from_shr {
1679 // We have a pending virtual >
1680 self.pending_gt_from_shr = false;
1681 } else if self.match_gt() {
1682 // Simple case: plain >
1683 } else if matches!(self.peek(), Some(Token::Shr | Token::Gte)) {
1684 // In nested generic, >> and >= both contain a closing >
1685 // Consume and set flag for virtual second >
1686 self.advance();

Callers 1

parse_while_statementMethod · 0.80

Calls 2

match_whileMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected