Skip to content

feat(ast): add custom builder methods to AST types#23651

Draft
overlookmotel wants to merge 1 commit into
om/06-06-feat_ast_add_ast_creation_methods_to_ast_typesfrom
om/06-18-feat_ast_add_custom_builder_methods_to_ast_types
Draft

feat(ast): add custom builder methods to AST types#23651
overlookmotel wants to merge 1 commit into
om/06-06-feat_ast_add_ast_creation_methods_to_ast_typesfrom
om/06-18-feat_ast_add_custom_builder_methods_to_ast_types

Conversation

@overlookmotel

@overlookmotel overlookmotel commented Jun 19, 2026

Copy link
Copy Markdown
Member

Part of #23043.

As well as the generated AstBuilder methods, we have hand-written convenience methods in ast_builder_impl.rs. Replicate these as methods on AST types themselves, using the new generic AstBuild approach.

Note: This stack is draft for now. I'd like to try migrating oxc_parser to new AstBuilder and check it all works before merging anything.

overlookmotel commented Jun 19, 2026

Copy link
Copy Markdown
Member Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more


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 19, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 62 untouched benchmarks
⏩ 9 skipped benchmarks1


Comparing om/06-18-feat_ast_add_custom_builder_methods_to_ast_types (9966f70) with om/06-06-feat_ast_add_ast_creation_methods_to_ast_types (6143bb3)

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.

@overlookmotel overlookmotel self-assigned this Jun 19, 2026
@overlookmotel overlookmotel force-pushed the om/06-18-feat_ast_add_custom_builder_methods_to_ast_types branch from cdf742f to fc5ec32 Compare June 20, 2026 22:21
@overlookmotel overlookmotel force-pushed the om/06-06-feat_ast_add_ast_creation_methods_to_ast_types branch from 7cab202 to 6a2e997 Compare June 20, 2026 22:21
@overlookmotel overlookmotel force-pushed the om/06-06-feat_ast_add_ast_creation_methods_to_ast_types branch from 6a2e997 to 6143bb3 Compare June 21, 2026 00:39
@overlookmotel overlookmotel force-pushed the om/06-18-feat_ast_add_custom_builder_methods_to_ast_types branch from fc5ec32 to 9966f70 Compare June 21, 2026 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ast Area - AST

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant