Replacing a Token during rewriting pass #1717
-
|
Hello everyone, I was wondering if there were currently existing provisions in slang for replacing a Token in a SyntaxTree, similarly to how SyntaxRewriter.replace() works, but for Tokens, not SyntaxNodes? Taking a look at the code I couldn't find anything like this, and was wondering if it doesn't exist would there be any obvious downsides to implementing something like SyntaxRewriter.replaceToken()? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
MikePopoloski
Mar 6, 2026
Replies: 1 comment
-
|
I don't see any downside to adding it, it just hasn't been needed until now. Feel free to add it. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ilthraim
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't see any downside to adding it, it just hasn't been needed until now. Feel free to add it.