• 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
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...