Replies: 1 comment 1 reply
-
Trying to do something similar. Looking to observe function definitions and calls, not to transpile the code, but to make test templates. Haven't found a way of observing file open/close events. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on a simple transpiler to extract IDs from
.tsx
files and put them into another format. I have been using the visitor trait tovist_lit
andvisit_tpl
. What I'm wondering is how do I parse an entire project given the root folder? I was hoping not to have to implement this logic myself. Any tips?I tried searching the
swc
codebase but couldn't find anything immediately obvious. Initially I was thinking I could start at find alltsx
files and collect them into a vec and parse each one. However, I noticed that mynext.js
projects don't have the same structure ie everything insrc
.Beta Was this translation helpful? Give feedback.
All reactions