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

Delta Between Two Patch Sets: src/cmd/gofmt/testdata/composites.golden

Issue 2319041: code review 2319041: go ast/parser/printer: permit elision of composite lite... (Closed)
Left Patch Set: code review 2319041: go ast/parser/printer: permit elision of composite lite... Created 13 years, 5 months ago
Right Patch Set: code review 2319041: go ast/parser/printer: permit elision of composite lite... Created 13 years, 5 months 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:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/cmd/gofmt/simplify.go ('k') | src/cmd/gofmt/testdata/composites.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
1 package P 1 package P
2 2
3 type T struct { 3 type T struct {
4 x, y int 4 x, y int
5 } 5 }
6 6
7 var _ = [42]T{ 7 var _ = [42]T{
8 {}, 8 {},
9 {1, 2}, 9 {1, 2},
10 {3, 4}, 10 {3, 4},
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 "foo": {}, 87 "foo": {},
88 "bar": {1, 2}, 88 "bar": {1, 2},
89 "bal": {3, 4}, 89 "bal": {3, 4},
90 } 90 }
91 91
92 var _ = map[string][]int{ 92 var _ = map[string][]int{
93 "foo": ([]int{}), 93 "foo": ([]int{}),
94 "bar": ([]int{1, 2}), 94 "bar": ([]int{1, 2}),
95 "bal": {3, 4}, 95 "bal": {3, 4},
96 } 96 }
97
98 // from exp/4s/data.go
99 var pieces4 = []Piece{
100 {0, 0, Point{4, 1}, []Point{{0, 0}, {1, 0}, {1, 0}, {1, 0}}, nil, nil},
101 {1, 0, Point{1, 4}, []Point{{0, 0}, {0, 1}, {0, 1}, {0, 1}}, nil, nil},
102 {2, 0, Point{4, 1}, []Point{{0, 0}, {1, 0}, {1, 0}, {1, 0}}, nil, nil},
103 {3, 0, Point{1, 4}, []Point{{0, 0}, {0, 1}, {0, 1}, {0, 1}}, nil, nil},
104 }
LEFTRIGHT

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