]> Cypherpunks repositories - gostls13.git/commit
go/printer: replace multiline logic
authorRobert Griesemer <gri@golang.org>
Wed, 29 Feb 2012 16:38:31 +0000 (08:38 -0800)
committerRobert Griesemer <gri@golang.org>
Wed, 29 Feb 2012 16:38:31 +0000 (08:38 -0800)
commitb1b0ed1e60af93bc83298da80d0293a2b23fcb5e
treef1bbd85cacfd3714109dd9f7731f6dd85ebfaef5
parentfb2706113f36452f7e1e514be1949c0cdae46835
go/printer: replace multiline logic

This CL mostly deletes code.

Using existing position information is
just as good to determine if a new section
is needed; no need to track exact multi-
line information. Eliminates the need to
carry around a multiLine parameter with
practically every function.

Applied gofmt -w src misc resulting in only
a minor change to godoc.go. In return, a couple
of test cases are now formatted better.

Not Go1-required, but nice-to-have as it will
simplify fixes going forward.

R=rsc
CC=golang-dev
https://golang.org/cl/5706055
src/cmd/godoc/godoc.go
src/pkg/go/printer/nodes.go
src/pkg/go/printer/printer.go
src/pkg/go/printer/testdata/declarations.golden