Skip to content

Commit 1fd0477

Browse files
committed
address comments
1 parent 10bca54 commit 1fd0477

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/parser/mod.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3682,7 +3682,8 @@ impl<'a> Parser<'a> {
36823682
Ok(values)
36833683
}
36843684

3685-
pub fn parse_period_separated<T, F>(&mut self, mut f: F) -> Result<Vec<T>, ParserError>
3685+
/// Parse a period-separated list of 1+ items accepted by `F`
3686+
fn parse_period_separated<T, F>(&mut self, mut f: F) -> Result<Vec<T>, ParserError>
36863687
where
36873688
F: FnMut(&mut Parser<'a>) -> Result<T, ParserError>,
36883689
{
@@ -3696,10 +3697,6 @@ impl<'a> Parser<'a> {
36963697
Ok(values)
36973698
}
36983699

3699-
pub fn parse_period_separated_identifiers(&mut self) -> Result<Vec<Ident>, ParserError> {
3700-
self.parse_period_separated(|p| p.parse_identifier(false))
3701-
}
3702-
37033700
/// Parse a keyword-separated list of 1+ items accepted by `F`
37043701
pub fn parse_keyword_separated<T, F>(
37053702
&mut self,
@@ -10955,7 +10952,7 @@ impl<'a> Parser<'a> {
1095510952
self.expect_token(&Token::LParen)?;
1095610953
let aggregate_functions = self.parse_comma_separated(Self::parse_aliased_function_call)?;
1095710954
self.expect_keyword(Keyword::FOR)?;
10958-
let value_column = self.parse_period_separated_identifiers()?;
10955+
let value_column = self.parse_period_separated(|p| p.parse_identifier(false))?;
1095910956
self.expect_keyword(Keyword::IN)?;
1096010957

1096110958
self.expect_token(&Token::LParen)?;

0 commit comments

Comments
 (0)