-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
module: refactor ts parser loading #54243
module: refactor ts parser loading #54243
Conversation
Review requested:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #54243 +/- ##
=======================================
Coverage 87.10% 87.11%
=======================================
Files 647 647
Lines 181739 181758 +19
Branches 34887 34887
=======================================
+ Hits 158310 158332 +22
- Misses 16738 16740 +2
+ Partials 6691 6686 -5
|
The new function is not exposed as a public function or being able to be used with |
it's currently unusable from outside, but it prepares for it eventually |
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.
lgtm
Landed in 3cbeed8 |
PR-URL: #54243 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Tierney Cyren <hello@bnb.im> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
This PR refactors the way TypeScript parser is loaded.
Currently the function
loadTypeScriptParser
is not exposed but could allow overriding the default parsing options, so that an external version of amaro could be used.It also changes the
parse
signature to take only the code string input and return{ code }
.