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

Issue 68630043: code review 68630043: go/printer: refine handling of one-line functions (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 2 months ago by gri
Modified:
10 years, 1 month ago
Reviewers:
r, gobot
CC:
golang-codereviews, r
Visibility:
Public.

Description

go/printer: refine handling of one-line functions Functions that "fit" on one line and were on one line in the original source are not broken up into two lines anymore simply because they contain a comment. - Fine-tuned use of separating blanks after /*-style comments, so: ( /* extra blank after this comment */ ) (a int /* no extra blank after this comment*/) - Factored out comment state (from printer state) into commentInfo. - No impact on $GOROOT/src, misc formatting. Fixes issue 5543.

Patch Set 1 #

Patch Set 2 : diff -r 838ade034dc6 https://code.google.com/p/go/ #

Patch Set 3 : diff -r 838ade034dc6 https://code.google.com/p/go/ #

Patch Set 4 : diff -r 838ade034dc6 https://code.google.com/p/go/ #

Patch Set 5 : diff -r 838ade034dc6 https://code.google.com/p/go/ #

Patch Set 6 : diff -r 838ade034dc6 https://code.google.com/p/go/ #

Patch Set 7 : diff -r 838ade034dc6 https://code.google.com/p/go/ #

Patch Set 8 : diff -r 838ade034dc6 https://code.google.com/p/go/ #

Patch Set 9 : diff -r 838ade034dc6 https://code.google.com/p/go/ #

Patch Set 10 : diff -r 838ade034dc6 https://code.google.com/p/go/ #

Patch Set 11 : diff -r 838ade034dc6 https://code.google.com/p/go/ #

Patch Set 12 : diff -r 838ade034dc6 https://code.google.com/p/go/ #

Patch Set 13 : diff -r 838ade034dc6 https://code.google.com/p/go/ #

Patch Set 14 : diff -r 838ade034dc6 https://code.google.com/p/go/ #

Patch Set 15 : diff -r 838ade034dc6 https://code.google.com/p/go/ #

Patch Set 16 : diff -r 838ade034dc6 https://code.google.com/p/go/ #

Patch Set 17 : diff -r 838ade034dc6 https://code.google.com/p/go/ #

Patch Set 18 : diff -r 838ade034dc6 https://code.google.com/p/go/ #

Patch Set 19 : diff -r 838ade034dc6 https://code.google.com/p/go/ #

Patch Set 20 : diff -r d8ecadba049e https://code.google.com/p/go/ #

Total comments: 3

Patch Set 21 : diff -r 65546d299e5a https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -41 lines) Patch
M src/pkg/go/printer/nodes.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +17 lines, -8 lines 0 comments Download
M src/pkg/go/printer/printer.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 8 chunks +60 lines, -24 lines 0 comments Download
M src/pkg/go/printer/testdata/comments.golden View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +9 lines, -4 lines 0 comments Download
M src/pkg/go/printer/testdata/comments.input View 1 2 3 4 5 6 7 1 chunk +9 lines, -3 lines 0 comments Download
M src/pkg/go/printer/testdata/declarations.golden View 1 2 3 4 5 6 10 12 1 chunk +2 lines, -1 line 0 comments Download
M src/pkg/go/printer/testdata/declarations.input View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 6
gri
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
10 years, 2 months ago (2014-02-25 23:14:51 UTC) #1
r
https://codereview.appspot.com/68630043/diff/320001/src/pkg/go/printer/printer.go File src/pkg/go/printer/printer.go (right): https://codereview.appspot.com/68630043/diff/320001/src/pkg/go/printer/printer.go#newcode42 src/pkg/go/printer/printer.go:42: noExtraBlank pmode = 1 << iota // disables extra ...
10 years, 1 month ago (2014-02-26 19:41:26 UTC) #2
gri
https://codereview.appspot.com/68630043/diff/320001/src/pkg/go/printer/printer.go File src/pkg/go/printer/printer.go (right): https://codereview.appspot.com/68630043/diff/320001/src/pkg/go/printer/printer.go#newcode42 src/pkg/go/printer/printer.go:42: noExtraBlank pmode = 1 << iota // disables extra ...
10 years, 1 month ago (2014-02-26 19:55:37 UTC) #3
r
LGTM
10 years, 1 month ago (2014-02-26 21:20:02 UTC) #4
gri
*** Submitted as https://code.google.com/p/go/source/detail?r=b7298e3e7773 *** go/printer: refine handling of one-line functions Functions that "fit" on ...
10 years, 1 month ago (2014-02-26 21:40:01 UTC) #5
gobot
10 years, 1 month ago (2014-02-26 21:43:18 UTC) #6
Message was sent while issue was closed.
This CL appears to have broken the solaris-amd64-solaris11 builder.
Sign in to reply to this message.

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