Skip to content

refactor(semantic): rename diagnosic function name#18536

Merged
graphite-app[bot] merged 1 commit intomainfrom
c/01-25-refactor_semantic_rename_diagnosic_function_name
Jan 25, 2026
Merged

refactor(semantic): rename diagnosic function name#18536
graphite-app[bot] merged 1 commit intomainfrom
c/01-25-refactor_semantic_rename_diagnosic_function_name

Conversation

@camc314
Copy link
Contributor

@camc314 camc314 commented Jan 25, 2026

No description provided.

@camc314 camc314 marked this pull request as ready for review January 25, 2026 18:22
Copilot AI review requested due to automatic review settings January 25, 2026 18:22
Copy link
Contributor Author

camc314 commented Jan 25, 2026


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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.

@github-actions github-actions bot added A-parser Area - Parser C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Jan 25, 2026
Copy link
Contributor

Copilot AI left a 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 refactors a diagnostic function name to more accurately describe the underlying error condition for setters in the parser.

Changes:

  • Renamed setter_with_assignment_pattern diagnostic to setter_with_initializer.
  • Updated the setter validation logic in class.rs to use the new diagnostic function.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
crates/oxc_parser/src/js/class.rs Updates check_setter to call the renamed setter_with_initializer diagnostic when a TS setter parameter has an initializer.
crates/oxc_parser/src/diagnostics.rs Renames the diagnostic function to setter_with_initializer while keeping the existing error message about disallowing initializers.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@camchenry camchenry added the 0-merge Merge with Graphite Merge Queue label Jan 25, 2026
Copy link
Member

camchenry commented Jan 25, 2026

Merge activity

@graphite-app graphite-app bot force-pushed the c/01-25-feat_semantic_add_ts1049_code_to_diagnostic branch from 638dff9 to 8155edf Compare January 25, 2026 18:32
@graphite-app graphite-app bot force-pushed the c/01-25-refactor_semantic_rename_diagnosic_function_name branch from f76f7eb to 5ef8ee5 Compare January 25, 2026 18:33
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Jan 25, 2026
Base automatically changed from c/01-25-feat_semantic_add_ts1049_code_to_diagnostic to main January 25, 2026 18:43
@graphite-app graphite-app bot merged commit 5ef8ee5 into main Jan 25, 2026
23 checks passed
@graphite-app graphite-app bot deleted the c/01-25-refactor_semantic_rename_diagnosic_function_name branch January 25, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-parser Area - Parser C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments