Skip to content

Commit 55a8151

Browse files
committed
address comments
1 parent c84dd37 commit 55a8151

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
@@ -4044,7 +4044,8 @@ impl<'a> Parser<'a> {
40444044
Ok(values)
40454045
}
40464046

4047-
pub fn parse_period_separated<T, F>(&mut self, mut f: F) -> Result<Vec<T>, ParserError>
4047+
/// Parse a period-separated list of 1+ items accepted by `F`
4048+
fn parse_period_separated<T, F>(&mut self, mut f: F) -> Result<Vec<T>, ParserError>
40484049
where
40494050
F: FnMut(&mut Parser<'a>) -> Result<T, ParserError>,
40504051
{
@@ -4058,10 +4059,6 @@ impl<'a> Parser<'a> {
40584059
Ok(values)
40594060
}
40604061

4061-
pub fn parse_period_separated_identifiers(&mut self) -> Result<Vec<Ident>, ParserError> {
4062-
self.parse_period_separated(|p| p.parse_identifier(false))
4063-
}
4064-
40654062
/// Parse a keyword-separated list of 1+ items accepted by `F`
40664063
pub fn parse_keyword_separated<T, F>(
40674064
&mut self,
@@ -11831,7 +11828,7 @@ impl<'a> Parser<'a> {
1183111828
self.expect_token(&Token::LParen)?;
1183211829
let aggregate_functions = self.parse_comma_separated(Self::parse_aliased_function_call)?;
1183311830
self.expect_keyword_is(Keyword::FOR)?;
11834-
let value_column = self.parse_period_separated_identifiers()?;
11831+
let value_column = self.parse_period_separated(|p| p.parse_identifier(false))?;
1183511832
self.expect_keyword_is(Keyword::IN)?;
1183611833

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

0 commit comments

Comments
 (0)