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

Issue 4803047: code review 4803047: go/parser: report illegal label declarations at ':' rat... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 9 months ago by gri
Modified:
12 years, 9 months ago
Reviewers:
CC:
rsc, golang-dev
Visibility:
Public.

Description

go/parser: report illegal label declarations at ':' rather than guessing the start Also: - Add parser.SpuriousError flag. If set, the parser reports all (including spurious) errors rather then at most one error per line. - Add -e flag to gofmt and gotype: If set, gofmt and gotype report all (including spurious) errors rather than at most one error per line. - Updated the respective documentation. Fixes issue 2088.

Patch Set 1 #

Patch Set 2 : diff -r 8a93a532a129 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 8a93a532a129 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 8a93a532a129 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 627c9b93bae9 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -15 lines) Patch
M src/cmd/gofmt/doc.go View 1 3 chunks +5 lines, -1 line 0 comments Download
M src/cmd/gofmt/gofmt.go View 1 2 chunks +4 lines, -0 lines 0 comments Download
M src/cmd/gotype/doc.go View 1 1 chunk +8 lines, -6 lines 0 comments Download
M src/cmd/gotype/gotype.go View 1 2 chunks +4 lines, -0 lines 0 comments Download
M src/pkg/go/parser/interface.go View 1 2 3 5 chunks +20 lines, -7 lines 0 comments Download
M src/pkg/go/parser/parser.go View 1 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 5
gri
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 9 months ago (2011-07-21 20:30:56 UTC) #1
rsc
The label fix looks fine. The -e flag seems not useful. Most users won't even ...
12 years, 9 months ago (2011-07-22 02:00:33 UTC) #2
rsc
LGTM Just read your comments on issue 2088. If the % error comes out first ...
12 years, 9 months ago (2011-07-22 02:30:19 UTC) #3
gri
On Thu, Jul 21, 2011 at 7:30 PM, Russ Cox <rsc@golang.org> wrote: > LGTM > ...
12 years, 9 months ago (2011-07-22 16:46:48 UTC) #4
gri
12 years, 9 months ago (2011-07-22 16:55:42 UTC) #5
*** Submitted as http://code.google.com/p/go/source/detail?r=e6713d09fa34 ***

go/parser: report illegal label declarations at ':' rather than guessing the
start

Also:
- Add parser.SpuriousError flag. If set, the parser reports all (including
  spurious) errors rather then at most one error per line.
- Add -e flag to gofmt and gotype: If set, gofmt and gotype report all
  (including spurious) errors rather than at most one error per line.
- Updated the respective documentation.

Fixes issue 2088.

R=rsc
CC=golang-dev
http://codereview.appspot.com/4803047
Sign in to reply to this message.

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