• Robert Griesemer's avatar
    go/token: implement PositionFor accessors · e66ff2b9
    Robert Griesemer authored
    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 #7702.
    
    LGTM=adonovan
    R=adonovan
    CC=golang-codereviews
    https://golang.org/cl/135110044
    e66ff2b9
Name
Last commit
Last update
..
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
liblink Loading commit data...
pkg Loading commit data...
Make.dist Loading commit data...
all.bash Loading commit data...
all.bat Loading commit data...
all.rc Loading commit data...
androidtest.bash Loading commit data...
clean.bash Loading commit data...
clean.bat Loading commit data...
clean.rc Loading commit data...
make.bash Loading commit data...
make.bat Loading commit data...
make.rc Loading commit data...
nacltest.bash Loading commit data...
race.bash Loading commit data...
race.bat Loading commit data...
run.bash Loading commit data...
run.bat Loading commit data...
run.rc Loading commit data...
sudo.bash Loading commit data...