Skip to content

How to ignore/remove all spans? #5629

Answered by jjnesbitt
jjnesbitt asked this question in Q&A
Discussion options

You must be logged in to vote

Nevermind, I wasn't aware that you could use VisitMut with Emitter. I've switched to using that, and codegen now works for me. For anybody in a similar position (trying to do modify an AST and do codegen, but not trying to compile code or write a plugin), here is a discussion I found that contains the required code: #3141 (comment)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jjnesbitt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant