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

Issue 5786060: code review 5786060: go/printer, gofmt: nicer formatting of multi-line returns (Closed)

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

Description

go/printer, gofmt: nicer formatting of multi-line returns This affects corner (test) cases only; gofmt -w src misc doesn't cause any changes. - added additional test cases - removed doIndent parameter from printer.valueSpec (was always false) - gofmt -w src misc causes no changes Fixes issue 1207.

Patch Set 1 #

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

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -13 lines) Patch
M src/pkg/go/printer/nodes.go View 1 2 5 chunks +51 lines, -5 lines 0 comments Download
M src/pkg/go/printer/testdata/statements.golden View 1 3 chunks +51 lines, -8 lines 0 comments Download
M src/pkg/go/printer/testdata/statements.input View 1 2 chunks +43 lines, -0 lines 0 comments Download

Messages

Total messages: 4
gri
Hello dsymonds@golang.org, rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
13 years, 2 months ago (2012-03-09 01:08:32 UTC) #1
dsymonds
LGTM Can't really speak for the code change, and haven't thought thoroughly about the heuristic, ...
13 years, 2 months ago (2012-03-09 02:14:22 UTC) #2
rsc
LGTM
13 years, 2 months ago (2012-03-09 18:58:09 UTC) #3
gri
13 years, 2 months ago (2012-03-09 19:05:54 UTC) #4
*** Submitted as http://code.google.com/p/go/source/detail?r=20edbffdf421 ***

go/printer, gofmt: nicer formatting of multi-line returns

This affects corner (test) cases only; gofmt -w src misc
doesn't cause any changes.

- added additional test cases
- removed doIndent parameter from printer.valueSpec
  (was always false)
- gofmt -w src misc causes no changes

Fixes issue 1207.

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

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