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

Delta Between Two Patch Sets: src/pkg/go/printer/testdata/expressions.golden

Issue 4271083: code review 4271083: go/printer, gofmt: rely on existing line breaks when fo... (Closed)
Left Patch Set: Created 13 years ago
Right Patch Set: diff -r 59d5bc43be1f https://go.googlecode.com/hg/ Created 13 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/go/printer/nodes.go ('k') | src/pkg/go/printer/testdata/expressions.input » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 package expressions 5 package expressions
6 6
7 type T struct { 7 type T struct {
8 x, y, z int 8 x, y, z int
9 } 9 }
10 10
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 c 612 c
613 _ = a.b[0:].c 613 _ = a.b[0:].c
614 _ = a. 614 _ = a.
615 b[0:]. 615 b[0:].
616 c 616 c
617 _ = a.b.(T).c 617 _ = a.b.(T).c
618 _ = a. 618 _ = a.
619 b.(T). 619 b.(T).
620 c 620 c
621 } 621 }
622
623
624 // Don't introduce extra newlines in strangely formatted expression lists.
625 func f() {
626 // os.Open parameters should remain on two lines
627 if writer, err = os.Open(outfile, s.O_WRONLY|os.O_CREATE|
628 os.O_TRUNC,0666); err != nil {
629 log.Fatal(err)
630 }
631 }
LEFTRIGHT

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