You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While rewriting code for refactorings and code fixes, it is quite easy to inadvertently insert a single Node into multiple positions in the tree (i.e. when it should have been cloned). It would be very helpful if the printer (or other, more appropriate, component) detected this, rather than behaving subtly incorrectly or throwing an (apparently) unrelated exception.
One way to do this would be to clear __pos and __end before traversing the tree and then throwing if they are set a second time during the traversal.
The text was updated successfully, but these errors were encountered:
While rewriting code for refactorings and code fixes, it is quite easy to inadvertently insert a single
Node
into multiple positions in the tree (i.e. when it should have been cloned). It would be very helpful if the printer (or other, more appropriate, component) detected this, rather than behaving subtly incorrectly or throwing an (apparently) unrelated exception.One way to do this would be to clear
__pos
and__end
before traversing the tree and then throwing if they are set a second time during the traversal.The text was updated successfully, but these errors were encountered: