Replace SSSQL regex span fallback with AST-backed source spans
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 30
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
SSSQL rewrite plan currently uses a narrow regex/string-scanning fallback in findOptionalBranchSpans, findBooleanOperatorBefore, and findBooleanOperatorAfter to recover source spans for minimal remove edits.\n\nFollow-up goal:\n- expose or derive AST-backed source spans for optional SSSQL branches\n- remove the regex fallback once source spans can identify parenthesized optional branches and adjacent boolean operators safely\n- keep span-based rewrite planning scoped to the resolved query branch\n\nContext: PR #853 adds the initial rewrite plan API and keeps this fallback intentionally narrow.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading findOptionalBranchSpans, findBooleanOperatorBefore, and findBooleanOperatorAfter, then review PR #853's rewrite plan API and the related AST structures. The work is done when AST-backed spans safely identify parenthesized optional branches and adjacent boolean operators, the regex fallback is removed, and planning remains scoped to the resolved query branch.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- sql, typescript
- Domain
- databases, tooling
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100