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

Issue 3769042: code review 3769042: go/ast: provide complete node text range info (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 3 months ago by gri
Modified:
13 years, 8 months ago
Reviewers:
CC:
r, rsc, golang-dev
Visibility:
Public.

Description

go/ast: provide complete node text range info - add End() method to all nodes; the text range of a node n is [n.Pos(), n.End()) - various small bug fixes in the process - fixed several comments

Patch Set 1 #

Patch Set 2 : code review 3769042: go/ast: provide complete node text range info #

Patch Set 3 : code review 3769042: go/ast: provide complete node text range info #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -81 lines) Patch
M src/cmd/cgo/ast.go View 1 2 1 chunk +5 lines, -3 lines 0 comments Download
M src/pkg/exp/eval/expr.go View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M src/pkg/go/ast/ast.go View 1 2 25 chunks +163 lines, -31 lines 1 comment Download
M src/pkg/go/ast/walk.go View 1 2 2 chunks +10 lines, -5 lines 0 comments Download
M src/pkg/go/parser/parser.go View 20 chunks +37 lines, -31 lines 0 comments Download
M src/pkg/go/printer/nodes.go View 1 2 4 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 5
gri
Hello r, rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 3 months ago (2010-12-21 22:55:44 UTC) #1
rsc
LGTM http://codereview.appspot.com/3769042/diff/6001/src/pkg/go/ast/ast.go File src/pkg/go/ast/ast.go (right): http://codereview.appspot.com/3769042/diff/6001/src/pkg/go/ast/ast.go#newcode375 src/pkg/go/ast/ast.go:375: return x.Ellipsis + 3 // len("...") x.Ellipsis + ...
14 years, 2 months ago (2011-01-04 17:06:01 UTC) #2
gri
On Tue, Jan 4, 2011 at 9:06 AM, <rsc@golang.org> wrote: > > src/pkg/go/ast/ast.go:375: return x.Ellipsis ...
14 years, 2 months ago (2011-01-04 18:09:38 UTC) #3
rsc
> This will require a cast: > x.Ellipsis + token.Token(len("...")) > since len() doesn't return ...
14 years, 2 months ago (2011-01-04 18:13:50 UTC) #4
gri
14 years, 2 months ago (2011-01-04 18:14:19 UTC) #5
*** Submitted as http://code.google.com/p/go/source/detail?r=16c3b63d642f ***

go/ast: provide complete node text range info

- add End() method to all nodes; the text range of a node n is [n.Pos(),
n.End())
- various small bug fixes in the process
- fixed several comments

R=r, rsc
CC=golang-dev
http://codereview.appspot.com/3769042

Committer: Robert Griesemer <gri@golang.org>
Sign in to reply to this message.

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