-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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: Add "deno ast" subcommand #6867
Conversation
deno ast <file.ts> --unstable
deno ast <file.ts> --unstable
deno ast <file.ts> --unstable
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.
Code looks good 👍
@divy-work please add an integration test that checks the output of produced AST (just a small script will be enough).
@ry what do you think about this feat? We can leave it behind --unstable
time for some time.
Sure will do. I think if future we can add an option to write the output json to a file. |
I think we need the |
Yes, it is currently behind |
Hope the tests work now lol. (2 hours wasted) EDIT: it was a newline issue 🤦 |
@littledivy thank you for the PR, but after all I think this functionality should be implemented by third party libraries (#2355 (comment)) |
Leverages the swc ast parser utility behind the
--unstable
flagCloses #2355