Skip to content

Commit 84d074b

Browse files
committed
naming function and use peek_tokeen_ref
1 parent 3f50d42 commit 84d074b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/parser/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11830,7 +11830,7 @@ impl<'a> Parser<'a> {
1183011830
};
1183111831
let mut relation = self.parse_table_factor()?;
1183211832

11833-
if self.is_next_token_a_join() {
11833+
if self.peek_parens_less_nested_join() {
1183411834
let joins = self.parse_joins()?;
1183511835
relation = TableFactor::NestedJoin {
1183611836
table_with_joins: Box::new(TableWithJoins { relation, joins }),
@@ -11850,9 +11850,9 @@ impl<'a> Parser<'a> {
1185011850
Ok(joins)
1185111851
}
1185211852

11853-
fn is_next_token_a_join(&self) -> bool {
11853+
fn peek_parens_less_nested_join(&self) -> bool {
1185411854
matches!(
11855-
self.peek_token().token,
11855+
self.peek_token_ref().token,
1185611856
Token::Word(Word {
1185711857
keyword: Keyword::JOIN
1185811858
| Keyword::INNER

0 commit comments

Comments
 (0)