Nyrox commented on code in PR #1435: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1435#discussion_r1793045556
########## src/ast/mod.rs: ########## @@ -156,6 +179,30 @@ impl Ident { Ident { value: value.into(), quote_style: Some(quote), + span: Span::empty(), + } + } + + pub fn with_span<S>(span: Span, value: S) -> Self + where + S: Into<String>, + { + Ident { + value: value.into(), + quote_style: None, + span, + } + } + + pub fn with_quote_and_span<S>(quote: char, span: Span, value: S) -> Self + where + S: Into<String>, + { + assert!(quote == '\'' || quote == '"' || quote == '`' || quote == '['); Review Comment: Removing it sounds good to me, I just wanted to have the same behaviour as `Ident::with_quote` which still has the check, so it should prob. be removed in both places then -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@datafusion.apache.org For additional commands, e-mail: dev-h...@datafusion.apache.org