Stream: t-compiler/rust-analyzer

Topic: Replacing a node with a token

Jonas Schievink [he/him] (Jun 06 2021 at 13:14, on Zulip):

I'm trying to replace a SyntaxNode with a whitespace token of the same length, but I can't find a rowan API that lets me create a SyntaxToken – what would be the right approach here?

Lukas Wirth (Jun 06 2021 at 13:15, on Zulip):


Jonas Schievink [he/him] (Jun 06 2021 at 13:16, on Zulip):

ah, nice

Jonas Schievink [he/him] (Jun 06 2021 at 13:19, on Zulip):

somehow I forgot about that module

Last update: Jul 26 2021 at 13:15UTC