Skip to content

refactor(react_compiler): shorten code constructing ObjectPropertyKind#24627

Merged
graphite-app[bot] merged 1 commit into
mainfrom
om/07-17-refactor_react_compiler_shorten_code_constructing_objectpropertykind_
Jul 17, 2026
Merged

refactor(react_compiler): shorten code constructing ObjectPropertyKind#24627
graphite-app[bot] merged 1 commit into
mainfrom
om/07-17-refactor_react_compiler_shorten_code_constructing_objectpropertykind_

Conversation

@overlookmotel

@overlookmotel overlookmotel commented Jul 17, 2026

Copy link
Copy Markdown
Member

Pure refactor. Shorten code by using an AST builder method that creates the desired type directly,

overlookmotel commented Jul 17, 2026

Copy link
Copy Markdown
Member Author

@codspeed-hq

codspeed-hq Bot commented Jul 17, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 10 untouched benchmarks
⏩ 66 skipped benchmarks1


Comparing om/07-17-refactor_react_compiler_shorten_code_constructing_objectpropertykind_ (18ce449) with main (2338c13)2

Open in CodSpeed

Footnotes

  1. 66 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.

  2. No successful run was found on main (18ce449) during the generation of this report, so 2338c13 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@overlookmotel
overlookmotel force-pushed the om/07-17-refactor_parser_shorten_code_constructing_objectpropertykind_ branch from ccd88a6 to b8bf085 Compare July 17, 2026 13:08
@overlookmotel
overlookmotel force-pushed the om/07-17-refactor_react_compiler_shorten_code_constructing_objectpropertykind_ branch from 57de2b2 to 6e5ba03 Compare July 17, 2026 13:08
@overlookmotel
overlookmotel marked this pull request as ready for review July 17, 2026 13:24
Copilot AI review requested due to automatic review settings July 17, 2026 13:24
@overlookmotel overlookmotel self-assigned this Jul 17, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors reactive-scope codegen in oxc_react_compiler to construct ObjectPropertyKind directly via AST builder helpers, reducing boilerplate while preserving the generated AST shape.

Changes:

  • Replace manual ObjectProperty construction + ArenaBox wrapping with ObjectPropertyKind::new_object_property.
  • Simplify ObjectExpression construction by passing the already-built ObjectPropertyKind directly ([prop]).

@graphite-app

graphite-app Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Merge activity

…nd` (#24627)

Pure refactor. Shorten code by using an AST builder method that creates the desired type directly,
@graphite-app
graphite-app Bot force-pushed the om/07-17-refactor_parser_shorten_code_constructing_objectpropertykind_ branch from b8bf085 to 833e7bd Compare July 17, 2026 13:53
@graphite-app
graphite-app Bot requested a review from Dunqing as a code owner July 17, 2026 13:53
@graphite-app
graphite-app Bot force-pushed the om/07-17-refactor_react_compiler_shorten_code_constructing_objectpropertykind_ branch from 6e5ba03 to 18ce449 Compare July 17, 2026 13:54
Base automatically changed from om/07-17-refactor_parser_shorten_code_constructing_objectpropertykind_ to main July 17, 2026 14:02
@graphite-app
graphite-app Bot merged commit 18ce449 into main Jul 17, 2026
32 checks passed
@graphite-app
graphite-app Bot deleted the om/07-17-refactor_react_compiler_shorten_code_constructing_objectpropertykind_ branch July 17, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants