diff options
| author | Robert Griesemer <gri@golang.org> | 2014-08-28 12:16:06 -0700 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2014-08-28 12:16:06 -0700 |
| commit | e66ff2b9080669373704914191abf2ee5f65eb75 (patch) | |
| tree | fd1262710c695a369d32183397c43dff400f4e76 /src/pkg/runtime | |
| parent | b155e79f23d66d70f761d73cb7478c5fb59c915c (diff) | |
| download | go-e66ff2b9080669373704914191abf2ee5f65eb75.tar.xz | |
go/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 #7702.
LGTM=adonovan
R=adonovan
CC=golang-codereviews
https://golang.org/cl/135110044
Diffstat (limited to 'src/pkg/runtime')
0 files changed, 0 insertions, 0 deletions
