Nyrox commented on code in PR #1435: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1435#discussion_r1836334168
########## 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: Can I close this comment, if this is gonna be done in a future PR or should we scram it in here if a decision is made? 😄 -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org