mk3008 / mk3008/rawsql-ts

Replace SSSQL regex span fallback with AST-backed source spans

Open
#854 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.