Skip to content

Preserve parsed range nodes when expanding an AST - #69

Open
oyeong011 wants to merge 1 commit into
micromatch:masterfrom
oyeong011:fix/verified-regression
Open

Preserve parsed range nodes when expanding an AST#69
oyeong011 wants to merge 1 commit into
micromatch:masterfrom
oyeong011:fix/verified-regression

Conversation

@oyeong011

Copy link
Copy Markdown

Expanding braces.parse("x{1..3}") deletes the range children and rewrites separator types, so subsequent public stringify/compile/expand calls lose the range. Remove those two destructive mutations; existing per-run queues still reset.

The regression fails before the change and passes afterward. Coverage includes numeric, alphabetic, descending, and combined set/range ASTs across public operations.

Validation: 895 tests.

AI assistance: OpenAI Codex was used to investigate, implement, and run the regression and full-suite checks.

Expanding braces.parse("x{1..3}") deletes the range children and rewrites separator types, so subsequent public stringify/compile/expand calls lose the range. Remove those two destructive mutations; existing per-run queues still reset.

Confidence: high
Scope-risk: narrow
Tested: Regression red/green, full test suite, exported API QA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant