Skip to content

Commit 176cf13

Browse files
committed
address comments
1 parent 6d820b8 commit 176cf13

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/parser/mod.rs

+3-6
Original file line numberDiff line numberDiff line change
@@ -3666,7 +3666,8 @@ impl<'a> Parser<'a> {
36663666
Ok(values)
36673667
}
36683668

3669-
pub fn parse_period_separated<T, F>(&mut self, mut f: F) -> Result<Vec<T>, ParserError>
3669+
/// Parse a period-separated list of 1+ items accepted by `F`
3670+
fn parse_period_separated<T, F>(&mut self, mut f: F) -> Result<Vec<T>, ParserError>
36703671
where
36713672
F: FnMut(&mut Parser<'a>) -> Result<T, ParserError>,
36723673
{
@@ -3680,10 +3681,6 @@ impl<'a> Parser<'a> {
36803681
Ok(values)
36813682
}
36823683

3683-
pub fn parse_period_separated_identifiers(&mut self) -> Result<Vec<Ident>, ParserError> {
3684-
self.parse_period_separated(|p| p.parse_identifier(false))
3685-
}
3686-
36873684
/// Parse a keyword-separated list of 1+ items accepted by `F`
36883685
pub fn parse_keyword_separated<T, F>(
36893686
&mut self,
@@ -10915,7 +10912,7 @@ impl<'a> Parser<'a> {
1091510912
self.expect_token(&Token::LParen)?;
1091610913
let aggregate_functions = self.parse_comma_separated(Self::parse_aliased_function_call)?;
1091710914
self.expect_keyword(Keyword::FOR)?;
10918-
let value_column = self.parse_period_separated_identifiers()?;
10915+
let value_column = self.parse_period_separated(|p| p.parse_identifier(false))?;
1091910916
self.expect_keyword(Keyword::IN)?;
1092010917

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

0 commit comments

Comments
 (0)