Skip to content
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

Code generator: AST ⇒ javascript code #512

Open
deoxykev opened this issue Dec 8, 2023 · 3 comments
Open

Code generator: AST ⇒ javascript code #512

deoxykev opened this issue Dec 8, 2023 · 3 comments

Comments

@deoxykev
Copy link

deoxykev commented Dec 8, 2023

Is there a way to translate an *ast.Program back into valid javascript source code, like babel/generator?

My use case would be modifying javascript on-the-fly in a proxy.

If not, is it on the roadmap?

@stevenh
Copy link
Collaborator

stevenh commented Dec 8, 2023

That functionality doesn't exist I'm afraid and seems like quite a uncommon need, so likely out of scope for this.

@deoxykev
Copy link
Author

deoxykev commented Dec 9, 2023 via email

@stevenh
Copy link
Collaborator

stevenh commented Dec 9, 2023

Absolutely

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants