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

Question ts-creator #9

Open
LukasMachetanz opened this issue May 5, 2020 · 3 comments
Open

Question ts-creator #9

LukasMachetanz opened this issue May 5, 2020 · 3 comments

Comments

@LukasMachetanz
Copy link

You are mentioning the following tipp:

Tip - Use ts-creator to quickly get factory functions for a piece of TypeScript source - instead of meticulously writing out an AST for a node you can write a code string and have it converted to AST for you.

Could you provide an example for e.g. inserting a node with ts-creator.

@itsdouges
Copy link
Owner

Hey I haven't actually used that tbh - it was suggested by a friend.

Would you be interested in trying it out and then contributing back the information?

@LukasMachetanz
Copy link
Author

Maybe you could ask this friend if he has actually tried it? :)

If I need it in my project I will definitely come back to you. Currently I just copied the "native" calls suggested by the TypeScript AST Viewer. :)

@itsdouges
Copy link
Owner

@marionebl any thoughts?

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