Skip to content

refactor(parser): re-order modifiers code#20753

Merged
graphite-app[bot] merged 1 commit intomainfrom
om/03-25-refactor_parser_re-order_modifiers_code
Mar 26, 2026
Merged

refactor(parser): re-order modifiers code#20753
graphite-app[bot] merged 1 commit intomainfrom
om/03-25-refactor_parser_re-order_modifiers_code

Conversation

@overlookmotel
Copy link
Copy Markdown
Member

@overlookmotel overlookmotel commented Mar 25, 2026

Pure refactor. Re-order modifiers code to move ModifierKinds lower down, next to ModifierKind. Move accessibility method from ModifierKinds to Modifiers but, that apart, this PR just moves code and doesn't change any of it.

Copy link
Copy Markdown
Member Author

overlookmotel commented Mar 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 changes, fast-track this PR to the front of 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.

Copy link
Copy Markdown
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

Refactors oxc_parser’s modifier handling by re-ordering code in modifiers.rs to place ModifierKinds closer to ModifierKind, and by relocating the accessibility helper to the Modifiers type while preserving behavior.

Changes:

  • Reordered ModifierKinds implementation to live next to ModifierKind.
  • Moved accessibility() logic from ModifierKinds into Modifiers::accessibility() (same logic, same public API).
  • Removed the now-unneeded internal ModifierKinds::accessibility() helper.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Mar 25, 2026

Merging this PR will not alter performance

✅ 53 untouched benchmarks
⏩ 3 skipped benchmarks1


Comparing om/03-25-refactor_parser_re-order_modifiers_code (216e6f0) with om/03-23-perf_parser_store_modifiers_on_stack (4fc398f)

Open in CodSpeed

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.

@graphite-app
Copy link
Copy Markdown
Contributor

graphite-app bot commented Mar 26, 2026

Merge activity

@graphite-app graphite-app bot added 0-merge Merge with Graphite Merge Queue and removed 0-merge Merge with Graphite Merge Queue labels Mar 26, 2026
@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Mar 26, 2026 — with Graphite App
@graphite-app graphite-app bot force-pushed the om/03-23-perf_parser_store_modifiers_on_stack branch from 4fc398f to bc58fe2 Compare March 26, 2026 13:39
graphite-app bot pushed a commit that referenced this pull request Mar 26, 2026
Pure refactor. Re-order modifiers code to move `ModifierKinds` lower down, next to `ModifierKind`. Move `accessibility` method from `ModifierKinds` to `Modifiers` but, that apart, this PR just moves code and doesn't change any of it.
@graphite-app graphite-app bot force-pushed the om/03-25-refactor_parser_re-order_modifiers_code branch from 216e6f0 to ddc0b5c Compare March 26, 2026 13:40
Pure refactor. Re-order modifiers code to move `ModifierKinds` lower down, next to `ModifierKind`. Move `accessibility` method from `ModifierKinds` to `Modifiers` but, that apart, this PR just moves code and doesn't change any of it.
@graphite-app graphite-app bot force-pushed the om/03-23-perf_parser_store_modifiers_on_stack branch from bc58fe2 to 5f9bee5 Compare March 26, 2026 13:43
@graphite-app graphite-app bot force-pushed the om/03-25-refactor_parser_re-order_modifiers_code branch from ddc0b5c to 6277d88 Compare March 26, 2026 13:44
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.

3 participants