Skip to content

feat(ast): compute max value that can be mapped to AstType #12225

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

camchenry
Copy link
Member

@camchenry camchenry commented Jul 11, 2025

This adds an automatically generated usize which represents the largest variant that is contained in AstKind/AstType. In following PRs, this is used to create a set of bits that is exactly sized to the number of different AST node types there are.

@github-actions github-actions bot added A-ast Area - AST A-ast-tools Area - AST tools C-enhancement Category - New feature or request labels Jul 11, 2025
Copy link
Member Author

camchenry commented Jul 11, 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.

Copy link

codspeed-hq bot commented Jul 11, 2025

CodSpeed Instrumentation Performance Report

Merging #12225 will not alter performance

Comparing 07-11-feat_ast_compute_max_value_that_can_be_mapped_to_asttype_ (ea30a17) with main (242e721)

Summary

✅ 34 untouched benchmarks

@camchenry camchenry force-pushed the 07-11-feat_ast_compute_max_value_that_can_be_mapped_to_asttype_ branch from 5d8fc44 to f14ce37 Compare July 11, 2025 16:29
@camchenry camchenry force-pushed the 07-11-feat_ast_compute_max_value_that_can_be_mapped_to_asttype_ branch from f14ce37 to ea30a17 Compare July 11, 2025 17:20
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 C-enhancement Category - New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants