go/printer: simpler exprList code, more tests
Except for the tests, this is mostly deleting code:
- removed several exprListModes:
blankStart: easily done explicitly, and trailing blanks
are cleaned up by the trimmer post-pass
blankEnd: never used
commaSep: all exprLists calls had this set
- added test cases for multi-line returns
(for a later fix of issue 1207)
- no formatting changes
*** Submitted as http://code.google.com/p/go/source/detail?r=d8586c9e6c89 *** go/printer: simpler exprList code, more tests Except for the tests, ...
13 years, 2 months ago
(2012-03-02 19:16:09 UTC)
#3
*** Submitted as http://code.google.com/p/go/source/detail?r=d8586c9e6c89 ***
go/printer: simpler exprList code, more tests
Except for the tests, this is mostly deleting code:
- removed several exprListModes:
blankStart: easily done explicitly, and trailing blanks
are cleaned up by the trimmer post-pass
blankEnd: never used
commaSep: all exprLists calls had this set
- added test cases for multi-line returns
(for a later fix of issue 1207)
- no formatting changes
R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/5672062
Issue 5672062: code review 5672062: go/printer, go/fmt: simpler exprList code, more tests
(Closed)
Created 13 years, 3 months ago by gri
Modified 13 years, 2 months ago
Reviewers:
Base URL:
Comments: 0