alamb commented on code in PR #1741:
URL:
https://github.com/apache/datafusion-sqlparser-rs/pull/1741#discussion_r1994218388
##########
src/ast/spans.rs:
##########
@@ -732,6 +735,53 @@ impl Spanned for CreateIndex {
}
}
+impl Spanned for CaseStatement {
+ fn span(&self) -> Span {
+ let CaseStatement {
+ match_expr,
+ when_blocks,
+ else_block,
+ has_end_case: _,
+ } = self;
+
+ union_spans(
Review Comment:
this is quite fancy 👌
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]