refactor(estree): re-order serializer code for ImportMeta and NewTarget#24776
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. |
f370dd0 to
94c1550
Compare
c4284d7 to
35ae343
Compare
Merging this PR will not alter performance
Comparing Footnotes
|
There was a problem hiding this comment.
Pull request overview
Refactors the ESTree serializer implementation for ImportMeta and NewTarget meta-properties by re-ordering a local helper function to improve top-to-bottom readability within the serializer module.
Changes:
- Moved
serialize_meta_property_identifierbelow theImportMeta*andNewTarget*ESTreeimpls without changing behavior.
a18c4bc to
fc31e79
Compare
94c1550 to
1a76b4c
Compare
1a76b4c to
eff8b50
Compare
359519f to
6ab74a7
Compare
eff8b50 to
d81abc3
Compare
Merge activity
|
d81abc3 to
d68e9fd
Compare

Follow-on after #24557. Pure refactor.
Personally, I think it's clearer to have helper function below the main code, so it reads top-to-bottom.
It's a matter of taste, but it's consistent with other serializers (since it happens to be my taste, and I wrote most of the serializers).