Skip to content

How to better modify AST nodes? #2036

Answered by kdy1
yisar asked this question in Q&A
Aug 9, 2021 · 5 comments · 16 replies
Discussion options

You must be logged in to vote

Currently, swc is designed to modify AST nodes from rust side.

if you are using swc form rust, you can simply implement Fold.

Replies: 5 comments 16 replies

Comment options

You must be logged in to vote
2 replies
@yisar
Comment options

@kdy1
Comment options

kdy1 Aug 9, 2021
Maintainer

Answer selected by kdy1
Comment options

You must be logged in to vote
2 replies
@kdy1
Comment options

kdy1 Aug 10, 2021
Maintainer

@kdy1
Comment options

kdy1 Aug 10, 2021
Maintainer

Comment options

You must be logged in to vote
5 replies
@kdy1
Comment options

kdy1 Aug 18, 2021
Maintainer

@yisar
Comment options

@kdy1
Comment options

kdy1 Aug 18, 2021
Maintainer

@kdy1
Comment options

kdy1 Aug 18, 2021
Maintainer

@yisar
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@kdy1
Comment options

kdy1 Sep 2, 2021
Maintainer

@yisar
Comment options

@kdy1
Comment options

kdy1 Sep 2, 2021
Maintainer

@yisar
Comment options

@kdy1
Comment options

kdy1 Sep 2, 2021
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants