Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1613)

Issue 135110044: code review 135110044: go/token: implement PositionFor accessors (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 8 months ago by gri
Modified:
9 years, 8 months ago
Reviewers:
gobot, adonovan
CC:
adonovan, golang-codereviews
Visibility:
Public.

Description

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 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/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -36 lines) Patch
M src/pkg/go/token/position.go View 1 2 3 4 6 chunks +36 lines, -15 lines 0 comments Download
M src/pkg/go/token/position_test.go View 1 2 3 4 10 chunks +80 lines, -21 lines 0 comments Download

Messages

Total messages: 5
gri
Hello adonovan@google.com (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
9 years, 8 months ago (2014-08-28 18:42:28 UTC) #1
adonovan
LGTM I've needed this function in the past. https://codereview.appspot.com/135110044/diff/60001/src/pkg/go/token/position.go File src/pkg/go/token/position.go (right): https://codereview.appspot.com/135110044/diff/60001/src/pkg/go/token/position.go#newcode264 src/pkg/go/token/position.go:264: // ...
9 years, 8 months ago (2014-08-28 19:06:01 UTC) #2
gri
https://codereview.appspot.com/135110044/diff/60001/src/pkg/go/token/position.go File src/pkg/go/token/position.go (right): https://codereview.appspot.com/135110044/diff/60001/src/pkg/go/token/position.go#newcode264 src/pkg/go/token/position.go:264: // unpack returns the filename, and line and column ...
9 years, 8 months ago (2014-08-28 19:15:51 UTC) #3
gri
*** Submitted as https://code.google.com/p/go/source/detail?r=401c7c5a77d0 *** go/token: implement PositionFor accessors Package addition. PositionFor permits access to ...
9 years, 8 months ago (2014-08-28 19:16:09 UTC) #4
gobot
9 years, 8 months ago (2014-08-28 19:47:35 UTC) #5
Message was sent while issue was closed.
This CL appears to have broken the freebsd-amd64-race builder.
See http://build.golang.org/log/8058a90a9935418e7826690f1626483f3ceb99a0
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b