fix(ast/estree): Align BindingIdentifier output with TS-ESTree#9928
fix(ast/estree): Align BindingIdentifier output with TS-ESTree#9928therewillbecode wants to merge 3 commits intooxc-project:mainfrom
BindingIdentifier output with TS-ESTree#9928Conversation
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. |
CodSpeed Performance ReportMerging #9928 will not alter performanceComparing Summary
|
BindingIdentifierBindingIdentifier output with TS-ESTree
|
Actually judging by the snapshot failing in CI , seems like I have added some mismatches now that need fixed. |
|
Thanks for joining forces 👍 |
|
#9822 is now merged and it makes the same change, so this PR is now defunct. But, just to give feedback in case you'd like to continue hacking on this (please please do!)... The approach you took here was exactly right. The oxc/tasks/ast_tools/src/derives/estree.rs Lines 87 to 203 in db642eb But they're not documented (sorry, my bad! was coding in a hurry). The change to the snapshot file in this PR wasn't due to any fault in your work. There's an unfortunate thing that when you run the conformance tester with a The solution is to run it again without Sorry that poor co-ordination on our part meant that your work here was wasted. I hope it's not put you off completely, and you still have appetite to continue. Please feel free to reach out on Discord if you have any questions. |
|
Thanks so much @overlookmotel for the feedback! |
Add an empty
decoratorsfield which is always an empty array to theBindingIdentifiernode in order to fix the conformance test case for topLevelLambda3.ts.This test was failing because of the failing diff for the BindingIdentifier
finvar f = () => {this.window;}.This is my first attempt at contributing to our efforts to align our AST's ESTree output with that of TS-ESLint's ESTree output. See #9705 . Let me know if I am missing something.
AST Playgrounds for the test case below:
Oxc playground
TS-ESlint playground