go-mutesting icon indicating copy to clipboard operation
go-mutesting copied to clipboard

Trim comments and positions of nodes recursively

Open zimmski opened this issue 8 years ago • 0 comments

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.

zimmski avatar Oct 28 '16 18:10 zimmski