-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Migrate remove_dbgs
from ted
to SyntaxEditor
#19267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
c7b3432
to
bd9083a
Compare
bd9083a
to
2ba82fd
Compare
Regarding the semicolon, it seems that this is supposed to be deleting the entire |
…arent is an ExprStmt
9bb47c7
to
bb78a84
Compare
I am afraid I am extremely stuck on how to properly handle the SyntaxEditor here. I tried making various granularities of sub-syntax editors that produce and expr, and then feeding that into the next SyntaxEditor, but it keeps crashing with variations on |
Hi! I am trying to get started on migrating a couple of assists to the SyntaxEditor machinery. I am struggling ever so slightly with converting things however. One of the problems is that because I prepare all the changes into the SyntaxEditor, and only apply it later, I don't really know where to look when the apply-step results in an error.
Specifically, the tests are currently failing with
assertion failed: is_ancestor_or_self_of_element(&old, &self.root)
, and with that I am leaving trailing semicolons in place when I am removing dbgs. Any help on this would me greatly appreciated :)