fix(parser): improve diagnostics for double export#17992
fix(parser): improve diagnostics for double export#17992graphite-app[bot] merged 1 commit intomainfrom
export#17992Conversation
There was a problem hiding this comment.
Pull request overview
This PR improves error diagnostics when encountering double export keywords in JavaScript/TypeScript module declarations. The parser now explicitly detects and reports when an export keyword appears twice consecutively, providing better error messages to developers.
Changes:
- Added detection logic for consecutive
exportkeywords in the export statement parser - Implemented error reporting using the existing
modifier_already_seendiagnostic
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
CodSpeed Performance ReportMerging this PR will not alter performanceComparing Summary
Footnotes
|
Merge activity
|
bea9019 to
a412103
Compare

fixes #15870