-
Notifications
You must be signed in to change notification settings - Fork 1
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
chore: add visitors #2
Conversation
Hello @morganney I was thinking that you could use some help, tell me if it's ok ;) |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2 +/- ##
===========================================
+ Coverage 53.06% 97.54% +44.47%
===========================================
Files 2 2
Lines 620 1057 +437
Branches 12 77 +65
===========================================
+ Hits 329 1031 +702
+ Misses 291 21 -270
- Partials 0 5 +5 ☔ View full report in Codecov by Sentry. |
e78f82f
to
dab2fd8
Compare
Almost done, but a few things to take care about aggregate types |
bonne nuit. |
hello @morganney, I've updated the PR with some tests, do you think this kind of tests works for you ? |
I think it is a solid approach, I like it. Thanks. I've got a couple questions/comments though if you don't mind. |
@maastrich I've created branch pr/2-suggested-changes if you wanted to rebase this work off of that. Either that or work from my comments, up to you. I appreciate your help. I'll be able to continue collaborating after work. |
Hey @morganney, I've made some pretty good advancements, coverage is starting to look good and I've patched some of the flaws Next step is to reset aggregated types and find a workaround about the name conflicts I've settled on a few tests skips as I do not know how to trigger these nodes visitors about the tests utils, I moved them in a utils file as you proposed PS: I've made another PR about AggregatedTypes -> #5 |
commit a3c417b Author: maastrich <pinsaultm@gmail.com> Date: Wed Jun 12 20:54:32 2024 +0200 chore: Remove console.error in AssignmentProperty method commit 281106d Author: maastrich <pinsaultm@gmail.com> Date: Wed Jun 12 20:46:56 2024 +0200 chore: Enable decorators in parseSync options commit b59b57a Author: maastrich <pinsaultm@gmail.com> Date: Wed Jun 12 20:07:49 2024 +0200 feat: Add missing callbacks for function properties in BaseVisitor commit 631e4f2 Author: maastrich <pinsaultm@gmail.com> Date: Wed Jun 12 18:13:35 2024 +0200 chore: Update npm dependency to latest stable version commit 54ee886 Author: maastrich <pinsaultm@gmail.com> Date: Wed Jun 12 16:13:18 2024 +0200 feat: Add missing callbacks for function properties in BaseVisitor commit e626433 Author: maastrich <pinsaultm@gmail.com> Date: Wed Jun 12 16:05:10 2024 +0200 chore: Update npm dependency to latest stable version commit fe09515 Author: maastrich <pinsaultm@gmail.com> Date: Tue Jun 11 19:27:19 2024 +0200 feat: Add missing callbacks for function properties in BaseVisitor commit 5c21cbc Author: maastrich <pinsaultm@gmail.com> Date: Tue Jun 11 17:31:16 2024 +0200 feat: Add missing callbacks for function properties in BaseVisitor commit e86fc0c Author: maastrich <pinsaultm@gmail.com> Date: Tue Jun 11 02:28:27 2024 +0200 feat: Implement all node walkers method commit dab2fd8 Author: maastrich <pinsaultm@gmail.com> Date: Tue Jun 11 01:37:41 2024 +0200 chore: Implement all node walkers method commit 8f967ab Author: Mathis Pinsault <pinsaultm@gmail.com> Date: Tue Jun 11 01:56:53 2024 +0200 chore: add all node walkers method as no implemented (morganney#3) * chore: add all node walkers method as no implemented * refactor: remove unused import in walk.ts commit e88099c Author: Morgan Ney <morganney@gmail.com> Date: Mon Jun 10 18:39:17 2024 -0500 feat: add more nodes. (morganney#4) * chore: add style preferences as lint rules.
a3c417b
to
611ec1f
Compare
@morganney I believe that I'm happy with these changes |
@maastrich mind rebasing with |
The commit message suggests that a typo has been fixed in the `test/utils.ts` file.
@morganney I can revert the meta tsconfig but I usually do that to ensure separation between the actual code and testing/config files Your choice |
Gotcha. Thanks for explaining your reasoning. I think in this case, for now anyway, can you combine it to just the one |
…in the "include" field
@morganney sure, done |
btw I've found few examples in swc main repository for the nodes I couldn't test, few of them are still untested but there aren't that much |
The code changes in `baseVisitor.ts` fix an unnecessary condition in the `TsPropertySignature` method. The `for` loop now correctly handles the case when `n.params` is undefined. This change improves the code's readability and ensures proper execution.
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.
@maastrich great work!
I can tidy up the README in another PR and then release this later today. |
what does it do?
Add visitors for remaining nodes types with tests for most of them
why?
I was planning do make a similar package but you seem to have handled most of the work and that I could handle some of the rest