LucaCappelletti94 opened a new pull request, #2691:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2691

   `Comments::find_before(location)` returns the comments between a token and 
the previous non-whitespace source token, in source order. It provides the 
token-relative lookup discussed in 
https://github.com/apache/datafusion-sqlparser-rs/issues/2065 while leaving 
comment association to callers.
   
   `CommentWithSpan` records `prev_token_end` and `next_token_start` for the 
lookup and caller-defined association. These additional fields are a breaking 
API change for code constructing `CommentWithSpan` directly.


-- 
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]

Reply via email to