-
-
Notifications
You must be signed in to change notification settings - Fork 735
fix(semantic): add TS error code to constructor implementation missing diagnostic #16517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds the TypeScript error code TS(2390) to the "Constructor implementation is missing" diagnostic message, improving alignment with TypeScript's official error reporting format.
- Converts the diagnostic function from using
OxcDiagnostic::error()tots_error("2390", ...)helper - Updates all 8 snapshot test occurrences to reflect the new error message format with the TS error code prefix
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| crates/oxc_semantic/src/checker/typescript.rs | Modified constructor_implementation_missing function to use ts_error helper with error code "2390" |
| tasks/coverage/snapshots/parser_typescript.snap | Updated all 8 test snapshots to show the new error message format: × TS(2390): Constructor implementation is missing. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| ts_error(code, format!("Abstract {elem_kind} can only appear within an abstract class.")) | ||
| .with_label(span) | ||
| } | ||
|
|
Copilot
AI
Dec 4, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a doc comment to document the TypeScript error code, following the pattern used by other TS diagnostic functions in this file (e.g., line 217 /// TS(1392) and lines 233-234). This helps developers quickly identify which TypeScript error corresponds to this diagnostic.
Suggested addition:
/// TS(2390)
fn constructor_implementation_missing(span: Span) -> OxcDiagnostic {| /// TS(2390) |
CodSpeed Performance ReportMerging #16517 will not alter performanceComparing Summary
Footnotes
|

No description provided.