Descriptiongo/token: implement PositionFor accessors
Package addition.
PositionFor permits access to both, positions
adjusted by //line comments (like the Position
accessors), and unadjusted "raw" positions
unaffected by //line comments.
Raw positions are required for correct formatting
of source code via go/printer which until now had
to manually fix adjusted positions.
Fixes issue 7702.
Patch Set 1 #Patch Set 2 : diff -r 9298940afb883a94fbdd28ac737285acd4946a35 https://code.google.com/p/go/ #Patch Set 3 : diff -r 9298940afb883a94fbdd28ac737285acd4946a35 https://code.google.com/p/go/ #Patch Set 4 : diff -r 9298940afb883a94fbdd28ac737285acd4946a35 https://code.google.com/p/go/ #
Total comments: 6
Patch Set 5 : diff -r d999ebefa648465ac8e09a23763c0dda08b2a277 https://code.google.com/p/go/ #MessagesTotal messages: 5
|