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

Issue 1593042: code review 1593042: go/parser: correct position of empty statement ';' (Closed)

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

Description

go/parser: correct position of empty statement ';' (caused certain files to not be idempotent under gofmt) - corrected golden files for go/printer - slightly simplified some code in nodes.go (no impact on formatting) - these changes have no impact on gofmt output of .go files under src, misc fallthrough statement considered harmful!

Patch Set 1 #

Patch Set 2 : code review 1593042: go/parser: correct position of empty statement ';' #

Patch Set 3 : code review 1593042: go/parser: correct position of empty statement ';' #

Patch Set 4 : code review 1593042: go/parser: correct position of empty statement ';' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -10 lines) Patch
M src/pkg/go/parser/parser.go View 1 2 chunks +2 lines, -3 lines 0 comments Download
M src/pkg/go/printer/nodes.go View 1 chunk +3 lines, -3 lines 0 comments Download
M src/pkg/go/printer/testdata/statements.golden View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 4
gri
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 9 months ago (2010-06-08 23:49:37 UTC) #1
gri
Hello rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 9 months ago (2010-06-09 00:02:57 UTC) #2
rsc
LGTM s/harmful/useful/!
14 years, 9 months ago (2010-06-09 00:04:02 UTC) #3
gri
14 years, 9 months ago (2010-06-09 00:06:34 UTC) #4
*** Submitted as http://code.google.com/p/go/source/detail?r=b801340969e4 ***

go/parser: correct position of empty statement ';'
(caused certain files to not be idempotent under gofmt)

- corrected golden files for go/printer
- slightly simplified some code in nodes.go (no impact on formatting)
- these changes have no impact on gofmt output of .go files under src, misc

fallthrough statement considered harmful!

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

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