-
-
Notifications
You must be signed in to change notification settings - Fork 455
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(ast): use atom
for Directive
and Hashbang
#701
Conversation
Directive
and Hashbang
atom
for Directive
and Hashbang
b106d52
to
a641495
Compare
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.
cargo fmt
failed :-(
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #701 +/- ##
=======================================
Coverage 89.52% 89.52%
=======================================
Files 205 205
Lines 42229 42229
=======================================
Hits 37804 37804
Misses 4425 4425
☔ View full report in Codecov by Sentry. |
No, it's not. It should be fixed in another PR(if you think this should be fixed), but that PR requires the changes in this PR.
Yes. Probably something like |
Thank you! |
Benchmark ResultsLinux
Windows
|
The main reason is using Atom to remove the lifetime for convenience.
And after removing the lifetime of these nodes, the
Program<'a>
doesn't rely on&'a source
anymore, which allows us to specify more accurate lifetimes.https://github.com/web-infra-dev/oxc/blob/f5b8690309c97f17e979dc232417006ffd75fbab/crates/oxc_parser/src/lib.rs#L135
https://github.com/web-infra-dev/oxc/blob/f5b8690309c97f17e979dc232417006ffd75fbab/crates/oxc_parser/src/lib.rs#L95