Why can't ReplaceNode take a collection of nodes? #70897
Unanswered
bradwilson
asked this question in
General
Replies: 2 comments 1 reply
-
How to ensure the relationship between these nodes? What happens if they are not continuous elements? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Because no one created such an API. We would need such an idea to go through the standard api proposal route. Thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a fix operation which replaces a single statement with multiple statements. I would like to use
SyntaxEditor.ReplaceNode()
, but it can only replace a single node with a single node, so I end up writing insert then remove operations.I understand this is only saving me one line of code 😄 but I'm curious why there is no overload for
ReplaceNode
that allows you to provide multipleSyntaxNode
s.Beta Was this translation helpful? Give feedback.
All reactions