Open
Description
Part of #1548
Usecase
- We have added span information in Implement
Spanned
to retrieve source locations on AST nodes #1435
We would like to add span information through out the rest of the AST structures (see docs in #1549) and list on #1548
In order to support this feature reasonably, we need to be able to test the feature and avoid regressions
Proposal
I think we need some sort of span test.
I recommend
- A new test binary like
tests/sqlparser_spans.rs
Then add a test that
- Parses a SQL string
- Check the spans of the AST nodes match what is expected
I think we'll have to use judgement on how fine grained the location information
can / should be.
Metadata
Metadata
Assignees
Labels
No labels