mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
go/printer: don't lose relevant parentheses when rewriting selector expressions
Also: Simplified handling of selector expressions. As a result, complicated multi-line expressions containing selectors and calls/indices with arguments broken accross lines don't get indented the same way as before, but the change is minimal (see tests) and there's no such code in the std library. It seems a worthwhile compromise given the much simpler code. Applied gofmt -w $GOROOT/src $GOROOT/misc . Fixes #1847. R=rsc CC=golang-dev https://golang.org/cl/5675062
This commit is contained in:
parent
1064f3a97b
commit
47afa4dba5
7 changed files with 166 additions and 72 deletions
|
|
@ -494,7 +494,7 @@ func (b *Builder) envvWindows() []string {
|
|||
"GOOS": b.goos,
|
||||
"GOARCH": b.goarch,
|
||||
"GOROOT_FINAL": `c:\go`,
|
||||
"GOBUILDEXIT": "1", // exit all.bat with completion status.
|
||||
"GOBUILDEXIT": "1", // exit all.bat with completion status.
|
||||
}
|
||||
for _, name := range extraEnv {
|
||||
s, err := os.Getenverror(name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue