-
-
Notifications
You must be signed in to change notification settings - Fork 759
refactor(ast/estree): shorten raw deser code #9944
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
refactor(ast/estree): shorten raw deser code #9944
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 #9944 will not alter performanceComparing Summary
|
|
@hi-ogawa This may be of interest to you. You can generally use
I will at some point overhaul these "macros" in |
Merge activity
|
Shorten and simplify some `raw_deser` code, by using `THIS.prop` instead of `DESER[TypeOfProp](POS_OFFSET.prop)`. As well as being shorter, this also results in more efficient deserializer code, as it avoids deserializing the same value twice.
2a9659e to
db642eb
Compare
|
Thanks! I wasn't aware of |

Shorten and simplify some
raw_desercode, by usingTHIS.propinstead ofDESER[TypeOfProp](POS_OFFSET.prop).As well as being shorter, this also results in more efficient deserializer code, as it avoids deserializing the same value twice.