Skip to content

Comments

feat(ast_tools): add #[builder(skip)] attribute for structs and enums#9205

Merged
graphite-app[bot] merged 1 commit intomainfrom
02-18-feat_ast_tools_add_builder_skip_attribute_for_structs_and_enums
Feb 18, 2025
Merged

feat(ast_tools): add #[builder(skip)] attribute for structs and enums#9205
graphite-app[bot] merged 1 commit intomainfrom
02-18-feat_ast_tools_add_builder_skip_attribute_for_structs_and_enums

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Feb 18, 2025

Add a #[builder(skip)] attribute which can be used on structs or enums to indicate no AstBuilder methods should be generated for this type.

Use that attribute on Span, to replace the hard-coded black list in codegen for AstBuilder.

Does not affect generated code, only the mechanism by which it's generated.

Copy link
Member Author

overlookmotel commented Feb 18, 2025


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 hot fixes, skip the queue and merge this PR next

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
Copy link

codspeed-hq bot commented Feb 18, 2025

CodSpeed Performance Report

Merging #9205 will not alter performance

Comparing 02-18-feat_ast_tools_add_builder_skip_attribute_for_structs_and_enums (5c44e0c) with main (4a92839)

Summary

✅ 33 untouched benchmarks

@graphite-app
Copy link
Contributor

graphite-app bot commented Feb 18, 2025

Merge activity

…ms (#9205)

Add a `#[builder(skip)]` attribute which can be used on structs or enums to indicate no `AstBuilder` methods should be generated for this type.

Use that attribute on `Span`, to replace the hard-coded black list in codegen for `AstBuilder`.

Does not affect generated code, only the mechanism by which it's generated.
@graphite-app graphite-app bot force-pushed the 02-18-feat_ast_tools_add_builder_default_attribute_for_struct_fields branch from 5b5e774 to 25e0bbd Compare February 18, 2025 14:50
@graphite-app graphite-app bot force-pushed the 02-18-feat_ast_tools_add_builder_skip_attribute_for_structs_and_enums branch from 5c44e0c to 124b3cb Compare February 18, 2025 14:51
Base automatically changed from 02-18-feat_ast_tools_add_builder_default_attribute_for_struct_fields to main February 18, 2025 14:59
@graphite-app graphite-app bot merged commit 124b3cb into main Feb 18, 2025
19 of 26 checks passed
@graphite-app graphite-app bot deleted the 02-18-feat_ast_tools_add_builder_skip_attribute_for_structs_and_enums branch February 18, 2025 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0-merge Merge with Graphite Merge Queue A-ast-tools Area - AST tools C-enhancement Category - New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant