go-mutesting
go-mutesting copied to clipboard
Trim comments and positions of nodes recursively
During IdentifiersInStatement we are reusing nodes which often leads to compile errors for the mutations. This for example happens if the node has comment or some position information attached to it. The mutated code is then not correctly formatted, and cannot be compiled.
This would be fixed if we could just clone the node and trim it from its comments and position information.