We need to keep asts immutable. In some of the transformers - like function_simplifier we needed a deepcopy. That is a sure sign we are doing something we shouldn't be.
Before doing this, look at how Python does the TransformNodeVIsitor. If it doesn't make a new tree as it goes, then this bug report really doesn't matter.
We need to keep asts immutable. In some of the transformers - like
function_simplifier
we needed a deepcopy. That is a sure sign we are doing something we shouldn't be.Before doing this, look at how Python does the TransformNodeVIsitor. If it doesn't make a new tree as it goes, then this bug report really doesn't matter.