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

Issue 6847086: code review 6847086: go/printer: Permit declaration and statement lists as input. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 5 months ago by gri
Modified:
11 years, 4 months ago
Reviewers:
dfc, remyoudompheng
CC:
golang-dev, rsc
Visibility:
Public.

Description

go/printer: Permit declaration and statement lists as input. Also: Can set base indentation in printer.Config: all code is going to be indented by at least that amount (except for raw string literals spanning multiple lines, since their values must not change).

Patch Set 1 #

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

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

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

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

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

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -30 lines) Patch
M src/pkg/go/printer/nodes.go View 1 2 3 4 5 2 chunks +27 lines, -19 lines 0 comments Download
M src/pkg/go/printer/performance_test.go View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/go/printer/printer.go View 1 2 3 4 5 6 5 chunks +22 lines, -10 lines 0 comments Download
M src/pkg/go/printer/printer_test.go View 1 2 3 4 5 6 7 8 1 chunk +92 lines, -0 lines 0 comments Download

Messages

Total messages: 9
gri
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
11 years, 5 months ago (2012-11-21 22:47:26 UTC) #1
rsc
Tests?
11 years, 4 months ago (2012-11-26 16:45:36 UTC) #2
gri
Hello golang-dev@googlegroups.com, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 4 months ago (2012-11-26 19:36:17 UTC) #3
rsc
LGTM
11 years, 4 months ago (2012-11-26 21:03:28 UTC) #4
gri
*** Submitted as http://code.google.com/p/go/source/detail?r=c2c17abf9eb0 *** go/printer: Permit declaration and statement lists as input. Also: Can ...
11 years, 4 months ago (2012-11-26 21:14:07 UTC) #5
dfc
Weird, this is failing, but only on 386 (possibly all 32 bit builders) On Tue, ...
11 years, 4 months ago (2012-11-26 21:42:03 UTC) #6
remyoudompheng
On 2012/11/26 Dave Cheney <dave@cheney.net> wrote: > Weird, this is failing, but only on 386 ...
11 years, 4 months ago (2012-11-26 21:48:28 UTC) #7
gri
I have a fix for this - coming shortly. Sorry about this. - gri On ...
11 years, 4 months ago (2012-11-26 22:15:20 UTC) #8
remyoudompheng
11 years, 4 months ago (2012-11-26 22:17:43 UTC) #9
Indeed, we have an overflow happening at:

if headerSize+p.bodySize(b, maxSize) <= maxSize

when both sides of the "+" are infinity=1<<30
Sign in to reply to this message.

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