Skip to content

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Dec 9, 2025

Pure refactor. "multiline" is OK, but "singleline" is ungrammatical - it should be hyphenated ("single-line"). So rename the CommentKind variant to SingleLineBlock. Also rename MultilineBlock -> MultiLineBlock for consistency.

Obviously, this is not important. But as changing the variants of CommentKind is already a breaking change, it seems like the right moment to nitpick - and avoid getting stuck with it, or having to make another breaking change later.

@github-actions github-actions bot added A-linter Area - Linter A-parser Area - Parser A-ast Area - AST A-codegen Area - Code Generation A-formatter Area - Formatter C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Dec 9, 2025
Copy link
Member Author

overlookmotel commented Dec 9, 2025


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.

@graphite-app graphite-app bot changed the base branch from 12-04-refactor_formatter_rename_commentkind_block_to_commentkind_singlelineblock to graphite-base/16640 December 9, 2025 09:50
@overlookmotel overlookmotel marked this pull request as ready for review December 9, 2025 09:53
Copilot AI review requested due to automatic review settings December 9, 2025 09:53
@codspeed-hq
Copy link

codspeed-hq bot commented Dec 9, 2025

CodSpeed Performance Report

Merging #16640 will not alter performance

Comparing 12-09-refactor_ast_change_capitalization_of_commentkind_variants (2bb359a) with main (320c09f)

Summary

✅ 42 untouched
⏩ 3 skipped1

Footnotes

  1. 3 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@overlookmotel overlookmotel removed the request for review from camc314 December 9, 2025 09:54
@graphite-app graphite-app bot force-pushed the 12-09-refactor_ast_change_capitalization_of_commentkind_variants branch from d1852d1 to 2df8c86 Compare December 9, 2025 09:57
@graphite-app graphite-app bot force-pushed the graphite-base/16640 branch from 9f08971 to 320c09f Compare December 9, 2025 09:57
@graphite-app graphite-app bot changed the base branch from graphite-base/16640 to main December 9, 2025 09:57
@graphite-app graphite-app bot force-pushed the 12-09-refactor_ast_change_capitalization_of_commentkind_variants branch from 2df8c86 to 2bb359a Compare December 9, 2025 09:58
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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@Dunqing Dunqing added the 0-merge Merge with Graphite Merge Queue label Dec 9, 2025
Copy link
Member

Dunqing commented Dec 9, 2025

Merge activity

Pure refactor. "multiline" is OK, but "singleline" is ungrammatical - it should be hyphenated ("single-line"). So rename the `CommentKind` variant to `SingleLineBlock`. Also rename `MultilineBlock` -> `MultiLineBlock` for consistency.

Obviously, this is not important. But as changing the variants of `CommentKind` is already a breaking change, it seems like the right moment to nitpick - and avoid getting stuck with it, or having to make another breaking change later.
@graphite-app graphite-app bot force-pushed the 12-09-refactor_ast_change_capitalization_of_commentkind_variants branch from 2bb359a to 7da5c22 Compare December 9, 2025 13:00
@graphite-app graphite-app bot merged commit 7da5c22 into main Dec 9, 2025
21 checks passed
@graphite-app graphite-app bot deleted the 12-09-refactor_ast_change_capitalization_of_commentkind_variants branch December 9, 2025 13:06
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Dec 9, 2025
Copilot AI pushed a commit that referenced this pull request Dec 10, 2025
Pure refactor. "multiline" is OK, but "singleline" is ungrammatical - it should be hyphenated ("single-line"). So rename the `CommentKind` variant to `SingleLineBlock`. Also rename `MultilineBlock` -> `MultiLineBlock` for consistency.

Obviously, this is not important. But as changing the variants of `CommentKind` is already a breaking change, it seems like the right moment to nitpick - and avoid getting stuck with it, or having to make another breaking change later.
taearls pushed a commit to taearls/oxc that referenced this pull request Dec 11, 2025
…roject#16640)

Pure refactor. "multiline" is OK, but "singleline" is ungrammatical - it should be hyphenated ("single-line"). So rename the `CommentKind` variant to `SingleLineBlock`. Also rename `MultilineBlock` -> `MultiLineBlock` for consistency.

Obviously, this is not important. But as changing the variants of `CommentKind` is already a breaking change, it seems like the right moment to nitpick - and avoid getting stuck with it, or having to make another breaking change later.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ast Area - AST A-codegen Area - Code Generation A-formatter Area - Formatter A-linter Area - Linter 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.

3 participants