-
-
Notifications
You must be signed in to change notification settings - Fork 621
feat(semantic): add methods to check if AST contains any/all node types #12227
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
base: 07-11-feat_semantic_add_set_of_asttype_that_exist_in_ast
Are you sure you want to change the base?
Conversation
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.
How to use the Graphite Merge QueueAdd either label to this PR to merge it via 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 Instrumentation Performance ReportMerging #12227 will not alter performanceComparing Summary
|
42a07b3
to
6a10b4d
Compare
6a10b4d
to
74e03f9
Compare
09291b4
to
cd7d601
Compare
74e03f9
to
891c8d1
Compare
cd7d601
to
1449a81
Compare
You might find that |
These are not used anywhere yet, but this adds some helper methods to query the AST and see if it contains any nodes of a particular type. Like the previous PR, I'm using the unchecked variants here since it should be safe since the bitset is always sized large enough to contain the biggest value in
AstType
.