-
-
Notifications
You must be signed in to change notification settings - Fork 737
fix(estree): FormalParameters serializer for TS types
#10462
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
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. |
CodSpeed Instrumentation Performance ReportMerging #10462 will not alter performanceComparing Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please:
- Move the serializers lower down in the file, with the other TS-related serializers, below this comment:
oxc/crates/oxc_ast/src/serialize.rs
Lines 1028 to 1030 in 852c8a7
| // -------------------- | |
| // TS | |
| // -------------------- |
- Add a comment explaining what these 3 converters do.
After making those changes, please feel free to merge yourself.
5b99343 to
d209048
Compare
|
In addition to 3 new serializers, existing others for TS-ESTree have been moved under TS section as well. |
…e with other serializers for `FormalParameters` (#10496) Pure refactor. Revert a small change made in #10462. `FunctionFormalParameters` serializer acts on `Function`, which is not a TS type (even though the purpose of the custom serializer is to handle a TS-specific field). Keep this serializer with the rest of the serializers related to `FormalParameters`, rather than with the serializers which act on TS-only AST types.
Fixes #10068