Skip to content

Commit e22e3d8

Browse files
committed
address comments
1 parent 18ca48f commit e22e3d8

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
@@ -3605,7 +3605,8 @@ impl<'a> Parser<'a> {
36053605
Ok(values)
36063606
}
36073607

3608-
pub fn parse_period_separated<T, F>(&mut self, mut f: F) -> Result<Vec<T>, ParserError>
3608+
/// Parse a period-separated list of 1+ items accepted by `F`
3609+
fn parse_period_separated<T, F>(&mut self, mut f: F) -> Result<Vec<T>, ParserError>
36093610
where
36103611
F: FnMut(&mut Parser<'a>) -> Result<T, ParserError>,
36113612
{
@@ -3619,10 +3620,6 @@ impl<'a> Parser<'a> {
36193620
Ok(values)
36203621
}
36213622

3622-
pub fn parse_period_separated_identifiers(&mut self) -> Result<Vec<Ident>, ParserError> {
3623-
self.parse_period_separated(|p| p.parse_identifier(false))
3624-
}
3625-
36263623
/// Parse a keyword-separated list of 1+ items accepted by `F`
36273624
pub fn parse_keyword_separated<T, F>(
36283625
&mut self,
@@ -10836,7 +10833,7 @@ impl<'a> Parser<'a> {
1083610833
self.expect_token(&Token::LParen)?;
1083710834
let aggregate_functions = self.parse_comma_separated(Self::parse_aliased_function_call)?;
1083810835
self.expect_keyword(Keyword::FOR)?;
10839-
let value_column = self.parse_period_separated_identifiers()?;
10836+
let value_column = self.parse_period_separated(|p| p.parse_identifier(false))?;
1084010837
self.expect_keyword(Keyword::IN)?;
1084110838

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

0 commit comments

Comments
 (0)