]> Cypherpunks repositories - gostls13.git/commit
go/printer: Permit declaration and statement lists as input.
authorRobert Griesemer <gri@golang.org>
Mon, 26 Nov 2012 21:14:04 +0000 (13:14 -0800)
committerRobert Griesemer <gri@golang.org>
Mon, 26 Nov 2012 21:14:04 +0000 (13:14 -0800)
commit2a982e8e25f35735268711d21c77aaaee75f8366
treeb7e4cd85370d85a2632003cdded274e62df7e703
parenta5e10edc34ecfc8173509fabda0998b0cd518da7
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).

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6847086
src/pkg/go/printer/nodes.go
src/pkg/go/printer/performance_test.go
src/pkg/go/printer/printer.go
src/pkg/go/printer/printer_test.go