refactor(react_compiler): shorten code constructing ObjectPropertyKind#24627
Conversation
Merging this PR will not alter performance
Comparing Footnotes
|
ccd88a6 to
b8bf085
Compare
57de2b2 to
6e5ba03
Compare
There was a problem hiding this comment.
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
ObjectPropertyconstruction +ArenaBoxwrapping withObjectPropertyKind::new_object_property. - Simplify
ObjectExpressionconstruction by passing the already-builtObjectPropertyKinddirectly ([prop]).
Merge activity
|
…nd` (#24627) Pure refactor. Shorten code by using an AST builder method that creates the desired type directly,
b8bf085 to
833e7bd
Compare
6e5ba03 to
18ce449
Compare

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