Skip to content

refactor(parser): shorten code constructing ObjectPropertyKind#24626

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

refactor(parser): shorten code constructing ObjectPropertyKind#24626
graphite-app[bot] merged 1 commit into
mainfrom
om/07-17-refactor_parser_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

✅ 67 untouched benchmarks
⏩ 9 skipped benchmarks1


Comparing om/07-17-refactor_parser_shorten_code_constructing_objectpropertykind_ (833e7bd) with main (2338c13)2

Open in CodSpeed

Footnotes

  1. 9 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 (f78e096) 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 marked this pull request as ready for review July 17, 2026 13:23
Copilot AI review requested due to automatic review settings July 17, 2026 13:23

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 the TypeScript parser’s import-type options parsing to construct ObjectPropertyKind directly via the AST builder helper, removing an intermediate ObjectProperty allocation/wrap step.

Changes:

  • Replaces manual ObjectProperty::boxed(...) + ObjectPropertyKind::ObjectProperty(...) wrapping with ObjectPropertyKind::new_object_property(...).
  • Simplifies the ObjectExpression::boxed(...) call to use the directly-produced ObjectPropertyKind.

@graphite-app

graphite-app Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Merge activity

)

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-test_minifier_simplify_arenavec_builder_args_to_array branch from 3f24355 to f78e096 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_parser_shorten_code_constructing_objectpropertykind_ branch from b8bf085 to 833e7bd Compare July 17, 2026 13:53
Base automatically changed from om/07-17-test_minifier_simplify_arenavec_builder_args_to_array to main July 17, 2026 14:01
@graphite-app
graphite-app Bot merged commit 833e7bd into main Jul 17, 2026
42 checks passed
@graphite-app
graphite-app Bot deleted the om/07-17-refactor_parser_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

A-parser Area - Parser

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants