-
Notifications
You must be signed in to change notification settings - Fork 416
Open
Description
Hello. I am writing a JSON preprocessor, that applies some transformations to ast.Node and I've stumbled upon the impossibility to change value of ast.Node itself.
For example, if I've located a numeric node by path and I want to change its value to the result of some algebraic expression, there is currently no way of doing it, because it's not "Set", since there is no "key". The only solution is to backtrack node position in ASTree and change node value from there, but it involves a lot if code with lots of edge cases for such a task.
Is there a possibility of adding this in next versions or there is an easy way of doing this which I am not seeing?
Metadata
Metadata
Assignees
Labels
No labels