-
-
Notifications
You must be signed in to change notification settings - Fork 518
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
test(traverse): add an api to get the index of the current node in Vec<'a, Statements<'a>>. #6644
Conversation
…c<'a, Statements<'a>>.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
CodSpeed Performance ReportMerging #6644 will degrade performances by 38.73%Comparing Summary
Benchmarks breakdown
|
Yes, agree this API would be good. But I'm afraid at present I think no way to do it without undefined behavior. Problem is that oxc/crates/oxc_traverse/src/generated/walk.rs Lines 5646 to 5656 in 9281234
( So it's illegal to get a ref But... once we take control of Maybe I can find a way to do it prior to implementing our own |
@overlookmotel check your discord DM |
Closing as we have decided to use |
Try to get the index of the current node in
Vec<'a, Statements<'a>>
.