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

Method parse_optional_range_end

crates/hll-to-ir/src/parser.rs:1009–1015  ·  view source on GitHub ↗

A range end is omitted when the next token closes the subscript (`..]`).

(&mut self)

Source from the content-addressed store, hash-verified

1007 // so `flags & MASK == 0` is `(flags & MASK) == 0`.
1008 fn parse_bitwise_or(&mut self) -> Result<Expression, ParserError> {
1009 let mut expr = self.parse_bitwise_xor()?;
1010 while self.match_bitwise_or() {
1011 self.consume_terminators();
1012 let right = self.parse_bitwise_xor()?;
1013 expr = Expression::Binary {
1014 op: BinaryOp::BitwiseOr,
1015 left: Box::new(expr),
1016 right: Box::new(right),
1017 };
1018 }

Callers 1

parse_subscriptMethod · 0.80

Calls 2

check_rbracketMethod · 0.80
parse_expressionMethod · 0.80

Tested by

no test coverage detected