We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b74460 commit 0af1f06Copy full SHA for 0af1f06
1 file changed
src/parser/mod.rs
@@ -3611,12 +3611,12 @@ impl<'a> Parser<'a> {
3611
}
3612
Keyword::MEMBER => {
3613
if self.parse_keyword(Keyword::OF) {
3614
- let _ = self.expect_token(&Token::LParen);
3615
- let expr2 = self.parse_expr()?;
3616
- let _ = self.expect_token(&Token::RParen);
+ self.expect_token(&Token::LParen)?;
+ let array = self.parse_expr()?;
+ self.expect_token(&Token::RParen)?;
3617
Ok(Expr::MemberOf(MemberOf {
3618
value: Box::new(expr),
3619
- array: Box::new(expr2),
+ array: Box::new(array),
3620
}))
3621
} else {
3622
self.expected("OF after MEMBER", self.peek_token())
0 commit comments