Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Wrong output when the file isn't gofmt'd #39
With the following file:
The tool gives the wrong results.
Should be start=2:
Should be start=2, and one line is missing from the output:
start is correct, but the last line (
It seems that the tool operates on the file as if they're gofmt'd.
The problem is that it parses the file, does the modifications, and then calls
I'm not sure if there a straight-forward way to print out an ast tree with the positions as they were found in the original source.
There's another issues due to the same cause; say you have:
And now you add another field, and end up with (note the blank line before