Open
Description
I have a need to send SyntaxNode
s to other threads, however SyntaxNode
is not Send
. What is the recommended approach to such usecases? I know green nodes are both send and sync, but they dont provide the needed information (text offsets). SyntaxNode
is preferred, as it can be used in typed AST wrappers.
One solution that comes to mind is sending the green node and turning it into a syntax node in the new thread. But this seems wasteful if I already have a syntax node (I would have to turn it into a green node just to rebuild the syntax node in a new thread). Is there a better solution?
Metadata
Metadata
Assignees
Labels
No labels