-
-
Notifications
You must be signed in to change notification settings - Fork 721
feat(napi/parser): add option to add parent prop to AST nodes with raw transfer
#14344
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
feat(napi/parser): add option to add parent prop to AST nodes with raw transfer
#14344
Conversation
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 #14344 will not alter performanceComparing Summary
Footnotes |
Merge activity
|
…raw transfer (#14344) Add an option to `oxc-parser` to add `parent` to all AST nodes. This option is only available with raw transfer (not really feasible with JSON transfer, as JSON doesn't support circular references). This is really for the purposes of JS plugins in Oxlint, so have not included the new deserializers which add `parent` in the `oxc-parser` NPM package, to avoid bloating download size. But it's ideal home is in `napi/parser` so can add it to the conformance tests. `parent` is correct for all nodes in all Test262 and TypeScript test cases.
f4119a6 to
08f14e6
Compare
2fed560 to
7e4d04f
Compare
Use the new raw transfer deserializer added in #14344 to add `parent` field to all AST node in Oxlint JS plugins.

Add an option to
oxc-parserto addparentto all AST nodes. This option is only available with raw transfer (not really feasible with JSON transfer, as JSON doesn't support circular references).This is really for the purposes of JS plugins in Oxlint, so have not included the new deserializers which add
parentin theoxc-parserNPM package, to avoid bloating download size. But it's ideal home is innapi/parserso can add it to the conformance tests.parentis correct for all nodes in all Test262 and TypeScript test cases.