-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Using visitors you cannot replace elements from a list of values. #107
Comments
gcbirzan
changed the title
Using vitors you cannot replace elements from a list of values.
Using visitors you cannot replace elements from a list of values.
Jul 28, 2022
Thanks for the report. |
lelit
added a commit
that referenced
this issue
Jul 29, 2022
This is a less naïve way to support AST visitors that apply changes to the tree, in particular handling the weird case when they alter/remove a node contained in a (sub)list. This hopefully fixes issue #107.
This seems fixed, can you please give it a try? |
I just released 3.14 addressing this. |
Sorry, I was travelling last week, I didn't get a chance to take a look. It does fix my issue, thank you! |
Great, thanks for the feedback! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trying to replace them results in an error. Example:
Exception:
The other sequence I tried with was ARRAY[], where the node in the iterate call is the array, which is a sequence. But, in this case, the node ends up being the actual value, the sequence is a level above, in
ancestors.node
. I haven't looked enough at the code to be able to suggest a fix, sorry.The text was updated successfully, but these errors were encountered: