How to manipulate AST and generate code with comments #8334
Unanswered
shahryarjb
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello friends, Sorry for this question. I am using OXC project in my Rust app and have a problem.
As you see in the below code, I generate AST and change it after that with
Codegen
, I create a new code again, but the problem is; it cleans all the comments of file. how can prevent it not to do this?I even used this, but still it cleans all the comment inside the code
Example js code:
Example rust code:
Thank in advance
Beta Was this translation helpful? Give feedback.
All reactions