Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10290,7 +10290,7 @@ impl<'a> Parser<'a> {
Ok(ExprWithAlias { expr, alias })
}

fn parse_expr_with_alias(&mut self) -> Result<ExprWithAlias, ParserError> {
pub fn parse_expr_with_alias(&mut self) -> Result<ExprWithAlias, ParserError> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please also add some documentation to this function (perhaps with an example or two) now that it will become part of the public API?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for missing that piece of document, I have updated it.

let expr = self.parse_expr()?;
let alias = if self.parse_keyword(Keyword::AS) {
Some(self.parse_identifier(false)?)
Expand Down
Loading