mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal/gc: make Nod private
Follow up to CL 29134. Generated with gofmt -r 'Nod -> nod', plus three manual adjustments to the comments in syntax/parser.go Change-Id: I02920f7ab10c70b6e850457b42d5fe35f1f3821a Reviewed-on: https://go-review.googlesource.com/29136 Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
bb12894d2b
commit
073d248bf5
29 changed files with 692 additions and 692 deletions
|
|
@ -33,8 +33,8 @@ func TestCaseClauseByConstVal(t *testing.T) {
|
|||
{nodlit(Val{"abc"}), nodlit(Val{"xyz"})},
|
||||
}
|
||||
for i, test := range tests {
|
||||
a := caseClause{node: Nod(OXXX, test.a, nil)}
|
||||
b := caseClause{node: Nod(OXXX, test.b, nil)}
|
||||
a := caseClause{node: nod(OXXX, test.a, nil)}
|
||||
b := caseClause{node: nod(OXXX, test.b, nil)}
|
||||
s := caseClauseByConstVal{a, b}
|
||||
if less := s.Less(0, 1); !less {
|
||||
t.Errorf("%d: caseClauseByConstVal(%v, %v) = false", i, test.a, test.b)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue