Skip to content

refactor(ast): codegen match_*! macros#23955

Merged
graphite-app[bot] merged 1 commit into
mainfrom
om/06-29-refactor_ast_codegen_match__macros
Jun 30, 2026
Merged

refactor(ast): codegen match_*! macros#23955
graphite-app[bot] merged 1 commit into
mainfrom
om/06-29-refactor_ast_codegen_match__macros

Conversation

@overlookmotel

@overlookmotel overlookmotel commented Jun 30, 2026

Copy link
Copy Markdown
Member

Pure refactor.

oxc_ast contained 9 hand-written macros e.g. match_expression!. Codegen these macros instead.

The macros are exactly the same as they were before, just they're now codegenned, so will reflect any changes made to AST automatically.

overlookmotel commented Jun 30, 2026

Copy link
Copy Markdown
Member Author

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.

@codspeed-hq

codspeed-hq Bot commented Jun 30, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 62 untouched benchmarks
⏩ 9 skipped benchmarks1


Comparing om/06-29-refactor_ast_codegen_match__macros (084eb3b) with main (003768b)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 om/06-29-feat_ast_tools_store_reverse-mapping_of_enum_inheritance_in_schema (ecf2392) during the generation of this report, so main (003768b) was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@overlookmotel overlookmotel self-assigned this Jun 30, 2026
@overlookmotel
overlookmotel force-pushed the om/06-29-refactor_ast_codegen_match__macros branch from bd2689c to b681ad7 Compare June 30, 2026 10:12
@overlookmotel
overlookmotel marked this pull request as ready for review June 30, 2026 10:13
Copilot AI review requested due to automatic review settings June 30, 2026 10:13

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@overlookmotel

Copy link
Copy Markdown
Member Author

@claude review

@graphite-app

graphite-app Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Merge activity

@graphite-app
graphite-app Bot force-pushed the om/06-29-feat_ast_tools_store_reverse-mapping_of_enum_inheritance_in_schema branch from 4bb5baa to 6279a61 Compare June 30, 2026 13:08
graphite-app Bot pushed a commit that referenced this pull request Jun 30, 2026
Pure refactor.

`oxc_ast` contained 9 hand-written macros e.g. `match_expression!`. Codegen these macros instead.

The macros are exactly the same as they were before, just they're now codegenned, so will reflect any changes made to AST automatically.
@graphite-app
graphite-app Bot force-pushed the om/06-29-refactor_ast_codegen_match__macros branch from b681ad7 to ff74a20 Compare June 30, 2026 13:08
@camc314

camc314 commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: ff74a2055a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Pure refactor.

`oxc_ast` contained 9 hand-written macros e.g. `match_expression!`. Codegen these macros instead.

The macros are exactly the same as they were before, just they're now codegenned, so will reflect any changes made to AST automatically.
@overlookmotel
overlookmotel force-pushed the om/06-29-feat_ast_tools_store_reverse-mapping_of_enum_inheritance_in_schema branch from 6279a61 to ecf2392 Compare June 30, 2026 14:46
@overlookmotel
overlookmotel force-pushed the om/06-29-refactor_ast_codegen_match__macros branch from ff74a20 to 084eb3b Compare June 30, 2026 14:46
Base automatically changed from om/06-29-feat_ast_tools_store_reverse-mapping_of_enum_inheritance_in_schema to main June 30, 2026 16:28
@graphite-app
graphite-app Bot merged commit 084eb3b into main Jun 30, 2026
41 checks passed
@graphite-app
graphite-app Bot deleted the om/06-29-refactor_ast_codegen_match__macros branch June 30, 2026 16:29
camc314 pushed a commit that referenced this pull request Jul 3, 2026
Pure refactor.

`oxc_ast` contained 9 hand-written macros e.g. `match_expression!`. Codegen these macros instead.

The macros are exactly the same as they were before, just they're now codegenned, so will reflect any changes made to AST automatically.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ast Area - AST A-ast-tools Area - AST tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants