node-typescript-parser icon indicating copy to clipboard operation
node-typescript-parser copied to clipboard

Question: Is there a way to print back the modified AST

Open shashikiran797 opened this issue 5 years ago • 1 comments

I am able to parse the typescript source into AST. And I am able to modify the AST. But I am not sure how to print back the AST as the source file.

If this is not possible with this library, please let me know if there is any way to achieve this. Thank you.

shashikiran797 avatar Nov 21 '20 15:11 shashikiran797

Hey @shashikiran797 I started the generation of typescript code from the AST, but I never finished it.

Some parts however can be generated: https://github.com/buehler/node-typescript-parser/tree/master/src/code-generators/typescript-generators

buehler avatar Nov 22 '20 09:11 buehler